|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.tools.RasterOptionsParser
public class RasterOptionsParser
The RasterOptionsParser
supplies methods for creating a raster from the command line.
Field Summary | |
---|---|
static String |
OPT_OUTPUT_TYPE
Output type to unify raster command line tools: output_type |
static String |
OPT_OUTPUT_TYPE_ABBREV
Output type abbreviation to unify raster command line tools: ot |
static String |
OPT_RASTER_LOCATION
The 'input' raster location |
static String |
OPT_RASTER_OUT_LOC
Output directory to unify raster command line tools: output_location |
static String |
OPT_RASTER_OUT_LOC_ABBREV
Output directory abbreviation to unify raster command line tools: rod |
static String |
OPT_RECURSIVE
Should the raster directory be read recursively |
static String |
OPT_TYPE_DESC
Description of a raster type to unify raster command line tools: tiff|jpg|png|... |
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 File |
getRasterLocation(org.apache.commons.cli.CommandLine line)
Return the rasters location. |
static AbstractCoverage |
loadCoverage(org.apache.commons.cli.CommandLine line,
RasterIOOptions options)
|
static RasterIOOptions |
parseRasterIOOptions(org.apache.commons.cli.CommandLine line)
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 |
---|
public static final String OPT_RASTER_LOCATION
public static final String OPT_RECURSIVE
public static final String OPT_RASTER_OUT_LOC
public static final String OPT_RASTER_OUT_LOC_ABBREV
public static final String OPT_OUTPUT_TYPE
public static final String OPT_OUTPUT_TYPE_ABBREV
public static final String OPT_TYPE_DESC
Constructor Detail |
---|
public RasterOptionsParser()
Method Detail |
---|
public static RasterIOOptions parseRasterIOOptions(org.apache.commons.cli.CommandLine line) throws org.apache.commons.cli.ParseException
RasterIOOptions
from them.
line
-
org.apache.commons.cli.ParseException
public static void addRasterIOLineOptions(org.apache.commons.cli.Options options)
options
- public static AbstractCoverage loadCoverage(org.apache.commons.cli.CommandLine line, RasterIOOptions options) throws IOException
line
- to get the raster directory and the recursive option from.options
- created from parseRasterIOOptions(CommandLine)
IOException
public static File getRasterLocation(org.apache.commons.cli.CommandLine line) throws IOException
line
- to get the location from.
IOException
- if the location does not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |