目录
distance(searchRadius, maxError)
简介
GEE训练教程——测量矢量几何体的距离并生成图像
函数
distance(searchRadius, maxError)
Produces a DOUBLE image where each pixel is the distance in meters from the pixel center to the nearest Point, LineString, or polygonal boundary in the collection. Note distance is also measured within interiors of polygons. Pixels that are not within 'searchRadius' meters of a geometry will be masked out.
Distances are computed on a sphere, so there is a small error proportional to the latitude difference between each pixel and the nearest geometry.
生成一个 DOUBLE 图像,其中每个像素是像素中心到集合中最近的点、线字符串或多边形边界的距离(以米为单位)。请