Fix edge case in get_geojson_shots_from_opensfm

pull/1426/head
Piero Toffanin 2022-03-03 10:43:45 -05:00
rodzic e65afba7b6
commit c1da63b4dd
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -46,6 +46,10 @@ def get_geojson_shots_from_opensfm(reconstruction_file, utm_srs=None, utm_offset
[0, 0, 0, 1]])
raster = None
pseudo = True
# Couldn't get a SRS?
if utm_srs is None:
return None
crstrans = transformer(CRS.from_proj4(utm_srs), CRS.from_epsg("4326"))