org.deegree_impl.tools.shape
Class IndexShapeFile
java.lang.Object
org.deegree_impl.tools.shape.IndexShapeFile
- public class IndexShapeFile
- extends java.lang.Object
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).
It is not possible to transform a unique index to a non-unique index or back.
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexShapeFile
public IndexShapeFile()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception