com.bbn.openmap.layer.shape
Class SpatialIndex.FileIndex

java.lang.Object
  extended by com.bbn.openmap.layer.shape.SpatialIndex.FileIndex
Enclosing class:
SpatialIndex

public static class SpatialIndex.FileIndex
extends java.lang.Object


Constructor Summary
protected SpatialIndex.FileIndex()
           
 
Method Summary
static void create(java.lang.String shpFile)
           
 void createIndex(java.lang.String inFile)
          Creates a spatial index for a shape file.
protected  void indexNulls(java.io.InputStream is, long ptr, java.io.OutputStream os)
          Writes the spatial index for a null shape file.
protected  void indexPoints(java.io.InputStream is, long ptr, java.io.OutputStream os)
          Writes the spatial index for a point shape file.
protected  void indexPolygons(java.io.InputStream is, long ptr, java.io.OutputStream os)
          Writes the spatial index for a polygon shape file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialIndex.FileIndex

protected SpatialIndex.FileIndex()
Method Detail

create

public static void create(java.lang.String shpFile)

indexPolygons

protected void indexPolygons(java.io.InputStream is,
                             long ptr,
                             java.io.OutputStream os)
Writes the spatial index for a polygon shape file.

Parameters:
is - the shape file input stream
ptr - the current position in the file
os - the spatial index file output stream

indexPoints

protected void indexPoints(java.io.InputStream is,
                           long ptr,
                           java.io.OutputStream os)
Writes the spatial index for a point shape file.

Parameters:
is - the shape file input stream
ptr - the current position in the file
os - the spatial index file output stream

indexNulls

protected void indexNulls(java.io.InputStream is,
                          long ptr,
                          java.io.OutputStream os)
Writes the spatial index for a null shape file.

Parameters:
is - the shape file input stream
ptr - the current position in the file
os - the spatial index file output stream

createIndex

public void createIndex(java.lang.String inFile)
Creates a spatial index for a shape file. Reads the records from the shape file, writing appropriate index records to the spatial index file.

Parameters:
inFile - the shape file or spatial index file, the method will figure it out based on the file name extension.


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details