DK for Java | tatukgis.jdk.TGIS_ContourGenerator | Classes | Constructors | Methods | Properties | Events
Implements contour line and contour-band generation for raster grid and DEM (Digital Elevation Model) layers.
// Java public class TGIS_ContourGenerator extends TGIS_BaseObjectDisposable { };
// Oxygene type TGIS_ContourGenerator = public class( TGIS_BaseObjectDisposable ) end;
→ TGIS_BaseObjectDisposable
| Name | Visibility | Description | |
|---|---|---|---|
| TGIS_ContourGenerator() | public | Creates a contour generator instance with default settings. | |
| Name | Visibility | Description | |
|---|---|---|---|
| CalculateInterval(TGIS_LayerPixel) | public | Calculates ContourInterval for 20 levels and sets ContourBase to the lowest source value. | |
| CalculateInterval(TGIS_LayerPixel, int) | public | Calculates ContourInterval for the requested number of levels and sets ContourBase to the lowest source value. | |
| Generate(TGIS_LayerPixel, TGIS_LayerVector, java.lang.String) | public | Generates vector contours from a raster grid layer. | |
| Generate(TGIS_LayerPixel, TGIS_LayerVector, java.lang.String, java.lang.String) | public | Generates vector contours from a raster grid layer. | |
| Name | Visibility | Description | |
|---|---|---|---|
| ContourBase | public | The "base" relative to which contour intervals are applied. | |
| ContourInterval | public | The elevation interval between generated contours. | |
| CustomNoData | public | If True, NoDataValue is used instead of the source layer NoData value; default is False. | |
| FixedLevelCount | public | The number of elements in FixedLevels property. | |
| FixedLevels | public | The list of fixed levels at which contours should be generated. | |
| MinSize | public | Minimum feature size in map units; minimum length for polylines and minimum area for polygons. | |
| Mode | public | Type of contour generator output; default is Polylines. | |
| NoDataValue | public | Pixel value treated as NoData during contour generation; default is -9999. | |
| Smoothen | public | If True, generated contours are smoothed. | |
| SmoothFactor | public | Smoothing factor used when Smoothen is True. | |
PURPOSE: Generates vector contour output from raster cell values, including polyline contours, closed polylines, overlapping polygons, and non-overlapping polygon bands.
BEHAVIOR: Contour levels are derived either from ContourInterval and ContourBase or from FixedLevels when that list is not empty. The generator can ignore source NoData cells or use a custom NoDataValue, can optionally smooth output geometry, can filter small generated features using MinSize, and can populate existing destination fields with contour elevation and interval values.
USAGE: Configure contour settings, then generate output into an existing vector layer.
generator = TGIS_ContourGenerator() generator.Mode = Polygons generator.ContourInterval = 10 generator.ContourBase = 0 generator.Generate(srcLayer, dstLayer, "ELEV", "INTERVAL")
CONSTRAINTS: The destination TGIS_LayerVector must use the same coordinate system as the source TGIS_LayerPixel. Destination attribute fields named by _dstfld and _dstfld_interval must already exist. FixedLevels overrides ContourInterval and ContourBase when not empty. Smoothen can produce invalid geometry for polygon output.