utils
Common, useful functions to use in several places.
Utilities
rangeof
rangeof (iterable)
Equivalent for range(len(iterable))
fix_multipolys
fix_multipolys (multipoly:shapely.geometry.multipolygon.MultiPolygon)
Convert MultiPolygon to a single Polygon. The resulting Polygon has the exterior boundaries of the largest geometry of the MultiPolygon
Math formulae (for fallen deadwood volume estimation)
cut_cone_v
cut_cone_v (r_1:float, r_2:float, h:float)
V = (h(A + sqrt(A*A’) + A))/3
cone_v
cone_v (r:float, h:float)
V = (Ah)/3