目录
sampleRegions(collection, properties, scale, projection, tileScale, geometries)
classify(classifier, outputName)
errorMatrix(actual, predicted, order)
函数:
sampleRegions(collection, properties, scale, projection, tileScale, geometries)
Converts each pixel of an image (at a given scale) that intersects one or more regions to a Feature, returning them as a FeatureCollection. Each output feature will have one property per band of the input image, as well as any specified properties copied from the input feature.
Note that geometries will be snapped to pixel centers.
将图像(给定比例)中与一个或多个区域相交的每个像素转换为一个特征,并将它们作为一个特征集合返回。每个输出的特征将在输入图像的每一带有一个属性,以及从输入特征中复制的任何指定属性。
请注意,几何图形将被捕捉到像素中心。