IndexShapeFile
IndexShapeFile is an application that can be used to index an ESRI ShapeFiles(tm). It indexes both the geometry and the alphanumeric attributes. The application shows a file chooser with which the user can select a file. When a file is choosen the application opens it and shows the attributes. The user can now select the attributes that has to be indexed. Already indexed attributes are already selected and can be deselected. For alphanumeric attributes the user can indicate if the attribute is unique or not.
After selecting the attributes the application creates the needed indexes and loops over all the features in the shape file. For every feature the application inserts the attributes in the right index. After looping over the features the application closes the shapefile and the created indexes and removes the indexes that are no longer needed (eg. the index for the attributes that are deselected).
The program will be invoked as follows:
java -classpath .;libs\deegree2.jar;libs\jaxen-1.1-beta-8.jar;libs\jts-1.8.jar;libs\log4j\log4j-1.2.9.jar org.deegree.tools.shape.IndexShapeFile
look for otherdeegreeTools