User Tools

Site Tools


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

Table of Contents

TGIS_CSUnitsList.Fix method

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

Fix item by substituting exiting item based on EPSG code.

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

Syntax

# Python
def Fix(
  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 Fixed object.

Remarks

function will not check _epsg and _wkt for being unique

2023/08/09 01:53

Page Tools