Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python __geo_interface__ support #11

Closed
MennoTammens opened this issue Mar 9, 2016 · 2 comments
Closed

Python __geo_interface__ support #11

MennoTammens opened this issue Mar 9, 2016 · 2 comments

Comments

@MennoTammens
Copy link
Contributor

geo_interface is a protocol for Python libraries to exchange geospatial data
(A Python Protocol for Geospatial Data).
The data is put in standard Python objects (dict,list,tuple,float) in a GeoJSON-like fashion.
It would be nice if pyosmium woud support this interface.

Geo Interface is already supported by a lot of other Python modules: Shapely, Fiona, ArcPy, descartes, geojson, PySAL, pyshp

Implementing this interface means adding a function geo_interface() to a number of classes in osmium.osm: Node, Way and Area, maybe also to Location, Box, NodeRef or NodeRefList.
Probabily something like GeoJSONFactory, but with boost::python::dict, boost::python::list, etc. instead of std::string

@joto
Copy link
Member

joto commented Jul 27, 2016

This sounds like a useful addition. Maybe somebody who needs this themselves wants to give it a try?

@lonvia
Copy link
Member

lonvia commented Sep 15, 2024

Implemented in #262.

@lonvia lonvia closed this as completed Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants