Stefan,
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.
http://overpass.osm.ch/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A99%5D%3B%28node%5B%22shop%22%7E%22dairy%22%5D%3Bnode%5B%22name%22%7E%22%5BKk%5D%C3%A4serei%7C%5BCc%5Dh%C3%A4si%7C%5BFf%5Dromagerie%7C%5BCc%5Daseificio%7C%5BCc%5Dhascharia%22%5D%3Bnode%5B%22produce%22%7E%22cheese%22%5D%3Bnode%5B%22craft%22%7E%22cheese%5Fmaking%22%5D%3B%29%3Bout%20meta%3B%28way%5B%22shop%22%7E%22dairy%22%5D%3Bway%5B%22name%22%7E%22%5BKk%5D%C3%A4serei%7C%5BCc%5Dh%C3%A4si%7C%5BFf%5Dromagerie%7C%5BCc%5Daseificio%7C%5BCc%5Dhascharia%22%5D%3Bway%5B%22produce%22%7E%22cheese%22%5D%3Bway%5B%22craft%22%7E%22cheese%5Fmaking%22%5D%3B%29%3Bout%20meta%20qt%3B%28%2E%5F%3B%3E%3B%29%3Bout%20meta%20qt%3B%0A
Pierre
________________________________
De : Stefan Keller <[email protected]>
À : mmd <[email protected]>
Cc : Talk Openstreetmap <[email protected]>
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
displayed.
It seems again that there is a problem with the ways/areas:
http://umap.osm.ch/de/map/kasereien_18
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:
http://umap.osm.ch/de/map/kasereien_6
--Stefan
[out:xml]
[timeout:25]
;
(
node["shop"~"dairy"];
node
["name"~"[Kk]äserei|[Cc]häsi|[Ff]romagerie|[Cc]aseificio|[Cc]hascharia"];
node["produce"~"cheese"];
node["craft"~"cheese_making"];
);
out meta;
(
way["shop"~"dairy"];
way
["name"~"[Kk]äserei|[Cc]häsi|[Ff]romagerie|[Cc]aseificio|[Cc]hascharia"];
way["produce"~"cheese"];
way["craft"~"cheese_making"];
);
out meta center qt;
(
._;
>;
);
out meta qt;
2014-07-24 19:58 GMT+02:00 mmd <[email protected]>:
> 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
> [email protected]
> https://lists.openstreetmap.org/listinfo/talk
_______________________________________________
talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/talk
_______________________________________________
talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/talk