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 Type
    Method
    Description
    void
     
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class nz.org.riskscape.engine.output.RiskscapeWriter
    • writeInternal

      protected void writeInternal(nz.org.riskscape.engine.Tuple value, org.json.JSONWriter jsonWriter)
    • close

      public void close() throws IOException
      Throws:
      IOException
    • getStoredAt

      public URI getStoredAt()
      Specified by:
      getStoredAt in class nz.org.riskscape.engine.output.RiskscapeWriter