zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Google Earth Engine(GEE)——影像集合的限制使用

Google集合 限制 Engine Earth GEE 影像 使用
2023-09-11 14:15:11 时间

limit(max, propertyascending)

Limit a collection to the specified number of elements, optionally sorting them by a specified property first.将一个集合限制为指定数量的元素,可以选择先按指定的属性进行排序。

Returns the limited collection.

Arguments:

this:collection (Collection):

The Collection instance.

max (Number):

The number to limit the collection to.

property (String, optional):

The property to sort by, if sorting.

ascending (Boolean, optional):

Whether to sort in ascending or descending order. The default is true (ascending).

Returns: Collection

size()

Returns the number of elements in the collection.

Arguments:

this:collection (FeatureCollection):

The collection to count.

Returns: Integer

代码: