public class NodeTable extends PrimitiveTable
covtable, idColumn, tile
byteorder, columnInfo, documentationFileName, filename, ID_COLUMN_NAME, inputFile, MSBFirst, recordLength, tableDescription, tablename, vli
Constructor and Description |
---|
NodeTable(CoverageTable cov,
TileDirectory tile,
boolean isEntityNode)
Construct a NodeTable 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> node,
java.lang.String featureType,
int primID)
Use the warehouse to create a graphic from a feature in a NodeTable.
|
void |
drawTile(VPFGraphicWarehouse warehouse,
double dpplat,
double dpplon,
LatLonPoint ll1,
LatLonPoint ll2)
Parse the node records for this tile, calling warehouse.createNode once
for each record in the selection region.
|
int |
getContainingFaceColumn()
Returns the column that contains containing_face.
|
int |
getFirstEdgeColumn()
Returns the column that contains first_edge.
|
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 NodeTable(CoverageTable cov, TileDirectory tile, boolean isEntityNode) throws FormatException
cov
- the CoverageTable for the tiletile
- the tile to parseisEntityNode
- if true, parse end file; false, parse cnd fileFormatException
- if something goes wrong reading the textpublic int getFirstEdgeColumn()
public int getContainingFaceColumn()
public void drawTile(VPFGraphicWarehouse warehouse, double dpplat, double dpplon, LatLonPoint ll1, LatLonPoint ll2)
drawTile
in class PrimitiveTable
warehouse
- the warehouse used for createNode 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)VPFGraphicWarehouse.createNode(com.bbn.openmap.layer.vpf.CoverageTable, com.bbn.openmap.layer.vpf.NodeTable, java.util.List<java.lang.Object>, double, double, boolean)
public OMGraphic drawFeature(VPFFeatureWarehouse warehouse, double dpplat, double dpplon, LatLonPoint ll1, LatLonPoint ll2, java.util.List<java.lang.Object> node, java.lang.String featureType, int primID)
drawFeature
in class PrimitiveTable
warehouse
- the warehouse used for createNode 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)node
- a list with the NodeTable 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.createNode(com.bbn.openmap.layer.vpf.CoverageTable, com.bbn.openmap.layer.vpf.NodeTable, java.util.List<java.lang.Object>, double, double, boolean)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details