Class Building
java.lang.Object
org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
org.noise_planet.noisemodelling.pathfinder.profilebuilder.Building
-
Field Summary
Fields inherited from class org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
DEFAULT_G -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.PolygonRetrieve the building footprint.doubleget Height from BuildinglongRetrieve the primary key of the building in the database.Collection<? extends Wall> getWalls()doublegetZ()voidvoiddoubleupdateZTopo(ProfileBuilder profileBuilder) Compute minimum Z ground under the building contourMethods inherited from class org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
copyAlphas, getAlphas, getG, initialize, setAlpha, setG
-
Constructor Details
-
Building
public Building(org.locationtech.jts.geom.Polygon geometry, double height, double g, long pk, boolean zBuildings) -
Building
public Building(org.locationtech.jts.geom.Polygon poly, double height, List<Double> alphas, long key, boolean zBuildings) Main constructor.- Parameters:
poly-Geometryfootprint of the building.height- Height of the building.alphas- Absorption coefficients.key- Primary key of the building in the database.
-
-
Method Details
-
poly2D_3D
public void poly2D_3D() -
getHeight
public double getHeight()get Height from Building- Returns:
- height
-
getGeometry
public org.locationtech.jts.geom.Polygon getGeometry()Retrieve the building footprint.- Returns:
- The building footprint.
-
getPrimaryKey
public long getPrimaryKey()Retrieve the primary key of the building in the database. If there is no primary key, returns -1.- Returns:
- The primary key of the building in the database or -1.
-
updateZTopo
Compute minimum Z ground under the building contour- Parameters:
profileBuilder-- Returns:
-
getZ
public double getZ() -
setWalls
- Parameters:
walls-
-
getWalls
-