3liz / QuickOSM

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

critical pyton error #468

Open robibrazze opened 1 year ago

robibrazze commented 1 year ago

Hi, below report error in panel log of qgis whent i tried to convert osm data to geopackage whit the plugin. I'm using

all help is welcome

2023-04-26T15:46:30     INFO    The OSM file is: C:\Users\geomb\Documents\UFFICIO\COMMESSE MAPPE\LIMONTE P.TE\qgis-cartina\osm_24-04-23.osm
2023-04-26T15:46:43     CRITICAL    Si è verificato un errore critico, questo è il traceback:
2023-04-26T15:46:43     CRITICAL    
2023-04-26T15:46:43     CRITICAL    base_processing_panel.py
2023-04-26T15:46:43     CRITICAL    Impossibile creare il layer ogr:dbname='C:\Users\geomb\Documents\UFFICIO\COMMESSE MAPPE\LIMONTE P.TE\qgis-cartina\test\osm_render.gpkg' table="osm_render_points" (geom): Errore nel caricamento del layer
2023-04-26T15:46:43     CRITICAL     File "C:\Users/geomb/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\base_processing_panel.py", line 47, in run
              self._run()

              File "C:\Users/geomb/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\osm_file_panel.py", line 223, in _run
              open_file(

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

              File "C:\Users/geomb/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/QGIS32~1.4/apps/qgis-ltr/./python/plugins\processing\tools\general.py", line 108, in run
              return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)

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

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

ogr:dbname='C:\Users\geomb\Documents\UFFICIO\COMMESSE MAPPE\LIMONTE P.TE\qgis-cartina\test\osm_render.gpkg' table="osm_render_points" (geom): Errore nel caricamento del layer

Does the file exist ? C:\Users\geomb\Documents\UFFICIO\COMMESSE MAPPE\LIMONTE P.TE\qgis-cartina\test\osm_render.gpkg Can you open all layers in this file ?

Can you open your OSM file C:\Users\geomb\Documents\UFFICIO\COMMESSE MAPPE\LIMONTE P.TE\qgis-cartina\osm_24-04-23.osm ? with all layers included in this OSM file (points, lines, etc)

robibrazze commented 1 year ago

The file osm_render-gpkg exist and i would like rewrite it (i tried to convert osm to gpkg in a new empty folder but the errore is the same) I can open all layer whit out geom point

I can open the file osm_24-04-23.osm and all layer are included.