|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.layer.vpf.CoverageTable
Encapsulate a VPF coverage directory. This class handles requests that happen for a particular coverage type (political boundary, road, etc.) for a particular library (north america, browse, etc.).
Nested Class Summary | |
static class |
CoverageTable.FeatureClassRec
Feature Type Information read from VPF fca files. |
Field Summary | |
boolean |
appendDot
do we need to append a '.' to three-character file names |
static char |
AREA_FEATURETYPE
|
FeatureClassInfo[] |
areainfo
featureclasses used for the area feature type |
int[] |
cachedAreaSchema
hack - used by AreaTable |
int[] |
cachedCPointSchema
hack - used by nodetable |
int[] |
cachedEPointSchema
hack - used by nodetable |
int[] |
cachedLineSchema
hack - used by EdgeTable |
int[] |
cachedTextSchema
hack - used by TextTable |
protected CoverageAttributeTable |
cat
Need this in case we have to go from the coverage type->feature type->tile |
static int[] |
charVDTschemalength
expected schema lengths for char.vdt files |
static char[] |
charVDTschematype
expected schema types for char.vdt files |
static char |
COMPLEX_FEATURETYPE
|
java.lang.String |
covtype
our coverage type - such as "po", "bnd", "hydro" |
static char |
CPOINT_FEATURETYPE
|
FeatureClassInfo[] |
cpointinfo
featureclasses used for the connected node feature type |
boolean |
doAntarcticaWorkaround
hackage for the antactica polygon in DCW browse coverage |
static char |
EDGE_FEATURETYPE
|
static char |
EPOINT_FEATURETYPE
|
FeatureClassInfo[] |
epointinfo
featureclasses used for the entity node feature type |
protected java.util.Hashtable |
featureTypeInfo
|
protected java.util.Hashtable |
featureTypes
Feature classes to look up FeatureClassInfo via feature name. |
static int[] |
intVDTschemalength
expected schema lengths for int.vdt files |
static char[] |
intVDTschematype
expected schema types for int.vdt files |
FeatureClassInfo[] |
lineinfo
featureclasses used for the line feature type |
static char |
SKIP_FEATURETYPE
|
protected java.lang.String |
tablepath
the directory for our coverage type |
static char |
TEXT_FEATURETYPE
|
FeatureClassInfo[] |
textinfo
featureclasses used for the text feature type |
static char |
UPOINT_FEATURETYPE
|
static java.lang.String[] |
VDTColumnNames
required column names for char.vdt and int.vdt files |
Constructor Summary | |
CoverageTable(java.lang.String path,
java.lang.String covtype)
Construct a CoverageTable object. |
|
CoverageTable(java.lang.String path,
java.lang.String covtype,
CoverageAttributeTable cat)
Construct a CoverageTable object. |
Method Summary | |
boolean |
drawFeatures(VPFFeatureWarehouse warehouse,
LatLonPoint ll1,
LatLonPoint ll2,
float dpplat,
float dpplon)
This function uses the warehouse to get a list of features, and then looks in the featureList to see what feature tables handle those features. |
protected boolean |
drawFeaturesFromThematicIndex(FeatureClassInfo fci,
VPFFeatureWarehouse warehouse,
com.bbn.openmap.layer.vpf.TableHolder tables,
LatLonPoint ll1,
LatLonPoint ll2,
float dpplat,
float dpplon,
java.lang.String currentFeature,
char featureType)
This function gets the thematic index from the FeatureClassInfo object, and uses it to look up the tiles that contain the currentFeature. |
void |
drawTile(TileDirectory drawtd,
VPFGraphicWarehouse warehouse,
LatLonPoint ll1,
LatLonPoint ll2,
float dpplat,
float dpplon)
Given a tile directory, go through the entries in the edg/fac/txt files, and send those entries to the warehouse. |
java.lang.String |
getAreaDescription(java.util.List areaid,
MutableInt retval)
|
CoverageAttributeTable |
getCoverageAttributeTable()
|
java.lang.String |
getCPointDescription(java.util.List pointid,
MutableInt retval)
|
java.lang.String |
getDataPath()
Get the path for this coverage |
java.lang.String |
getDescription(java.lang.String t,
java.lang.String a,
int v)
|
java.lang.String |
getDescription(java.lang.String t,
java.lang.String a,
java.lang.String v)
|
java.lang.String |
getEPointDescription(java.util.List pointid,
MutableInt retval)
|
java.util.Map |
getFeatureClasses()
Returns all the feature classes |
FeatureClassInfo |
getFeatureClassInfo(java.lang.String featureType)
Returns the FeatureClassInfo object corresponding to the feature type. |
java.util.Hashtable |
getFeatureTypeInfo()
Returns a map from feature name to FeatureClassRec |
java.lang.String |
getLineDescription(java.util.List lineid,
MutableInt retval)
|
java.lang.String |
getTextDescription(java.util.List textid,
MutableInt retval)
|
static void |
main(java.lang.String[] args)
|
void |
setCoverateAttributeTable(CoverageAttributeTable cat)
|
protected char |
whatFeatureType(VPFWarehouse warehouse,
java.lang.String featureName)
Given a feature type name, figure out if the warehouse thinks it should *NOT* be drawn. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final java.lang.String covtype
protected final java.lang.String tablepath
public int[] cachedLineSchema
public int[] cachedAreaSchema
public int[] cachedTextSchema
public int[] cachedEPointSchema
public int[] cachedCPointSchema
public FeatureClassInfo[] lineinfo
public FeatureClassInfo[] areainfo
public FeatureClassInfo[] textinfo
public FeatureClassInfo[] epointinfo
public FeatureClassInfo[] cpointinfo
protected java.util.Hashtable featureTypes
protected java.util.Hashtable featureTypeInfo
public boolean appendDot
protected CoverageAttributeTable cat
public final boolean doAntarcticaWorkaround
public static final char EDGE_FEATURETYPE
public static final char AREA_FEATURETYPE
public static final char TEXT_FEATURETYPE
public static final char UPOINT_FEATURETYPE
public static final char EPOINT_FEATURETYPE
public static final char CPOINT_FEATURETYPE
public static final char COMPLEX_FEATURETYPE
public static final char SKIP_FEATURETYPE
public static final java.lang.String[] VDTColumnNames
public static final char[] intVDTschematype
public static final int[] intVDTschemalength
public static final char[] charVDTschematype
public static final int[] charVDTschemalength
Constructor Detail |
public CoverageTable(java.lang.String path, java.lang.String covtype)
path
- the path to the parent directory of where our data
residescovtype
- the subdirectory name for the coverage datapublic CoverageTable(java.lang.String path, java.lang.String covtype, CoverageAttributeTable cat)
path
- the path to the parent directory of where our data
residescovtype
- the subdirectory name for the coverage datacat
- the CoverageAttributeTable reference, in case we
need to backtrack the tiles through the feature tables.Method Detail |
public java.lang.String getDataPath()
public java.util.Map getFeatureClasses()
public FeatureClassInfo getFeatureClassInfo(java.lang.String featureType)
featureType
- the name of the feature to get
public java.lang.String getDescription(java.lang.String t, java.lang.String a, int v)
public java.lang.String getDescription(java.lang.String t, java.lang.String a, java.lang.String v)
public java.lang.String getLineDescription(java.util.List lineid, MutableInt retval)
public java.lang.String getTextDescription(java.util.List textid, MutableInt retval)
public java.lang.String getEPointDescription(java.util.List pointid, MutableInt retval)
public java.lang.String getCPointDescription(java.util.List pointid, MutableInt retval)
public java.lang.String getAreaDescription(java.util.List areaid, MutableInt retval)
public void setCoverateAttributeTable(CoverageAttributeTable cat)
public CoverageAttributeTable getCoverageAttributeTable()
public void drawTile(TileDirectory drawtd, VPFGraphicWarehouse warehouse, LatLonPoint ll1, LatLonPoint ll2, float dpplat, float dpplon)
public boolean drawFeatures(VPFFeatureWarehouse warehouse, LatLonPoint ll1, LatLonPoint ll2, float dpplat, float dpplon)
protected boolean drawFeaturesFromThematicIndex(FeatureClassInfo fci, VPFFeatureWarehouse warehouse, com.bbn.openmap.layer.vpf.TableHolder tables, LatLonPoint ll1, LatLonPoint ll2, float dpplat, float dpplon, java.lang.String currentFeature, char featureType)
fci
- the FeatureClassInfo (feature table)warehouse
- the VPFFeatureGraphicWarehouse to use to draw
the graphics.ll1
- the upper left corner of the map.ll2
- the lower right corner of the map.dpplat
- degrees per pixel latitude direction.dpplon
- degrees per pixel longitude direction.currentFeature
- the feature string (roadl)featureType
- the CoverageTable letter representation of
the feature type.protected char whatFeatureType(VPFWarehouse warehouse, java.lang.String featureName)
warehouse
- the warehouse to build the graphics.featureName
- the VPF name of the feature (polbndl, for
example).
public java.util.Hashtable getFeatureTypeInfo()
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |