User Tools

Site Tools


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

TGIS_CSUnits.AsAreal method

DK for Java | tatukgis.jdk.TGIS_CSUnits.AsAreal | Constructors | Methods | Properties

Convert an areal value to a string representation with the appropriate unit symbol.

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

Syntax

// Java
public java.lang.String AsAreal(
  double _value,
  bool _prec,
  java.lang.String _format
);
// Oxygene
public
  function AsAreal(
    _value : Double;
    _prec : Boolean;
    _format : String
  ) : String;

Parameters

Name Type Description
_value double
Double
Value in base areal units.
_prec bool
Boolean
If True, fixed decimal digits are used; if False, only significant digits are shown without trailing zeros.
_format java.lang.String
String
Formatting pattern for areal symbols, for example 'sq. %s' to produce values such as '1 sq. km'.

Result

Type Description
java.lang.String
String
Formatted value with unit symbol.

Remarks

Linear units are automatically converted to areal form.
If the unit type is TGIS_CSUnitsType.Auto, the returned string uses an automatically selected areal subunit.

References

2026/07/11 01:24

Page Tools