Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
An image representing the cost to traverse each pixel. Masked pixels can't be traversed. When comparing pixel traversal costs, we use band-wise dictionary ordering. Ancillary cost bands are only considered when paths over primary bands are equal cost.
source
Image
A single-band image representing the sources. A pixel value different from 0 defines a source pixel.
maxDistance
Float
Maximum distance for computation, in meters.
geodeticDistance
Boolean, default: true
If true, geodetic distance along the curved surface is used, assuming a spherical Earth of radius 6378137.0. If false, Euclidean distance in the 2D plane of the map projection is used (faster, but less accurate).
[[["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 2024-07-13 UTC."],[[["Calculates the cumulative cost of traveling from source locations to each pixel in an image, considering the cost of traversing each pixel."],["Generates an output image where each band represents the cumulative cost over the corresponding input cost band, enabling pathfinding and cost analysis."],["Allows for specifying a maximum travel distance and choosing between geodetic (more accurate) or Euclidean (faster) distance calculations."],["Source locations are defined by non-zero pixels in a single-band image, while traversal costs are determined by pixel values in a multi-band cost image."],["Masked pixels in the cost image are considered impassable, ensuring that paths avoid these areas during cost calculations."]]],[]]