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

Error running in QGIS #8

Open
Chris-Has opened this issue Mar 10, 2022 · 2 comments
Open

Error running in QGIS #8

Chris-Has opened this issue Mar 10, 2022 · 2 comments

Comments

@Chris-Has
Copy link

Using on a tiff image with 4 bands RGB and alpha
QGIS 3.22.4

2022-03-10T15:24:22 WARNING Traceback (most recent call last):
File "C:\Users/Chris/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deep-learning-datasets-maker\split_rs_data.py", line 315, in run
rasterize(ras_path, vec_path, output)
File "C:\Users/Chris/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deep-learning-datasets-maker\utils\rasterize.py", line 11, in rasterize
lyr = vec_ds.GetLayer()
AttributeError: 'NoneType' object has no attribute 'GetLayer'

@Chris-Has
Copy link
Author

Now getting:

Traceback (most recent call last):
File "C:\Users/Chris/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deep-learning-datasets-maker\split_rs_data.py", line 315, in run
rasterize(ras_path, vec_path, output)
File "C:\Users/Chris/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\deep-learning-datasets-maker\utils\rasterize.py", line 8, in rasterize
ras_ds = gdal.Open(ras_path)
File "C:\PROGRA1\QGIS321.4\apps\Python39\lib\site-packages\GDAL-3.4.1-py3.9-win-amd64.egg\osgeo\gdal.py", line 4112, in Open
return _gdal.Open(*args)
RuntimeError: `G:\My Drive...\annotations\trial.geojson' not recognized as a supported file format.

@mazingaro
Copy link

I had the same (using GPKG). I am still not sure why, but it works with SHP.

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