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

Pierre Béland pierzenh at yahoo.fr
Thu Jul 24 19:31:40 UTC 2014


Browsing through you uMap, each location is listed twice. To reset, you probably have to erase the content of your data layer and provide again the url link to Overpass.

To verify what exactly is returned from Overpass, you can copy the Overpass instructions from uMap and see  directly in a browser. This will let you validate what result Overpass is returning as a json file.



 De : Stefan Keller <sfkeller at gmail.com>
À : mmd <mmd.osm at gmail.com> 
Cc : Talk Openstreetmap <talk at openstreetmap.org> 
Envoyé le : Jeudi 24 juillet 2014 14h49
Objet : Re: [OSM-talk] Overpass API / Overpass QL: center (and centroid)	function?

Dear all

Thanks for the help - especially from the french colleagues.
I'm still struggling even with the XML output.
My actual goal is to display the result set of the "Dairy/Cheese
Makers" query in uMap.
When I apply the query below to http://overpass-turbo.osm.ch/ the result is OK
(displayed POIs: 386, Lines: 300, Polygons: 138).

But when I add this URL as remote data to uMap, there are less markers
It seems again that there is a problem with the ways/areas:

You can easily see the difference when comparing to Simon's solution:
Simon actually gave up using overpass within uMap and preprocessed the
data locally:


out meta;
out meta center qt;
out meta qt;

2014-07-24 19:58 GMT+02:00 mmd <mmd.osm at gmail.com>:
> Pieren wrote
>> On Thu, Jul 24, 2014 at 5:33 PM, Christian Quest
>>> In my last overpass test with the new "out center" feature, it looked
>>> like
>>> it was working only with XML output, not with the JSON (not GeoJSON) one.
>> It's already reported:
>> https://github.com/drolbr/Overpass-API/issues/93
>> Pieren
> Right, some of the missing bits for JSON support are already implemented in
> the "out_geom_json" branch. However, Roland hasn't merged this branch into
> the master branch yet.
> https://github.com/drolbr/Overpass-API/tree/out_geom_json
> Best
> mmd
> --
> View this message in context: http://gis.19327.n5.nabble.com/Overpass-API-Overpass-QL-center-and-centroid-function-tp5812491p5812549.html
> Sent from the General Discussion mailing list archive at Nabble.com.
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk

talk mailing list
talk at openstreetmap.org
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20140724/5bb45fdc/attachment-0001.html>

More information about the talk mailing list