Skip to content

Commit

Permalink
test variable substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
smathermather committed Aug 7, 2024
1 parent 719734f commit 82fcd0d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stages/odm_georeferencing.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,14 @@ def process(self, args, outputs):

stages.append("transformation")
utmoffset = reconstruction.georef.utm_offset()
las_scale = 0.001
params += [
f'--filters.transformation.matrix="1 0 0 {utmoffset[0]} 0 1 0 {utmoffset[1]} 0 0 1 0 0 0 0 1"',
f'--writers.las.offset_x={reconstruction.georef.utm_east_offset}' ,
f'--writers.las.offset_y={reconstruction.georef.utm_north_offset}',
'--writers.las.scale_x=0.001',
'--writers.las.scale_y=0.001',
'--writers.las.scale_z=0.001',
'--writers.las.scale_x={las_scale}',
'--writers.las.scale_y={las_scale}',
'--writers.las.scale_z={las_scale}',
'--writers.las.offset_z=0',
f'--writers.las.a_srs="{reconstruction.georef.proj4()}"' # HOBU this should maybe be WKT
]
Expand Down

0 comments on commit 82fcd0d

Please sign in to comment.