153
edits
(→get OSM data: fix download URL) |
|||
Line 186: | Line 186: | ||
* create a project directory. We will use LOWI/ in this example. | * create a project directory. We will use LOWI/ in this example. | ||
* get corresponding OSM data in its native .xml format. | * get corresponding OSM data in its native .xml format. | ||
There are several options to get OSM data. You may find the [http://harrywood.co.uk/maps/uixapi/xapi.html XAPI Query Builder] helpful, it will generate a download URL that you can fetch with wget: | There are several options to get OSM data. You may find the [http://harrywood.co.uk/maps/uixapi/xapi.html XAPI Query Builder] helpful, it will generate a template download URL that you can fetch with wget: | ||
wget -O buildings.osm http://www.overpass-api.de/api/xapi?*[key=value][bbox=11.16898,47.20837,11.79108,47.38161] | |||
Note that you either need to give a valid ''key=value pair'', or remove ''[key=value]'' altogether. The alternative | |||
wget -O buildings.osm http://www.overpass-api.de/api/xapi?map?bbox=11.16898,47.20837,11.79108,47.38161 | wget -O buildings.osm http://www.overpass-api.de/api/xapi?map?bbox=11.16898,47.20837,11.79108,47.38161 | ||
will result in a file compatible with JOSM, at the cost of a larger download. If unsure, use the first option. | |||
If you use [http://wiki.openstreetmap.org/wiki/Osmosis Osmosis] and cut the area with ''--bounding-box'' then you need to use ''completeWays=yes''. | If you use [http://wiki.openstreetmap.org/wiki/Osmosis Osmosis] and cut the area with ''--bounding-box'' then you need to use ''completeWays=yes''. |
edits