Skip to content

Commit

Permalink
Merge pull request #174 from westnordost/patch-1
Browse files Browse the repository at this point in the history
better estimation of crown diameter
  • Loading branch information
StrandedKitty authored Dec 27, 2023
2 parents 1dc6d69 + 9f4138c commit f59f583
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function getTreeHeight(tags: Record<string, string>): number | un
// estimate width from trunk diameter / circumference
if (!width) {
const diameter = parseMeters(tags['diameter'], 0.001) || parseMeters(tags['circumference']) / Math.PI;
width = diameter * 30.0;
width = diameter * 23.0;
}

// check if width is reasonable
Expand All @@ -21,4 +21,4 @@ export default function getTreeHeight(tags: Record<string, string>): number | un
}

return height || undefined;
}
}

0 comments on commit f59f583

Please sign in to comment.