Handle case where projection is not set

pull/936/head
Piero Toffanin 2019-01-21 17:35:47 -05:00
rodzic 0c3cd8b39c
commit e649fab539
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.')