LuciadCPillar C# 2026.1.02
Loading...
Searching...
No Matches
Luciad.Geodesy.CoordinateReferenceProvider Class Reference

Factory to create coordinate references from EPSG, WKT and OGC identifiers, and to access the most commonly used references without error handling. More...

Static Public Member Functions

static Luciad.Geodesy.CoordinateReference Create (string identifier)
 Creates the coordinate reference from a given EPSG, WKT (version 1) or OGC identifier.

Properties

static Luciad.Geodesy.CoordinateReference Crs84 [get]
 The CRS84 geodetic coordinate reference (OGC:CRS84).
static Luciad.Geodesy.CoordinateReference EquidistantCylindrical [get]
 The World Equidistant Cylindrical coordinate reference (EPSG:4087), a WGS-84-based equidistant cylindrical projection.
static Luciad.Geodesy.CoordinateReference Geocentric [get]
 The WGS 84 geocentric coordinate reference (EPSG:4978), which expresses positions as (x, y, z) coordinates relative to the center of the ellipsoid.
static Luciad.Geodesy.CoordinateReference Mercator [get]
 The World Mercator coordinate reference (EPSG:3395), a WGS-84-based Mercator projection.
static Luciad.Geodesy.CoordinateReference PolarStereographicNorth [get]
 The Arctic Polar Stereographic coordinate reference (EPSG:3995), a WGS-84-based polar stereographic projection centered on the North Pole.
static Luciad.Geodesy.CoordinateReference PolarStereographicSouth [get]
 The Antarctic Polar Stereographic coordinate reference (EPSG:3031), a WGS-84-based polar stereographic projection centered on the South Pole.
static Luciad.Geodesy.CoordinateReference WebMercator [get]
 The Web Mercator coordinate reference (EPSG:3857), the projected reference used by common web mapping services and their tile sets.
static Luciad.Geodesy.CoordinateReference Wgs84 [get]
 The WGS 84 geodetic coordinate reference (EPSG:4326), which expresses positions as longitude, latitude and height.

Detailed Description

Factory to create coordinate references from EPSG, WKT and OGC identifiers, and to access the most commonly used references without error handling.

Well-known references

The accessors below return a commonly used reference directly. Use them when the reference is known in advance, so that no failure has to be handled at the call site, unlike create() which returns a value that must be checked.

CoordinateReference wgs84 = CoordinateReferenceProvider.Wgs84;
CoordinateReference crs84 = CoordinateReferenceProvider.Crs84;
CoordinateReference geocentric = CoordinateReferenceProvider.Geocentric;
CoordinateReference webMercator = CoordinateReferenceProvider.WebMercator;

Member Function Documentation

◆ Create()

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.Create ( string identifier)
inlinestatic

Creates the coordinate reference from a given EPSG, WKT (version 1) or OGC identifier.

Supported EPSG codes

A list of supported EPSG references can be found here. A list of unsupported EPSG references can be found here.

Supported WKT strings

This method supports decoding of WKT version 1 strings.

Within this version of the standard, the following types of references are supported:

  • Geographic (aka geodetic) references: WKT strings that start with "GEOGCS"
  • Geocentric references: WKT strings that start with "GEOCCS"
  • Projected (aka grid) references: WKT strings that start with "PROJCS" or "FITTED_CS"
  • Topocentric references: WKT strings that start with ENGCRS and have a topocentric deriving conversion method with authority EPSG:9837.

References with a vertical datum (strings that start with "COMPD_CS") are not supported.

Example usage

Creation of the WGS-84 coordinate reference system with an EPSG identifier.

string identifier = "EPSG:4326";
var crs = CoordinateReferenceProvider.Create(identifier);

Creation of the WGS-84 coordinate reference system with a WKT identifier.

string identifier = "GEOGCS[\"WGS 84\",DATUM[\"World Geodetic System 1984\",SPHEROID[\"WGS 84\",6378137.0,298.257223563],TOWGS84[0.0,0.0,0.0]],PRIMEM[\"Greenwich\",0.0],UNIT[\"degree\",0.017453292519943295],AXIS[\"Geodetic latitude\",NORTH],AXIS[\"Geodetic longitude\",EAST],AUTHORITY[\"EPSG\",4326]]";
var crs = CoordinateReferenceProvider.Create(identifier);

Creation of a topocentric reference based on the WGS-84 datum with a WKT identifier.

