Parsing GML geometries
Project description
pygml
A pure python parser for OGC GML Geometries.
Installation
$ pip install pygml
Features
Parse GML 3.1, 3.2, compact encoded GML 3.3 and GeoRSS geometries to a __geo_interface__
compliant class.
>>> import pygml
>>> geom = pygml.parse("""
... <gml:Point gml:id="ID" xmlns:gml="http://www.opengis.net/gml/3.2">
... <gml:pos>1.0 1.0</gml:pos>
... </gml:Point>
... """)
>>> print(geom)
Geometry(geometry={'type': 'Point', 'coordinates': (1.0, 1.0)})
>>> print(geom.__geo_interface__)
{'type': 'Point', 'coordinates': (1.0, 1.0)}
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
pygml-0.1.0.tar.gz
(13.4 kB
view hashes)
Built Distribution
pygml-0.1.0-py2.py3-none-any.whl
(19.2 kB
view hashes)
Close
Hashes for pygml-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e0fa046b70b16aaccb531cde5cd92f1a5d1454b27f4b598b855b7719258fb9a |
|
MD5 | 20706572ce879b072f622b5e8ddcb73b |
|
BLAKE2b-256 | 6171f153eb0cabfe2fe9038e71dceff2c78091c8500ac0c7b047bedb52c1c1d1 |