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 and compact encoded GML 3.3 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.0.1.tar.gz
(11.0 kB
view hashes)
Built Distribution
pygml-0.0.1-py2.py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for pygml-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 365adac431e0f73e976f860831da9bd388201fffb847e1c205727321ba39ac57 |
|
MD5 | fda8c3a7e5f6c2d3cf8e4beed9412df5 |
|
BLAKE2b-256 | e0702338ed409d10661e2e41554c12d7b110500319c912f9e6de0f793a69cce4 |