User Tools

Site Tools


api:dk11:delphi:gisstatistics.tgis_statisticsabstract.calculate_tgis_extent_tgis_shapeabstract_string_boolean

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.

Syntax

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

Parameters

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

Remarks

'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.

References

2019/09/26 01:11