Possible to script a density grid?
l GRID_TYPE - specifies what values should be gridded for a bin-based grid. The following values are supported:
l ELEVATION - default, grids the elevation values for each point
l INTENSITY - grids the intensity value for each point
l HEIGHT_ABOVE_GROUND - grids the height above ground for each point
l NDVI - grids the calculate NDVI (normalized difference vegetation index) for 4-band (RGB+NIR) Lidar points
l NDWI - grids t
Answers
-
GLOBAL_MAPPER_SCRIPT VERSION=1.00
SET_LAYER_OPTIONS FILENAME="All_Production_Merged" HIDDEN=No
SET_LAYER_OPTIONS FILENAME="New_Files_Merged*" HIDDEN=YES
GENERATE_DENSITY_GRID FILENAME="All_Production_Merged"\
LAYER_DESC="Production Density Grid"\
DENSITY_TYPE="GAUSSIAN"\
RADIUS="30"\
CELLS_PER_RADIUS="1"\
AREA_UNITS="SQUARE METERS"\
SHADER_NAME="HSV Shader"
SET_LAYER_OPTIONS FILENAME="All_Production_Merged" HIDDEN=Yes
//I didn't use the POPULATION_ATTR since I wanted the default Point Count to be used
//GENERATE_DENSITY_GRID
//The GENERATE_DENSITY_GRID command allows you create a new raster density grid layer based on vector points or point cloud returns.
//FILENAME - Name of a vector point or Lidar layer. Can only specify one layer name.
//LAYER_DESC - Description for the new Density Grid layer.
//DENSITY_TYPE - This option allows you to specify whether a weighted-distance Gaussian distribution is used (this gives much prettier results) or a simple in-or-out of radius calculation is used. Required parameter. Valid values are GAUSSIAN, CIRCLE, and EPANECHNIKOV.
//RADIUS – Used to specify how far from a grid sample location a point can be and still be considered as part of the value. Include unit abbreviation, e.g., '8 ft' for 8 feet. If no unit specified, the default meters. If the radius is not specified, a default value will be calculated.
//CELLS_PER_RADIUS - When combined with the Search Radius, controls how large the pixels are in the resulting density grid. For example, if you have a search radius of 90 meters and a 'Cells Per Radius' of 3, each pixel should end up 30 meters across. If not specified, the default is 3.
//POPULATION_ATTR - This option allows you to control whether a simple point count or attribute value is used to compute the density grid. Default is to just count points.
//AREA_UNITS - Units of area measure. Valid values are ACRES, HECTARES, SQUARE MILES, SQUARE KILOMETERS, SQUARE METERS, and SQUARE FEET.
//SHADER_NAME - this sets the name of the shader to use when rendering the data for this layer.
-
GLOBAL_MAPPER_SCRIPT VERSION=1.00 SET_LAYER_OPTIONS FILENAME="All_Production_Merged" HIDDEN=No SET_LAYER_OPTIONS FILENAME="New_Files_Merged*" HIDDEN=YES GENERATE_DENSITY_GRID FILENAME="All_Production_Merged"\ LAYER_DESC="Production Density Grid"\ DENSITY_TYPE="GAUSSIAN"\ RADIUS="30"\ CELLS_PER_RADIUS="1"\ AREA_UNITS="SQUARE METERS"\ SHADER_NAME="HSV Shader" SET_LAYER_OPTIONS FILENAME="All_Production_Merged" HIDDEN=Yes //I didn't use the POPULATION_ATTR since I wanted the default Point Count to be used //GENERATE_DENSITY_GRID //The GENERATE_DENSITY_GRID command allows you create a new raster density grid layer based on vector points or point cloud returns. //FILENAME - Name of a vector point or Lidar layer. Can only specify one layer name. //LAYER_DESC - Description for the new Density Grid layer. //DENSITY_TYPE - This option allows you to specify whether a weighted-distance Gaussian distribution is used (this gives much prettier results) or a simple in-or-out of radius calculation is used. Required parameter. Valid values are GAUSSIAN, CIRCLE, and EPANECHNIKOV. //RADIUS – Used to specify how far from a grid sample location a point can be and still be considered as part of the value. Include unit abbreviation, e.g., '8 ft' for 8 feet. If no unit specified, the default meters. If the radius is not specified, a default value will be calculated. //CELLS_PER_RADIUS - When combined with the Search Radius, controls how large the pixels are in the resulting density grid. For example, if you have a search radius of 90 meters and a 'Cells Per Radius' of 3, each pixel should end up 30 meters across. If not specified, the default is 3. //POPULATION_ATTR - This option allows you to control whether a simple point count or attribute value is used to compute the density grid. Default is to just count points. //AREA_UNITS - Units of area measure. Valid values are ACRES, HECTARES, SQUARE MILES, SQUARE KILOMETERS, SQUARE METERS, and SQUARE FEET. //SHADER_NAME - this sets the name of the shader to use when rendering the data for this layer.
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 829 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 179 Announcement and News
- 922 Bug Report
- 559 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 573 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website