User Tools

Site Tools


api:dk11:delphi:giscsprojections.tgis_csprojcassini.create_integer_string

Table of Contents



TGIS_CSProjCassini.Create constructor

DK for Delphi | GisCsProjections.TGIS_CSProjCassini.Create | Constructors | Fields | Methods | Properties

Creates an instance of the projection object with WGS84 datum and initializes projection parameters from EPSG code or WKT string.

Available also on: .NET | Java | Python.

Overrides TGIS_CSProjAbstract.Create.

Syntax

// Delphi
public
  constructor Create(
    const _epsg : Integer;
    const _wkt : String
  ); override;
// C++ Builder
Create (
  const int _epsg,
  const UnicodeString _wkt
);

Parameters

Name Type Description
_epsg Integer EPSG code identifying the projection (e.g., 32633 for UTM Zone 33N). If non-zero, WKT parameter is ignored.
_wkt String WKT (Well-Known Text) string defining the projection. Used only if EPSG code is zero or lookup fails.

Remarks

PURPOSE: Initialize projection instance with standard datum (WGS84) and coordinate system definition from EPSG or WKT sources.

BEHAVIOR: Sets Datum=WGS84 by default. If _epsg is provided, loads projection parameters from EPSG database. Otherwise parses WKT string to extract projection type and parameters. Validation errors stored in Error property.

USAGE: Direct instantiation is via subclasses. Framework typically creates instances via factory: TGIS_CSFactory.Create(epsg) returns correctly typed projection.

CONSTRAINTS: WGS84 is hardcoded default; use Datum property to change. EPSG lookup requires loaded EPSG database. Invalid EPSG codes or WKT fail gracefully, setting Error property.

2026/07/03 01:29

Page Tools