Skip to content

Java port of Flatbush – an efficient implementation of a packed Hilbert R-tree spatial index

Notifications You must be signed in to change notification settings

micycle1/flatbush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flatbush (Java Port)

A high-performance, static R-tree spatial index for 2D rectangles, ported from the popular JavaScript Flatbush library.
This Java version is a close line-by-line port for maximum speed and minimal footprint. No external dependencies.

Features

  • Bulk insertion of axis-aligned rectangles (or points).
  • Hilbert-curve sorting for optimal packing.
  • O(n) index construction time.
  • Very fast rectangle-intersection queries.
  • Efficient k-nearest-neighbors queries with optional distance limit and filtering.
  • Primitive arrays only; zero GC churn during queries.
  • All in a single small class (Flatbush.java).

About

Java port of Flatbush – an efficient implementation of a packed Hilbert R-tree spatial index

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages