Stay organized with collections
Save and categorize content based on your preferences.
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.
The list of properties to copy from each input feature. Defaults to all non-system properties.
scale
Float, default: null
A nominal scale in meters of the projection to sample in. If unspecified, the scale of the image's first band is used.
projection
Projection, default: null
The projection in which to sample. If unspecified, the projection of the image's first band is used. If specified in addition to scale, rescaled to the specified scale.
tileScale
Float, default: 1
A scaling factor used to reduce aggregation tile size; using a larger tileScale (e.g., 2 or 4) may enable computations that run out of memory with the default.
geometries
Boolean, default: false
If true, the results will include a point geometry per sampled pixel. Otherwise, geometries will be omitted (saving memory).
[[["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."],[[["`Image.sampleRegions` extracts pixel values from an image within specified regions, returning them as a FeatureCollection."],["Each output feature contains the band values of the input image for each sampled pixel, along with properties from the input features."],["Geometries are snapped to pixel centers, and you can control the sampling scale and projection."],["The function provides options to include point geometries and adjust the tile scale for memory management."],["If the input is a FeatureCollection of points, `ee.Image.reduceRegions` is generally recommended for better memory efficiency."]]],[]]