|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectShapeFileIndexer
public class ShapeFileIndexer
Utility class for Shapefile spatial indexing
trunk/gt/modules
(gt-modules.jar
) (Maven report) (SVN head)Constructor Summary | |
---|---|
ShapeFileIndexer()
|
Method Summary | |
---|---|
String |
id()
An id for the reader. |
int |
index(boolean verbose,
ProgressListener listener)
Index the shapefile denoted by setShapeFileName(String fileName) If when a thread starts, another thread is indexing the same file, this thread will wait that the first thread ends indexing; in this case zero is reurned as result of the indexing process. |
static void |
main(String[] args)
|
void |
setByteOrder(String byteOrder)
DOCUMENT ME! |
void |
setIdxType(IndexType indexType)
Sets the type of index to create |
void |
setMax(int i)
For quad tree this is the max depth. |
void |
setMin(int i)
DOCUMENT ME! |
void |
setShapeFileName(ShpFiles shpFiles)
DOCUMENT ME! |
void |
setSplit(short s)
DOCUMENT ME! |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeFileIndexer()
Method Detail |
---|
public static void main(String[] args) throws IOException
IOException
public int index(boolean verbose, ProgressListener listener) throws MalformedURLException, IOException, TreeException, StoreException, LockTimeoutException
verbose
- enable/disable printing of dots every 500 indexed recordslistener
- DOCUMENT ME!
MalformedURLException
IOException
TreeException
StoreException
- DOCUMENT ME!
LockTimeoutException
public void setMax(int i)
i
- public void setMin(int i)
i
- public void setSplit(short s)
s
- public void setShapeFileName(ShpFiles shpFiles)
shpFiles
- public void setIdxType(IndexType indexType)
indexType
- The idxType to set.public void setByteOrder(String byteOrder)
byteOrder
- The byteOrder to set.public String id()
FileReader
id
in interface FileReader
id
in interface FileWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |