Georeferencing (csv/pdal) bug fix

Former-commit-id: f6881a769e
pull/1161/head
Dakota Benjamin 2018-02-05 12:46:27 -05:00
rodzic 63b8ca2d2b
commit 80332d11c4
2 zmienionych plików z 3 dodań i 7 usunięć

Wyświetl plik

@ -237,7 +237,7 @@ class ODM_GeoRef(object):
kwargs = {'bin': context.pdal_path,
'f_in': _file,
'f_out': _file_out,
'east': self.utm_east_offset, # Todo: change to use transformation matrix
'east': self.utm_east_offset,
'north': self.utm_north_offset,
'srs': self.projection.srs,
'json': json_file}
@ -247,10 +247,6 @@ class ODM_GeoRef(object):
' "pipeline":[' \
' "untransformed.ply",' \
' {{' \
' "type":"filters.transformation",' \
' "matrix":"1 0 0 {east} 0 1 0 {north} 0 0 1 0 0 0 0 1"' \
' }},' \
' {{' \
' "a_srs":"{srs}",' \
' "offset_x":"{east}",' \
' "offset_y":"{north}",' \

Wyświetl plik

@ -156,8 +156,8 @@ class ODMGeoreferencingCell(ecto.Cell):
for lineNumber, line in enumerate(f):
if reachedpoints:
tokens = line.split(" ")
csv_line = [float(tokens[0])+geo_ref.utm_east_offset,
float(tokens[1])+geo_ref.utm_north_offset,
csv_line = [float(tokens[0]),
float(tokens[1]),
tokens[2]]
csvfile_writer.writerow(csv_line)
if line.startswith("end_header"):