User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_classificationpixel

ITGIS_ClassificationPixel interface

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_ClassificationPixel | Interfaces | Methods | Properties

Class that enables performing advanced pixel data classification in the process of creating choropleth (thematic) maps.

Available also on: Delphi | .NET | Java | ActiveX.

Syntax

// C#
public interface ITGIS_ClassificationPixel: ITGIS_ClassificationAbstract
{
}
' VisualBasic
Public Interface ITGIS_ClassificationPixel
  Implements ITGIS_ClassificationAbstract
End Class
// Oxygene
type
  ITGIS_ClassificationPixel = public interface( ITGIS_ClassificationAbstract )
  end;

Implements

Methods

Inherited Overrides Protected
Name Visibility Description
AttachDelphiObj public Only for internal use of TatukGIS.
(Inherited from ITBaseObject)
Classify public Performs the classification.
(Inherited from ITGIS_ClassificationAbstract)
Classify_2 public Performs the classification and applies to defined ParamsList.
(Inherited from ITGIS_ClassificationAbstract)
Create_ public Creates an object.
DelphiObj public Only for internal use of TatukGIS.
(Inherited from ITBaseObject)
EstimateNumClasses public Performs the pre-classification and sets NumClasses property.
(Inherited from ITGIS_ClassificationAbstract)
MustCalculateStatistics public If True, statistics from layer assigned to classification need to be calculated.
(Inherited from ITGIS_ClassificationAbstract)

Properties

Inherited Protected
Name Visibility Description
Band public Band from which values are used in classification.
ClassBreaks public Computed class breaks.
(Inherited from ITGIS_ClassificationAbstract)
ColorRamp public The color ramp used to generate colors for class breaks.
(Inherited from ITGIS_ClassificationAbstract)
EndColor public Ending color used to generate ramp for class breaks.
(Inherited from ITGIS_ClassificationAbstract)
Interval public Class interval size; default is 1.
(Inherited from ITGIS_ClassificationAbstract)
Layer public Layer assigned to object.
(Inherited from ITGIS_ClassificationAbstract)
Method public Classification method; NaturalBreaks by default.
(Inherited from ITGIS_ClassificationAbstract)
NumClasses public Number of classes; default is 5, max is 30.
(Inherited from ITGIS_ClassificationAbstract)
ShowLegend public If True, features will be shown in legend panel.
(Inherited from ITGIS_ClassificationAbstract)
StartColor public Starting color used to generate ramp for class breaks.
(Inherited from ITGIS_ClassificationAbstract)
Target public Indicates the data to be used for classification.
(Inherited from ITGIS_ClassificationAbstract)

Remarks

Example

Pseudocode:

// while 'lyr' is opened raster layer
classifier = new TGIS_Classification( lyr );

// select one of available classification methods
classifier.Method = TGIS_ClassificationMethod.EqualInterval;

// specify number of classes
classifier.NumClasses = 5;

// specify attribute field with numerical values
classifier.Band = '1';

// check if layer's statistics require recalculation
if classifier.MustCalculateStatistics then
  lyr.Statistics.Calculate ;

// run classification process, visual properties will be applied automatically
classifier.Classify ;

// check generated class breaks values
// class breaks count equals NumClasses + 1
for i from 0 to classifier.NumClasses
  value = classifier.ClassBreaks[i];

2021/01/14 01:03

Page Tools