5

Extracting a bounding box from a FeatureCollection taking longer than expected. My layer has 86 multi-polygons:

var inun_raw = ee.FeatureCollection('users/sbryant/fred/GeoNB_LSJ_FloodExtent2018_0515b');
print('inun_raw feats = ' + inun_raw.size().getInfo())
var bbox = inun_raw.union().geometry().bounds(1000)

This takes many minutes to get a simple bounding box (the same operation in QGIS takes 0.03 secs).

What am I doing wrong here?

1 Answer 1

2

Your collection has more than 2 million edges in it. It's just too complex for the geometry processing system. You would probably do best to simplify the geometries before ingesting it.

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.