User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_shape.layer

Table of Contents

TGIS_Shape.Layer property

DK for Java | tatukgis.jdk.TGIS_Shape.Layer | Constructors | Fields | Methods | Properties

Reference to parent layer containing shape. Provides access to layer's styling, fields, and context.

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

Syntax

// Java
public TGIS_LayerVector getLayer();
 
public void setLayer(
  TGIS_LayerVector _value
);
// Oxygene
public
  property Layer : TGIS_LayerVector read write;

Value

Remarks

PURPOSE:Access layer context (field definitions, default styling, coordinate system, rendering parameters). Enables shape-aware decisions based on layer configuration.

BEHAVIOR:Set automatically when shape added to layer. Allows shape to query layer's Params (colors, symbols, zoom intervals), Fields (schema), and CoordinateSystem.

USAGE:Get field value:if shape.Layer <> nil then value := shape.Layer.GetField(uid, 'FIELD_NAME');Query rendering params:params := shape.Layer.Params;

CONSTRAINTS:Nil if shape not added to layer. Read/Write access. Lifetime managed by layer.

2026/06/13 00:35

Page Tools