tiled, deflate, etc.

per Seth's comment here https://github.com/hotosm/oam-uploader/issues/39

Former-commit-id: c3f5cf2150
pull/1161/head
Stephen Mather 2016-09-25 08:47:00 -04:00 zatwierdzone przez GitHub
rodzic 6210a15a84
commit fee8b4adf0
1 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -89,10 +89,13 @@ class ODMOrthoPhotoCell(ecto.Cell):
}
system.run('gdal_translate -a_ullr {ulx} {uly} {lrx} {lry} '
'-co TILED=yes -co SPARSE_OK=yes '
'-co BLOCKXSIZE=256 -co BLOCKYSIZE=256 '
'-co INTERLEAVE=BAND -co COMPRESS=JPEG '
'-co JPEG_QUALITY=90 '
'-co TILED=yes'
'-co COMPRESS=DEFLATE'
'-co PREDICTOR=2'
'-co BLOCKXSIZE=256'
'-co BLOCKYSIZE=256'
'-co INTERLEAVE=band'
'-co NUM_THREADS=ALL_CPUS'
'-a_srs \"EPSG:{epsg}\" {png} {tiff} > {log}'.format(**kwargs))
geotiffcreated = True
if not geotiffcreated: