public class TextTable extends PrimitiveTable
covtable, idColumn, tile
byteorder, columnInfo, documentationFileName, filename, ID_COLUMN_NAME, inputFile, MSBFirst, recordLength, tableDescription, tablename, vli
Constructor and Description |
---|
TextTable(CoverageTable cov,
TileDirectory tile)
Construct a TextTable for reading VPF text features.
|
Modifier and Type | Method and Description |
---|---|
OMGraphic |
drawFeature(VPFFeatureWarehouse warehouse,
double dpplat,
double dpplon,
LatLonPoint ll1,
LatLonPoint ll2,
java.util.List<java.lang.Object> text,
java.lang.String featureType,
int primID)
Use the warehouse to create a graphic from a feature in the TextTable.
|
void |
drawTile(VPFGraphicWarehouse warehouse,
double dpplat,
double dpplon,
LatLonPoint ll1,
LatLonPoint ll2)
Parse the text records for this tile, calling warehouse.createText once
for each record in the selection region.
|
CoordFloatString |
getCoordinates(java.util.List<java.lang.Object> textprim)
Returns the coordinate string for the text primitive
|
getCoverageTable, getID, getTileDirectory
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
public TextTable(CoverageTable cov, TileDirectory tile) throws FormatException
cov
- the CoverageTable for the tiletile
- the tile to parseFormatException
- if something goes wrong reading the textpublic CoordFloatString getCoordinates(java.util.List<java.lang.Object> textprim)
textprim
- the text primitivepublic void drawTile(VPFGraphicWarehouse warehouse, double dpplat, double dpplon, LatLonPoint ll1, LatLonPoint ll2)
drawTile
in class PrimitiveTable
warehouse
- the warehouse used for createText calls (must not be
null)dpplat
- threshold for latitude thinning (passed to warehouse)dpplon
- threshold for longitude thinngin (passed to warehouse)ll1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)VPFGraphicWarehouse.createText(com.bbn.openmap.layer.vpf.CoverageTable, com.bbn.openmap.layer.vpf.TextTable, java.util.List<java.lang.Object>, double, double, java.lang.String)
public OMGraphic drawFeature(VPFFeatureWarehouse warehouse, double dpplat, double dpplon, LatLonPoint ll1, LatLonPoint ll2, java.util.List<java.lang.Object> text, java.lang.String featureType, int primID)
drawFeature
in class PrimitiveTable
warehouse
- the warehouse used for createText calls (must not be
null)dpplat
- threshold for latitude thinning (passed to warehouse)dpplon
- threshold for longitude thinngin (passed to warehouse)ll1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)text
- a list with the TextTable row contents.featureType
- the string representing the feature type, in case the
warehouse wants to do some intelligent rendering.primID
- the primitive ID of the feature, in order to gather attributes if
necessary.VPFGraphicWarehouse.createText(com.bbn.openmap.layer.vpf.CoverageTable, com.bbn.openmap.layer.vpf.TextTable, java.util.List<java.lang.Object>, double, double, java.lang.String)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details