Proj4js definition for WGS 84 decimal degrees, X/Y notation (longitude/laitude)
A bounding box in [minx, minY, maxX, maxY]
EPSG:25832 coordinates covering Denmark.
A bounding box in [minx, minY, maxX, maxY]
CRS:84 coordinates covering Denmark.
Proj4js definition for ETRS89 / UTM Zone 32
Proj4js definition for spherical pseudo-Mercator. The Google Maps-style "The Earth is a sphere; deal with it" which makes cartographers cry
Proj4js definition for DKTM 1 – Danish local Mercator
Proj4js definition for DKTM 2 – Danish local Mercator
Proj4js definition for DKTM 3 – Danish local Mercator
Proj4js definition for DKTM 4 – Danish local Mercator
Proj4js definition for WGS 84 decimal degrees, Y/X notation (latitude/longitude)
Legacy name for EPSG_3857
Two handfuls of relevant projections for Denmark: WGS:84 in X/Y and Y/X notation, UTM Zone 32 and 33, the four DKTM zones, and Spherical Pseudo-Mercator in Google and EPSG notation
All EPSG codes.
Be aware that while you can easily do something like epsg.forEach(def => proj4.defs(def.srid, def.defs));
to register every one for internal math use in Proj4js,
registering the resulting bundle in OpenLayers with [ol/proj/proj4]register(proj4)
is a surprisingly heavy operation.
So only define the ones you actually need for the map before calling register(proj4)
.
Examines the given coordinates to determine which coordinate reference system it is, given that the coordinates are somewhere in Denmark.
It recognizes Google Maps-style spherical pseudo-Mercator (EPSG:3857), the Danish DKTM zones (EPSG:4093, EPSG:4094, EPSG:4095 and EPSG:4096), WGS84 x/y notation (CRS:84) and WGS84 lat/lon (y/x) notation (EPSG:4326). It also recognizes the ETRS89 UTM projection, but it cannot differentiate between zone 32 and zone 33, so all coordinates in that range will be reported as EPSG:25832, which conventionally is used for all of Denmark.
(Bornholm expressed in Zone 33 has coordinates in the same range as South-Western Jutland expressed in Zone 32, so there is no way to differentiate between them without additional knowledge).
Attempts to find the projection code of an object, either carried in a srid
property (as the constants in this
module do), or by invoking getCode()
if the object is an OpenLayers {@link Projection}
The projection code carried in the object, or an empty string otherwise. (Notice that it does not return
undefined
).
Simple convenience for returning a description on the form "code – title", e.g. "EPSG:25832 – ETRS89 / UTM zone 32N", or an empty string if no projection is registered (per recognizedProjectionCode) or the projection does not have a title.
Finds a projection per projectionCode, and looks up the projection in the proj4 definitions, returning the associated title, if any.
As per projectionCode, but additionally checks whether the code is one recognized in the current
{@link proj4} instance. (Typically, previously registered with proj4.defs(...)
.)
Contains constants for Proj4js definitions of various coordinate reference systems, as well as some utilities for handling and formatting projections.
The epsg file contains literally thousands of Proj4js definitions for EPSG codes on the form
EPSG_...
, but only the most relevant for Danish use are listed below.