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.CreateShapeCreate a new shape and make it editable.
TGIS_LayerVector.ParamsReturns parameters (colors, fills, etc.) object.
TGIS_LayerVector.AddFieldAdd 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):

2017/12/05 09:21