Class KMLDocument
- java.lang.Object
-
- org.noise_planet.noisemodelling.pathfinder.utils.documents.KMLDocument
-
public class KMLDocument extends Object
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 Modifier and Type Class Description static classKMLDocument.CRSTransformFilter
-
Constructor Summary
Constructors Constructor Description KMLDocument(OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoTransform(org.locationtech.jts.geom.Geometry geometry)Map<Double,Color>getColorScale()intgetWgs84Precision()voidsetColorScale(Map<Double,Color> colorScale)voidsetDefaultColorScale()voidsetInputCRS(String crs)KMLDocumentsetOffset(org.locationtech.jts.geom.Coordinate offset)voidsetWgs84Precision(int wgs84Precision)KMLDocumentwriteBuildings(ProfileBuilder profileBuilder)KMLDocumentwriteFooter()KMLDocumentwriteHeader()KMLDocumentwriteProfile(String layerName, CutProfile profile)KMLDocumentwriteTopographic(List<Triangle> triVertices, List<org.locationtech.jts.geom.Coordinate> vertices)KMLDocumentwriteWalls(ProfileBuilder profileBuilder)mapping the walls
-
-
-
Constructor Detail
-
KMLDocument
public KMLDocument(OutputStream outputStream) throws XMLStreamException
- Throws:
XMLStreamException
-
-
Method Detail
-
setDefaultColorScale
public void setDefaultColorScale()
-
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
public KMLDocument writeHeader() throws XMLStreamException
- Throws:
XMLStreamException
-
writeFooter
public KMLDocument writeFooter() throws XMLStreamException
- Throws:
XMLStreamException
-
setOffset
public KMLDocument setOffset(org.locationtech.jts.geom.Coordinate offset)
-
writeTopographic
public KMLDocument writeTopographic(List<Triangle> triVertices, List<org.locationtech.jts.geom.Coordinate> vertices) throws XMLStreamException
- Parameters:
triVertices-vertices-- Returns:
- Throws:
XMLStreamException
-
writeBuildings
public KMLDocument writeBuildings(ProfileBuilder profileBuilder) throws XMLStreamException
- Parameters:
profileBuilder-- Returns:
- Throws:
XMLStreamException
-
writeWalls
public KMLDocument writeWalls(ProfileBuilder profileBuilder) throws XMLStreamException
mapping the walls- Parameters:
profileBuilder-- Returns:
- Throws:
XMLStreamException
-
writeProfile
public KMLDocument writeProfile(String layerName, CutProfile profile) throws XMLStreamException
- Parameters:
layerName-profile-- Returns:
- Throws:
XMLStreamException
-
doTransform
public void doTransform(org.locationtech.jts.geom.Geometry geometry)
- Parameters:
geometry-
-
-