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 Obstruction
DEFAULT_G -
Constructor Summary
ConstructorsConstructorDescriptionBuilding(org.locationtech.jts.geom.Polygon poly, double g, long key) Main constructor. setting g versionMain constructor. setting Alphas version and or g versionMain constructor. setting Alphas version -
Method Summary
Modifier and TypeMethodDescriptiondoubleorg.locationtech.jts.geom.PolygonRetrieve the building footprint.longRetrieve the primary key of the building in the database.Methods inherited from class Obstruction
copyAlphas, getAlphas, getG, initialize, setAlpha, setG
-
Constructor Details
-
Building
-
Building
-
Building
public Building(org.locationtech.jts.geom.Polygon poly, double g, long key) Main constructor. setting g version- Parameters:
poly-Geometryfootprint of the building.g- G value.key- Primary key of the building in the database.
-
-
Method Details
-
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.
-
getAverageZ
public double getAverageZ()
-