我们很多时候会需要在线添加属性信息,其实本质上就是添加一个字典,分别设定一个key:value进行添加即可。
ee.Feature(geometry, properties)
Features can be constructed from one of the following arguments plus an optional dictionary of properties:
-
An ee.Geometry.
-
A GeoJSON Geometry.
-
A GeoJSON Feature.
-
A computed object: reinterpreted as a geometry if properties are specified, and as a feature if they aren't.
Arguments:
geometry (ComputedObject|Feature|Geometry|Object):
A geometry or feature.
properties (Object, optional):
A dictionary of metadata properties. If the first parameter is a Feature (instead of a geometry), this is