A visualization of spatial indexing data structures using the Processing libraries.
This project demonstrates how various spatial data structures organize and store spatial information. It uses the Processing library to create interactive visualizations of different spatial indexing algorithms including Quadtree, K-D tree, and R-tree data structures.
Before you try to build or run the project, make sure you have:
- Java Development Kit (JDK) 25
- Apache Maven 3.9 or newer
The project targets Java 25 in pom.xml, so older JDK releases will not work.
To get started, clone this repository and cd to the project root:
git clone <repository-url>
cd spatial-index-visualizerBuild (compile + package):
mvn clean packageRun via Maven (calls the main class):
mvn exec:javaRun the packaged JAR produced by the build:
java -jar target/spatial-index-visualizer.jarClean build artifacts:
mvn clean- 1: Switch to
QuadTreeand rebuild the index. - 2: Switch to
KDTreeand rebuild the index. - 3: Switch to
RTreeand rebuild the index. - s: Save the current frame to the
output/directory as a PNG (<IndexName>-####.png).
Notes:
- The visualizer opens a Processing window; press the keys while the window is focused.
- Ensure an X11/GUI display is available when running (or use X forwarding).


