public static class SpatialIndex.FileIndex
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
SpatialIndex.FileIndex() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void create(java.lang.String shpFile)
protected void indexPolygons(java.io.InputStream is, long ptr, java.io.OutputStream os)
is
- the shape file input streamptr
- the current position in the fileos
- the spatial index file output streamprotected void indexPoints(java.io.InputStream is, long ptr, java.io.OutputStream os)
is
- the shape file input streamptr
- the current position in the fileos
- the spatial index file output streamprotected void indexNulls(java.io.InputStream is, long ptr, java.io.OutputStream os)
is
- the shape file input streamptr
- the current position in the fileos
- the spatial index file output streampublic void createIndex(java.lang.String inFile)
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