public class AreaTable extends PrimitiveTable
covtable, idColumn, tile
byteorder, columnInfo, documentationFileName, filename, ID_COLUMN_NAME, inputFile, MSBFirst, recordLength, tableDescription, tablename, vli
Constructor and Description |
---|
AreaTable(CoverageTable cov,
EdgeTable edg,
TileDirectory tile)
Construct an AreaTable for a tile.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the files associated with this tile.
|
int |
computeEdgePoints(java.util.List<java.lang.Object> facevec,
java.util.List<CoordFloatString> allLLPoints)
Computes the full set of points that determine the edge of the area.
|
OMGraphic |
drawFeature(VPFFeatureWarehouse warehouse,
double dpplat,
double dpplon,
LatLonPoint ll1,
LatLonPoint ll2,
java.util.List<java.lang.Object> area,
java.lang.String featureType,
int primID)
Use the warehouse to create a graphic from a feature in the AreaTable.
|
void |
drawTile(VPFGraphicWarehouse warehouse,
double dpplat,
double dpplon,
LatLonPoint ll1,
LatLonPoint ll2)
Parse the area records for this tile, calling warehouse.createArea once
for each record.
|
getCoverageTable, getID, getTileDirectory
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 AreaTable(CoverageTable cov, EdgeTable edg, TileDirectory tile) throws FormatException
cov
- the coverage table that is our "parent"edg
- the edge table for the same tile as us (can be null)tile
- the tile to parseFormatException
- if something goes wrong reading the areapublic void close()
close
in class DcwRecordFile
public int computeEdgePoints(java.util.List<java.lang.Object> facevec, java.util.List<CoordFloatString> allLLPoints) throws FormatException
facevec
- a row from the VPF face table for this areaallLLPoints
- a List that gets modified to contain CoordFloatString
objects defining the area. CoordFloatString objects with a
negative element count (e.g. -3) contain the absolute value of the
count (e.g. 3), but must be traversed in reverse order.FormatException
- may throw FormatExceptionspublic void drawTile(VPFGraphicWarehouse warehouse, double dpplat, double dpplon, LatLonPoint ll1, LatLonPoint ll2)
drawTile
in class PrimitiveTable
warehouse
- the warehouse used for createArea 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.createArea(com.bbn.openmap.layer.vpf.CoverageTable, com.bbn.openmap.layer.vpf.AreaTable, java.util.List<java.lang.Object>, com.bbn.openmap.proj.coords.LatLonPoint, com.bbn.openmap.proj.coords.LatLonPoint, double, double)
public OMGraphic drawFeature(VPFFeatureWarehouse warehouse, double dpplat, double dpplon, LatLonPoint ll1, LatLonPoint ll2, java.util.List<java.lang.Object> area, java.lang.String featureType, int primID)
drawFeature
in class PrimitiveTable
warehouse
- the warehouse used for createArea calls (must not be
null)dpplat
- threshold for latitude thinning (passed to warehouse)dpplon
- threshold for longitude thinning (passed to warehouse)ll1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)area
- a List containing the AreaTable 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.createEdge(com.bbn.openmap.layer.vpf.CoverageTable, com.bbn.openmap.layer.vpf.EdgeTable, java.util.List<java.lang.Object>, com.bbn.openmap.proj.coords.LatLonPoint, com.bbn.openmap.proj.coords.LatLonPoint, double, double, com.bbn.openmap.layer.vpf.CoordFloatString)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details