LAYER_LOOP_START does not produce consistent results. Looking for the expected result

Hi,

The following script should ideally loop through the loaded files and export each elevation files with the respective name as xyz grid file, however this results in the same consolidated file with the names of all loaded files. Example if there are 5 files loaded, it should result in 5 xyz grids corresponding to their respective region of interest. However the result is 5 files, with each file having elevation values from all the 5 files.


LAYER_LOOP_START FILENAME="*"
            EXPORT_ELEVATION FILENAME="C:\TEST\%LAYER_FNAME_WO_EXT%.XYZ" TYPE="XYZ_GRID" \
                        SAMPLING_METHOD="NEAREST_NEIGHBOR" ELEV_UNITS="METERS" FILL_GAPS="NO" \
                        COORD_DELIM="TAB"
            UNLOAD_LAYER FILENAME="%LAYER_FNAME_W_DIR%"
LAYER_LOOP_END

The loaded file is a .tar.gz file containing 25 geotiff files. 

Looking forward to a consistent solution.

Thanks and regards,
Pavan  


Sign In or Register to comment.