|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.vpf.DcwRecordFile com.bbn.openmap.layer.vpf.FeatureClassInfo
public class FeatureClassInfo
This class wraps a feature type file (potext.tft, polbndl.lft, etc) from VPF. It maintains sufficient information about the table it is indexed from so that it can take a List of values, rather than a single value. It also knows about its containing CoverageTable so it can look up information in int.vdt and char.vdt.
Field Summary | |
---|---|
protected char |
featureType
the type of feature this table represents |
protected DcwThematicIndex |
thematicIndex
the thematic index for the tile_id column |
static java.lang.String |
TILE_ID_COLUMN_NAME
the name of the column where tiling information lives |
protected java.lang.String |
tileFileColName
the name of the column with the primitive id |
protected java.lang.String |
tileFileName
the name of the primitive file: edg, fac, end, cnd |
Fields inherited from class com.bbn.openmap.layer.vpf.DcwRecordFile |
---|
byteorder, columnInfo, documentationFileName, filename, ID_COLUMN_NAME, inputFile, MSBFirst, recordLength, tableDescription, tablename, vli |
Constructor Summary | |
---|---|
FeatureClassInfo(CoverageTable cthis,
java.lang.String colname,
java.lang.String tablepath,
java.lang.String ftname)
Construct a FeatureClassInfo. |
|
FeatureClassInfo(CoverageTable cthis,
java.lang.String colname,
java.lang.String tablepath,
java.lang.String ftname,
java.lang.String tileDirFile,
java.lang.String tileDirFileColName)
Construct a FeatureClassInfo that can be used for feature search |
Method Summary | |
---|---|
void |
checkInit()
Check to see if the file has been fully initialized, call run() to do that if needed. |
boolean |
close(boolean done)
Implement the Closable interface |
java.lang.String |
columnNameString()
|
void |
findYourself(DcwRecordFile rf)
Probe the DcwRecordFile looking for what column we are in. |
protected java.lang.String |
getAttribute(DcwColumnInfo dci,
java.lang.Object colObj,
MutableInt type)
|
java.lang.String |
getAttribute(int ftid,
int colIndex,
MutableInt type)
Given a row from the primitive table, this function returns a full string description of the row |
java.lang.String |
getDescription(java.util.List<java.lang.Object> l,
MutableInt type)
Given a row from the primitive table, this function returns a full string description of the row |
int |
getFaccIndex()
Returns the column position of the f_code column. |
char |
getFeatureType()
Return the type of feature this table is for. |
DcwThematicIndex |
getThematicIndex()
Returns the thematic index for the tile_id column, if it has been initialized. |
int |
getTileIdIndex()
Returns the column position of the tile_id column. |
int |
getTilePrimitiveIdColIndex()
Returns the column position of the primitive id column. |
java.lang.String |
getTileThematicFileName()
Returns the file name (no path info) of the thematic index for the tile_id column. |
TilingAdapter |
getTilingAdapter()
Returns a TilingAdapter suitable for retrieving primitive ids from records in this feature table. |
boolean |
initThematicIndex(java.lang.String path)
Causes the thematic index for the tile_id column to be initialized. |
void |
run()
Complete the initialization of the FeatureClassInfo. |
Methods inherited from class com.bbn.openmap.layer.vpf.DcwRecordFile |
---|
close, finalize, finishInitialization, getColumnCount, getColumnInfo, getColumnName, getDescription, getDocumentationFilename, getRecordCount, getRecordLength, getRow, getRow, getTableFile, getTableName, getTilingAdapter, getTilingAdapter, getTilingAdapter, lookupSchema, lookupSchema, main, parseAllRowsAndPrintSome, parseRow, parseRow, parseSomeRowsAndPrint, printSchema, reopen, seekToRow, whatColumn |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String tileFileName
protected java.lang.String tileFileColName
protected char featureType
public static final java.lang.String TILE_ID_COLUMN_NAME
protected DcwThematicIndex thematicIndex
Constructor Detail |
---|
public FeatureClassInfo(CoverageTable cthis, java.lang.String colname, java.lang.String tablepath, java.lang.String ftname) throws FormatException
cthis
- the CoverageTable to use for vdt lookupscolname
- the column name from the primitive tabletablepath
- the directory of the feature tableftname
- the name of the feature type
FormatException
- some error was encounteredpublic FeatureClassInfo(CoverageTable cthis, java.lang.String colname, java.lang.String tablepath, java.lang.String ftname, java.lang.String tileDirFile, java.lang.String tileDirFileColName) throws FormatException
cthis
- the CoverageTable to use for vdt lookupscolname
- the column name from the primitive tabletablepath
- the directory of the feature tableftname
- the name of the feature typetileDirFile
- the name of the primitive filetileDirFileColName
- the name of the primitive id column
FormatException
- some error was encounteredMethod Detail |
---|
public TilingAdapter getTilingAdapter()
public java.lang.String getTileThematicFileName()
public boolean initThematicIndex(java.lang.String path)
path
- the path to the directory where the index lives
public DcwThematicIndex getThematicIndex()
public int getTileIdIndex()
DcwRecordFile.whatColumn(String)
public int getFaccIndex()
DcwRecordFile.whatColumn(String)
public int getTilePrimitiveIdColIndex()
DcwRecordFile.whatColumn(String)
public char getFeatureType()
CoverageTable.AREA_FEATURETYPE
public void run()
run
in interface java.lang.Runnable
public boolean close(boolean done)
close
in interface Closable
done
- true
indicates that this is a
permanent closure. false
indicates that
the object may be used again later, as this is only an
attempt to temporarily reclaim resources
true
indicates the object is still
usable. false
indicates that the object
is now unusable, and any references to it should be
released so the garbage collector can do its job.public void findYourself(DcwRecordFile rf)
rf
- the primitive data table we'll get rows frompublic java.lang.String getDescription(java.util.List<java.lang.Object> l, MutableInt type)
l
- the record list from the primitive tabletype
- the first integral type
public java.lang.String getAttribute(int ftid, int colIndex, MutableInt type)
ftid
- the record list from the primitive tablecolIndex
- column index for attribute to returntype
- the first integral type
public void checkInit()
protected java.lang.String getAttribute(DcwColumnInfo dci, java.lang.Object colObj, MutableInt type)
public java.lang.String columnNameString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |