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
-
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"
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 637 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 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