[gdal-dev] How to calculate affine transformation by Python gdal as same as gdal_translate?

Pham Huu Bang a09550 at gmail.com
Fri May 8 04:44:23 PDT 2020


I've tried to reproduce a problem to subset (clip) an UTM 32 Sentinel 2
GeoTiff by a given Bounding box (BBOX) in EPSG:4326.

I've created a python gdal script for it, but the result is always contain
few more pixels than what I've tried with gdal_translate binary.

All information of the python script and the gdalinfo was posted here:

Could someone give me an insight to make the result as same as

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200508/9cbcae58/attachment.html>

More information about the gdal-dev mailing list