Skip to main content

CRS and EPSG correspondences

Project description

crsEpsg

This is a simple python package that contains two dictionaries - i.e., crs2epsg and epsg2crs- with the correspondences between the CRS names and EPSG codes. For instance,

crs2epsg = {
"Anguilla 1957 / British West Indies Grid":"2000",
"Antigua 1943 / British West Indies Grid":"2001",
"Dominica 1945 / British West Indies Grid":"2002",
...
}

epsg2crs = {
"2000":"Anguilla 1957 / British West Indies Grid",
"2001":"Antigua 1943 / British West Indies Grid",
"2002":"Dominica 1945 / British West Indies Grid",
"2003":"Grenada 1953 / British West Indies Grid",
...
}

I created this package to use it with las/LIDAR files, so, I included the function getEPSG(filename, default) that return the EPSG code from a las/LIDAR file. Some files contains larger CRS name (e.g., "ETRS89 / UTM zone 30N + Geoid" when the documented name is only "ETRS89 / UTM zone 30N"), so, this function will be cutting the last word until achieve the good portion of the CRS name.

from crsEpsg import getEPSG
print("EPSG:", getEPSG("data/209341.las","32718"))

Requirements

pip3 install liblas
pip3 install crsepsg

With this you should be ready to use this module. However, you have the alternative,

sudo apt-get install python-liblas

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crsEpsg-0.0.3.tar.gz (118.3 kB view hashes)

Uploaded Source

Built Distribution

crsEpsg-0.0.3-py2.py3-none-any.whl (119.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page