3liz / QuickOSM

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

[QuickOSM][QGIS] CRITICAL Error in the logs, in the QuickOSM panel #460

Closed kelvesvinicius closed 1 year ago

kelvesvinicius commented 1 year ago

What is the bug?

I tried query "highway" as a key in a shape of the state of Santa Catarina, Brazil and I recived the message "Error in the logs, in the QuickOSM panel". When I tried it to just a few cities of the same state it worked, but with just a limited results.

2023-03-28T16:30:43 INFO All OSM objects with the key 'highway' in a tela ou extensão da camada are going to be downloaded. 2023-03-28T16:30:43 INFO Query: highway 2023-03-28T16:30:43 INFO Encoded URL: https://z.overpass-api.de/api/interpreter?data=[out:xml] [timeout:900];%0A(%0A node%22highway%22;%0A way%22highway%22;%0A relation%22highway%22;%0A);%0A(._;%3E;);%0Aout body;&info=QgisQuickOSMPlugin 2023-03-28T16:31:39 INFO Request completed 2023-03-28T16:31:39 INFO Checking OSM file content D:/Data/k.souza/AppData/Local/Temp/request-MriYjt.osm 2023-03-28T16:31:49 INFO The OSM file is: D:/Data/k.souza/AppData/Local/Temp/request-MriYjt.osm 2023-03-28T16:40:02 CRITICAL Um erro crítico ocorreu, este é o traceback: 2023-03-28T16:40:03 CRITICAL
2023-03-28T16:40:03 CRITICAL base_processing_panel.py 2023-03-28T16:40:03 CRITICAL Não foi possível criar a camada ogr:dbname='D:\DATA\k.souza\OneDrive - EGIS Group\Área de Trabalho\sc_rodovias.gpkg' table="sc_rodovias_lines" (geom): Falha ao carregar da camada 2023-03-28T16:40:03 CRITICAL File "D:\DATA/k.souza/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\base_processing_panel.py", line 47, in run self._run()

          File "D:\DATA/k.souza/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\quick_query_panel.py", line 421, in _run
          num_layers = process_quick_query(

          File "D:\DATA/k.souza/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\process.py", line 318, in process_quick_query
          return process_query(

          File "D:\DATA/k.souza/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\process.py", line 257, in process_query
          return open_file(

          File "D:\DATA/k.souza/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\process.py", line 106, in open_file
          layers = osm_parser.processing_parse()

          File "D:\DATA/k.souza/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\parser\osm_parser.py", line 332, in processing_parse
          layers[layer]['vector_layer'] = processing.run("native:refactorfields", {

          File "C:\PROGRA~1/QGIS33~1.0/apps/qgis/./python/plugins\processing\tools\general.py", line 108, in run
          return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)

          File "C:\PROGRA~1/QGIS33~1.0/apps/qgis/./python/plugins\processing\core\Processing.py", line 179, in runAlgorithm
          ret, results = execute(alg, parameters, context, feedback, catch_exceptions=False)

          File "C:\PROGRA~1/QGIS33~1.0/apps/qgis/./python/plugins\processing\gui\AlgorithmExecutor.py", line 72, in execute
          results, ok = alg.run(parameters, context, feedback, {}, False)
Gustry commented 1 year ago

Duplicate of #422 pinned issue. You can fix it yourself by following instructions.