libssrckdtree-j Generic k-d tree Java library
libssrckdtree-j is a Java class library of spatial data structures,
currently containing only an implementation of a k-d tree conforming to
the java.util.Map
interface. Additional spatial data
structures may be added in the future. libssrckdtree-j implements a fully
generalized multi-dimensional k-d tree. You can use keys with two,
three, or more dimensions whose elements implment the Comparable
interface. Stored values may be of any type derived from
java.lang.Object
. K-nearest neighbors search is implemented as
of version 1.0.1.
If you require high-performance multi-dimensional range-searching using generic data structures, you may want to consider using the libssrckdtree C++ template library instead.
Version | Source | License | Changes | Documentation | Reports | |
1.0.2 | libssrckdtree-j-1.0.2.tar.bz2 | LICENSE | CHANGES | 1.0.2 API | Test API | Test Code Coverage |
1.0.1 | libssrckdtree-j-1.0.1.tar.bz2 | LICENSE | ||||
1.0.0 | libssrckdtree-j-1.0.0.tar.bz2 | LICENSE |
A Simple Example
The KDTree
class implements the java.util.Map
interface and adds a range-searching iterator function.
The following example inserts some point/string pairs into a
KDTree
instance and iterates over a range to print some
key-value pairs.