spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2013
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  SPATIAL DATA IMPORTER CONTEST SUBMISSION: EXPORT SHAPES  

This code will export regions, lines, rectangles and pushpins/points to the MapInfo mif/mid file formats (other shape types are ignored). This allows people to use the drawing tools built into MapPoint to generate the shapes they will later want to import with the spatial importer, adding layers of regions and points to their MapPoint maps without owning a MapInfo product. One restriction should be noted: regions and lines are differentiated by whether or not the shape is filled. In MapPoint you can have a line that is filled, but I couldn't find a way to programatically differentiated between that and a region. It seems as if there should be a Shape property like "IsClosed" (True for a region, False for a line) which would allow you to tell a filled region from a filled line.

Included in the export are fields which could be used to more completely define the shape if they were recognized by the importer. For example, regions are exported with the line weight and fill color properties. (This leads to the obvious suggestion for another enhancement to the importer: that it use these shape properties.) Also, it appears as if the importer wants all of the shapes in an mif/mid file to be of one type (Is this a MapInfo restriction for how mif/mid files are created?). When I exported the shapes from a map with one region, one line, one rectangle and one pushpin and then tried to import it, only the first object was imported. When I exported a map with 10 regions, the importer recreated the regions perfectly.

To add the export functionality to your importer add-in:

  • Add MapInfoCreator.cls to the VB project. It contains code to export MapPoint Shape objects to MapInfo mif/mid files.
  • Replace the original modMapPointFunctions.bas with this new one, which has been modified to add Gilles Kohl's Arccos and CalcPos procedures.
  • Add a button named "cmdExportShapes" to form "frmSpatialDataImport".
  • Behind the button add the following code:

  • Also, add the following function to the form:


  • Author: Walt Cygan
    Email: wcygan@macrogroup.net
    URL: http://www.macrogroup.net
    Walt is a consultant for The MACRO GROUP, Inc. in Minneapolis, Minnesota. The MACRO GROUP, Inc. is an information systems consulting firm whose customers include public, private and non-profit organizations of all sizes.



    Google
     
    MP2Kmag Internet


     Recent Discussion
    -Sexy photo galleries, daily updated pics
    -New hot project galleries, daily updates
    -Convert MBOX to PST
    -My new hot project
    -Teen Girls Pussy Pics. Hot galleries
    -Đại Học Kinh Tế Lu*t 2022 - chaydiemnomon@gmail.com
    -Young Heaven - Naked Teens & Young Porn Pictures
    -Enjoy daily galleries
    -Sexy photo galleries, daily updated collections
    -MBOX to PST Converter Tool
    -Ch*y iỂm nỢ mn tn chỈ nhanh chng
    -Ch*y iỂm toeic - ielts - nhanh chong 2022
    -Young Heaven - Naked Teens & Young Porn Pictures
    -Young Heaven - Naked Teens & Young Porn Pictures
    -Free Porn Pictures and Best HD Sex Photos
    -Best Nude Playmates & Centerfolds, Beautiful galleries daily updates
    -New project started to be available today, check it out
    -Ch*y iỂm nỢ mn 2022
    -Ch*y iỂm cc trỜng *i hỌc 2022
    -Chạy Điểm Nợ Môn Các Trường Đại Học 2022
    -CH*Y ĐIỂM TOEIC - IELTS Toan Quoc 2022
    -Ch*y iỂm nỢ mn cc trỜng​ - 2022 - nhanh chong
    -Sexy teen photo galleries
    -enjoy new website
    -ДУБКАН • Изготовление Фитилей, Канатов и тд.
     Resources


    Want Your Site To Appear Here?

       © 1999-2012 MP2K. Questions and comments to: website@mp2kmag.com
      Microsoft and MapPoint 2002/2004/2006/2009/2010/2011/2013 are either trademarks or registered trademarks of Microsoft.