Geotiff : correcting grid sample dimension 2