Global Mapper v25.0

MultiPolygon import and export for text format files

Geo
Geo Global Mapper UserTrusted User
edited August 2013 in Suggestion Box
Hello Mike,

Since this thread: Error exporting polygon shapefile, you updated multi-part polygons export to shapefile.

Do you plan to make possible MultiPolygon import and export from and to "CSV (Use WKT Coordinate Format)" and from and to "Simple Ascii (XYZ) Text File" ?

At the moment, import and export for text based format file splits MultiPolygons to Polygons.

Thanks for your attention,
Richard.

Comments

  • global_mapper
    global_mapper Administrator
    edited August 2013
    Richard,

    Do you have some sample CSV files with a multi-polygon WKT text string that I could test with? Now that the support is there internally it shouldn't be hard to update the grouping to be maintained on import and export.

    Thanks,

    Mike
    Global Mapper Guru
    geohelp@bluemarblegeo.com
    Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation
  • Geo
    Geo Global Mapper User Trusted User
    edited August 2013
    Hello Mike,

    I made some simples samples.

    Filename describes content and data order in file :
    DataType_DataType_Separator.csv
    where DataType can be :
    Att = Attributes
    Geom = WKT
    Geom+quote = Double quoted WKT
    and Separator can be :
    Comma, Semicolon, Tab


    Each file is opened with "Open Generic ASCII Text Files".

    Generic ASCII Text File Import Options are :


    Import Type
    Point, Line, and Area Features


    Coordinate Column Order/Format
    Well-Known-Text (WKT) Format Coordinates


    Fields to Skip at Start of Line:
    "2" for Att_Geom*.csv, "0" for Geom*_Att*.csv


    Coordinate Format:
    Default (Décimal or Separated)


    Coordinate Line Prefix
    None


    Rows to Skip at Start of File
    0


    Coordinate Delimeter
    Auto-Detect


    Include attributes from lines with coordinate data
    checked


    Column headers in first row of file (points/WKT only)
    checked


    Treat 3rd coordinate value as elevation
    checked




    Tests made with GM v14.2.4 (b080113)

    S = Success, F = Fail


    ATT
    GEOM
    Multi-Part
    FILENAME


    F
    F

    Att_Geom_Comma.csv


    S
    S
    F
    Att_Geom_Semicolon.csv


    S
    S
    F
    Att_Geom_Tab.csv


    S
    S
    F
    Att_Geom+quote_Comma.csv


    S
    S
    F
    Att_Geom+quote_Semicolon.csv


    S
    S
    F
    Att_Geom+quote_Tab.csv


    F
    S
    F
    Geom_Att_Comma.csv


    F
    S
    F
    Geom_Att_Semicolon.csv


    F
    S
    F
    Geom_Att_Tab.csv


    F
    S
    F
    Geom+quote_Att_Comma.csv


    F
    S
    F
    Geom+quote_Att_Semicolon.csv


    F
    S
    F
    Geom+quote_Att_Tab.csv




    all .csv files and a .gmw file are in GM_WKT-MP_Test.zip attachment.

    Thanks,
    Richard.
  • global_mapper
    global_mapper Administrator
    edited August 2013
    Richard,

    I have updated the CSV import and export to group together MULTIPOLYGONs. Any grouped polygons now export as a MULTIPOLYGON as well. I have placed a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14_64bit.zip .

    Note you do need to quote the WKT string if the delimiter is inside the string (i.e. a comma) otherwise it won't parse correctly.

    Thanks,

    Mike
    Global Mapper Guru
    geohelp@bluemarblegeo.com
    Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation
  • Geo
    Geo Global Mapper User Trusted User
    edited August 2013
    Hello Mike,

    Many thanks for the update.

    I'll have to try again tomorrow, because I can only download the following versions:
    • x32 build time : August 5, 2013 12:51:02
    • x64 build time : August 5, 2013 12:48:39
    that does not seem to be the last.

    Richard.
  • global_mapper
    global_mapper Administrator
    edited August 2013
    Richard,

    Oops it looks like I didn't actually upload the new builds. You can try again now.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation