3liz / QuickOSM

QGIS plugin to fetch OSM data with the Overpass API
GNU General Public License v2.0
180 stars 54 forks source link

error whit query overpass #420

Closed robibrazze closed 1 year ago

robibrazze commented 1 year ago

I noticed that the query below , which uses "[out:xml]" and "out centre meta;",using overpass turbo works while with the quickosm plugin it does not, it does not return the node geometry of those ways.

I would like to get this query working with the plugin for a project idea of using qgis as a quality check on openstreetmap data

Thank you very much

[out:xml][timeout:25][bbox:44.1437,7.5220,44.2262,7.6171];
// gather results
(
  // query part for: "shop=*"
  node["tourism"="hotel"];
  way["tourism"="hotel"];

);
// print results
out centre meta;
>;
//out skel qt;
Gustry commented 1 year ago

You made a typo in your request :

centre -> center

And about the support of center, it won't be supported. It's a duplicate of https://github.com/3liz/QuickOSM/issues/33 and in GDAL/OGR : https://trac.osgeo.org/gdal/ticket/5523

You need to use Processing algorithm to merge the point and the polygon layer, until #365