Skip to content

switch to rtree from routee-compass-core crate#114

Merged
robfitzgerald merged 3 commits intomainfrom
rjf/polygonal-rtree
Mar 13, 2026
Merged

switch to rtree from routee-compass-core crate#114
robfitzgerald merged 3 commits intomainfrom
rjf/polygonal-rtree

Conversation

@robfitzgerald
Copy link
Collaborator

this PR Closes #94 by removing the PolygonalRTree type(s) from bambam and replacing with calls to the routee-compass-core rtree.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes bambam/bambam-core’s in-house PolygonalRTree implementation and migrates call sites to routee_compass_core::util::geo::PolygonalRTree, aligning with the Compass shared geo utilities and addressing issue #94.

Changes:

  • Deleted the local polygonal_rtree utility modules from bambam and bambam-core.
  • Updated population and grid input plugin code to use routee_compass_core::util::geo::PolygonalRTree (including the updated generic parameters).
  • Cleaned up imports where the old module was referenced.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
rust/bambam/src/util/polygonal_rtree.rs Removed local PolygonalRTree implementation (now relying on routee-compass-core).
rust/bambam/src/util/mod.rs Dropped polygonal_rtree module export.
rust/bambam/src/model/input_plugin/population/us_states_lookup.rs Switched state lookup R-tree type/import to routee-compass-core.
rust/bambam/src/model/input_plugin/population/population_source.rs Updated stored R-tree type to the new generic signature and import source.
rust/bambam/src/model/input_plugin/grid/grid_input_plugin.rs Updated imports and function signature to use routee-compass-core PolygonalRTree.
rust/bambam/src/app/oppvec/app.rs Removed now-unused PolygonalRTree import.
rust/bambam-core/src/util/polygonal_rtree.rs Removed duplicate local PolygonalRTree implementation from bambam-core.
rust/bambam-core/src/util/mod.rs Dropped polygonal_rtree module export.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@yamilbknsu yamilbknsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@robfitzgerald robfitzgerald merged commit 0b221b6 into main Mar 13, 2026
1 check passed
@robfitzgerald robfitzgerald deleted the rjf/polygonal-rtree branch March 13, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove bambam PolygonalRTree

3 participants