User Tools

Site Tools


Table of Contents

ITGIS_LayerVector.ForEach method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.ForEach | Methods | Properties

Fetches all shapes from the layer using callback function.

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


// C#
public WordBool ForEach(
  ITGIS_Extent _extent,
  WideString _query,
  ITGIS_Shape _shape,
  WideString _de9im,
  WordBool _skipDeleted,
  double _scale,
  ITGIS_ForEachShapeEvent _callback
' VisualBasic
Public Function ForEach(
  ByVal _extent As ITGIS_Extent,
  ByVal _query As WideString,
  ByVal _shape As ITGIS_Shape,
  ByVal _de9im As WideString,
  ByVal _skipDeleted As WordBool,
  ByVal _scale As Double,
  ByVal _callback As ITGIS_ForEachShapeEvent
) As WordBool
// Oxygene
  function ForEach(
    _extent : ITGIS_Extent;
    _query : WideString;
    _shape : ITGIS_Shape;
    _de9im : WideString;
    _skipDeleted : WordBool;
    _scale : Double;
    _callback : ITGIS_ForEachShapeEvent
  ) : WordBool;


Name Type Description
_extent ITGIS_Extent extent of items to be found; expected _extent units are in a Layer coordinate space
_query WideString 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 ITGIS_Shape if not nil, then only shapes matched _de9im matrix with _shape will be found
_de9im WideString DE-9IM matrix of comparison
_skipDeleted WordBool set a skip deleted treatment; by default deleted items will be ignored
_scale double
required to properly prepare shape parameters according ParamsList section visibility; meaningless if layer is not attached to the Viewer
_callback ITGIS_ForEachShapeEvent procedure to be called on each shape


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


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

2022/11/16 01:10

Page Tools