Home

Awesome

EPSG.io

This service allows you to discover and transform coordinate systems from all over the world. Created and maintained by the MapTiler team.

Installation

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Copy the content of "index" directory from the .zip from the latest project release.

Start the server with:

$ export FLASK_APP=app.py
$ export FLASK_ENV=development
$ flask run

or use the gunicorn startup scripts (./epsgio start)

Create your own index from EPSG export

Note: This is not required, as you can easily download the ready-to-use index from releases.

  1. Download the newest EPSG database from [http://epsg-registry.org]
    • a. After login it will able to export registry as Export GML 3.2.1 with EPSG metadata
  2. Make sure that these files(folder) are in one folder
    • a. folder extra_codes_proj4_4.8.0.2
    • b. file CRS_exceptions.csv
    • c. file CRS_exceptions.py
    • d. file gml_parser.py
    • e. file GmlDictionary.xml (downloaded EPSG database from http://epsg-registry.org)
  3. Start indexing via python gml_parser.py
  4. Move created gml.sqlite into gml folder

Types of URLs:

CRS and Transformations are just codes (5514, 1623, 4326, 27700) Other are codes with suffix like:

API for results

For result page exist a export in JSON and JSONP for example

[http://epsg.io/?q=czech&format=json&trans=1&callback=jsonpFunction]

where:

API for /trans

For one point

[http://epsg.io/trans?x=50&y=17&z=0&s_srs=4326&t_srs=5514&callback=jsonpFunction]

where everything is optional:

e.g. [http://epsg.io/trans] will transform point on coordinates 0,0,0 from EPSG:4326 to EPSG:4326

For many points

[http://epsg.io/trans?data=17,50;17,50,300;17.132,50.456&s_srs=4326&&t_srs=5514]

Where

Types of queries

valuemeaningvaluemeaning
CRS(default)All coordinate reference systemsELLIPSOIDEllipsoid
PROJCRSProjected coordinate systemsPRIMEMPrime meridian
GEOGCRSGeodetic coordinate systemsMETHODMethod
GEOG3DCRSGeodetic 3D coordinate systemsCSCoordinate systems
GCENCRSGeocentric coordinate systemsVERTCSVertical coordinate system
VERTCRSVertical coordinate systemsSPHERCSSpherical coordinate system
ENGCRSEngineering coordinate systemsCARTESCSCartesian coordinate system
COMPOUNDCRSCompound coordinate systemsELLIPCSEllipsoidal coordinate system
COORDOPAll operationsAXISAxis
COPTRANSTransformationsAREAArea
COPCONOPCompound operationsUNITUnit
COPCONConversionsANGUNITAngle unit
DATUMAll datumsSCALEUNITScale unit
VERTDATVertical datumsLENUNITLength unit
ENGDATEngineering datumsTIMEUNITTime unit
GEODDATGeodetic datums

combinations: 8901 kind:PRIMEM, 1623 kind:COORDOP, code:1625 kind:COORDOP deprecated:1,...