semiautomaticgit / SemiAutomaticClassificationPlugin

https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html
Other
136 stars 50 forks source link

NAME OF SCP training layer are all identical #354

Closed GITHUBAntoineDENIS closed 1 month ago

GITHUBAntoineDENIS commented 1 month ago

Hello, When creating "SCP training layer" for calibration or validation ROI drawing, all SCP training layers created show the same name in the "layers" pannel of qgis and do not use the name given when creating the roi file in the working directory.

So if we create first calibration roi for classification, ans then validation roi, they will have both the same name, and this will make it difficult to know which file to choose when we have to indicate the validation roi to use in the accuracy assessment window > select reference vector.

--> it would be easier if the "scp training layer" display the name given rather than "SCP training layer". Best regards, Antoine

semiautomaticgit commented 1 month ago

Hello @GITHUBAntoineDENIS ,

thank you for your suggestion. However, it is actually designed to display the same name because it is a layer managed by the SCP and should not be edited directly (it is only used to display existing ROIs). In the future I'll try to hide the layer from the layer list.

GITHUBAntoineDENIS commented 1 month ago

Hello. OK. But this makes it difficult to know which file to choose when we have to indicate the validation roi file to use in the accuracy assessment window > select reference vector. We have 2 files with the same name "scp training layer" (roi calibration and roi validation), and so how to know which one to choose? What I did is to rename one in the qgis layers pannel. Another way would be to delete the calibration roi from layers pannel before going on with the validation. Just to bring you detailed information on the encountered problem. Best regards, Antoine

semiautomaticgit commented 1 month ago

Hello @GITHUBAntoineDENIS , thank you for your feedback.

Hello. OK. But this makes it difficult to know which file to choose when we have to indicate the validation roi file to use in the accuracy assessment window > select reference vector. We have 2 files with the same name "scp training layer" (roi calibration and roi validation), and so how to know which one to choose?

The "scp training layer" is the one loaded in the SCP dock, so there should be only one at a time in the layers. If you replace the training input in SCP dock, the "scp training layer" is automatically replaced, so there should be no confusion.

What I did is to rename one in the qgis layers pannel. I suggest to avoid renaming the layer, as it could cause some malfunctions in SCP. I would recommend to create a different geopackage for validation if it cause confusion.