Maptitude GISDK Help

GenerateDEMGrid()

Summary

Creates a grid geographic file containing a regular grid (DEM) generated from a TIN.

 

Syntax

GenerateDEMGrid(tin t, string db_name, scope scp, int n_xtics, int n_ytics, array options)

 

Argument Contents
t A TIN
db_name The name of the output geographic file
scp The scope of the area to be covered by the grid
n_xtics Size of grid (number of points) in the x dimension
n_ytics Size of grid (number of points) in the y dimension

 

Option Type Contents
Layer Name String The name for the new layer
Label String The label for the new layer
CDF String "Yes" to create a compact (.cdf) grid geographic file, "No" to create a standard (.dbd) point geographic file

 

Notes

Example

// Open Elevdata.cdf in the Tutorial folder

layer_name = GetLayer()

point_tin = CreateTriangulation(layer_name + "|", {{"Field","Elevation"}})

folder = RunMacro("G30 Tutorial Folder")

scp = GetMapScope()

GenerateDEMGrid(point_tin, folder + "demgrid.dbd", scp, 100, 100,

    {{"Layer Name","DEM Grid"}})

 

Error Codes

Error Type Meaning
Error The TIN compound variable is null, or the options are not of the required type

 

See Also

Function Summary
CreateTriangulation() Creates a Triangulated Irregular Network (TIN)
CreateContourDB() Creates a line or area geographic file of the contours derived from a TIN

 

 

©2025 Caliper Corporation www.caliper.com