DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.Build | Overloads | Constructors | Fields | Methods | Properties | Events
Builds a new layer - prepares storage.
// C# public virtual void Build( string _path, TGIS_Extent _extent, TGIS_ShapeType _type );
' VisualBasic Public Overridable Sub Build( ByVal _path As String, ByVal _extent As TGIS_Extent, ByVal _type As TGIS_ShapeType )
// Oxygene public procedure Build( _path : String; _extent : TGIS_Extent; _type : TGIS_ShapeType ); virtual;
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 |
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.
Here is a simple procedure to add a new layer to the viewer.