User Tools

Site Tools


samples:samples:classification

Table of Contents

Classification sample

Documentation | Samples | Classification

Summary

How to provide classification feature.

Description

This sample illustrates use of:

Name Description
TGIS_ClassificationAbstract.TargetIndicates the data to be used for classification; empty by default.
TGIS_ClassificationAbstract.NumClassesNumber of classes; default is 5, max is 30.
TGIS_ClassificationAbstract.StartColorStarting color used to generate ramp for class breaks; White by default.
TGIS_ClassificationAbstract.EndColorEnding color used to generate ramp for class breaks; Black by default.
TGIS_ClassificationAbstract.ShowLegendIf True, features will be shown in legend panel; True by default.
TGIS_ClassificationAbstract.MethodClassification method; NaturalBreaks by default.
TGIS_ClassificationAbstract.IntervalClass interval size; default value is 1.
TGIS_ClassificationAbstract.ClassifyPerforms the classification.
TGIS_ClassificationAbstract.MustCalculateStatisticsIf True, statistics from layer assigned to classification need to be calculated.
TGIS_ClassificationVector.StartSizeStarting size or width for generating Params section; default value is 1.
TGIS_ClassificationVector.EndSizeEnding size or width for generating Params section; default value is 480.
TGIS_ClassificationVector.ClassIdFieldIf not empty, the attribute field of the specified name will be populated with the class id values.
TGIS_ClassificationVector.RenderTypeVisual property which will be affected during classification; Color by default.

Code

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

2024/10/03 01:21

Page Tools