User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_csunitslist.add_integer_string_string_tgis_csunitstype_double

Table of Contents

TGIS_CSUnitsList.Add method

DK11 for Python | tatukgis.pdk.TGIS_CSUnitsList.Add | Constructors | Methods | Properties

Add a new item into the list.

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

Syntax

# Python
def Add(
  self,
  _epsg: int,
  _wkt: str,
  _symbol: str,
  _type: TGIS_CSUnitsType,
  _factor: float
) -> TGIS_CSUnits: 

Parameters

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

Result

Type Description
TGIS_CSUnits Newly created object.

Remarks

function will not check _epsg and _wkt for being unique

2023/08/09 01:53

Page Tools