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.5K All Categories
- 5.5K Features Discussion
- 314 Downloading Imagery
- 1.3K Elevation Data
- 377 Georeferencing Imagery Discussion
- 611 GM Script Language
- 50 User Scripts
- 112 GPS Features
- 397 Projection Questions
- 803 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 161 Announcement and News
- 893 Bug Report
- 557 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 542 Other Discussion
- 128 GIS Data Sources
- 26 Global Mapper Showcase
- 229 How I use Global Mapper
- 104 Global Mapper Forum Website