kopia lustrzana https://github.com/OpenDroneMap/ODM
Fixed bigtiff bug in DEM generation
rodzic
dd15233e59
commit
40bda5bd7a
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.2.1
|
2.3.0
|
||||||
|
|
|
@ -214,12 +214,14 @@ def create_dem(input_point_cloud, dem_type, output_type='max', radiuses=['0.56']
|
||||||
# so we need to convert to GeoTIFF first.
|
# so we need to convert to GeoTIFF first.
|
||||||
run('gdal_translate '
|
run('gdal_translate '
|
||||||
'-co NUM_THREADS={threads} '
|
'-co NUM_THREADS={threads} '
|
||||||
|
'-co BIGTIFF=IF_SAFER '
|
||||||
'--config GDAL_CACHEMAX {max_memory}% '
|
'--config GDAL_CACHEMAX {max_memory}% '
|
||||||
'{tiles_vrt} {geotiff_tmp}'.format(**kwargs))
|
'{tiles_vrt} {geotiff_tmp}'.format(**kwargs))
|
||||||
|
|
||||||
# Scale to 10% size
|
# Scale to 10% size
|
||||||
run('gdal_translate '
|
run('gdal_translate '
|
||||||
'-co NUM_THREADS={threads} '
|
'-co NUM_THREADS={threads} '
|
||||||
|
'-co BIGTIFF=IF_SAFER '
|
||||||
'--config GDAL_CACHEMAX {max_memory}% '
|
'--config GDAL_CACHEMAX {max_memory}% '
|
||||||
'-outsize 10% 0 '
|
'-outsize 10% 0 '
|
||||||
'{geotiff_tmp} {geotiff_small}'.format(**kwargs))
|
'{geotiff_tmp} {geotiff_small}'.format(**kwargs))
|
||||||
|
@ -227,6 +229,7 @@ def create_dem(input_point_cloud, dem_type, output_type='max', radiuses=['0.56']
|
||||||
# Fill scaled
|
# Fill scaled
|
||||||
run('gdal_fillnodata.py '
|
run('gdal_fillnodata.py '
|
||||||
'-co NUM_THREADS={threads} '
|
'-co NUM_THREADS={threads} '
|
||||||
|
'-co BIGTIFF=IF_SAFER '
|
||||||
'--config GDAL_CACHEMAX {max_memory}% '
|
'--config GDAL_CACHEMAX {max_memory}% '
|
||||||
'-b 1 '
|
'-b 1 '
|
||||||
'-of GTiff '
|
'-of GTiff '
|
||||||
|
@ -237,6 +240,7 @@ def create_dem(input_point_cloud, dem_type, output_type='max', radiuses=['0.56']
|
||||||
run('gdal_translate '
|
run('gdal_translate '
|
||||||
'-co NUM_THREADS={threads} '
|
'-co NUM_THREADS={threads} '
|
||||||
'-co TILED=YES '
|
'-co TILED=YES '
|
||||||
|
'-co BIGTIFF=IF_SAFER '
|
||||||
'-co COMPRESS=DEFLATE '
|
'-co COMPRESS=DEFLATE '
|
||||||
'--config GDAL_CACHEMAX {max_memory}% '
|
'--config GDAL_CACHEMAX {max_memory}% '
|
||||||
'{merged_vrt} {geotiff}'.format(**kwargs))
|
'{merged_vrt} {geotiff}'.format(**kwargs))
|
||||||
|
@ -244,6 +248,7 @@ def create_dem(input_point_cloud, dem_type, output_type='max', radiuses=['0.56']
|
||||||
run('gdal_translate '
|
run('gdal_translate '
|
||||||
'-co NUM_THREADS={threads} '
|
'-co NUM_THREADS={threads} '
|
||||||
'-co TILED=YES '
|
'-co TILED=YES '
|
||||||
|
'-co BIGTIFF=IF_SAFER '
|
||||||
'-co COMPRESS=DEFLATE '
|
'-co COMPRESS=DEFLATE '
|
||||||
'--config GDAL_CACHEMAX {max_memory}% '
|
'--config GDAL_CACHEMAX {max_memory}% '
|
||||||
'{tiles_vrt} {geotiff}'.format(**kwargs))
|
'{tiles_vrt} {geotiff}'.format(**kwargs))
|
||||||
|
|
Ładowanie…
Reference in New Issue