LuciadCPillar C# 2024.0
Luciad.Geodesy.CoordinateReferenceProvider Class Reference

Factory to create coordinate references from EPSG and OGC identifiers. 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. More...
 

Detailed Description

Factory to create coordinate references from EPSG and OGC identifiers.

Member Function Documentation

◆ Create()

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

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

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

Example usage:

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

string identifier = "EPSG:4326";
var crs = CoordinateReferenceProvider.Create(identifier);
Factory to create coordinate references from EPSG and OGC identifiers.
Definition: CoordinateReferenceProvider.cs:14
static Luciad.Geodesy.CoordinateReference Create(string identifier)
Creates the coordinate reference from a given EPSG, WKT (version 1) or OGC identifier.
Definition: CoordinateReferenceProvider.cs:43

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 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.