Replies: 2 comments 2 replies
-
Hello and thank you for reporting this issue. Also, please copy the log file following these steps https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#how-can-i-report-an-error |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thank you very much for your feedback. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
win11(64)
QGIS:3.16.12-Hannover
python 3.7
When press Run button of Clip multiple raster, I got the following error message.
#########
AttributeError: 'NoneType' object has no attribute 'replace'
Traceback (most recent call last):
File "C:/Users/go_ta/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\maininterface\clipmultiplerasters.py", line 82, in clipRastersAction
self.clipRasters()
File "C:/Users/go_ta/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\maininterface\clipmultiplerasters.py", line 230, in clipRasters
eCrs = cfg.utls.getCrsGDAL(l)
File "C:/Users/go_ta/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\SemiAutomaticClassificationPlugin\core\utils.py", line 7360, in getCrsGDAL
return crs.replace(' ', '')
AttributeError: 'NoneType' object has no attribute 'replace'
#########
Then I tried to identify the place of error occurred by adding the codes in utils.py located under core directory.
########################################################################
file validation
######################################################################
Finally I found that error occurred in this statement
crs = l.GetProjection()
. Although this statement works fine in Jupyter.I don't know why the above simple statement cause an error.
Does someone know the way to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions