DK11 for ActiveX | TatukGIS_XDK11.TGIS_StatisticsPixel | Classes | Methods | Properties
Statistics class for raster layers.
// C# public class TGIS_StatisticsPixel : ITGIS_StatisticsPixel, ITGIS_StatisticsLayerEvents { }
' VisualBasic Public Class TGIS_StatisticsPixel Implements ITGIS_StatisticsPixel Implements ITGIS_StatisticsLayerEvents End Class
// Oxygene type TGIS_StatisticsPixel = public class end;
Name | Visibility | Description | |
---|---|---|---|
Add | public | Adds statistics result definition. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
AddAll | public | Adds statistics result definitions for all available datasets. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
AddAllBands | public | Adds statistics result definitions for all bands from pixel layer; _{ } | |
AddAllBands_2 | public | Adds statistics result definitions for all bands from pixel layer; _{ } | |
AddAll_2 | public | Adds statistics result definitions for all available datasets. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
Add_2 | public | Adds statistics result definition. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
Add_3 | public | Adds statistics result definition. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
Add_4 | public | Adds statistics result definition. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
AttachDelphiObj | public | Only for internal use of TatukGIS. _{ (Inherited from ITBaseObject) } | |
BusyEvent | public | _{ (Inherited from ITGIS_StatisticsLayerEvents) } | |
Calculate | public | Calculate requested statistics from the entire layer. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
Calculate_2 | public | Calculate requested statistics from filtered elements of the layer. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
Create_ | public | Create an object. _{ (Inherited from ITGIS_StatisticsLayer) } | |
DelphiObj | public | Only for internal use of TatukGIS. _{ (Inherited from ITBaseObject) } | |
Get | public | Get statistics result by name. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
LoadFromFile | public | Parse statistics file and load all information into parent layer. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
LoadFromFile_2 | public | Parse statistics file and load all information into parent layer. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
Reset | public | Resets statistics object to initial state. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
ResetModified | public | Undo changes in requested statistics definitions. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
SaveToFile | public | Save layer statistics into auxiliary file. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
SaveToFile_2 | public | Save layer statistics into auxiliary file. _{ (Inherited from ITGIS_StatisticsAbstract) } | |
Name | Visibility | Description | |
---|---|---|---|
Age | public | Age of the statistics. _{ (Inherited from ITGIS_StatisticsAbstract)} | |
AvailableResults | public | List of available results names; read-only. _{ (Inherited from ITGIS_StatisticsAbstract)} | |
DefinedResults | public | List of already defined results names; read-only. _{ (Inherited from ITGIS_StatisticsAbstract)} | |
FastStatistics | public | Determines the state if 'Fast Statistics' was computed; read-only. _{ (Inherited from ITGIS_StatisticsAbstract)} | |
Layer | public | Layer assigned to statistics; read-only. _{ (Inherited from ITGIS_StatisticsLayer)} | |
Modified | public | True if requested statistics have changed. _{ (Inherited from ITGIS_StatisticsAbstract)} | |
Obsolete | public | Check validity of statistics. _{ (Inherited from ITGIS_StatisticsAbstract)} | |
UseBesselCorrection | public | If True, statistics class will use Bessel's correction. _{ (Inherited from ITGIS_StatisticsAbstract)} | |
This class inherits from TGIS_StatisticsAbstract
and is specialised for pixel layers, e.g.:
AddAllBands
method,FastStatistics
property is set to True
by default. It means that the statistics engine uses resampling for pixel layers greater than 2048 x 2048 cells. In this case, results are approximate with high accuracy. Set False
to compute fully accurate statistics.See:
Pseudocode:
// layer.Statistics is an instance of TGIS_StatisticsAbstract so casting is needed stats = TGIS_StatisticsPixel(layer.Statistics); // add all bands from pixel layer stats.AddAllBands(TGIS_StatisticalFunctions.BasicStatistics); stats.Calculate; // demand a result stats_result = stats.Get(<valid_name>);
Valid names are 'A', 'R', 'G', 'B', 'H', 'S', 'L
' for images and 'Value
' for grid (listed in stats.AvailableResults
list).
Use later like in TGIS_Abstract example.