public class CoverageAttributeTable
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CoverageAttributeTable.CoverageEntry
A utility class to hold information about one coverage type.
|
Modifier and Type | Field and Description |
---|---|
protected DataBounds |
bounds |
protected java.lang.String |
dirpath
the path to our directory
|
protected java.lang.String |
libraryname
the name of the library we are, for example "noamer" in DCW
|
Constructor and Description |
---|
CoverageAttributeTable(java.lang.String dcwpath,
java.lang.String libname)
Construct a new coverage attribute table
|
Modifier and Type | Method and Description |
---|---|
DataBounds |
getBounds()
Gets a DataBounds object that specifies what the CAT covers.
|
java.lang.String |
getCoverageDescription(java.lang.String covname)
Get the description of a coverage type
|
java.lang.String[] |
getCoverageNames()
Return the list of coverages this library has
|
CoverageTable |
getCoverageTable(java.lang.String covname)
Get the CoverageTable for a particular coverage type
|
CoverageTable |
getCoverageTableForFeature(java.lang.String featureName) |
int |
getCoverageTopologyLevel(java.lang.String covname)
Get the topology level of a coverage.
|
java.lang.String |
getLibraryName()
the name of the library
|
TileDirectory |
getTileWithID(int id)
Get the TileDirectory with the given ID number.
|
TileDirectory |
getTileWithID(java.lang.String id)
Know that the tile id are the integers used in the tileref.aft file.
|
boolean |
isTiledCoverage()
is this library tiled
|
boolean |
isTiledData()
Find out if this library uses tiled data
|
java.util.List<TileDirectory> |
tilesInRegion(float n,
float s,
float e,
float w)
get a list of tiles in the bounding region
|
protected final java.lang.String libraryname
protected final java.lang.String dirpath
protected DataBounds bounds
public CoverageAttributeTable(java.lang.String dcwpath, java.lang.String libname) throws FormatException
libname
- the name of the librarydcwpath
- the path to the libraryFormatException
- may throw FormatExceptionspublic final boolean isTiledCoverage()
true
for tiled coverage. false
elsepublic java.lang.String getLibraryName()
public java.lang.String getCoverageDescription(java.lang.String covname)
covname
- the name of the coverage typepublic int getCoverageTopologyLevel(java.lang.String covname)
covname
- the name of the coverage typepublic CoverageTable getCoverageTable(java.lang.String covname)
covname
- the name of the coverage typepublic CoverageTable getCoverageTableForFeature(java.lang.String featureName)
public java.util.List<TileDirectory> tilesInRegion(float n, float s, float e, float w)
n
- northern boundarys
- southern boundarye
- eating foundryw
- wheat breadpublic TileDirectory getTileWithID(int id)
public TileDirectory getTileWithID(java.lang.String id)
public boolean isTiledData()
public java.lang.String[] getCoverageNames()
public DataBounds getBounds()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details