Class KMLDocument
java.lang.Object
org.noise_planet.noisemodelling.pathfinder.utils.documents.KMLDocument
Export objects of NoiseModelling into KML format.
Modified version of org.h2gis.functions.io.kml.KMLWriterDriver
- Author:
- Erwan Bocher, Nicolas Fortin 2019
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoTransform(org.locationtech.jts.geom.Geometry geometry) intvoidsetColorScale(Map<Double, Color> colorScale) voidvoidsetInputCRS(String crs) setOffset(org.locationtech.jts.geom.Coordinate offset) voidsetWgs84Precision(int wgs84Precision) writeBuildings(ProfileBuilder profileBuilder) writeProfile(String layerName, CutProfile profile) writeTopographic(List<Triangle> triVertices, List<org.locationtech.jts.geom.Coordinate> vertices) writeWalls(ProfileBuilder profileBuilder) mapping the walls
-
Constructor Details
-
KMLDocument
- Throws:
XMLStreamException
-
-
Method Details
-
setDefaultColorScale
public void setDefaultColorScale() -
getColorScale
-
setColorScale
-
getWgs84Precision
public int getWgs84Precision()- Returns:
- how-many-decimal-places-to-include-when-reporting-latitude-and-longitude
-
setWgs84Precision
public void setWgs84Precision(int wgs84Precision) - Parameters:
wgs84Precision- how-many-decimal-places-to-include-when-reporting-latitude-and-longitude
-
setInputCRS
public void setInputCRS(String crs) throws org.cts.crs.CRSException, org.cts.op.CoordinateOperationException - Throws:
org.cts.crs.CRSExceptionorg.cts.op.CoordinateOperationException
-
writeHeader
- Throws:
XMLStreamException
-
setOffset
-
writeTopographic
public KMLDocument writeTopographic(List<Triangle> triVertices, List<org.locationtech.jts.geom.Coordinate> vertices) throws XMLStreamException - Parameters:
triVertices-vertices-- Returns:
- Throws:
XMLStreamException
-
writeBuildings
- Parameters:
profileBuilder-- Returns:
- Throws:
XMLStreamException
-
writeWalls
mapping the walls- Parameters:
profileBuilder-- Returns:
- Throws:
XMLStreamException
-
writeProfile
- Parameters:
layerName-profile-- Returns:
- Throws:
XMLStreamException
-
doTransform
public void doTransform(org.locationtech.jts.geom.Geometry geometry) - Parameters:
geometry-
-