User Tools

Site Tools


api:dk11:delphi:giscsprojections.tgis_csprojabstract.createcopy_void

Table of Contents



TGIS_CSProjAbstract.CreateCopy method

DK for Delphi | GisCsProjections.TGIS_CSProjAbstract.CreateCopy | Constructors | Fields | Methods | Properties

Creates a deep copy of this projection instance with all parameters and settings duplicated.

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

Syntax

// Delphi
public
  function CreateCopy : TGIS_CSProjAbstract; virtual; abstract;
// C++ Builder
public:
  virtual TGIS_CSProjAbstract* CreateCopy(void) = 0;

Result

Type Description
TGIS_CSProjAbstract A new TGIS_CSProjAbstract instance with identical parameters, datum, ellipsoid, and validity constraints.

Remarks

PURPOSE: Duplicate the projection for independent use, for example in parallel processing or when preserving the original settings while modifying a copy.

BEHAVIOR: Creates a new object of the same class and copies all projection parameters, datum reference, ellipsoid, and validity extent settings. Internal cached values are reinitialized in the copy.

USAGE: Use when a separate projection instance with the same configuration is required.

proj2 = proj1.CreateCopy()
proj2.CentralMeridian = newValue

CONSTRAINTS: The caller owns the returned instance. Datum and ellipsoid references are copied, not cloned.

2026/07/11 00:22

Page Tools