Class GrassRasterWriter
- java.lang.Object
-
- org.hortonmachine.gears.io.grasslegacy.io.MapWriter
-
- org.hortonmachine.gears.io.grasslegacy.io.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
-
-
Field Summary
-
Fields inherited from class org.hortonmachine.gears.io.grasslegacy.io.MapWriter
dataObject, dataWindow, errorString, historyComment, mapWindow, POINT_WRITER, RASTER_WRITER, VECTOR_WRITER, writerType
-
-
Constructor Summary
Constructors Constructor Description GrassRasterWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanopen(String mapPath)Open the resourcebooleanopen(String fileName, String locationPath, String mapsetName)voidsetDataWindow(Window window)voidsetOutputDataObject(Object _dataObject)voidsetParameter(String key, Object obj)utility to set particular parameters supported keys: "novalue"booleanwrite(Object dataObject)this method writes the new map using the geographic region and settings of the active region (dataWindow).-
Methods inherited from class org.hortonmachine.gears.io.grasslegacy.io.MapWriter
close, getErrorString, getMapWindow, getOutputDataObject, setHistoryComment
-
-
-
-
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
-
setOutputDataObject
public void setOutputDataObject(Object _dataObject)
- Overrides:
setOutputDataObjectin classMapWriter
-
setParameter
public void setParameter(String key, Object obj)
Description copied from class:MapWriterutility to set particular parameters supported keys: "novalue"- Overrides:
setParameterin classMapWriter
-
setDataWindow
public void setDataWindow(Window window)
- Overrides:
setDataWindowin classMapWriter
-
-