I performed an Unsupervised Classification in GEE and I have 3 classes. I need to create random points in each class in order to draw a histogram of spectral signature later.

In line 150 of the script I tried to use stratifiedSample to create 100 points per class, but it takes a very long time and does not finish and gives the error:

Layer 2: Layer error: The service is currently unavailable.

I do not think mapping 300 points is so difficult for GEE. How can I add these random points to my classification classes?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.