There are an Overpass option or workaround to obtain ST_PointOnSurface()-equivalent instead the usual centroid? It is important to "area relations" (and welcome similar behaviour with ways). It returns the centroid or, when is not inside the surface, returns a point (a projection from centroid) that is guaranteed to lie on the surface. |
I'm not sure, but maybe here is something that you could use:
http://gis.19327.n8.nabble.com/Overpass-API-Overpass-QL-center-and-centroid-function-td5812491.html
Thanks @kocio. As we see in the discussion ,there are a lack of formal specification... Perhaps I need only to check what the Overpass command
center
is doing: is the PostGISST_Centroid()
or theST_PointOnSurface()
? ... When I check wiki/Overpass_API/Overpass_QL it says "center: ... The center point is not guaranteed to lie inside the polygon". If the Wiki is correct, my question ("there are a workaround?") make sense.I hope one of these can help you:
https://wiki.openstreetmap.org/wiki/Overpass_API https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL
Hi @kocio, I checked before about
center
, there are nothing. Only say thatcenter
is not the solution (and is not a centroid, is only a BBOX center). All links seems to say nothing about "center
alternative".