Documentation | Samples | Fields
Fields Sample - Demonstrates how to use field (attribute) properties of a layer.
What the sample shows:
This sample illustrates use of:
| Name | Description |
|---|---|
| TGIS_LayerVector.CreateShape | Creates a new editable shape instance from the specified TGIS_Shape descendant class. |
| TGIS_LayerVector.Params | Returns the vector rendering parameters object for the layer. |
| TGIS_LayerVector.AddField | Adds a new attribute field definition to the layer schema. |
| TGIS_Shape.AddPart | Starts a new part in the shape geometry. |
| TGIS_Shape.AddPoint | Adds a 2D vertex to the current part of the shape. |
| TGIS_Shape.SetField | Sets the value of a field for this shape. |
| TGIS_DataSet.Open | Open the dataset for shapes from a vector layer filtered by extent, using an RTree when available. |
This sample is available on the following platforms (click to view the source code on GitHub):