User Tools

Site Tools


api:dk11:python:tatukgis_pdk.tgis_csabstract.assign_tobject

Table of Contents

TGIS_CSAbstract.Assign method

Copy all fields (EPSG, WKT, deprecation, description) from source object to this object. Source must be compatible type.

Syntax

# Python
def Assign(
  self,
  _source: TObject
) -> None: 

Parameters

Name Type Description
_source TObject Source coordinate system definition object (typically same class or ancestor). Must not be nil. Incompatible types raise error.

Remarks

PURPOSE: Clone or transfer coordinate system element definitions between objects. Essential for copy-on-write semantics and object duplication.

BEHAVIOR: Virtual method; subclasses override to copy additional fields. Copies EPSG, WKT, FDescriptionEx, Deprecated flag. If _source incompatible type, raises exception. Does not copy object identity, only data.

USAGE: target.Assign(source); Copy WGS84 definition from registry into local variable.

CONSTRAINTS: Source type must be assignable (same class or ancestor). Raises exception on type mismatch. Does not preserve object identity (GUID, creation time, etc. if tracked separately).

2026/07/03 01:03

Page Tools