Is there an advantage to work with Polygons versus MultiPolygons in Google Earth Engine? I need to subdivide a region of interest into many sub-areas for which I will calculate the evolution of some variable. In GEE you can draw many different polygons and then repeat the operation but you can also define a MultiPolygon but I don't see the benefits of doing it. As an example, I'm calculating the mean of the values of B (a collection of images filtered by dates) over time.
var C = Chart.image.series(B, MultiPolygon, ee.Reducer.mean(),
1000, 'system:time_start');
print(C);
Answer
In a Multipolygon, the polygons are part of the same structure and share the same projection and polarity.
Earth Engine can perform the same operations on a ee.Geometry.MultiPolygon as a ee.Geometry.Poygon, e.g. calculate the area, bounds, centroid, etc.
So use whatever is convenient for your application.
No comments:
Post a Comment