Add/Move -cutline to gdal_translate
|Reported by:||mjigmond||Owned by:||warmerdam|
This is an enhancement request following my discussion with Even on #3947. Here's the rationale for it, IMO:
- In its current implementation under gdalwarp there's an inherent re-calculation of the raster origin which results in a shift. Additionally, if input raster's pixels are non-square the algorithm re-samples the pixels.
- I believe the process of extracting a smaller window and masking irrelevant pixels is best suited for gdal_translate which already handles the former. Generally (I may be making a broad assumption here and welcome others' input), users who want to extract a smaller subset are not looking to re-sample the data and nor do they expect a shift of their data.