|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.vpf.DcwSpatialIndex
public class DcwSpatialIndex
Read a VPF spatial index file. (VPF *.?si files)
Nested Class Summary | |
---|---|
static class |
DcwSpatialIndex.PrimitiveRecord
A class that wraps an entry in the spatial index. |
Constructor Summary | |
---|---|
DcwSpatialIndex(java.lang.String filename,
boolean border)
Construct an index for a filename. |
Method Summary | |
---|---|
void |
close()
Closes the files associated with the spatial index |
float |
getBoundingX1()
Returns the west boundary |
float |
getBoundingX2()
Returns the east boundary |
float |
getBoundingY1()
Returns the south boundary |
float |
getBoundingY2()
Returns the north boundary |
int |
getNodesInTree()
Returns the number of nodes in the spatial index |
int |
getNumberOfPrimitives()
Returns the number of primitives included in the spatial index |
int |
getPrimitiveCount(int node)
Returns the number of primitives listed in the node |
int |
getPrimitiveOffset(int node)
Returns the relative byte offset of the node primitive list from the header |
DcwSpatialIndex.PrimitiveRecord[] |
getPrimitiveRecords(int node)
Returns an array of primitive records |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DcwSpatialIndex(java.lang.String filename, boolean border) throws FormatException
FormatException
Method Detail |
---|
public int getNumberOfPrimitives()
public float getBoundingX1()
public float getBoundingX2()
public float getBoundingY1()
public float getBoundingY2()
public int getNodesInTree()
public int getPrimitiveCount(int node)
node
- the node index
public int getPrimitiveOffset(int node)
node
- the node index
public DcwSpatialIndex.PrimitiveRecord[] getPrimitiveRecords(int node) throws FormatException
node
- the node index
FormatException
- an error was encountered reading the
filepublic void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |