Helper functions for identifying and manipulating Coordinate Reference Systems.
Helper functions for identifying and manipulating Coordinate Reference Systems.
(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.
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.
(epsg-str->srid epsg)
Converts EPSG string to SRID, if possible.
Converts EPSG string to SRID, if possible.
(get-name c)
Get the name of a coordinate reference system.
Get the name of a coordinate reference system.
(get-source-crs t)
Get the source coordinate reference system of a transform.
Get the source coordinate reference system of a transform.
(get-target-crs t)
Get the source coordinate reference system of a transform.
Get the source coordinate reference system of a transform.
(proj4-str? crs-str)
Check if input appears to be a proj4 string
Check if input appears to be a proj4 string
Convert an SRID integer to EPSG string.
Convert an SRID integer to EPSG string.
(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.
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 this)
Attempt to get the SRID for a CRS identifier. If unable, return 0.
Attempt to get the SRID for a CRS identifier. If unable, return 0.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close