Re: [OSM-talk] How to query Overpass to display polygons as point markers in umap?

2016-04-18 Thread mmd
Am 18.04.2016 um 01:42 schrieb Stefan Keller:
>   out body;
>   >;
>   out skel qt;
> 
> I know that the last line can be replaced by
>   out center meta;

In fact, you should replace the whole block

   out body;
   >;
   out skel qt;

by

   out center meta;

not only the last line.

Otherwise, you would first output all building-ways, resolve them to
their respective node and then output the center points of those
nodes(!), rather than returning the center point of the ways.








___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] How to query Overpass to display polygons as point markers in umap?

2016-04-17 Thread Stefan Keller
Hi,

This is a question related to Overpass and perhaps also to umap.

I'd like to get a list of all restaurants as POI and got this map:
http://umap.osm.ch/de/map/restaurants-in-und-um-rapperswil-jona_402#14/47.2266/8.8605

The poblem is, that I'd like to display *all* restaurants as point
features - including those which are tagged (and currently displayed)
as polygons.

I used this query:

  [out:json][timeout:25];
  (
node["amenity"="restaurant"]({{bbox}});
way["amenity"="restaurant"]({{bbox}});
relation["amenity"="restaurant"]({{bbox}});
  );
  out body;
  >;
  out skel qt;

I know that the last line can be replaced by
  out center meta;

But it seems, that this does not work together with umap: All polygons
(restaurants) from OSM are still displayed as polygons and not as
point features.

Any suggestions?

:Stefan

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk