User Tools

Site Tools


Table of Contents

Fields sample

Documentation | Samples | Fields


How to access fields (properties) of a layer, and how to use field values in map rendering.


This sample illustrates use of:

Name Description
TGIS_LayerVector.CreateShapeCreates a new shape and makes it editable.
TGIS_LayerVector.ParamsReturns parameters (colors, fills, etc.) object.
TGIS_LayerVector.AddFieldAdds a new field.
TGIS_Shape.AddPartAdd next part to the shape.
TGIS_Shape.AddPointAdd a point to the last part of the shape.
TGIS_Shape.SetFieldSet a new value for a field.
TGIS_DataSet.OpenOpen the database which meets extent and query.


This sample is available on following platforms (click to see source code):

2022/11/25 14:51

Page Tools