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(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, 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(Grid2DSquareCellAbstract grid2DSquareCell, java.io.File file)
          Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns file.
protected  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.
 java.io.File toAsciiFile(Grid2DSquareCellAbstract 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(Grid2DSquareCellAbstract 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(Grid2DSquareCellAbstract grid2DSquareCell,
                                boolean handleOutOfMemoryError)
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.
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(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,
                                boolean handleOutOfMemoryError)
Writes grid2DSquareCell out to file in ESRI Asciigrid format and returns file.

Parameters:
grid2DSquareCell - The Grid2DSquareCellAbstract 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(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,
                                boolean handleOutOfMemoryError)
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.
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(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.