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

2014-07-24 Thread Stefan Keller
Hi, I'm trying to get a list of point features only (as GeoJSON or XML). This could serve as input e.g. to uMap. The problem is that the query returns points but also areas. This is actually correct - but I want these areas converted to point geometries too (centered, like ST_Centroid). I then

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

2014-07-24 Thread Pierre Béland
roland.olbri...@gmx.de Envoyé le : Jeudi 24 juillet 2014 8h19 Objet : [OSM-talk] Overpass API / Overpass QL: center (and centroid) function? Hi, I'm trying to get a list of point features only (as GeoJSON or XML). This could serve as input e.g. to uMap. The problem is that the query returns points

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

2014-07-24 Thread Stefan Keller
] (45.70234306798271,5.8831787109375,47.864773955792245,10.59082031248); out meta center qt; Pierre De : Stefan Keller sfkel...@gmail.com À : Talk Openstreetmap talk@openstreetmap.org Cc : Roland Olbricht roland.olbri...@gmx.de Envoyé le : Jeudi 24 juillet 2014 8h19 Objet : [OSM-talk] Overpass API / Overpass QL: center

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

2014-07-24 Thread Pierre Béland
Béland pierz...@yahoo.fr Cc : Talk Openstreetmap talk@openstreetmap.org Envoyé le : Jeudi 24 juillet 2014 9h44 Objet : Re: [OSM-talk] Overpass API / Overpass QL: center (and centroid) function? Salut Pierre Thanks - But this doesn't parse (see below). I'm getting: Error: line 4: static error

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

2014-07-24 Thread Stefan Keller
talk@openstreetmap.org Envoyé le : Jeudi 24 juillet 2014 9h44 Objet : Re: [OSM-talk] Overpass API / Overpass QL: center (and centroid) function? Salut Pierre Thanks - But this doesn't parse (see below). I'm getting: Error: line 4: static error: Element print cannot be subelement of element

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

2014-07-24 Thread Christian Quest
9h44 Objet : Re: [OSM-talk] Overpass API / Overpass QL: center (and centroid) function? Salut Pierre Thanks - But this doesn't parse (see below). I'm getting: Error: line 4: static error: Element print cannot be subelement of element union. -- Stefan [out:json] [timeout:25

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

2014-07-24 Thread Pieren
On Thu, Jul 24, 2014 at 5:33 PM, Christian Quest cqu...@openstreetmap.fr wrote: 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:

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

2014-07-24 Thread Pierre Béland
Objet : Re: [OSM-talk] Overpass API / Overpass QL: center (and centroid) function? 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. 2014-07-24 16:30 GMT+02:00 Stefan Keller sfkel

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

2014-07-24 Thread mmd
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

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

2014-07-24 Thread Stefan Keller
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

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

2014-07-24 Thread mmd
Stefan Keller wrote 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

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

2014-07-24 Thread Christian Quest
2014-07-24 21:39 GMT+02:00 mmd mmd@gmail.om mmd@gmail.com: I created a new issue for umap now [1], as I believe the center tag is not yet handled during import. Please feel free to enhance the ticket as needed. I'm almost sure it is not handled... but will be very soon as this