Package com.gaia3d.converter.geometry
Class ForestModelHelper
java.lang.Object
com.gaia3d.converter.geometry.ForestModelHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
calcTreeCount
(org.locationtech.jts.geom.Geometry polygon, double treeProportion, double treeDiameter) Calculate the number of trees in a polygon based on the area and tree density.static double
convertTreeHeightForEntity
(String heightString) static double
convertTreeHeightForESD
(String heightString)
-
Field Details
-
isForest
public static boolean isForest
-
-
Constructor Details
-
ForestModelHelper
public ForestModelHelper()
-
-
Method Details
-
calcTreeCount
public static int calcTreeCount(org.locationtech.jts.geom.Geometry polygon, double treeProportion, double treeDiameter) Calculate the number of trees in a polygon based on the area and tree density.- Parameters:
polygon
-treeProportion
- density of trees in the polygon (0.0 to 1.0)treeDiameter
- diameter of the trees (in square meters)- Returns:
-
convertTreeHeightForEntity
-
convertTreeHeightForESD
-