User Tools

Site Tools


Table of Contents

TGIS_LayerVector.RecalcExtent method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.RecalcExtent | Constructors | Fields | Methods | Properties | Events

Recalculates extent.

Available also on: Delphi | Java.


Overrides TGIS_Layer.RecalcExtent.

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


Use this method to recalculate extent based on real shapes. Can be extremely costly. Internally it iterates all not deleted shapes checking their extent and calculating the maximum extent.

To improve performance a layer section visibility can be used to choose layer.

When using this operation, never call any function which uses FindFirst..FindNext (any function which iterates through the shapes using it - so never use inside an operation like Locate, PaintScope etc.).

See RevertAll for example.


2020/05/07 01:18

Page Tools