User Tools

Site Tools


api:dk11:python:tatukgis_pdk.tgis_layerpixel.lockpixels_tgis_extent_tgis_cscoordinatesystem_double_integer_boolean

TGIS_LayerPixel.LockPixels(TGIS_Extent, TGIS_CSCoordinateSystem, float, int, bool) method

DK for Python | tatukgis_pdk.TGIS_LayerPixel.LockPixels | Overloads | Constructors | Methods | Properties | Events

Locks a fragment of the pixel layer for updating.

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

Syntax

# Python
def LockPixels(
  self,
  _ext: TGIS_Extent,
  _cs: TGIS_CSCoordinateSystem,
  _pixelsize: float,
  _band: int,
  _writable: bool
) -> TGIS_LayerPixelLock: 

Parameters

Name Type Description
_ext TGIS_Extent area to be locked; if bigger then layer extent then will be truncated to layer extent
_cs TGIS_CSCoordinateSystem coordinate system of _cs; if nil then same as layer CS
_pixelsize float minimum requested size of image pixel; by providing 0 a maximum possible resolution will be used, which is also a fastest method if a layer is full in-memory because in such situation a pointer to existing memory will be used
_band int specific band to be locked
_writable bool if true than layer will post back any changes in locked area; if write is not possible then TGIS_LayerPixelLock.Writable will be set accordingly

Result

Type Description
TGIS_LayerPixelLock locked area

Remarks

Must be paired with UnlockPixels.

References

2025/01/31 01:20

Page Tools