MultiPolygon import and export for text format files
Geo
Global Mapper UserTrusted User
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.
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
-
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 -
Hello Mike,
I made some simples samples.
Filename describes content and data order in file :DataType_DataType_Separator.csvwhere DataType can be :Att = AttributesGeom = WKTGeom+quote = Double quoted WKTand 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. -
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 -
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
Richard. -
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
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website