" image.select(bands).sampleRegions is not a function error. what must i do?
问题 I am trying to conduct a lulc classification on google earth engine using landsat5 data for 2000, but every time it is showing me the error: image.select(bands).sampleRegions is not a function var shp = ee.FeatureCollection(mws) Map.addLayer(shp, {}, 'My Polygon') var pol = ee.FeatureCollection(poly2000) Map.addLayer(pol, {} ) //landcover for 2000// var dataset = ee.ImageCollection("LANDSAT/LT05/C01/T1_TOA") .filterBounds(roi1) .filterDate('2000-01-01', '2000-01-31') .map(function(image)