zl程序教程

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

当前栏目

Google Earth Engine(GEE)——计算中心点位置、外接边界,外接多边形,融合以及简化边界并返回给矢量集合

Google集合 以及 返回 位置 Engine Earth 融合
2023-09-11 14:15:11 时间

这一次的教程很简单就是我么map这个矢量集合来实现我们的属性值就是建立function然后让矢量集合中的每一个部分进行整个函数的遍历,这里我们可以选择求出矢量的中心点,当然也可以添加其它的东西。

centroid(maxErrorproj)

Returns a feature containing the point at the center of the highest-dimension components of the geometry of a feature. Lower-dimensional components are ignored, so the centroid of a geometry containing two polygons, three lines and a point is equivalent to the centroid of a geometry containing just the two polygons.

Arguments:

this:feature (Element):

Calculates the centroid of this feature's default geometry.

maxError (ErrorMargin, default: null):

The maximum amount of error tolerated when performing any necessary reprojection.

proj (Projection, default: null):

If specified, the result will be in this projection. Otherwise it will be in WGS84.

Returns: Feature

centroid(maxError, proj)
返回一个包含几何体最高维度分量中心的点的特征。低维分量会被忽略,所以一个包含两