User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_contourgenerator.generate_tgis_layerpixel_tgis_layervector_string_string

TGIS_ContourGenerator.Generate(TGIS_LayerPixel, TGIS_LayerVector, java.lang.String, java.lang.String) method

DK for Java | tatukgis.jdk.TGIS_ContourGenerator.Generate | Overloads | Constructors | Methods | Properties | Events

Generates vector contours from a raster grid layer.

Available also on: Delphi | .NET | ActiveX | Python.

Syntax

// 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;

Parameters

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.

Result

Type Description
bool
Boolean
True if the process completed successfully; otherwise False.

Remarks

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.

References

2026/07/11 01:22

Page Tools