Has anyone tested the new supervised classification modes? I keep getting an NullPoiterException throughout most of them (Maximum Likelihood as well as Random Forest)
I have a stack consisting of serveral bands (different scaling, therefore RF was preferred)
I imported a polygon shapefile with class trainig areas and saved it into the stack.
Another question: I am using ALOS2 data and some textures, imported 14 training classes through a shapefile and want to apply a Random Forest classifier. However, I keep getting the error message bound must be positive after a few seconds.
Other classifiers seem to work.
What is meant with ‘bound’ so I could figure out where to fix it?
If I only use the original data without textures it seems to work.
I replaced the textures by polarimetric parameters and the problem comes up again.
Ok it should be fixed now. The problem was that it wasn’t handling the projection from the vectors properly so it never found them to intersect with the current tile. The ‘bound must be positive’ error comes from RF when the training set is empty. I’ll add this to be released in the next update.
Thanks
How did you fixed it @lveci ?
I am having the same problem with my sentinel2-data. The data is allready been projected. But it still does not work. I have also the last version of SNAP. Should I project the vector data? and if, how?
Please have a look at the coordinates of your training data. You can see them by double clicking it and looking at the entry in the table. It is in WKT format and starts with POLYGON(…
The coordinates in there should range within the latitudes and longitudes of your data.