User Tools

Site Tools


api:dk11:delphi:giscsbase.tgis_csunitslist.prepare_integer_string_string_tgis_csunitstype_double

Table of Contents

TGIS_CSUnitsList.Prepare method

DK11 for Delphi | GisCsBase.TGIS_CSUnitsList.Prepare | Constructors | Methods | Properties

Prepare a TGIS_CSUnits object. If the matching object does not exists then will be added to the list and returned. If the object can be found then it will be returned form the list.

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

Syntax

// Delphi
public
  function Prepare(
    const _epsg : Integer;
    const _wkt : String;
    const _symbol : String;
    const _type : TGIS_CSUnitsType;
    const _factor : Double
  ) : TGIS_CSUnits; reintroduce; virtual;
// C++ Builder
public:
  virtual TGIS_CSUnits* Prepare(
    const int _epsg,
    const UnicodeString _wkt,
    const UnicodeString _symbol,
    TGIS_CSUnitsType* const _type,
    const double _factor
  );

Parameters

Name Type Description
_epsg Integer EPSG code for the unit; if 0 then EPSG will be assigned from user defined, temporary pool
_wkt String WKT name for the unit
_symbol String units symbol like 'km', 'm'
_type TGIS_CSUnitsType angular, linear or areal units
_factor Double factor between unit and basic unit (meter or radians); for example factor for kilometer is 1000.

Result

Type Description
TGIS_CSUnits Newly created / Found object or nil.
2022/11/16 01:15

Page Tools