geo.crs

Helper functions for identifying and manipulating Coordinate Reference Systems.

create-transform

(create-transform c1 c2)

crs-factory

crs-name?

(crs-name? crs-str)
Check if input is a valid CRS name accepted by proj4j.

Accepted CRS names are in the forms:
EPSG:xxxx, ESRI:xxxx, NAD83:xxxx, NAD27:xxx, or WORLD:xxxx.

ctf-factory

epsg-str->srid

(epsg-str->srid epsg)
Converts EPSG string to SRID, if possible.

epsg-str?

get-name

(get-name c)
Get the name of a coordinate reference system.

get-source-crs

(get-source-crs t)
Get the source coordinate reference system of a transform.

get-target-crs

(get-target-crs t)
Get the source coordinate reference system of a transform.

includes?

(includes? string substring)

proj4-str?

(proj4-str? crs-str)
Check if input appears to be a proj4 string

srid->epsg-str

Convert an SRID integer to EPSG string.

starts-with?

(starts-with? string prefix)

Transformable

protocol

members

create-crs

(create-crs this)
Create a CRS system. If given an integer or long, assume it is an EPSG code.
If given a valid CRS name or proj4 string, use that as the CRS identifier.
If given a proj4j CoordinateReferenceSystem, return that.

get-srid

(get-srid this)
Attempt to get the SRID for a CRS identifier. If unable, return 0.

valid-crs-prefixes