User Tools

Site Tools


Table of Contents

TGIS_LayerGML.Build(String; TGIS_Extent; TGIS_ShapeType; TGIS_DimensionType) method

DK11 for Delphi | GisLayerGML.TGIS_LayerGML.Build | Overloads | Constructors | Fields | Methods | Properties | Events

Builds s new layer - prepare storage.

Available also on: .NET | Java.


// Delphi
  procedure Build(
    const _path : String;
    const _extent : TGIS_Extent;
    const _type : TGIS_ShapeType;
    const _dim : TGIS_DimensionType
  ); override;
// C++ Builder
  virtual void Build(
    const UnicodeString _path,
    TGIS_Extent* const _extent,
    TGIS_ShapeType* const _type,
    TGIS_DimensionType* const _dim


Name Type Description
_path String 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
_dim TGIS_DimensionType dimension; for default layer dimension use TGIS_DimensionType.Unknown


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

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

2020/05/07 01:08