AbstractStaticCUSTOM_Holding all custom generated wkt
StaticCUSTOM_Incremental number when creating custom WKTs on the fly
StaticPROJECTION_Constant used for the available projection names
StaticPROJECTIONSList of supported projections and their OpenLayers projection
StaticaddFetches definitions for unsupported projections and adds them.
Object containing wkid and possibly latestWkid from service metadata
A promise that resolves when the projection is added
StaticaddFetches definitions for unsupported projections and adds them.
Projection code number
A promise that resolves when the projection is added
StaticaddChecks if a projection exists for GeoView and if not it adds it on-the-fly by fetching its definition from epsg.io.
Accepts:
TypeProjection object (with wkid / latestWkid / wkt)ProjectionLike string (e.g., "EPSG:4326", CRS URI/URN, or an OLProjection instance)4326)The projection identifier to check and register if missing
A promise that resolves with the OLProjection
StaticgetResolves an OGC CRS URI or standard code string to an OpenLayers projection.
Supports formats:
http://www.opengis.net/def/crs/EPSG/0/4326 → EPSG:4326http://www.opengis.net/def/crs/OGC/1.3/CRS84 → CRS:84urn:ogc:def:crs:EPSG::4326 → EPSG:4326EPSG:4326 (pass-through)The CRS string (URI, URN, or authority:code)
The resolved OpenLayers projection, or undefined if unrecognized
StaticgetWrapper around OpenLayers get function that fetches a Projection object for the code specified.
A projection object with properties such as latestWkid, wkid, or wkt
Projection object, or undefined if not in list
StaticgetResolves a projection from various input formats to an OpenLayers Projection object.
Supports:
"EPSG:4326", "CRS:84")4326, 3857)"4326", "3857")"http://www.opengis.net/def/crs/EPSG/0/4326")"urn:ogc:def:crs:EPSG::4326")A projection identifier (string, number, or OLProjection)
The resolved OpenLayers Projection object
StaticgetWrapper around OpenLayers get function that fetches a Projection object for the code specified.
A code string which is a combination of authority and identifier such as "EPSG:4326"
Projection object, or undefined if not in list
StaticgetGets the projection representing a LonLat projection.
Projection object representing LonLat
StaticgetGet map point resolution.
The projection code
Map center
The point resolution for map center
StaticreadReads the numeric EPSG code from a projection identifier.
Supports:
4326) — returned immediately"EPSG:4326", "epsg:3857", "EpSg: 1234" stringsgetCode())The function trims whitespace and validates that the string matches a proper
EPSG:<number> pattern. Returns undefined if the format is invalid or the
numeric part is not a valid number.
The projection identifier containing the EPSG code (string, number, or OLProjection)
The extracted EPSG numeric code, or undefined if invalid
StaticreadReads an extent and verifies if it might be reversed (ymin,xmin,ymax,ymin) and when so puts it back in order (xmin,ymin,xmax,ymax).
The projection the extent is in
The extent to check
The extent in order (xmin,ymin,xmax,ymax)
StaticreadExtracts the projection name from a WKT string.
Parses the first quoted string after the opening keyword (e.g., PROJCS["NAD83 / BC Albers", ...]
returns "NAD83 / BC Albers").
The WKT projection definition string
The extracted projection name, or undefined if not found
StatictransformWrapper around OpenLayers function to transforms a coordinate from one projection to another.
Longitude/latitude coordinate
Actual projection of the coordinate
Desired projection of the coordinate
Coordinate as projected
StatictransformTransforms an extent from source projection to destination projection.
This returns a new extent (and does not modify the original).
The extent to transform
Source projection-like
Destination projection-like
Optional number of stops per side used for the transform. The default value is 25
The densified extent transformed in the destination projection
StatictransformTransform coordinates between two projections.
The coordinates to transform
The current projection of the coordinates. Note: the value should include 'EPSG:' then the projection number.
The transformed projection of the coordinates. Note: the value should include 'EPSG:' then the projection number.
The transformed coordinates
StatictransformTransforms an extent from source projection to destination projection.
This returns a new extent (and does not modify the original).
The extent to transform
An object containing a wkid or wkt property
Destination projection-like
Optionalstops: number
Optional number of stops per side used for the transform. By default only the corners are used
The new extent transformed in the destination projection
StatictransformTransforms an extent from source projection to destination projection.
This returns a new extent (and does not modify the original).
The extent to transform
Source projection-like
Destination projection-like
Optionalstops: number
Optional number of stops per side used for the transform. By default only the corners are used
The new extent transformed in the destination projection
StatictransformTransforms an extent from source projection to destination projection.
This returns a new extent (and does not modify the original).
The extent to transform
An EPSG id number
Destination projection-like
Optionalstops: number
Optional number of stops per side used for the transform. By default only the corners are used
The new extent transformed in the destination projection
StatictransformTransforms an extent from source projection to destination projection.
This returns a new extent (and does not modify the original).
The extent to transform
A custom WKT projection
Destination projection-like
Optionalstops: number
Optional number of stops per side used for the transform. By default only the corners are used
The new extent transformed in the destination projection
StatictransformWrapper around OpenLayers function to transforms a coordinate from longitude/latitude.
Longitude/latitude coordinate
Projection to project the coordinate
Coordinate as projected
StatictransformConverts points from one projection to another using proj4.
Array of passed in points to convert
Projection to be converted from
Projection to be converted to
The converted points array
StatictransformWrapper around OpenLayers function to transforms a coordinate to longitude/latitude.
Projected coordinate
Projection of the coordinate
Coordinate as longitude and latitude, i.e. an array with longitude as 1st and latitude as 2nd element
StatictransformFunction for converting a coordinate to a UTM Northing / Easting.
The coordinate to be converted
The utm zone the return coordinates will be in
The returned coordinates in UTM Northing / Easting
Class used to handle functions for transforming projections.