User Tools

Site Tools


samples:samples:fields

Table of Contents

Fields sample

Documentation | Samples | Fields

Summary

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

Description

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.

Code

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

2020/02/12 01:17