Stay organized with collections
Save and categorize content based on your preferences.
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.
Feature collection from which to get features used to compute pixel distances.
searchRadius
Float, default: 100000
Maximum distance in meters from each pixel to look for edges. Pixels will be masked unless there are edges within this distance.
maxError
Float, default: 100
Maximum reprojection error in meters, only used if the input polylines require reprojection. If '0' is provided, then this operation will fail if projection is required.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["Computes the distance (in meters) from each pixel to the nearest point, line, or polygon within a given FeatureCollection."],["Generates a double-precision image where pixel values represent the distance to the nearest feature."],["Offers adjustable search radius and maximum error parameters for controlling computation."],["Pixels beyond the search radius or exceeding the error threshold are masked out."],["Calculations consider the Earth's curvature for accurate distance measurements."]]],[]]