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