I'm trying to export an osm file for a region larger than that supported by the web interface hence the following command fails: http://api.openstreetmap.org/api/0.6/map?bbox=27.9314,-26.1841,28.1538,-26.0028 I turned to the XAPI which supports larger regions as follows: overpass.osm.rambler.ru/cgi/xapi_meta?*[bbox=27.9314,-26.1841,28.1538,-26.0028] However, the downloaded file is missing some of the xml elements/fields which are present in the map.osm file. For example there is no bounds field. Where can I download a larger map with all the relevant field (bounds, node, way, relation, Attributes)? asked 19 Feb '16, 13:39 confused1 aseerel4c26 ♦ |
The relevant fields are answered 19 Feb '16, 14:18 Frederik Ramm ♦ |
I believe, the original question hasn't really been answered yet, which was, why there's no After all, the XAPI call to the following URL will be translated into something Overpass API can make some sense out of, notably an Overpass XML request. So, if you query for something like overpass.osm.rambler.ru/cgi/xapi_meta?*[bbox=27.9314,-26.1841,28.1538,-26.0028] this will in fact be translated into the following Overpass XML query under the hood:
BTW: You can get to this translated query on your own, if you're following the XAPI Compatibility Layer to Overpass XML / QL migration procedure, as outlined in the wiki. That's already a good starting point to feed into overpass turbo: http://overpass-turbo.eu/s/eAf Now, how do we get the You need to know that this requires something called global bounding box, which can be added by providing an <osm-script> element along with a bbox attribute. Your resulting query looks like this: it's basically the same overpass turbo query as before, but this time also returning a http://overpass-turbo.eu/s/eAh You can get the query results from overpass turbo via Export -> get raw data directly from Overpass API, you'll end up with a file called interpreter and the following line in the resulting file:
Mission accomplished! answered 23 Feb '16, 17:45 mmd |
What sources in detail have you already tried from http://wiki.openstreetmap.org/wiki/Planet.osm ?
And if you found one source fitting to your aims, why did that not work? Or succes?
i was using the osm extended api. i just added the bounds field myself which is not there by default.