Global Mapper v26.0

Split Layer by Attribute - Not Exporting New Splits

tfitz2001
tfitz2001 Global Mapper UserTrusted User

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

  • tfitz2001
    tfitz2001 Global Mapper User Trusted User

    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!