1

I made a supervised classification with only one Sentinel image on GEE and it works perfectly. But when I firstly mosaic some images over my region of interest, error thrown :"Layer error: No data was found in classifier training input."

On Earth Engine User Guide, it says :

when Earth Engine makes a mosaic of many images, it has to throw out individual image metadata, including the SENSOR_ID property.

I personally guess that's why error thrown because metadata missed, but I don't know how to fix that.

Here's what I have tried.

jascha
  • 55
  • 8

1 Answers1

0

The problem is the line where you clip the scene using a point:

.clip(roi) // clip

Try to change it and I guess that it will work.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Etore Marcari Jr.
  • 572
  • 2
  • 10
  • 19