User Tools

Site Tools


Table of Contents

TGIS_Layer.Lock method

DK11 for Delphi | GisLayer.TGIS_Layer.Lock | Constructors | Fields | Methods | Properties | Events

Locks layer in burst-mode operation.

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


// Delphi
  procedure Lock; virtual;
// C++ Builder
  virtual void Lock(void);


Extent for viewer will not be refreshed (i.e., extent will not be recalculated).

Calling Lock, disables any projection-level operations. AddPoint/GetPoint will operate in the layer's native coordinates.

See TGIS_Shape.Lock for a similar example.

Use this method to lock a shape for burst-mode operation. After locking, AddPoint will be much faster. But please remember that the shape, layer and viewer extent will be updated after the call to Unlock. Lock also can be used to temporarily disable projections, i.e., reading/setting points will be done without any projections.

Unlock method MUST be called if Lock was used.

2022/11/16 01:18

Page Tools