要在影像上叠加要素,请使用featureCollection.reduceRegions()
. 例如,要计算美国大陆流域的降水量,请使用 reduceRegions()
后跟 map()进行遍历
:
本次用到的影像数据:
用到的矢量数据:
基本函数介绍:
reduceRegions(collection, reducer, scale, crs, crsTransform, tileScale)
在给定集合中的每个特征的区域上应用reduce。 reducer必须具有与输入图像具有带区相同数量的输入。 返回输入特征,每个特征都增加了相应的 reducer 输出。
Apply a reducer over the area of each feature in the given colle