tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
920 stars 130 forks source link

export : centroid option #655

Open JLZIMMERMANN opened 1 year ago

JLZIMMERMANN commented 1 year ago

Propose an option for generating a single centroid geometry in the case of a mixture of point and surface geographic objects.

mmd-osm commented 1 year ago

Which issue are you trying to solve here? Can you provide a concrete example, maybe?

JLZIMMERMANN commented 1 year ago

If I wish to create a map with OSM geometry like parking, schools or any that can be qualified as node or poligon, it's easier to get a same familiy of geometry for a web publishing in Umap, QGIS or Felt.

mmd-osm commented 1 year ago

I'm not sure if you've seenout center; already. It generates the center point of a way's bounding box (rather then a centroid). For nodes, it will be simply nodes.

Here's an example: https://overpass-turbo.eu/s/1zKG for nodes + ways with amenity=school.

JLZIMMERMANN commented 1 year ago

Thanks for the explaination : it's unfortunatly not so intuitive. A button for this export would be also welcome.