Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New option for cropping inside mask method #138

Open
drnextgis opened this issue Aug 28, 2018 · 0 comments
Open

New option for cropping inside mask method #138

drnextgis opened this issue Aug 28, 2018 · 0 comments
Labels
feature-request New feature or request

Comments

@drnextgis
Copy link
Contributor

I think it would be handy to have boolean crop parameter in GeoRaster2.mask. The similar functionality you can find in QGIS Clip Raster by Mask Layer tool:
screenshot from 2018-08-28 13-43-111

Current state:

>>> output = raster.mask(roi)
>>> output.shape
(1, 10980, 10980)

New crop parameter:

>>> output = raster.mask(roi, crop=True)
>>> output.shape
(1, 318, 319)
@drnextgis drnextgis added the feature-request New feature or request label Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant