-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use rbush to speed up intersection tests #1
Comments
@tcql @jfirebaugh @morganherlocker could anyone point me in the direction of ( OR is/are some other library(ies) recommended for this use case. Need to implement this in a Mapbox-GL-JS project and due to the suspected large number of intersects that will be needed, I don't think looping through would be great for speed..which is why I was looking towards pairing The suggestion of The geojson can be visualized here. |
@shawnmgoulet this is a common pairing, although I am not aware of any open source implementations (this would normally be implemented at the application/api-server level rather than in a library). The basic approach works like this: preprocessing
querying
Each of these operations (ie: |
Hi again @morganherlocker so now I need to (if possible) spatially select polygons (using hexes right now) based of the encoded cardinal direction of the hex selected. So that, on user click, it would select a "cone" of hexes to manipulate encoded values of hexes within a cone based off the cardinal direction of the hexagon clicked on, basically a "cone" of sorts, or you could think of it as a fan, I suppose. I am trying to understand if using I am attaching a screen shot of what this might look like, the selection set being the hexes within the outlined cone with a cardinal direction of East here. The application is for applying storm surge defending strategies to coastal land. I appreciate your assistance. |
@shawnmgoulet please try to keep your issues relevant to TurfJS. However, here's a suggestion that might help.
Or you can create some kind of custom key/value dictionary that would be used as an index, it's totally up to you and how you design your application. FYI: I recently published |
@DenisCarriere thank you for the suggestion and help. Looks like that would be very relevant to TurfJS using Also, I appreciate the update RE |
No description provided.
The text was updated successfully, but these errors were encountered: