Class GrassRasterWriter


  • public class GrassRasterWriter
    extends MapWriter

    This writes native JGrass Raster maps to disk in double format.

    Since:
    1.1.0
    Author:
    Andrea Antonello - www.hydrologis.com
    • Constructor Detail

      • GrassRasterWriter

        public GrassRasterWriter()
    • Method Detail

      • write

        public boolean write​(Object dataObject)
                      throws Exception
        this method writes the new map using the geographic region and settings of the active region (dataWindow). Parameter is the dataobject holding the data
        Overrides:
        write in class MapWriter
        Throws:
        Exception
      • setParameter

        public void setParameter​(String key,
                                 Object obj)
        Description copied from class: MapWriter
        utility to set particular parameters supported keys: "novalue"
        Overrides:
        setParameter in class MapWriter
      • open

        public boolean open​(String mapPath)
        Description copied from class: MapWriter
        Open the resource
        Specified by:
        open in class MapWriter
        Parameters:
        mapPath - the full path to the resource that needs to be opened
        Returns:
        true if the resource was successfully opened