User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.addtoindex_void

Table of Contents

ITGIS_Shape.AddToIndex method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.AddToIndex | Methods | Properties

Add the shape extent to the spatial index to enable fast spatial queries.

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

Syntax

// C#
public void AddToIndex();
' VisualBasic
Public Sub AddToIndex()
// Oxygene
public
  procedure AddToIndex;

Remarks

PURPOSE: Registers the shape in the layer spatial index, typically an R-Tree, so extent-based searches can find it efficiently.

BEHAVIOR: Inserts the current shape bounds into the spatial index used by the owning vector layer.

USAGE: Use this method when shape geometry is added outside the normal layer-managed workflow and the spatial index must be updated explicitly.

CONSTRAINTS: Effective only when the owning layer uses a spatial index.

2026/07/05 01:25

Page Tools