Split Layer by Attribute - Not Exporting New Splits
Hi all -
Maybe I am missing something, but I can not figure out how to export new layers that are split by an attribute
DIR_LOOP_START DIRECTORY="I:\Temp\CSVs" FILENAME_MASKS=*.csv
IMPORT_ASCII FILENAME=%FNAME_W_DIR% TYPE="POINT_ONLY" COORD_DELIM="AUTO" COORD_FORMAT="DECIMAL" COORD_ORDER="X_FIRST" INC_COORD_LINE_ATTRS="YES" COL_HEADERS="YES" INC_ELEV_COORDS="YES" SKIP_COLUMNS="0" SKIP_ROWS="0" ELEV_UNITS="METERS"
Set_Layer_Options FILENAME="%FNAME_W_DIR%.csv" ELEV_FIELD="ELEVATION" ELEV_UNITS="METERS"
Split_Layer Filename="%FNAME_W_DIR%.csv" SPLIT_BY_ATTR="Year"
Export_Vector Filename="I:\Temp\CSVs\%Layer_Desc%.csv" Type=CSV
Unload_All
Dir_Loop_End
The export of the new split vector layers is just the original file. There is no split exports.
I am pretty sure my syntax is incorrect, and something must sit in between Split_Layer and Export_Vector, but I can't figure it out. I really could use some help.
Thanks
Comments
-
one small nap and a cup of tea later ... solved.
It was an export naming on my part that has just a small section in the scripting manual:
Export_Vector SPLIT_BY_ATTR="XXX" FILENAME_ATTR="XXX" Filename="I:\Temp\CSVsMinor\%FNAME_WO_EXT%.csv" Type="CSV"
I need to nap more often!
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 638 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
- 914 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website