Skip to main content

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

Metadata

Release files for crsEpsg 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crsEpsg 0.0.3
File Size Uploaded
crsEpsg-0.0.3.tar.gz 118.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crsEpsg 0.0.3
File Interpreter ABI Platform
crsEpsg-0.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 237.4 kB

Release files / crsEpsg-0.0.3.tar.gz

Download URL crsEpsg-0.0.3.tar.gz
Size 118.3 kB
Tags Source
SHA-256 checksum
How to use checksums
22abfd0bfce4f60f52b05469e5c7b5db4c8692aaba4f65ca1b5b4f07068e99cc
BLAKE2b-256 checksum
How to use checksums
294c76d081292bf1bc3ca9195f443a9e4e3ffdd43010d1ddad402f43f658cdb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release files / crsEpsg-0.0.3-py2.py3-none-any.whl

Download URL crsEpsg-0.0.3-py2.py3-none-any.whl
Size 119.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
881042df560b5dce4d2684e4ba250bc8892699eb50a60d66fc77826cab87f8ad
BLAKE2b-256 checksum
How to use checksums
ca68f575f9ba802d1781e952dfba6b490f8a003278965921904e1355315b272d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page