kopia lustrzana https://github.com/OpenDroneMap/ODM
rodzic
63b8ca2d2b
commit
80332d11c4
|
@ -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}",' \
|
||||
|
|
|
@ -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"):
|
||||
|
|
Ładowanie…
Reference in New Issue