-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Line / box intersections? #264
Comments
The library currently supports limited number of operations on the spherical earth (just a bare minimum to build R-tries and to support nearest and bounding box requests on them):
|
Hmmmm... then I guess this would be a feature request! I did have a dig to see if this was something which would be easy to add... and concluded it was either quite easy (add an RLineEntry which extends REntry and override the methods)? Or quite hard... because you'd have to implement any actual functionality required for each geometry? I ended up leaning toward the "hard" ... given that I don't know much about R Trees in general, I concluded this was probably beyond my skills. Would you have any hint here ? |
@Quafadas I'd keep the project focused on R-trees. I'll be happy to help you find the most efficient solution but need know the context to avoid XY-problem trap. Could you please describe your initial challenge that you are going to solve? |
Sure, so I have a curiosity project, where I'm noodling around with Hurricane data. https://www.aoml.noaa.gov/hrd/hurdat/Data_Storm.html It's freely available (I have some scala which converts the original data format into "nicer" case classes, but that's not so relevant). The point is that a Hurricane has a "track". NOAA measure this as a series of points, for which Lat Long is available. The "track" is effectively the line(s) interpolated between the points. The idea, was to look for intersections of Hurricane tracks with "boxes" or "circles" on the earth. I think an RTree can do this, but it would need a "line" concept... hence the question... Hope that clarifies? I like the XY-trap reference, I hadn't come across that before. which is almost exactly what I want to do (no fancy graphics for me, mind you). In the spirit of the XY reference, I want to then be able to customise / search for dependancies with external variables / do some downstream calculations on the data at those points... the last part isn't 100% defined yet :-/ |
Great! I think R-trees can speed up searching of intersections of hurricane tracks with other geometric figures (circles, polygons of city borders, etc.). You can create an |
I think I understand... thankyou for the tip. I'll give it a whirl... |
I'm not sure if I'm missing something obvious, but is it possible to calculate the intersections of a line (specified by lat/long start) with a box on a spherical earth?
I can only see point / box interactions?
The text was updated successfully, but these errors were encountered: