I'm trying to clip a raster with some polygons, some of them lie party outside of the raster. In
gdalwarp, if you set
-crop_to_cutline, it will fill the exterior part with no data and make it be a perfect match.
rasterio.mask (v1.0), using
crop does not produce the same results, although logic would point to it.
filled is supposed to be True by default.
Before opening an issue in their repo, I wanted to see if I'm doing something wrong, or anyone else encountered this.
Reproducible example: Any raster that you have and a polygon that lies party outside.