DK for Java | tatukgis.jdk.TGIS_ContourGenerator.Generate | Overloads | Constructors | Methods | Properties | Events
Generates vector contours from a raster grid layer.
// Java public bool Generate( TGIS_LayerPixel _src, TGIS_LayerVector _dst, java.lang.String _dstfld, java.lang.String _dstfld_interval );
// Oxygene public function Generate( _src : TGIS_LayerPixel; _dst : TGIS_LayerVector; _dstfld : String; _dstfld_interval : String ) : Boolean;
| Name | Type | Description |
|---|---|---|
| _src | TGIS_LayerPixel | Source grid layer. |
| _dst | TGIS_LayerVector | Destination vector layer, which must use the same coordinate system as the source layer. |
| _dstfld | java.lang.String String | Existing destination field to populate with contour elevation values, or an empty string to skip attribute writing. |
| _dstfld_interval | java.lang.String String | Existing destination field to populate with contour interval values, used for polygonal contour output. |
| Type | Description |
|---|---|
| bool Boolean | True if the process completed successfully; otherwise False. |
PURPOSE: Creates contour output in the destination vector layer and optionally stores both contour elevation and interval values in destination attributes.
BEHAVIOR: Generates output according to Mode and the active contour level definition. When provided, _dstfld receives contour elevation values and _dstfld_interval receives contour interval values relevant to polygon output.
USAGE: Use this overload when polygon contours need both elevation and interval attributes.
generator = TGIS_ContourGenerator() ok = generator.Generate(srcLayer, dstLayer, "ELEV", "INTERVAL")
CONSTRAINTS: _dstfld and _dstfld_interval must already exist in _dst when they are not empty, and they must be different. The destination layer must have the same coordinate system as the source layer.