|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.coverage.tools.RasterCommandUtils
public class RasterCommandUtils
This class contains some static convenience methods for raster commandline tools.
| Constructor Summary | |
|---|---|
RasterCommandUtils()
|
|
| Method Summary | |
|---|---|
static List<File> |
getAllFiles(String[] args,
boolean recurse)
Get all files from the given location(s). |
static List<File> |
getAllFiles(String[] args,
boolean recurse,
String fileExt)
Get all files from the given location(s). |
static InterpolationType |
getInterpolationType(String type)
Returns an InterpolationType for a string shortcut. |
static byte[] |
parseBackgroundValue(String background)
Parse a background value which is either a 0xdecafbad hex value or a float value. |
static Envelope |
parseBBOX(String bbox)
Retruns an envelope for given bbox string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RasterCommandUtils()
| Method Detail |
|---|
public static InterpolationType getInterpolationType(String type)
throws org.apache.commons.cli.ParseException
type - bl or nn
org.apache.commons.cli.ParseException - if the type is not supported
public static Envelope parseBBOX(String bbox)
throws org.apache.commons.cli.ParseException
bbox - comma separated bbox
org.apache.commons.cli.ParseException - if the bbox is invalid
public static byte[] parseBackgroundValue(String background)
throws org.apache.commons.cli.ParseException
background -
org.apache.commons.cli.ParseException
public static List<File> getAllFiles(String[] args,
boolean recurse,
String fileExt)
args - array with file and directory names.recurse - recurse into all directoriesfileExt - only get files with the given file suffix
public static List<File> getAllFiles(String[] args,
boolean recurse)
args - array with file and directory names.recurse - recurse into all directories
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||