[OSM-dev] Reading data with GDAL from XAPI and Overpass API
Jukka Rahkonen
jukka.rahkonen at latuviitta.fi
Sun Sep 9 21:39:06 BST 2012
Hi,
This may interest those who are buildings bridges between OSM and GIS.
I realised only tomorrow that GDAL/OGR OSM driver [1] can read OSM data
also directly from API through the GDAL vsi mechanism.
It means that ogrinfo and ogr2ogr can fetch data from XAPI:
ogrinfo -ro -al
/vsicurl_streaming/"http://open.mapquestapi.com/xapi/api/0.6/node[amenity=pub][bbox=-77.041579,38.885851,-77.007247,38.900881]"
or from Overpass API:
ogrinfo -ro -al
/vsicurl_streaming/"http://overpass.osm.rambler.ru/cgi/interpreter?data=%28node%2850%2E746%2C7%2E154%2C50%2E748%2C7%2E157%29%3B%3C%3B%29%3Bout%20meta%3B%0A"
[1] http://gdal.org/ogr/drv_osm.html
-Jukka Rahkonen-
More information about the dev
mailing list