• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

docs/H26-Nov-2018-600328

pyepsg.egg-info/H03-May-2022-4838

COPYINGH A D07-Jun-201734.3 KiB675553

COPYING.LESSERH A D07-Jun-20177.5 KiB166128

MANIFEST.inH A D07-Jun-2017124 43

PKG-INFOH A D26-Nov-20181.8 KiB4838

README.rstH A D07-Jun-2017964 3122

pyepsg.pyH A D26-Nov-20188.9 KiB308216

setup.cfgH A D26-Nov-201838 53

setup.pyH A D26-Nov-20181.5 KiB3920

README.rst

1pyepsg
2======
3
4|build_status|
5
6
7A simple interface to http://epsg.io/
8
9For example, we can request the details for the projected coordinate system
10identified by EPSG code 21781, aka. "Swiss CH1903 / LV03"::
11
12    >>> projection = pyepsg.get(21781)
13    >>> projection
14    <ProjectedCRS: 21781, CH1903 / LV03>
15    >>> projection.domain_of_validity()
16    [5.97, 10.49, 45.83, 47.81]
17    >>> projection.cartesian_cs.axes
18    [<Axis: east / metre>, <Axis: north / metre>]
19
20Projected and geodetic coordinate systems can also be converted to various
21other forms::
22
23    >>> print(projection.as_proj4()[:70] + '...')
24    +proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 ...
25    >>> print(projection.as_wkt()[:70] + '...')
26    PROJCS["CH1903 / LV03",GEOGCS["CH1903",DATUM["CH1903",SPHEROID["Bessel...
27
28.. |build_status| image:: https://secure.travis-ci.org/rhattersley/pyepsg.png
29   :alt: Build Status
30   :target: http://travis-ci.org/rhattersley/pyepsg
31