public class VPFLayerDCWWarehouse extends LayerGraphicWarehouseSupport
If you use the com.bbn.openmap.layer.vpf.Server class, and run it on a (coverage type)/int.vdt file:
java com.bbn.openmap.layer.vpf.Server /dcw/noamer/po/int.vdtYou can use the values in column 3 to add to a list to have that attribute type *NOT* show up.
vpflayer.areaTypeExclude= vpflayer.lineTypeExclude=9 (for po coverages, gets rid of tile boundaries) vpflayer.textTypeExclude=These are space-separated lists.
OMGraphic
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AreaTypeExcludeProperty |
protected int[] |
areaTypeExcludes |
protected boolean |
DEBUG |
static java.lang.String |
LineTypeExcludeProperty |
protected int[] |
lineTypeExcludes |
static java.lang.String |
TextTypeExcludeProperty |
protected int[] |
textTypeExcludes |
antarcticaThreshold, areaSubList, drawingAttributes, edgeSubList, graphics, logger, pointSubList, textSubList
Constructor and Description |
---|
VPFLayerDCWWarehouse() |
Modifier and Type | Method and Description |
---|---|
void |
createArea(CoverageTable covtable,
AreaTable areatable,
java.util.List<java.lang.Object> facevec,
LatLonPoint ll1,
LatLonPoint ll2,
double dpplat,
double dpplon)
Method called by the VPF reader code to construct an area
feature.
|
void |
createEdge(CoverageTable covtable,
EdgeTable edgetable,
java.util.List<java.lang.Object> edgevec,
LatLonPoint ll1,
LatLonPoint ll2,
double dpplat,
double dpplon,
CoordFloatString coords)
Method called by the VPF reader code to construct an edge
feature.
|
void |
createNode(CoverageTable c,
NodeTable t,
java.util.List<java.lang.Object> nodeprim,
double latitude,
double longitude,
boolean isEntityNode)
Method called by the VPF reader code to construct a node feature.
|
void |
createText(CoverageTable covtable,
TextTable texttable,
java.util.List<java.lang.Object> textvec,
double latitude,
double longitude,
java.lang.String text)
Method called by the VPF reader code to construct a text
feature.
|
protected java.lang.String |
getDebugNumbers(int[] arr) |
java.util.List<java.lang.String> |
getFeatures()
Returns the list of features to draw - DCW doesn't have features, so
returns an empty List
|
protected int[] |
getNumbersFromPropertyList(java.lang.String list)
From a string of space separated numbers, creates an int[].
|
protected boolean |
onList(int[] list,
int num)
returns true if the num is a number somewhere on the list.
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
set drawing attribute properties
|
addArea, addEdge, addPoint, addText, checkLibraryForUsage, clear, createAreaOMPoly, createEdgeOMPoly, createOMPoint, createOMText, doThinning, drawAreaFeatures, drawCPointFeatures, drawEdgeFeatures, drawEPointFeatures, drawTextFeatures, getDrawingAttributes, getFanEpsilon, getFeatureString, getGraphics, getGraphics, getGUI, getProperties, getUseLibraries, initDrawingAttributes, isDoThinning, resetForCAT, setAreaFeatures, setCPointFeatures, setDoThinning, setDrawingAttributes, setEdgeFeatures, setEPointFeatures, setFanEpsilon, setFeatures, setTextFeatures, setUseLibraries
public static final java.lang.String AreaTypeExcludeProperty
public static final java.lang.String LineTypeExcludeProperty
public static final java.lang.String TextTypeExcludeProperty
protected int[] areaTypeExcludes
protected int[] lineTypeExcludes
protected int[] textTypeExcludes
protected boolean DEBUG
public void setProperties(java.lang.String prefix, java.util.Properties props)
LayerGraphicWarehouseSupport
setProperties
in class LayerGraphicWarehouseSupport
prefix
- the prefix for our propertiesprops
- the Properties object we use to look up valuesprotected java.lang.String getDebugNumbers(int[] arr)
protected int[] getNumbersFromPropertyList(java.lang.String list)
protected boolean onList(int[] list, int num)
public java.util.List<java.lang.String> getFeatures()
public void createArea(CoverageTable covtable, AreaTable areatable, java.util.List<java.lang.Object> facevec, LatLonPoint ll1, LatLonPoint ll2, double dpplat, double dpplon)
VPFGraphicWarehouse
covtable
- the coverage table for this areaareatable
- the areatable being parsedfacevec
- the record read from the area tablell1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)dpplat
- threshold for latitude thinning (passed to
warehouse)dpplon
- threshold for longitude thinngin (passed to
warehouse)public void createEdge(CoverageTable covtable, EdgeTable edgetable, java.util.List<java.lang.Object> edgevec, LatLonPoint ll1, LatLonPoint ll2, double dpplat, double dpplon, CoordFloatString coords)
VPFGraphicWarehouse
covtable
- the coverage table for this edgeedgetable
- the edgetable being parsededgevec
- the record read from the edge tablell1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)dpplat
- threshold for latitude thinning (passed to
warehouse)dpplon
- threshold for longitude thinngin (passed to
warehouse)public void createText(CoverageTable covtable, TextTable texttable, java.util.List<java.lang.Object> textvec, double latitude, double longitude, java.lang.String text)
VPFGraphicWarehouse
covtable
- the coverage table for this texttexttable
- the texttable being parsedtextvec
- the record read from the text tablelatitude
- the latitude of the textlongitude
- the longitude of the texttext
- the text stringpublic void createNode(CoverageTable c, NodeTable t, java.util.List<java.lang.Object> nodeprim, double latitude, double longitude, boolean isEntityNode)
c
- the coverage table for this nodet
- the nodetable being parsednodeprim
- the record read from the node tablelatitude
- the latitude of the nodelongitude
- the longitude of the nodeisEntityNode
- true if we are reading entity notes, false
if we are reading connected nodesCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details