Global Mapper v26.0

Prompt for POLYGON_CROP_FILE?

Is it possible to have a prompt used for the POLYGON_CROP_FILE when exporting? Right now I have a prompt to load a DTM and then export clipped DTMs based off a DXF file path and I was hoping to have that file path be a prompt instead.

//THIS IS THE PROMPT I'M USING TO LOAD A DTM:

DEFINE_VAR NAME="FILE_TO_LOAD" PROMPT="FILE" VALUE=".TIF" ABORT_ON_CANCEL="YES" FILE_MUST_EXIST="YES" PROMPT_TEXT="SELECT DTM"

//AFTER ITS LOADED I USE THIS TO EXPORT BUT I WAS HOPING TO HAVE THE DXF FILE PATH BE A PROMPT INSTEAD:

EXPORT_RASTER FILENAME="C:\Users\a\Documents\GlobalMapper\EXPORTS\230106_" EXPORT_LAYER="*_.tif" \

TYPE="GEOTIFF" SPATIAL_RES="0.10000000,0.1000000" NUM_BANDS="3" BAND_BIT_DEPTH="8" \

INC_VECTOR_DATA="NO" COMPRESSION="LZW" ADD_OVERVIEW_LAYERS="NO" TILE_SIZE="0" TIFF_NO_GTIFF_HEADER="NO" \

POLYGON_CROP_FILE="Y:\FLIGHT_BOUNDARIES\FLIGHT_AREA.dxf" \

   POLYGON_CROP_USE_EACH="YES" POLYGON_CROP_NAME_ATTR="<Feature Name>" POLYGON_CROP_FILENAME_SUFFIX="_10CM_.tif"

Answers

  • mcsmoother
    mcsmoother Global Mapper User

    DEFINE_VAR NAME="DXF_File" PROMPT="FILE" PROMPT_TEXT="Please select the DXF File" VALUE="" ABORT_ON_CANCEL=NO

    EXPORT_RASTER FILENAME="C:\Users\a\Documents\GlobalMapper\EXPORTS\230106_" EXPORT_LAYER="*_.tif" \

    TYPE="GEOTIFF" SPATIAL_RES="0.10000000,0.1000000" NUM_BANDS="3" BAND_BIT_DEPTH="8" \

    INC_VECTOR_DATA="NO" COMPRESSION="LZW" ADD_OVERVIEW_LAYERS="NO" TILE_SIZE="0" TIFF_NO_GTIFF_HEADER="NO" \

    POLYGON_CROP_FILE="%DXF_File%" \

       POLYGON_CROP_USE_EACH="YES" POLYGON_CROP_NAME_ATTR="<Feature Name>" POLYGON_CROP_FILENAME_SUFFIX="_10CM_.tif"