string wkt = "ENGCRS[\"\",GEOGCS[\"WGS_1984\",DATUM[\"WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563],TOWGS84[0.0,0.0,0.0,0.0,0.0,0.0,0.0]]],DERIVINGCONVERSION[\"\",METHOD[\"Geographic/topocentric conversions\",AUTHORITY[\"EPSG\",9837]],PARAMETER[\"Latitude of topocentric origin\",50.7143019,UNIT[\"DEGREE\",0.017453292519943295]],PARAMETER[\"Longitude of topocentric origin\",21.310094,UNIT[\"DEGREE\",0.017453292519943295]],PARAMETER[\"Ellipsoidal height of topocentric origin\",275.0,UNIT[\"METER\",1.0]]],CS[Cartesian,3],AXIS[\"Topocentric East (E)\",EAST],AXIS[\"Topocentric North (N)\",NORTH],AXIS[\"Topocentric height (U)\",UP],UNIT[\"METER\",1.0]]";
var crs = CoordinateReferenceProvider.Create(wkt);

Creation of the Web Mercator coordinate reference system with an OGC identifier.

string identifier = "urn:ogc:def:crs:EPSG::3857";
var crs = CoordinateReferenceProvider.Create(identifier);
Parameters
identifieran EPSG, WKT (version 1) or OGC identifier, for example "EPSG:3857" or "urn:ogc:def:crs:EPSG::3857".
Returns
the coordinate reference.
Exceptions
System.FormatExceptionwhen the coordinate reference is not supported or cannot be parsed.

Property Documentation

◆ Crs84

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.Crs84
staticget

The CRS84 geodetic coordinate reference (OGC:CRS84).

[get]

Returns the CRS84 geodetic coordinate reference (OGC:CRS84). Like wgs84() it is based on the WGS 84 datum and expresses positions as longitude, latitude and height. It is the default reference of GeoJSON and OGC API data.

This is a convenience accessor for a standard reference that is always available.

Since
2026.1 [get]

◆ EquidistantCylindrical

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.EquidistantCylindrical
staticget

The World Equidistant Cylindrical coordinate reference (EPSG:4087), a WGS-84-based equidistant cylindrical projection.

[get]

Returns the World Equidistant Cylindrical coordinate reference (EPSG:4087), a WGS-84-based equidistant cylindrical projection. This is a convenience accessor for a standard reference that is always available.

Since
2026.1 [get]

◆ Geocentric

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.Geocentric
staticget

The WGS 84 geocentric coordinate reference (EPSG:4978), which expresses positions as (x, y, z) coordinates relative to the center of the ellipsoid.

[get]

Returns the WGS 84 geocentric coordinate reference (EPSG:4978), which expresses positions as (x, y, z) coordinates relative to the center of the ellipsoid. This is the reference typically used for a 3D globe.

This is a convenience accessor for a standard reference that is always available.

Since
2026.1 [get]

◆ Mercator

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.Mercator
staticget

The World Mercator coordinate reference (EPSG:3395), a WGS-84-based Mercator projection.

[get]

Returns the World Mercator coordinate reference (EPSG:3395), a WGS-84-based Mercator projection. This is a convenience accessor for a standard reference that is always available.

Since
2026.1 [get]

◆ PolarStereographicNorth

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.PolarStereographicNorth
staticget

The Arctic Polar Stereographic coordinate reference (EPSG:3995), a WGS-84-based polar stereographic projection centered on the North Pole.

[get]

Returns the Arctic Polar Stereographic coordinate reference (EPSG:3995), a WGS-84-based polar stereographic projection centered on the North Pole. This is a convenience accessor for a standard reference that is always available.

Since
2026.1 [get]

◆ PolarStereographicSouth

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.PolarStereographicSouth
staticget

The Antarctic Polar Stereographic coordinate reference (EPSG:3031), a WGS-84-based polar stereographic projection centered on the South Pole.

[get]

Returns the Antarctic Polar Stereographic coordinate reference (EPSG:3031), a WGS-84-based polar stereographic projection centered on the South Pole. This is a convenience accessor for a standard reference that is always available.

Since
2026.1 [get]

◆ WebMercator

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.WebMercator
staticget

The Web Mercator coordinate reference (EPSG:3857), the projected reference used by common web mapping services and their tile sets.

[get]

Returns the Web Mercator coordinate reference (EPSG:3857), the projected reference used by common web mapping services and their tile sets. This is a convenience accessor for a standard reference that is always available.

Since
2026.1 [get]

◆ Wgs84

Luciad.Geodesy.CoordinateReference Luciad.Geodesy.CoordinateReferenceProvider.Wgs84
staticget

The WGS 84 geodetic coordinate reference (EPSG:4326), which expresses positions as longitude, latitude and height.

[get]

Returns the WGS 84 geodetic coordinate reference (EPSG:4326), which expresses positions as longitude, latitude and height. This is a convenience accessor for a standard reference that is always available.

Since
2026.1 [get]