Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMPORTING LAND COVER RASTER #780

Open
sabepaco opened this issue May 20, 2023 · 1 comment
Open

IMPORTING LAND COVER RASTER #780

sabepaco opened this issue May 20, 2023 · 1 comment

Comments

@sabepaco
Copy link

I HAVE AN ISSUE WHEN IM TRYING TO IMPORT A .TIF CUSTOM DATASET LAND COVER
2023-05-19T19:56:54 WARNING Traceback (most recent call last):
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\lc_setup.py", line 969, in done
self.validate_input(value)
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\lc_setup.py", line 1002, in validate_input
self.ok_clicked()
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\lc_setup.py", line 1140, in ok_clicked
remap_ret = self.remap_raster(out_file, self.dlg_agg.nesting.get_list())
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\data_io.py", line 1250, in remap_raster
warp_ret = self.warp_raster(temp_tif)
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\data_io.py", line 1317, in warp_raster
raster_import_worker = worker.StartWorker(
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\worker.py", line 174, in init
raise self.exception
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\worker.py", line 42, in run
result = self.work()
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\data_io.py", line 364, in work
res = gdal.Warp(
File "C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\GDAL-3.4.1-py3.9-win-amd64.egg\osgeo\gdal.py", line 673, in Warp
return wrapper_GDALWarpDestName(destNameOrDestDS, srcDSTab, opts, callback, callback_data)
File "C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\GDAL-3.4.1-py3.9-win-amd64.egg\osgeo\gdal.py", line 4211, in wrapper_GDALWarpDestName
return _gdal.wrapper_GDALWarpDestName(*args)
TypeError: object of wrong GDALDatasetShadow

2023-05-19T20:07:25 WARNING Traceback (most recent call last):
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\lc_setup.py", line 969, in done
self.validate_input(value)
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\lc_setup.py", line 1002, in validate_input
self.ok_clicked()
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\lc_setup.py", line 1140, in ok_clicked
remap_ret = self.remap_raster(out_file, self.dlg_agg.nesting.get_list())
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\data_io.py", line 1250, in remap_raster
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\data_io.py", line 1317, in warp_raster
RasterImportWorker,
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\worker.py", line 174, in init
raise self.exception
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\worker.py", line 42, in run
result = self.work()
File "C:\Users/paco0/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\data_io.py", line 364, in work
self.out_file,
File "C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\GDAL-3.4.1-py3.9-win-amd64.egg\osgeo\gdal.py", line 673, in Warp
return wrapper_GDALWarpDestName(destNameOrDestDS, srcDSTab, opts, callback, callback_data)
File "C:\PROGRA1\QGIS321.3\apps\Python39\lib\site-packages\GDAL-3.4.1-py3.9-win-amd64.egg\osgeo\gdal.py", line 4211, in wrapper_GDALWarpDestName
return _gdal.wrapper_GDALWarpDestName(*args)
TypeError: object of wrong GDALDatasetShadow

@azvoleff
Copy link
Contributor

@sabepaco sorry for the slow follow-up. If you are still seeing this issue, can you tell us what platform you are using, the plugin version, and also share a sample dataset so we can test this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants