Export only selected rows in v16
George Chandeep Corea
Global Mapper UserTrusted User
Is it possible to export only selected data in gms?
I see there is EXPORT_LAYER but how do I tell it to do the following for example?
I see there is EXPORT_LAYER but how do I tell it to do the following for example?
Select all rows where contour_type=major export selection to %FNAME_WO_EXT%_5m.tab
Select all rows where contour_type!=minor export selection to %FNAME_WO_EXT%_1m.tabThis will be in
EXPORT_VECTOR FILENAME="%FNAME_WO_EXT%.tab" TYPE=Mapinfo INC_LAYER_ATTR=NO INC_ELEV_ATTR=YES
Answers
-
You can try something like this:
EDIT_VECTOR COPY_TO_NEW_LAYER=YES NEW_LAYER_NAME="Major" \ COMPARE_STR="CONTOUR_TYPE=major" EXPORT_VECTOR FILENAME="<filename>" TYPE=MAPINFO EXPORT_LAYER="Major" UNLOAD_LAYER FILENAME="Major"
EDIT_VECTOR COPY_TO_NEW_LAYER=YES NEW_LAYER_NAME="Minor" \ COMPARE_STR="CONTOUR_TYPE=minor" EXPORT_VECTOR FILENAME="<filename>" TYPE=MAPINFO EXPORT_LAYER="Minor" UNLOAD_LAYER FILENAME="Minor"
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 827 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 918 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 570 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 239 How I use Global Mapper
- 107 Global Mapper Forum Website