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
- 13K All Categories
- 5.8K Features Discussion
- 351 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 422 Projection Questions
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 182 Announcement and News
- 944 Bug Report
- 565 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 582 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 245 How I use Global Mapper
- 111 Global Mapper Forum Website

