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

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.grids.exchange.ESRIAsciiGridExporter

public class ESRIAsciiGridExporter
extends java.lang.Object

Class for exporting ESRI Asciigrid.


Constructor Summary
ESRIAsciiGridExporter()
          Creates a new instance of ESRIAsciiGridExporter
 
Method Summary
protected  java.io.File toAsciiFile(AbstractGrid2DSquareCell grid2DSquareCell)
          Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns a the File to which it was written.
 java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell, boolean handleOutOfMemoryError)
          Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns a the File to which it was written.
protected  java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell, java.io.File file)
          Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns file.
protected  java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell, java.io.File file, java.math.BigDecimal noDataValueBigDecimal)
          Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns file.
 java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell, java.io.File file, java.math.BigDecimal noDataValueBigDecimal, boolean handleOutOfMemoryError)
          Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns file.
 java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell, java.io.File file, boolean handleOutOfMemoryError)
          Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns file.
 
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(AbstractGrid2DSquareCell _Grid2DSquareCell,
                                boolean handleOutOfMemoryError)
Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns a the File to which it was written.

Parameters:
_Grid2DSquareCell - TheAbstractGrid2DSquareCelll for export.
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

toAsciiFile

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

Parameters:
grid2DSquareCell - TheAbstractGrid2DSquareCelll for export.

toAsciiFile

public java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell,
                                java.io.File file,
                                boolean handleOutOfMemoryError)
Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns file.

Parameters:
_Grid2DSquareCell - TheAbstractGrid2DSquareCelll for export.
file - The File to export to.
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

toAsciiFile

protected java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell,
                                   java.io.File file)
Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns file.

Parameters:
_Grid2DSquareCell - TheAbstractGrid2DSquareCelll for export.
file - The File to export to.

toAsciiFile

public java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell,
                                java.io.File file,
                                java.math.BigDecimal noDataValueBigDecimal,
                                boolean handleOutOfMemoryError)
Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns file.

Parameters:
_Grid2DSquareCell - TheAbstractGrid2DSquareCelll for export.
file - The File to export to.
noDataValueBigDecimal - The value to be used or substituted as a noDataValue for _Grid2DSquareCell.
handleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated, then the method is re-called. If false then OutOfMemoryErrors are caught and thrown.

toAsciiFile

protected java.io.File toAsciiFile(AbstractGrid2DSquareCell _Grid2DSquareCell,
                                   java.io.File file,
                                   java.math.BigDecimal noDataValueBigDecimal)
Writes _Grid2DSquareCell out to file in ESRI Asciigrid format and returns file.

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