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 class
KMLDocument.CRSTransformFilter
-
Constructor Summary
Constructors Constructor Description KMLDocument(OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doTransform(org.locationtech.jts.geom.Geometry geometry)
Map<Double,Color>
getColorScale()
int
getWgs84Precision()
void
setColorScale(Map<Double,Color> colorScale)
void
setDefaultColorScale()
void
setInputCRS(String crs)
KMLDocument
setOffset(org.locationtech.jts.geom.Coordinate offset)
void
setWgs84Precision(int wgs84Precision)
KMLDocument
writeBuildings(ProfileBuilder profileBuilder)
KMLDocument
writeFooter()
KMLDocument
writeHeader()
KMLDocument
writeProfile(String layerName, CutProfile profile)
KMLDocument
writeTopographic(List<Triangle> triVertices, List<org.locationtech.jts.geom.Coordinate> vertices)
KMLDocument
writeWalls(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.CRSException
org.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
-
-
-