Class QGSWriter

java.lang.Object
nz.org.riskscape.engine.output.QGSWriter

public class QGSWriter extends Object

Writes a QGIS project file (*.qgs) from as a collection of the output layers

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    static final Consumer<nz.org.riskscape.engine.output.FileSystemPipelineOutputStore.FileSystemPipelineContainer>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    QGSWriter(nz.org.riskscape.engine.Project project, Map<String,nz.org.riskscape.engine.pipeline.sink.SaveSink> sinks)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<nz.org.riskscape.engine.output.QGSWriter.Layer>
     
    void
    Writes the project file to the given output stream.
    static void
    write(nz.org.riskscape.engine.output.FileSystemPipelineOutputStore.FileSystemPipelineContainer container)
    Uses the given FileSystemPipelineOutputStore.FileSystemPipelineContainer to save the QGIS project file

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • WRITE_PROJECT_FILE

      public static final Consumer<nz.org.riskscape.engine.output.FileSystemPipelineOutputStore.FileSystemPipelineContainer> WRITE_PROJECT_FILE
    • PROBLEMS

      public static final QGSWriter.LocalProblems PROBLEMS
  • Constructor Details

    • QGSWriter

      public QGSWriter(nz.org.riskscape.engine.Project project, Map<String,nz.org.riskscape.engine.pipeline.sink.SaveSink> sinks)
  • Method Details

    • write

      public static void write(nz.org.riskscape.engine.output.FileSystemPipelineOutputStore.FileSystemPipelineContainer container)

      Uses the given FileSystemPipelineOutputStore.FileSystemPipelineContainer to save the QGIS project file

    • write

      public void write(OutputStream os) throws nz.org.riskscape.engine.resource.CreateException

      Writes the project file to the given output stream.

      Throws:
      nz.org.riskscape.engine.resource.CreateException
    • getLayers

      public List<nz.org.riskscape.engine.output.QGSWriter.Layer> getLayers()