uk.ac.leeds.ccg.andyt.grids.exchange
Class ESRIAsciiGridExporter

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler
      extended by uk.ac.leeds.ccg.andyt.grids.exchange.ESRIAsciiGridExporter
All Implemented Interfaces:
java.io.Serializable

public class ESRIAsciiGridExporter
extends ErrorHandler

Class for exporting ESRI Asciigrid.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler
handleOutOfMemoryErrorFalse, handleOutOfMemoryErrorTrue, memoryReserve
 
Constructor Summary
ESRIAsciiGridExporter()
          Creates a new instance of ESRIAsciiGridExporter
 
Method Summary
 java.io.File toAsciiFile(Grid2DSquareCellAbstract grid2DSquareCell)
          Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns a the File to which it was written.
 java.io.File toAsciiFile(Grid2DSquareCellAbstract grid2DSquareCell, java.io.File file)
          Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns file.
 java.io.File toAsciiFile(Grid2DSquareCellAbstract grid2DSquareCell, java.io.File file, java.math.BigDecimal noDataValueBigDecimal)
          Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns file.
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler
clearMemoryReserve, initMemoryReserve, initMemoryReserve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESRIAsciiGridExporter

public ESRIAsciiGridExporter()
Creates a new instance of ESRIAsciiGridExporter

Method Detail

toAsciiFile

public java.io.File toAsciiFile(Grid2DSquareCellAbstract grid2DSquareCell)
Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns a the File to which it was written.

Parameters:
grid2DSquareCell - The Grid2DSquareCellAbstract for export.

toAsciiFile

public java.io.File toAsciiFile(Grid2DSquareCellAbstract grid2DSquareCell,
                                java.io.File file)
Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns file.

Parameters:
grid2DSquareCell - The Grid2DSquareCellAbstract for export.
file - The File to export to.

toAsciiFile

public java.io.File toAsciiFile(Grid2DSquareCellAbstract grid2DSquareCell,
                                java.io.File file,
                                java.math.BigDecimal noDataValueBigDecimal)
Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns file.

Parameters:
grid2DSquareCell - The Grid2DSquareCellAbstract for export.
file - The File to export to.
noDataValueBigDecimal - The value to be used or substituted as a noDataValue for grid2DSquareCell.