Package nz.org.riskscape.engine.output
Class GeoJSONWriter
java.lang.Object
nz.org.riskscape.engine.output.RiskscapeWriter
nz.org.riskscape.engine.output.GeoJSONWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class GeoJSONWriter
extends nz.org.riskscape.engine.output.RiskscapeWriter
A RiskscapeWriter
that writes in GeoJSON format as specified in RFC7926.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static nz.org.riskscape.problem.ResultOrProblems<GeoJSONWriter>
of
(nz.org.riskscape.engine.types.Struct type, nz.org.riskscape.engine.resource.CreateHandle handle, nz.org.riskscape.engine.Project project) void
write
(nz.org.riskscape.engine.Tuple value) protected void
writeInternal
(nz.org.riskscape.engine.Tuple value, org.json.JSONWriter jsonWriter)
-
Method Details
-
of
public static nz.org.riskscape.problem.ResultOrProblems<GeoJSONWriter> of(nz.org.riskscape.engine.types.Struct type, nz.org.riskscape.engine.resource.CreateHandle handle, nz.org.riskscape.engine.Project project) -
write
public void write(nz.org.riskscape.engine.Tuple value) - Specified by:
write
in classnz.org.riskscape.engine.output.RiskscapeWriter
-
writeInternal
protected void writeInternal(nz.org.riskscape.engine.Tuple value, org.json.JSONWriter jsonWriter) -
close
- Throws:
IOException
-
getStoredAt
- Specified by:
getStoredAt
in classnz.org.riskscape.engine.output.RiskscapeWriter
-