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.
TGIS_ClassificationAbstract.NumClassesNumber of classes; default is 5, max is 30.
TGIS_ClassificationAbstract.StartColorStarting color used to generate ramp for class breaks.
TGIS_ClassificationAbstract.EndColorEnding color used to generate ramp for class breaks.
TGIS_ClassificationAbstract.ShowLegendIf True, features will be shown in legend panel.
TGIS_ClassificationAbstract.MethodClassification method; NaturalBreaks by default.
TGIS_ClassificationAbstract.IntervalClass interval size; default 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 is white.
TGIS_ClassificationVector.EndSizeEnding size or width for generating Params section; default is black.
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.

Code

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

2022/12/23 10:52

Page Tools