User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layer.lock_void

Table of Contents

TGIS_Layer.Lock method

DK11 for .NET | TatukGIS.NDK.TGIS_Layer.Lock | Constructors | Fields | Methods | Properties | Events

Lock layer in burst-mode operation.

Available also on: Delphi | Java | ActiveX.

Syntax

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

Remarks

Extent for Viewer will not be refreshed (for example Extent will not be recalculated.

By calling Lock you are disabling any projection-level operations. AddPoint/GetPoint will operate in a Layer native coordinates.

See TGIS_Shape.Lock for 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. You can use Lock also to temporarily disable projections - reading/setting points will be done without any projections.

Unlock method MUST be called if Lock was used.

By calling Lock you are disabling any projection-level operations. AddPoint/GetPoint will operate in Layer native coordinates.

2019/09/27 01:16