User Tools

Site Tools


api:dk11:delphi:giscsbase.tgis_csunitslist.addauto_integer_string_arrayinteger

Table of Contents

TGIS_CSUnitsList.AddAuto method

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

Add a new item into the list.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function AddAuto(
    const _epsg : Integer;
    const _wkt : String;
    const _subunits : array of array of Integer
  ) : TGIS_CSUnits; virtual;
// C++ Builder
public:
  virtual TGIS_CSUnits* AddAuto(
    const int _epsg,
    const UnicodeString _wkt,
    const DynamicArray<int> _subunits
  );

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
_subunits array of Integer list of units in a set ordered by factor; if contains areal units then order should be by squared factor of all units except areas

Result

Type Description
TGIS_CSUnits Newly created object.

Remarks

function will not check _epsg and _wkt for being unique

2020/05/07 01:06

Page Tools