mourner / rbush

RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: longitude-safe

kkdd opened this issue · comments

commented

Hello,
I would like to use a query rectangle over the antimeridian as shown in the following example:
globe

Just do two adjacent queries, and deduplicate the results that cross the dateline. I have no plans to implement dateline handling in rbush itself since it's a generic (not geo-specific) library, but I might release an rbush plugin for geo handling some time this year.

commented

Thank you for explanation. I'm looking forward to your geo-handling plugin.