Class GeoJSONDocument
- java.lang.Object
-
- org.noise_planet.noisemodelling.pathfinder.utils.documents.GeoJSONDocument
-
public class GeoJSONDocument extends Object
Export rays for validation
-
-
Field Summary
Fields Modifier and Type Field Description Stringcrscom.fasterxml.jackson.core.JsonGeneratorjsonGeneratorintroundingorg.cts.op.CoordinateOperationtransform
-
Constructor Summary
Constructors Constructor Description GeoJSONDocument(OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoTransform(org.locationtech.jts.geom.Geometry geometry)voidsetInputCRS(String crs)voidsetRounding(int rounding)voidwriteCoordinate(org.locationtech.jts.geom.Coordinate coordinate)Write coordinate positions.voidwriteCutPoint(CutPoint cutPoint)voidwriteFooter()voidwriteHeader()voidwriteNumber(double number)voidwriteProfile(CutProfile profile)voidwriteTopographic(List<Triangle> triVertices, List<org.locationtech.jts.geom.Coordinate> vertices)Write topography triangles
-
-
-
Field Detail
-
jsonGenerator
public com.fasterxml.jackson.core.JsonGenerator jsonGenerator
-
crs
public String crs
-
rounding
public int rounding
-
transform
public org.cts.op.CoordinateOperation transform
-
-
Constructor Detail
-
GeoJSONDocument
public GeoJSONDocument(OutputStream outputStream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
doTransform
public void doTransform(org.locationtech.jts.geom.Geometry geometry)
-
setInputCRS
public void setInputCRS(String crs) throws org.cts.crs.CRSException, org.cts.op.CoordinateOperationException
- Throws:
org.cts.crs.CRSExceptionorg.cts.op.CoordinateOperationException
-
setRounding
public void setRounding(int rounding)
-
writeFooter
public void writeFooter() throws IOException- Throws:
IOException
-
writeHeader
public void writeHeader() throws IOException- Throws:
IOException
-
writeProfile
public void writeProfile(CutProfile profile) throws IOException
- Parameters:
profile-- Throws:
IOException
-
writeCutPoint
public void writeCutPoint(CutPoint cutPoint) throws IOException
- Parameters:
cutPoint-- Throws:
IOException
-
writeTopographic
public void writeTopographic(List<Triangle> triVertices, List<org.locationtech.jts.geom.Coordinate> vertices) throws IOException
Write topography triangles- Parameters:
triVertices-vertices-- Throws:
IOException
-
writeCoordinate
public void writeCoordinate(org.locationtech.jts.geom.Coordinate coordinate) throws IOExceptionWrite coordinate positions.- Parameters:
coordinate-- Throws:
IOException
-
writeNumber
public void writeNumber(double number) throws IOException- Throws:
IOException
-
-