Skip to content

Raster clipping #583

Open
Open
@adehecq

Description

It would be great to have a function to clip a raster to a vector. Currently, the function Raster.crop if passed a vector can crop to the bounds of the vector, but it will not clip (set values to nodata outside the vector outlines).
Vector.crop has an option "clip" to do that. Maybe we could just add a similar "clip" option to Raster.crop that works when the input is a vector?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature improvement or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions