|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.dataAccess.shape.ShapeUtils com.bbn.openmap.layer.shape.SpatialIndex com.bbn.openmap.layer.link.shape.LinkSpatialIndex
public class LinkSpatialIndex
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.bbn.openmap.layer.shape.SpatialIndex |
---|
SpatialIndex.Entry, SpatialIndex.FileIndex, SpatialIndex.MemoryIndex |
Field Summary |
---|
Fields inherited from class com.bbn.openmap.layer.shape.SpatialIndex |
---|
bounds, dbf, DEFAULT_SHAPE_RECORD_SIZE, entries, logger, pointIcon, SHAPE_FILE_HEADER_LENGTH, SHAPE_RECORD_HEADER_LENGTH, shp, shpFileName, SPATIAL_INDEX_HEADER_LENGTH, SPATIAL_INDEX_RECORD_LENGTH |
Constructor Summary | |
---|---|
LinkSpatialIndex(java.lang.String shpFilename)
Opens a spatial index file for the given shp file. |
Method Summary | |
---|---|
ESRIRecord |
makeESRIRecord(int shapeType,
byte[] b,
int off)
Creates a record instance from the shape file data. |
Methods inherited from class com.bbn.openmap.layer.shape.SpatialIndex |
---|
close, dbf, dumpIndex, entryIterator, entryIterator, evaluate, evaluateDbf, getAllOMGraphics, getBounds, getBounds, getDbf, getFactory, getOMGraphicAtOffset, getOMGraphics, getPointIcon, getShpFile, intersects, locateAndSetShapeData, locateFile, locateRecords, main, printUsage, readIndexFile, readIndexFile, resetBounds, setDbf, setFactory, setPointIcon, ssx |
Methods inherited from class com.bbn.openmap.dataAccess.shape.ShapeUtils |
---|
getStringForType, 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 |
Constructor Detail |
---|
public LinkSpatialIndex(java.lang.String shpFilename) throws java.io.IOException
shpFilename
- the name of the shape file to base index file search off of.
java.io.IOException
- if something goes wrong opening the fileMethod Detail |
---|
public ESRIRecord makeESRIRecord(int shapeType, byte[] b, int off) throws java.io.IOException
makeESRIRecord
in class SpatialIndex
shapeType
- the shape file's shape type, enumerated in
ShapeUtils
b
- the buffer pointing to the raw record dataoff
- the offset of the data starting point in the buffer
java.io.IOException
- if something goes wrong reading the fileShapeUtils
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |