Generate PNG from ungeoreferenced model

Former-commit-id: 80eba5a7de
pull/1161/head
Dakota Benjamin 2016-12-20 10:10:14 -05:00
rodzic 902de7c424
commit 62e0dc3e6a
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -42,13 +42,17 @@ class ODMOrthoPhotoCell(ecto.Cell):
# odm_orthophoto definitions
kwargs = {
'bin': context.odm_modules_path,
'model_geo': tree.odm_georeferencing_model_obj_geo,
'log': tree.odm_orthophoto_log,
'ortho': tree.odm_orthophoto_file,
'corners': tree.odm_orthophoto_corners,
'res': self.params.resolution
}
kwargs['model_geo'] = tree.odm_georeferencing_model_obj_geo \
if io.file_exists(tree.odm_georeferencing_coords) \
else tree.odm_textured_model_obj
# run odm_orthophoto
system.run('{bin}/odm_orthophoto -inputFile {model_geo} '
'-logFile {log} -outputFile {ortho} -resolution {res} '