User Tools

Site Tools


samples:samples:layerstatistics

Table of Contents

LayerStatistics sample

Documentation | Samples | LayerStatistics

Summary

NEW! How to produce statistics on layer.

Description

This sample illustrates use of:

Name Description
TGIS_StatisticalFunctionsRecord with all statistical functions.
TGIS_StatisticsAbstract.AddAdd 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 TTKSTATS file and load all information into parent layer
TGIS_StatisticsAbstract.ResetReset 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):

2019/04/18 11:08