User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layervector.build_string_tgis_extent_tgis_shapetype_tgis_dimensiontype

TGIS_LayerVector.Build(string, TGIS_Extent, TGIS_ShapeType, TGIS_DimensionType) method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.Build | Overloads | Constructors | Fields | Methods | Properties | Events

Build new layer - prepare storage.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public void Build(
  string _path,
  TGIS_Extent _extent,
  TGIS_ShapeType _type,
  TGIS_DimensionType _dim
);
' VisualBasic
Public Sub Build(
  ByVal _path As String,
  ByVal _extent As TGIS_Extent,
  ByVal _type As TGIS_ShapeType,
  ByVal _dim As TGIS_DimensionType
)
// Oxygene
public
  procedure Build(
    _path : String;
    _extent : TGIS_Extent;
    _type : TGIS_ShapeType;
    _dim : TGIS_DimensionType
  ); virtual;

Parameters

Name Type Description
_path string
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

Remarks

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.

Example

Here is a simple procedure to add a new layer to the viewer.

References

2018/02/17 00:26