Namespace: proj

ol. proj

Classes

CH
EPSG2056
EPSG3857
EPSG4326
EPSG21781
Projection

Members

experimental static,constantol.proj.METERS_PER_UNIT[undefined]Object.<ol.proj.Units, number>

Meters per unit lookup table.

Methods

experimental staticol.proj.addProjection(projection)

Name Type Description
projection ol.proj.Projection

Projection.

experimental staticol.proj.configureProj4jsProjection(options){ol.proj.Projection}

Name Type Description
options

Proj4js projection options.

Name Type Description
code string

The SRS identifier code, e.g. EPSG:31256.

extent ol.Extent | undefined

The validity extent for the SRS.

global boolean | undefined

Whether the projection is valid for the whole globe. Default is false.

Returns:
projection.

experimental staticol.proj.get(projectionLike){ol.proj.Projection}

Name Type Description
projectionLike ol.proj.ProjectionLike

Either a code string which is a combination of authority and identifier such as "EPSG:4326", or an existing projection object, or undefined.

experimental staticol.proj.getTransform(source, destination){ol.TransformFunction}

Given the projection-like objects this method searches for a transformation function to convert a coordinates array from the source projection to the destination projection.

Name Type Description
source ol.proj.ProjectionLike

Source.

destination ol.proj.ProjectionLike

Destination.

experimental staticol.proj.getTransformFromProjections(sourceProjection, destinationProjection){ol.TransformFunction}

Searches a function that can be used to convert coordinates from the source projection to the destination projection.

Name Type Description
sourceProjection ol.proj.Projection

Source projection.

destinationProjection ol.proj.Projection

Destination projection.

experimental staticol.proj.transform(point, source, destination){ol.Coordinate}

Name Type Description
point ol.Coordinate

Point.

source ol.proj.ProjectionLike

Source.

destination ol.proj.ProjectionLike

Destination.

experimental staticol.proj.transformWithProjections(point, sourceProjection, destinationProjection){ol.Coordinate}

Transforms the given point to the destination projection.

Name Type Description
point ol.Coordinate

Point.

sourceProjection ol.proj.Projection

Source projection.

destinationProjection ol.proj.Projection

Destination projection.

Type Definitions

experimental ol.proj.ProjectionLikeol.proj.Projection string undefined

A projection as ol.proj.Projection, SRS identifier string or undefined.

experimental ol.proj.Unitsstring

Projection units: 'degrees', 'ft', 'm' or 'pixels'.