Skip to main content

Easy access to the EPSG database via

Project description

Build Status

A simple interface to

For example, we can request the details for the projected coordinate system identified by EPSG code 21781, aka. “Swiss CH1903 / LV03”:

>>> projection = pyepsg.get(21781)
>>> projection
<ProjectedCRS: 21781, CH1903 / LV03>
>>> projection.domain_of_validity()
[5.97, 10.49, 45.83, 47.81]
>>> projection.cartesian_cs.axes
[<Axis: east / metre>, <Axis: north / metre>]

Projected and geodetic coordinate systems can also be converted to various other forms:

>>> print(projection.as_proj4()[:70] + '...')
+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 ...
>>> print(projection.as_wkt()[:70] + '...')
PROJCS["CH1903 / LV03",GEOGCS["CH1903",DATUM["CH1903",SPHEROID["Bessel...

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyepsg-0.4.0-py3-none-any.whl (6.0 kB) Copy SHA256 hash SHA256 Wheel py3
pyepsg-0.4.0.tar.gz (24.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page