mourner / kdbush

A fast static index for 2D points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Behaviour when X wraps at 1/0

jlaine opened this issue · comments

Hi,

First of all thanks for kdbush, it is indeed very fast! I have been browsing the code, and one question comes to mind: is there any provision for X (aka longitude) wraps at the 1/0 boundary?

Thanks,
Jeremy

No, KDBush is a purely geometric library — it uses ordinary 2D coordinates. Any longitude wrapping logic must be implemented elsewhere.

Ok, makes sense, I guess the next step is to examine the supercluster code then!