|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.dataAccess.dted.DTEDAdmin
public class DTEDAdmin
DTEDAdmin is a utility class that finds DTED frame files in order to copy or delete them. You can specify coordinate boundaries and DTED level as filters. Usage:
-help Print usage statement, with arguments. (0 arguments expected) -boundary upper lat, left lon, lower lat, right lon (4 arguments expected) -copy Copy files to DTED directory. (1 argument expected) -level DTED level to consider (0, 1, 2). (1 argument expected) -outside Use files outside boundary. (0 arguments expected) -query Print out files that meet parameters. (0 arguments expected) -remove Delete DTED files. (0 arguments expected) -source The source DTED directory path. (1 argument expected) -verbose Print out progress. (0 arguments expected)
Field Summary | |
---|---|
static int |
DTED_EQUAL_LEVELS
|
static int |
DTED_LARGER_LEVELS
|
static int |
DTED_NOTEQUAL_LEVELS
|
static int |
DTED_SMALLER_LEVELS
|
protected int |
equal_
|
protected java.util.LinkedList |
frameList
|
protected boolean |
framesPrepped
|
protected boolean |
inside_
|
protected int |
level_
|
protected DTEDLocator |
locator
|
protected double |
lrlat_
|
protected double |
lrlon_
|
static int |
MAXLEVELS
|
protected double |
ullat_
|
protected double |
ullon_
|
Constructor Summary | |
---|---|
DTEDAdmin()
Create a DTEDAdmin object, with file filter parameters to be specified later. |
|
DTEDAdmin(java.lang.String dtedDir,
double ullat,
double ullon,
double lrlat,
double lrlon,
int level,
boolean inside,
int equal)
Create a DTEDAdmin with the following parameters. |
Method Summary | |
---|---|
protected boolean |
copyTo(java.util.LinkedList files,
java.lang.String todteddir)
Get the internal frame list and copy those frames to the given directory. |
boolean |
copyTo(java.lang.String todteddir)
Get the internal frame list and copy those frames to the given directory. |
protected java.util.LinkedList |
getFrameList()
Get the internal frame list, a LinkedList expected to hold File objects. |
protected java.util.LinkedList |
getFrameList(java.lang.String dtedDir)
Figure out the frames with the current parameters for the source directory provided. |
static void |
main(java.lang.String[] argv)
Run DTEDAdmin from the command line. |
protected java.util.LinkedList |
organizeFrames(java.lang.String dtedDir,
double ullat,
double ullon,
double lrlat,
double lrlon,
int level,
boolean inside,
int equal)
Create the internal list of frame files based on the following parameters. |
boolean |
query()
Print out a list of DTED files that meet the current internal parameters. |
protected boolean |
query(java.util.LinkedList files)
Print out a list of DTED files that are on the provided list of File objects. |
boolean |
remove()
Delete the DTED files that meet the internal file list parameters. |
protected boolean |
remove(java.util.LinkedList files)
Delete the DTED files that meet the internal file list parameters. |
protected void |
setFrameList(java.util.LinkedList ll)
Set the internal frame list, a LinkedList expected to hold File objects. |
void |
setFrameList(java.lang.String dtedDir,
double ullat,
double ullon,
double lrlat,
double lrlon,
int level,
boolean inside,
int equal)
Create the internal list of frame files based on the following parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean framesPrepped
protected int level_
protected double ullat_
protected double ullon_
protected double lrlat_
protected double lrlon_
protected boolean inside_
protected int equal_
protected java.util.LinkedList frameList
protected DTEDLocator locator
public static final int MAXLEVELS
public static final int DTED_LARGER_LEVELS
public static final int DTED_SMALLER_LEVELS
public static final int DTED_NOTEQUAL_LEVELS
public static final int DTED_EQUAL_LEVELS
Constructor Detail |
---|
public DTEDAdmin()
public DTEDAdmin(java.lang.String dtedDir, double ullat, double ullon, double lrlat, double lrlon, int level, boolean inside, int equal)
dtedDir
- the source dted directoryullat
- the upper latitude of the boundary box to use.ullon
- the western latitude of the boundary box to use,
greater than -180.lrlat
- the lower latitude of the boundary box to use.lrlon
- the eastern latitude of the boundary box to use,
less than 180.level
- the dted level to consider.inside
- if true, files inside the boundary box will be
considered. If false, files outside the box will be.equal
- filter for the level - Possible values are
DTED_LARGER_LEVELS (any file with a level greater than
the one specified) , DTED_SMALLER_LEVELS (any file with
a level less than the one specified),
DTED_NOTEQUAL_LEVELS (any file with a level not equal to
the one specified), and DTED_EQUAL_LEVELS (any file with
the level specified).Method Detail |
---|
protected java.util.LinkedList organizeFrames(java.lang.String dtedDir, double ullat, double ullon, double lrlat, double lrlon, int level, boolean inside, int equal)
dtedDir
- the source dted directoryullat
- the upper latitude of the boundary box to use.ullon
- the western latitude of the boundary box to use,
greater than -180.lrlat
- the lower latitude of the boundary box to use.lrlon
- the eastern latitude of the boundary box to use,
less than 180.level
- the dted level to consider.inside
- if true, files inside the boundary box will be
considered. If false, files outside the box will be.equal
- filter for the level - Possible values are
DTED_LARGER_LEVELS (any file with a level greater than
the one specified) , DTED_SMALLER_LEVELS (any file with
a level less than the one specified),
DTED_NOTEQUAL_LEVELS (any file with a level not equal to
the one specified), and DTED_EQUAL_LEVELS (any file with
the level specified).public void setFrameList(java.lang.String dtedDir, double ullat, double ullon, double lrlat, double lrlon, int level, boolean inside, int equal)
dtedDir
- the source dted directoryullat
- the upper latitude of the boundary box to use.ullon
- the western latitude of the boundary box to use,
greater than -180.lrlat
- the lower latitude of the boundary box to use.lrlon
- the eastern latitude of the boundary box to use,
less than 180.level
- the dted level to consider.inside
- if true, files inside the boundary box will be
considered. If false, files outside the box will be.equal
- filter for the level - Possible values are
DTED_LARGER_LEVELS (any file with a level greater than
the one specified) , DTED_SMALLER_LEVELS (any file with
a level less than the one specified),
DTED_NOTEQUAL_LEVELS (any file with a level not equal to
the one specified), and DTED_EQUAL_LEVELS (any file with
the level specified).protected void setFrameList(java.util.LinkedList ll)
protected java.util.LinkedList getFrameList()
protected java.util.LinkedList getFrameList(java.lang.String dtedDir)
public boolean copyTo(java.lang.String todteddir)
protected boolean copyTo(java.util.LinkedList files, java.lang.String todteddir)
files
- a LinkedList of Files to copy.todteddir
- a dted directory to copy files into.
public boolean remove()
protected boolean remove(java.util.LinkedList files)
files
- the LinkedList of File objects representing DTED
frame files.
public boolean query()
protected boolean query(java.util.LinkedList files)
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |