DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.Build_2 | Methods | Properties
Builds s new layer - prepare storage.
// C# public void Build_2( WideString _path, ITGIS_Extent _extent, TGIS_ShapeType _type, TGIS_DimensionType _dim );
' VisualBasic Public Sub Build_2( ByVal _path As WideString, ByVal _extent As ITGIS_Extent, ByVal _type As TGIS_ShapeType, ByVal _dim As TGIS_DimensionType )
// Oxygene public procedure Build_2( _path : WideString; _extent : ITGIS_Extent; _type : TGIS_ShapeType; _dim : TGIS_DimensionType );
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 |
_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.
Here is a simple procedure to add a new layer to the viewer.