deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official

org.deegree.tools.coverage.utils
Class RasterOptionsParser

java.lang.Object
  extended by org.deegree.tools.coverage.utils.RasterOptionsParser

public class RasterOptionsParser
extends Object

The RasterOptionsParser supplies methods for creating a raster from the command line.

Version:
$Revision: 21982 $, $Date: 2010-01-18 14:44:03 +0100 (Mo, 18 Jan 2010) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Field Summary
static String OPT_RASTER_DIR
          The 'input' raster dir
static String OPT_RECURSIVE
          Should the raster directory be read recursively
 
Constructor Summary
RasterOptionsParser()
           
 
Method Summary
static void addRasterIOLineOptions(org.apache.commons.cli.Options options)
          Add the rasterio (loading) options to the given cli options.
static org.deegree.coverage.raster.AbstractRaster loadRaster(org.apache.commons.cli.CommandLine line, org.deegree.coverage.raster.io.RasterIOOptions options)
           
static org.deegree.coverage.raster.io.RasterIOOptions parseRasterIOOptions(org.apache.commons.cli.CommandLine line, org.deegree.coverage.raster.data.info.DataType noDataType)
          Read options from the command line and create a RasterIOOptions from them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPT_RASTER_DIR

public static final String OPT_RASTER_DIR
The 'input' raster dir

See Also:
Constant Field Values

OPT_RECURSIVE

public static final String OPT_RECURSIVE
Should the raster directory be read recursively

See Also:
Constant Field Values
Constructor Detail

RasterOptionsParser

public RasterOptionsParser()
Method Detail

parseRasterIOOptions

public static org.deegree.coverage.raster.io.RasterIOOptions parseRasterIOOptions(org.apache.commons.cli.CommandLine line,
                                                                                  org.deegree.coverage.raster.data.info.DataType noDataType)
Read options from the command line and create a RasterIOOptions from them.

Parameters:
line -
noDataType - the data type of the no data value.
Returns:
the raster io options parsed from the command line.

addRasterIOLineOptions

public static void addRasterIOLineOptions(org.apache.commons.cli.Options options)
Add the rasterio (loading) options to the given cli options.

Parameters:
options -

loadRaster

public static org.deegree.coverage.raster.AbstractRaster loadRaster(org.apache.commons.cli.CommandLine line,
                                                                    org.deegree.coverage.raster.io.RasterIOOptions options)
                                                             throws IOException
Parameters:
line - to get the raster directory and the recursive option from.
options - created from parseRasterIOOptions(CommandLine, DataType)
Returns:
the loaded abstract raster.
Throws:
IOException

deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>