Skip to content

Commit

Permalink
revert back to min
Browse files Browse the repository at this point in the history
  • Loading branch information
smathermather committed Aug 9, 2024
1 parent 0c39719 commit 0b2d9a6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions stages/odm_georeferencing.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,7 @@ 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)
if las_scale <= spacing:
log.ODM_INFO("Defaul las scale of %s is smaller than or equal to calculated" % las_scale)
# Leave las scale alone
else:
las_scale = spacing
log.ODM_INFO("Calculated las scale is smaller than default. Using %s" % las_scale)
las_scale = min(spacing, 0.001)
except Exception as e:
log.ODM_WARNING("Cannot find file point_cloud_stats.json. Using default las scale: %s" % las_scale)
else:
Expand Down Expand Up @@ -285,3 +280,4 @@ def transform_textured_model(obj):
os.remove(tree.filtered_point_cloud)



0 comments on commit 0b2d9a6

Please sign in to comment.