[OSM-talk] Overpass API / Overpass QL: center (and centroid) function?

Stefan Keller sfkeller at gmail.com
Thu Jul 24 12:19:12 UTC 2014


I'm trying to get a list of point features only (as GeoJSON or XML).
This could serve as input e.g. to uMap. The problem is that the query
returns points but also areas. This is actually correct - but I want
these areas converted to point geometries too (centered, like

I then found the modifcator/keyword "center" in the Overpass QL [1].
But I still get polygons. See the query [2] below.

Any ideas?


[1] http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL

[2] http://overpass-turbo.osm.ch/ oder http://overpass-turbo.eu/

*** Dairy (Käserei) Query ways/areas only... ***

out meta center qt;
out meta center qt;

More information about the talk mailing list