com.moseph.gis.raster
Class RasterReader

java.lang.Object
  extended by com.moseph.gis.raster.RasterReader

public class RasterReader
extends java.lang.Object

A class which reads an ESRI ASCII raster file into a Raster

Author:
dmrust

Constructor Summary
RasterReader()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 Raster readRaster(java.lang.String filename)
          The most useful method - reads a raster file, and returns a Raster object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterReader

public RasterReader()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

readRaster

public Raster readRaster(java.lang.String filename)
                  throws java.io.IOException,
                         java.lang.RuntimeException
The most useful method - reads a raster file, and returns a Raster object. Throws standard IOExceptions associated with opening and reading files, and RuntimeExceptions if there are problems with the file format

Parameters:
filename -
Returns:
the Raster object read in from the file
Throws:
java.io.IOException
java.lang.RuntimeException