OpenStreetMap import: Difference between revisions

Jump to navigation Jump to search
(useful tools : overpass turbo, osmconvert)
Line 177: Line 177:
The overpass turbo webservice is a quick & easy way to download objects from OSM which match the desired criteria (e.g. all terminal buildings in europe)
The overpass turbo webservice is a quick & easy way to download objects from OSM which match the desired criteria (e.g. all terminal buildings in europe)
http://overpass-turbo.eu/
http://overpass-turbo.eu/
here is an example to get the lon/lat center of each building -  no need to run osmconvert anymore!
<pre>
[out:xml][timeout:25];
// gather results
(
  // query part for: “amenity=place_of_worship”
  node["amenity"="place_of_worship"]({{bbox}});
  way["amenity"="place_of_worship"]({{bbox}});
  relation["amenity"="place_of_worship"]({{bbox}});
);
// print results
out center;
>;
out skel qt;
</pre>


== osmconvert ==
== osmconvert ==
476

edits

Navigation menu