User Tools

Site Tools


api:dk11:delphi:giscsbase.tgis_csunits.autoselect_boolean_double

Table of Contents

TGIS_CSUnits.AutoSelect method

DK11 for Delphi | GisCsBase.TGIS_CSUnits.AutoSelect | Constructors | Methods | Properties

Returned the most appropriate sub unit for selected value.

Available also on: .NET | Java | ActiveX | Python.

Syntax

// Delphi
public
  function AutoSelect(
    const _areal : Boolean;
    var _value : Double
  ) : TGIS_CSUnits;
// C++ Builder
public:
  TGIS_CSUnits* AutoSelect(
    const bool _areal,
    double &_value
  );

Parameters

Name Type Description
_areal Boolean if true select areal units, if false select linear.
_value Double units in base metric

Result

Type Description
TGIS_CSUnits Units converted to string.

Remarks

if units type is other the TGIS_CSUnitsType.Auto then returned value is always converted based on object properties
Units will be autoselected to choose the most adequate is unit is a type of TGIS_CSUnitsType.Auto.

2022/11/16 01:15

Page Tools