NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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.

asked 14 Aug '18, 15:13

ppKrauss's gravatar image

ppKrauss
95192225
accept rate: 0%

edited 14 Aug '18, 15:19

(14 Aug '18, 15:34) kocio

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 PostGIS ST_Centroid() or the ST_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.

(14 Aug '18, 15:46) ppKrauss

Hi @kocio, I checked before about center, there are nothing. Only say that center is not the solution (and is not a centroid, is only a BBOX center). All links seems to say nothing about "center alternative".

(14 Aug '18, 16:04) ppKrauss
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483

question asked: 14 Aug '18, 15:13

question was seen: 619 times

last updated: 14 Aug '18, 16:05

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum