User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layer.lock_void

Table of Contents

ITGIS_Layer.Lock method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Layer.Lock | Methods | Properties

Locks layer in burst-mode operation.

Available also on: Delphi | .NET | Java.

Syntax

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

Remarks

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.

2020/05/07 01:03