DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.ForEach | Constructors | Fields | Methods | Properties | Events
Fetches all shapes from the layer using callback function.
// C# public bool ForEach( TGIS_Extent _extent, string _query, TGIS_Shape _shape, string _de9im, bool _skipDeleted, double _scale, TGIS_ForEachShapeEvent _callback );
' VisualBasic Public Function ForEach( ByVal _extent As TGIS_Extent, ByVal _query As String, ByVal _shape As TGIS_Shape, ByVal _de9im As String, ByVal _skipDeleted As Boolean, ByVal _scale As Double, ByVal _callback As TGIS_ForEachShapeEvent ) As Boolean
// Oxygene public function ForEach( _extent : TGIS_Extent; _query : String; _shape : TGIS_Shape; _de9im : String; _skipDeleted : Boolean; _scale : Double; _callback : TGIS_ForEachShapeEvent ) : Boolean; virtual;
Name | Type | Description |
---|---|---|
_extent | TGIS_Extent | extent of items to be found; expected _extent units are in a Layer coordinate space |
_query | 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 | 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 |
Type | Description |
---|---|
bool Boolean | True if all shapes are passed. False if operation was interrupted. |