|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bbn.openmap.layer.shape.ShapeUtils
com.bbn.openmap.layer.shape.ShapeIndex
A class representing a shape index file.
Currently this class has limited capabilities. It can dump the index information to stdout. This is useful for verification of a spatial index.
SpatialIndex| Field Summary | |
static int |
SHAPE_INDEX_RECORD_LENGTH
Size of the shape index record, value is 8 bytes. |
protected java.io.RandomAccessFile |
shx
The shape index file. |
| Constructor Summary | |
ShapeIndex(java.lang.String shxFilename)
Opens a shape index file for reading. |
|
| Method Summary | |
void |
dumpIndex()
Displays the contents of this index. |
static void |
main(java.lang.String[] args)
The driver for the command line interface. |
| Methods inherited from class com.bbn.openmap.layer.shape.ShapeUtils |
readBEInt, readBox, readLEDouble, readLEInt, readLEInt, readLELong, readPoint, writeBEInt, writeBox, writeLEDouble, writeLEInt, writeLELong, writePoint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SHAPE_INDEX_RECORD_LENGTH
protected java.io.RandomAccessFile shx
| Constructor Detail |
public ShapeIndex(java.lang.String shxFilename)
throws java.io.IOException
shxFilename - the name of the spatial index file
java.io.IOException - if something goes wrong opening the file| Method Detail |
public void dumpIndex()
throws java.io.IOException
java.io.IOException - if something goes wrong reading the file
public static void main(java.lang.String[] args)
throws java.io.IOException
See the file documentation for usage.
args - the command line arguments
java.io.IOException - if something goes wrong reading or
writing the file
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||