> 文档中心 > Google Earth Engine(GEE)——通过土地分类获取影像前后变化的土地利用变化信息(重分类)

Google Earth Engine(GEE)——通过土地分类获取影像前后变化的土地利用变化信息(重分类)

本次的实验主要目的就是通过对哨兵2号数据的土地分类,分别进行两期的对比,然后看土地利用变化的情况如何,这里所用到的函数是:

remap(lookupIn,lookupOut,columnName)

Remaps the value of a specific property in a collection. Takes two parallel lists and maps values found in one to values in the other. Any element with a value that is not specified in the first list is dropped from the output collection.

Arguments:

this:collection(FeatureCollection):

The collection to be modified.

lookupIn(List):

The input mapping values. Restricted to strings and integers.

lookupOut(List):

The output mapping values. Must be the same size as lookupIn.

columnName(String):

The name of the property to remap.

Returns:FeatureCollection

重新映射一个集合中的特定属性的值。接受两个平行的列表,将其中一个列表中的值映射到另一个列表中的值。任何具有未在第一个列表中指定的值的元素将从输出集合中删除。

参数。
this:collection(特征集合)。