User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_csunits.autoselect_boolean_double

Table of Contents

TGIS_CSUnits.AutoSelect method

DK11 for Java | tatukgis.jdk.TGIS_CSUnits.AutoSelect | Constructors | Methods | Properties

Returned the most appropriate sub unit for selected value.

Available also on: Delphi | .NET | ActiveX.

Syntax

// Java
public TGIS_CSUnits AutoSelect(
  bool _areal,
  /* ref */ @ValueTypeParameter VarParameter<double> _value
);
// Oxygene
public
  function AutoSelect(
    _areal : Boolean;
    var _value : Double
  ) : TGIS_CSUnits;

Parameters

Name Type Description
_areal bool
Boolean
if true select areal units, if false select linear.
_value double
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.

2020/05/07 01:12

Page Tools