Script to generate DTM/DSM
How can I create a script to generate a DTM for the current view without requiring specific coordinates as an input?
I already have a script to generate a DTM for the entire area or within a specified polygon, but I want to make it so it automatically extracts the coordinates of the current view and generates the product accordingly. Here is the script I currently use to generate for the whole area:
GLOBAL_MAPPER_SCRIPT VERSION=1.00
SET_OPT LIDAR_FILTER="NONE,2"
GENERATE_ELEV_GRID ELEV_UNITS="METERS" GRID_ALG="BIN_MAX" GRID_BIN_SIZE="5" LAYER_DESC="DSM" NO_DATA_DIST_MULT="0" GRID_SAVE_TIN="NO" GRID_FILL_TO_BOUNDS="NO" GRID_FLATTEN_AREAS="YES" GRID_HEIGHTS_RELATIVE="NO" GRID_USE_CONSTRAINTS="YES" GRID_IGNORE_ZERO="NO" GRID_TYPE="ELEV" SOFT_EDGE_DIST="2"
Additionally, is there a way to assign a keyboard shortcut, such as F2, to instantly execute this script for quicker access? The closest I found is to run the script manually and then use the "Run Previous Script" shortcut.
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 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