User Tools

Site Tools


Table of Contents

ITGIS_CSUnitsList.Prepare method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_CSUnitsList.Prepare | 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: Delphi | .NET | Java.


// C#
public ITGIS_CSUnits Prepare(
  int _epsg,
  WideString _wkt,
  WideString _symbol,
  TGIS_CSUnitsType _type,
  double _factor
' VisualBasic
Public Function Prepare(
  ByVal _epsg As Integer,
  ByVal _wkt As WideString,
  ByVal _symbol As WideString,
  ByVal _type As TGIS_CSUnitsType,
  ByVal _factor As Double
) As ITGIS_CSUnits
// Oxygene
  function Prepare(
    _epsg : Integer;
    _wkt : WideString;
    _symbol : WideString;
    _type : TGIS_CSUnitsType;
    _factor : Double
  ) : ITGIS_CSUnits;


Name Type Description
_epsg int
EPSG code for the unit; if 0 then EPSG will be assigned from user defined, temporary pool
_wkt WideString WKT name for the unit
_symbol WideString 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.


Type Description
ITGIS_CSUnits Newly created / Found object or nil.
2020/05/08 23:15

Page Tools