DK11 for ActiveX | TatukGIS_XDK11.ITGIS_StatisticsVector | Interfaces | Methods | Properties
Statistics class for vector layers.
// C# public interface ITGIS_StatisticsVector: ITGIS_StatisticsLayer { }
' VisualBasic Public Interface ITGIS_StatisticsVector Implements ITGIS_StatisticsLayer End Class
// Oxygene type ITGIS_StatisticsVector = public interface( ITGIS_StatisticsLayer ) 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) } | |
AddAllFields | public | Adds statistics result definitions for all non-virtual fields from vector layer. _{ } | |
AddAllFields_2 | public | Adds statistics result definitions for all non-virtual fields from vector 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) } | |
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) } | |
Calculate_3 | public | Calculate requested statistics from filtered elements of the layer. _{ } | |
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 vector layers, e.g.:
See:
Pseudocode:
// layer.Statistics is an instance of TGIS_StatisticsAbstract so casting is needed stats = TGIS_StatisticsVector(layer.Statistics); // add all fields from vector layer stats.AddAllFields(TGIS_StatisticalFunctions.BasicStatistics); stats.Calculate; // demand a result stats_result = stats.Get(<valid_name>);
Valid names are existing fields' names (listed in stats.AvailableResults
list).
Use later like in TGIS_Abstract example.