User Tools

Site Tools


samples:samples:layerstatistics

Table of Contents

LayerStatistics sample

Documentation | Samples | LayerStatistics

Summary

How to produce statistics on layer.

Description

This sample illustrates use of:

Name Description
TGIS_StatisticalFunctionsRecord with all statistical functions.
TGIS_StatisticsAbstract.AddAdds statistics result definition.
TGIS_StatisticsAbstract.CalculateCalculate requested statistics from the entire layer.
TGIS_StatisticsAbstract.DefinedResultsList of already defined results names; read-only.
TGIS_StatisticsAbstract.GetGet statistics result by name.
TGIS_StatisticsAbstract.LoadFromFileParse statistics file and load all information into parent layer.
TGIS_StatisticsAbstract.ResetResets statistics object to initial state.
TGIS_StatisticsAbstract.UseBesselCorrectionIf True, statistics class will use Bessel's correction.
TGIS_StatisticsItem.NameName of statistical value stored in item.
TGIS_StatisticsItem.ToStringPrepare string representation of statistical value.
TGIS_StatisticsResult.AvailableStatisticsList of calculated statistics (only requested).

Code

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

2022/10/28 15:05

Page Tools