Documentation | Samples | Classification
Classification sample — demonstrates thematic data classification of vector and raster (pixel) layers using the TatukGIS TGIS_ClassificationAbstract API.
What the sample shows:
This sample illustrates use of:
| Name | Description |
|---|---|
| TGIS_ClassificationAbstract.Target | Indicates the data used for classification; empty by default. |
| TGIS_ClassificationAbstract.NumClasses | Number of classes; default is 5, maximum is 30. |
| TGIS_ClassificationAbstract.StartColor | Starting color used to generate the color ramp for class breaks; White by default. |
| TGIS_ClassificationAbstract.EndColor | Ending color used to generate ramp for class breaks; Black by default. |
| TGIS_ClassificationAbstract.ShowLegend | If True, classes are shown in the legend panel; True by default. |
| TGIS_ClassificationAbstract.Method | Classification method; NaturalBreaks by default. |
| TGIS_ClassificationAbstract.Interval | Class interval size; default value is 1. |
| TGIS_ClassificationAbstract.Classify | Performs the classification. |
| TGIS_ClassificationAbstract.MustCalculateStatistics | Indicates whether statistics for the assigned layer must be calculated. |
| TGIS_ClassificationVector.StartSize | Starting size or width for generating Params section; default value is 1. |
| TGIS_ClassificationVector.EndSize | Ending size or width for generating Params section; default value is 480. |
| TGIS_ClassificationVector.ClassIdField | If not empty, the attribute field with the specified name is populated with class identifier values. |
| TGIS_ClassificationVector.RenderType | Visual property affected during classification; Color by default. |
This sample is available on the following platforms (click to view the source code on GitHub):