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
  • Constructor Details

  • Method Details

    • setDefaultColorScale

      public void setDefaultColorScale()
    • getColorScale

      public Map<Double,Color> getColorScale()
    • setColorScale

      public void setColorScale(Map<Double,Color> colorScale)
    • 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 -
    • exportSources

      public void exportSources(Scene scene)
    • exportProfileBuilderData

      public static void exportProfileBuilderData(OutputStream outputStream, Scene scene, int srid) throws IOException
      Export processed input data of the ProfileBuilder
      Parameters:
      outputStream - Ready stream of data
      scene - initialized scene
      srid - Input projection system (will be transformed to 4326)
      Throws:
      IOException - Exception