User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layervector.build_widestring_itgis_extent_tgis_shapetype

ITGIS_LayerVector.Build method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.Build | Methods | Properties

Builds a new layer - prepares storage.

Available also on: Delphi | .NET | Java.

Syntax

// C#
public void Build(
  WideString _path,
  ITGIS_Extent _extent,
  TGIS_ShapeType _type
);
' VisualBasic
Public Sub Build(
  ByVal _path As WideString,
  ByVal _extent As ITGIS_Extent,
  ByVal _type As TGIS_ShapeType
)
// Oxygene
public
  procedure Build(
    _path : WideString;
    _extent : ITGIS_Extent;
    _type : TGIS_ShapeType
  );

Parameters

Name Type Description
_path WideString full path of layer to be built; a connection string for SQL base shapes;
_extent ITGIS_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.

Example

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

References

2020/05/28 09:04