The culmination of 13 long and arduous weeks as part of Google Summer of Code 2012 has produced a new prototype feature within Web Processing Service: the ability to take OpenStreetMap data and transform it on the fly into other GIS formats.
What does this mean?
We can now directly interface with OpenStreetMap servers (Overpass API) such that we can send custom queries for map data retrieval, and have it returned not as OSM XML files, but rather any GIS format that is supported by WPS. This is demonstrable through the WPS test client on the demo server. Here is a breakdown of the features implemented:
- Standard conversion of existing OSM XML files into other GIS formats (basic GML, KML, and Shapefiles)
- On-the-fly conversion of Overpass API output into other GIS formats
- Option for OSM passthrough
- Option for any of the GIS formats supported by WPS as output
- Option to show original Overpass query
Currently there are two sample algorithms that are bundled in this project:
- A sample implementation of a Bounding Box algorithm for retrieving specific areas of the OpenStreetMap planet.osm
- A generic implementation that takes any string query and sends it to the Overpass server, and retrieves the result for processing
This allows for adventurous developers to go in and create their own custom algorithms for WPS that interface directly with OpenStreetMap.
Some videos of this in action are available here:
- Demonstration of on-the-fly conversion of existing OSM data (both inline OSM text and externally referenced OSM files) into a variety of formats
- Demonstration of custom Overpass query conversion into KML
More details on installation, configuration, and development can be found on the wiki page for this project.
Comments and Future work
Of course, this is probably not the end. There exist many avenues of future work, some of which I have thought of during the process of development, and some which have been suggested to me. A short list of what would be useful next steps:more >