3liz / QuickOSM

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

CRITICAL Error on the layer : lines/points/multilines... is not valid. #390

Open REIMSMetropole opened 2 years ago

REIMSMetropole commented 2 years ago

What is the bug?

Je tente de télécharger les données OSM à l'aid edu plugin. Que je choisisse le thème urbain, une requête avec un filtre type 'itinéraire cyclable', que je change la projection de mon projet ou non (2154, 3857,...), j'aboutis toujours au même message d'erreurs :

2022-03-24T11:14:47     CRITICAL    Error on the layer : lines is not valid.
2022-03-24T11:15:09     CRITICAL    Error on the layer : points is not valid.
2022-03-24T11:15:51     CRITICAL    Error on the layer : points is not valid.

Voici la requête générée

[out:xml] [timeout:25];
(
    node["type"="route"]( 48.58485,1.64429,48.71897,2.0284);
    node["route"="bicycle"]( 48.58485,1.64429,48.71897,2.0284);
    way["type"="route"]( 48.58485,1.64429,48.71897,2.0284);
    way["route"="bicycle"]( 48.58485,1.64429,48.71897,2.0284);
    relation["type"="route"]( 48.58485,1.64429,48.71897,2.0284);
    relation["route"="bicycle"]( 48.58485,1.64429,48.71897,2.0284);
);
(._;>;);
out body;

Environment

REIMSMetropole commented 2 years ago

Fonctionne sur un poste de collègue.

AlePio25 commented 2 years ago

I have the same problem from yesterday

JULIENBZH commented 1 year ago

Same problem on a fresh install on linux...Did any of you find a workaround ?

Gustry commented 1 year ago

To be able to find a workaround, please provide an OSM file which trigger this issue.

When you have the error, open your QGIS logs, (the comic strip bubble at the bottom right corner of QGIS), then open QuickOSM tab, you will find the the OSM local filepath which was used. Please share it here.

MikaYeghi commented 1 year ago

I'm getting the same problem My OS is Ubuntu 20.04, if it matters. Installed QGIS through Flatpak

Gustry commented 1 year ago

@MikaYeghi Please check my message just above yours.

nadnerb33 commented 1 year ago

I'm getting the same issue running QGIS 3.28.3 Flatpak on PopOS.

2023-04-17T20:43:31     INFO    All OSM objects with the key 'amenity'='bar' in the canvas or layer extent are going to be downloaded.
2023-04-17T20:43:31     INFO    Query: amenity_bar
2023-04-17T20:43:31     INFO    Encoded URL: https://overpass-api.de/api/interpreter?data=[out:xml] [timeout:25];%0A(%0A node[%22amenity%22%3D%22bar%22]( 51.37491,-2.38388,51.38747,-2.33957);%0A way[%22amenity%22%3D%22bar%22]( 51.37491,-2.38388,51.38747,-2.33957);%0A relation[%22amenity%22%3D%22bar%22]( 51.37491,-2.38388,51.38747,-2.33957);%0A);%0A(._;%3E;);%0Aout body;&info=QgisQuickOSMPlugin
2023-04-17T20:43:31     INFO    Request completed
2023-04-17T20:43:31     INFO    Checking OSM file content /tmp/request-fHTwQJ.osm
2023-04-17T20:43:31     INFO    The OSM file is: /tmp/request-fHTwQJ.osm

The URL seems to produce some results, but the osm file in the tmp directory is never created