User Tools

Site Tools


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

Table of Contents

TGIS_LayerVector.Build(str, TGIS_Extent, TGIS_ShapeType) method

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

Builds a new layer - prepares storage.

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

Syntax

# Python
def Build(
  self,
  _path: str,
  _extent: TGIS_Extent,
  _type: TGIS_ShapeType
) -> None: 

Parameters

Name Type Description
_path str full path of layer to be built; a connection string for SQL base shapes;
_extent TGIS_Extent starting extent of layer - can't be zero sized
_type TGIS_ShapeType shape type supported by a layer

Remarks

Use this method to build a new layer (prepare storage). Depending on the layer type, different files are created or used. For GIS_LayerSHP there are .shp and .dbf files. GIS_LayerSQLAbstract uses .ttkls files.

To add a new layer to the viewer, simply create a layer, use Build method with proper params, fill needed layer properties, and use the viewer Add method.

References

2023/08/09 01:56

Page Tools