Handle case where projection is not set

Former-commit-id: e649fab539
pull/1161/head
Piero Toffanin 2019-01-21 17:35:47 -05:00
rodzic 7159c991b7
commit 979551c6c3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -103,7 +103,7 @@ class ODMGeoreferencingCell(ecto.Cell):
if transformPointCloud:
kwargs['pc_params'] = '-inputPointCloudFile {input_pc_file} -outputPointCloudFile {output_pc_file}'.format(**kwargs)
if geo_ref.projection.srs:
if geo_ref.projection and geo_ref.projection.srs:
kwargs['pc_params'] += ' -outputPointCloudSrs %s' % pipes.quote(geo_ref.projection.srs)
else:
log.ODM_WARNING('NO SRS: The output point cloud will not have a SRS.')