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. Args: collection: The FeatureCo
(self, collection: _arg_types.FeatureCollection)
| 1435 | ) |
| 1436 | |
| 1437 | def clipToCollection(self, collection: _arg_types.FeatureCollection) -> Image: |
| 1438 | """Clips an image to a FeatureCollection. |
| 1439 | |
| 1440 | The output bands correspond exactly the input bands, except data not covered |
| 1441 | by the geometry of at least one feature from the collection is masked. The |
| 1442 | output image retains the metadata of the input image. |
| 1443 | |
| 1444 | Args: |
| 1445 | collection: The FeatureCollection to clip to. |
| 1446 | |
| 1447 | Returns: |
| 1448 | An ee.Image. |
| 1449 | """ |
| 1450 | |
| 1451 | return apifunction.ApiFunction.call_( |
| 1452 | self.name() + '.clipToCollection', self, collection |
| 1453 | ) |
| 1454 | |
| 1455 | def cluster( |
| 1456 | self, |