Applied-GeoSolutions / gips

Geospatial Image Processing System
GNU General Public License v3.0
17 stars 5 forks source link

painless gdal 2 support in system tests and sentinel-2 #398

Open ra-tolson opened 7 years ago

ra-tolson commented 7 years ago

The checksums for most system tests change under gdal 2, due to, apparently, six extra bytes in raster files gdal generates, such as geotiffs. So most of the system tests have to change.

Also support both gdal 2 and gdal 1 in sentinel-2. Right now sentinel-2 will raise an exception if gdal 1's gdal_translate is invoked (lack of -tr option). Consider parsing the single line reported by gdal_translate --version then using that information to decide whether to proceed with a gdal 2 call, or use the previous code (which needs to be dug out of git history).