Class MapWriter

  • Direct Known Subclasses:
    GrassRasterWriter

    public abstract class MapWriter
    extends Object

    A map writer object

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

      • MapWriter

        public MapWriter​(int _writerType)
        Creates a new instance of MapReader
    • Method Detail

      • close

        public void close()
      • setOutputDataObject

        public void setOutputDataObject​(Object _dataObject)
      • getOutputDataObject

        public Object getOutputDataObject()
      • getMapWindow

        public Window getMapWindow()
        Returns the window that corresponds to the map file that the reader has opened.
      • setDataWindow

        public void setDataWindow​(Window window)
      • setParameter

        public void setParameter​(String key,
                                 Object obj)
        utility to set particular parameters supported keys: "novalue"
        Parameters:
        key -
        obj -
      • setHistoryComment

        public void setHistoryComment​(String history)
      • open

        public abstract boolean open​(String fileName,
                                     String locationPath,
                                     String mapsetName)
      • open

        public abstract boolean open​(String mapPath)
        Open the resource
        Parameters:
        mapPath - the full path to the resource that needs to be opened
        Returns:
        true if the resource was successfully opened
      • getErrorString

        public String getErrorString()