User Tools

Site Tools


Table of Contents

TGIS_StatisticsAbstract.Calculate(TGIS_Extent; TGIS_ShapeAbstract; String; Boolean) method

DK11 for Delphi | GisStatistics.TGIS_StatisticsAbstract.Calculate | Overloads | Methods | Properties

Calculate requested statistics from filtered elements of the layer.

Available also on: .NET | Java | ActiveX.


// Delphi
  procedure Calculate(
    const _extent : TGIS_Extent;
    const _shape : TGIS_ShapeAbstract;
    const _de9im : String;
    const _fast_statistics : Boolean
  ); overload; virtual;
// C++ Builder
  virtual void Calculate(
    TGIS_Extent* const _extent,
    TGIS_ShapeAbstract* const _shape,
    const UnicodeString _de9im,
    const bool _fast_statistics
  ) /* overload */;


Name Type Description
_extent TGIS_Extent extent on which statistics will be calculated
_shape TGIS_ShapeAbstract if not nil, statistics will be calculated on area which matches _de9im matrix with _shape
_de9im String DE-9IM matrix of comparison
_fast_statistics Boolean if True, 'Fast Statistics' will be computed


'Fast Statistics' means that statistics class 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. 'Fast Statistics' has no effects for vector layers.


2019/09/26 01:11