Possible to script a density grid?

I'm looking at the scripting reference and I see a reference for all other types of grids from lidar, but I don't see the point density option. Is it possible to do this via script?

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.