Class MapWriter
- java.lang.Object
-
- org.hortonmachine.gears.io.grasslegacy.io.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
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectdataObjectprotected WindowdataWindowprotected StringerrorStringprotected StringhistoryCommentprotected WindowmapWindowstatic intPOINT_WRITERstatic intRASTER_WRITERstatic intVECTOR_WRITERprotected intwriterType
-
Constructor Summary
Constructors Constructor Description MapWriter(int _writerType)Creates a new instance of MapReader
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetErrorString()WindowgetMapWindow()Returns the window that corresponds to the map file that the reader has opened.ObjectgetOutputDataObject()abstract booleanopen(String mapPath)Open the resourceabstract booleanopen(String fileName, String locationPath, String mapsetName)voidsetDataWindow(Window window)voidsetHistoryComment(String history)voidsetOutputDataObject(Object _dataObject)voidsetParameter(String key, Object obj)utility to set particular parameters supported keys: "novalue"booleanwrite(Object data)
-
-
-
Field Detail
-
RASTER_WRITER
public static final int RASTER_WRITER
- See Also:
- Constant Field Values
-
VECTOR_WRITER
public static final int VECTOR_WRITER
- See Also:
- Constant Field Values
-
POINT_WRITER
public static final int POINT_WRITER
- See Also:
- Constant Field Values
-
mapWindow
protected Window mapWindow
-
dataWindow
protected Window dataWindow
-
errorString
protected String errorString
-
dataObject
protected Object dataObject
-
writerType
protected int writerType
-
historyComment
protected String historyComment
-
-
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 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()
-
-