Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Issue with Semi Automatic Classification Plugin in QGIS - Python error #1008

Open
elenabalma opened this issue Aug 23, 2023 · 1 comment
Open

Comments

@elenabalma
Copy link

Help! I'm having a problem creating ROIs for a training input in QGIS. I'm using the SCP plugin but Python crashes every time I try ti create a training area ROI by drawing a polygon. I think it's a problem with the source code of the plugin, but I'm not sure.
The error message is:

WARNING: Traceback (most recent call last):
File "/Users/elenabalmaceda/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 1736, in pointerClickROI
self.createROI(cfg.pntROI)
File "/Users/elenabalmaceda/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 2848, in createROI
if cfg.np.count_nonzero(r) > 0:
UnboundLocalError: local variable 'r' referenced before assignment

  • **OS: MacOs
  • **QGIS version: 3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants