Too many pixels in the region. Found 30698755252, but maxPixels allows only 10000000000. Ensure that you are not aggregating at a higher resolution than you intended; that is a frequent cause of this error. If not, then you may set the 'maxPixels' argument to a limit suitable for your computation; set 'bestEffort' to true to aggregate at whatever scale results in 'maxPixels' total pixels; or both.

The main code I received the error:

 features = features.reproject({crs: aspect.projection().crs(), scale: 30}).float()
 var minMax = features.reduceRegion({
  reducer: ee.Reducer.minMax(),
  scale: 30,
  maxPixels: 10e9})
  • It means that you are trying to do an operation on too many pixels. Select a smaller geometry to do the reduceRegion. Commented Dec 21, 2020 at 10:45

1 Answer 1


The error message says it all.

You are trying attempting to aggregate ~30e9 pixels but your maxPixels is set to 10e9. Just increase maxPixels by setting maxPixels: 40e9 and the code will work fine.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.