kopia lustrzana https://github.com/OpenDroneMap/ODM
rodzic
8e48448829
commit
80409731ce
|
@ -42,7 +42,7 @@ class Cropper:
|
||||||
'geotiffInput': original_geotiff,
|
'geotiffInput': original_geotiff,
|
||||||
'geotiffOutput': geotiff_path,
|
'geotiffOutput': geotiff_path,
|
||||||
'options': ' '.join(map(lambda k: '-co {}={}'.format(k, gdal_options[k]), gdal_options)),
|
'options': ' '.join(map(lambda k: '-co {}={}'.format(k, gdal_options[k]), gdal_options)),
|
||||||
'max_memory': (100 - virtual_memory().percent) / 2
|
'max_memory': max(5, (100 - virtual_memory().percent) / 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
run('gdalwarp -cutline {shapefile_path} '
|
run('gdalwarp -cutline {shapefile_path} '
|
||||||
|
|
|
@ -111,7 +111,7 @@ class ODMOrthoPhotoCell(ecto.Cell):
|
||||||
'png': tree.odm_orthophoto_file,
|
'png': tree.odm_orthophoto_file,
|
||||||
'tiff': tree.odm_orthophoto_tif,
|
'tiff': tree.odm_orthophoto_tif,
|
||||||
'log': tree.odm_orthophoto_tif_log,
|
'log': tree.odm_orthophoto_tif_log,
|
||||||
'max_memory': (100 - virtual_memory().percent) / 2
|
'max_memory': max(5, (100 - virtual_memory().percent) / 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
system.run('gdal_translate -a_ullr {ulx} {uly} {lrx} {lry} '
|
system.run('gdal_translate -a_ullr {ulx} {uly} {lrx} {lry} '
|
||||||
|
|
Ładowanie…
Reference in New Issue