public class DcwSpatialIndex
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DcwSpatialIndex.PrimitiveRecord
A class that wraps an entry in the spatial index.
|
Constructor and Description |
---|
DcwSpatialIndex(java.lang.String filename,
boolean border)
Construct an index for a filename.
|
Modifier and Type | Method and Description |
---|---|
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
|
public DcwSpatialIndex(java.lang.String filename, boolean border) throws FormatException
FormatException
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 indexpublic int getPrimitiveOffset(int node)
node
- the node indexpublic DcwSpatialIndex.PrimitiveRecord[] getPrimitiveRecords(int node) throws FormatException
node
- the node indexFormatException
- an error was encountered reading the
filepublic void close()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details