Closed dorukozturk closed 6 years ago
@danlipsa Computing the bounding box from the footprint was a good idea. There was already a function in shapely called "bounds" which was giving the bounding box (see).
I think this is ready for another round of review.
LGTM
2 things to note here:
1) Footprint is the boundary with no data areas masked as opposed to boundary box which is the extent of an image. See the comparison below. Red one is the bounding box and green one is the footprint.
2) Rasterio relies on raster to have a nodata tag. When gdalinfo is called on the layer like:
We should see this:
Note the NoData Value metadata. That value can be add with gdal_translate if missing. In the following case we are creating an output file with nodata value of -9999 attached.