I would like to vectorize binary raster layers in Google Earth Engine in order to be able to use the geometry of the resulting FeatureCollection in other tasks (e.g. clipping data or similar things).
One example: Let's create a vectorized map indicating high mountain regions based on SRTM data:
var srtm = ee.Image('CGIAR/SRTM90_V4'); var highMountains = srtm.gt(2000); var mask = highMountains.reduceToVectors();
Unfortunately, this does not work - you'll receive the error message
Layer 2: Layer error: Image.reduceToVectors: Too many pixels in the region. Found 62208000000, but only 10000000 allowed.
Is there a way to achieve my goal? Or am I doing something wrong?