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 String
crs
com.fasterxml.jackson.core.JsonGenerator
jsonGenerator
int
rounding
org.cts.op.CoordinateOperation
transform
-
Constructor Summary
Constructors Constructor Description GeoJSONDocument(OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doTransform(org.locationtech.jts.geom.Geometry geometry)
void
setInputCRS(String crs)
void
setRounding(int rounding)
void
writeCoordinate(org.locationtech.jts.geom.Coordinate coordinate)
Write coordinate positions.void
writeCutPoint(CutPoint cutPoint)
void
writeFooter()
void
writeHeader()
void
writeNumber(double number)
void
writeProfile(CutProfile profile)
void
writeTopographic(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.CRSException
org.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 IOException
Write coordinate positions.- Parameters:
coordinate
-- Throws:
IOException
-
writeNumber
public void writeNumber(double number) throws IOException
- Throws:
IOException
-
-