ee.Image.clipToCollection

Clips an image to a FeatureCollection. The output bands correspond exactly the input bands, except data not covered by the geometry of at least one feature from the collection is masked. The output image retains the metadata of the input image.

UsageReturns
Image.clipToCollection(collection)Image
ArgumentTypeDetails
this: inputImage

The image to clip.

collectionObject

The FeatureCollection to clip to.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!