User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_layervector.foreach_tgis_extent_string_tgis_shape_string_boolean_double_tgis_foreachshapeevent

Table of Contents

TGIS_LayerVector.ForEach method

DK11 for Java | tatukgis.jdk.TGIS_LayerVector.ForEach | Constructors | Fields | Methods | Properties | Events

Fetches all shapes from the layer using callback function.

Available also on: Delphi | .NET | ActiveX.

Syntax

// Java
public bool ForEach(
  TGIS_Extent _extent,
  java.lang.String _query,
  TGIS_Shape _shape,
  java.lang.String _de9im,
  bool _skipDeleted,
  double _scale,
  TGIS_ForEachShapeEvent _callback
);
// Oxygene
public
  function ForEach(
    _extent : TGIS_Extent;
    _query : String;
    _shape : TGIS_Shape;
    _de9im : String;
    _skipDeleted : Boolean;
    _scale : Double;
    _callback : TGIS_ForEachShapeEvent
  ) : Boolean; virtual;

Parameters

Name Type Description
_extent TGIS_Extent extent of items to be found; expected _extent units are in a Layer coordinate space
_query java.lang.String
String
query which must be matched by item; closely mimics SQL WHERE clause; for examples you can use 'AGE >= 18'; empty (default) means that no items will match.
_shape TGIS_Shape if not nil, then only shapes matched _de9im matrix with _shape will be found
_de9im java.lang.String
String
DE-9IM matrix of comparison
_skipDeleted bool
Boolean
set a skip deleted treatment; by default deleted items will be ignored
_scale double
Double
required to properly prepare shape parameters according ParamsList section visibility; meaningless if layer is not attached to the Viewer
_callback TGIS_ForEachShapeEvent procedure to be called on each shape

Result

Type Description
bool
Boolean
True if all shapes are passed. False if operation was interrupted.

Remarks

Fetched shapes will have colors, sizes parameters setup according to rendering layout

2020/05/07 01:13