Skip to content

Commit

Permalink
make las scale choice explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
smathermather committed Aug 9, 2024
1 parent b162400 commit 6a02e85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stages/odm_georeferencing.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ def powerr(r):
las_stats = json.load(stats)
spacing = powerr(las_stats['spacing'])
log.ODM_INFO("las scale calculated as the minimum of 1/10 estimated spacing or %s, which ever is less." % las_scale)
las_scale = min(spacing, 0.001)
if las_scale <= spacing:
# Leave las scale alone
else:
las_scale = spacing
except Exception as e:
log.ODM_WARNING("Cannot find file point_cloud_stats.json. Using default las scale: %s" % las_scale)
else:
Expand Down

0 comments on commit 6a02e85

Please sign in to comment.