User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_layervector.importlayer_tgis_layervector_tgis_extent_tgis_shapetype_string_boolean

Table of Contents

TGIS_LayerVector.ImportLayer(TGIS_LayerVector, TGIS_Extent, TGIS_ShapeType, str, bool) method

DK11 for Python | tatukgis.pdk.TGIS_LayerVector.ImportLayer | Overloads | Constructors | Methods | Properties | Events

Imports a layer from an existing layer.

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

Syntax

# Python
def ImportLayer(
  self,
  _layer: TGIS_LayerVector,
  _extent: TGIS_Extent,
  _type: TGIS_ShapeType,
  _scope: str,
  _truncated: bool
) -> None: 

Parameters

Name Type Description
_layer TGIS_LayerVector layer to be imported
_extent TGIS_Extent starting extent of layer - can't be zero sized
_type TGIS_ShapeType shape type supported by a layer; if gistypeUnknown is used then import will try to recognize shape on its own;
_scope str SQL query for which shape will be imported
_truncated bool if True, then all shapes will be truncated in _extent; if False, only the shape visible in _extent will be imported ;

Remarks

Remember to assign 'path' property to the layer you want to import from, for proper import of the new layer to a file.
Use this method to import a layer. To do this, simply create a new layer, choose a layer to import from and use ImportLayer method with proper params. See also the opposite method, ExportLayer.

References

2023/08/09 01:56

Page Tools