-
Notifications
You must be signed in to change notification settings - Fork 89
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
[long, lat, altitude] ? #25
Comments
Hi @SyJuly, would it be possible for you to supply some data I can test this on? Depending on how you want 3D routing to work, GeoJSON Path Finder could probably support it, or already supports it, but there might be some minor bug. I've never tried it with elevation data myself. |
So, this is the example I am currently working on. The resulting path will give me on point only. Thanks for your quick reply! |
Ok, so your linestrings differ only in z, and since the coordinate snapping algorithm only takes lat/lng into account, they are snapped to one point. This logic is in the I think it would be enough to just round the third component in a similar fashion to make this work. |
@perliedman unfortunately it's a little bit more tricky than that. I can confirm though, if you fix that (I've just hacked the height difference on the end for now, but I'm not sure that's correct) then it does work :) |
@IPWright83 yes, you will have to use a custom weight function. Can't say for certain, but would consider it unlikely for Turf to consider altitude. |
@IPWright83 Hello Sir, I have encountered the same problem with the levels. Indeed, I add to each point the level as its "z" coordinate. But I changed the weight function and still nothing happens. So I would like to know how you changed the function to make it work. |
@DLamine202 I can't help as I don't have access to the code anymore. Maybe @ssar504 can help? |
@IPWright83 thank you for all |
Hi @perliedman!
I've been using your library for one-level pathfinding but would like to add a third dimension. Generally GeoJSON supports values of x,y,z and your Pathfinder is taking a FeatureCollection of lineStrings with xyz-coordinates just fine. The resulting path consists of one point only, although I gave a featureCollection of connected lineStrings. Same issue whatever path I want to take or whatever weight I manually assign. It seems like the Pathfinder cannot handle 3 dimensions.
Or maybe I am doing something wrong? Or is it possible to easily extend your Pathfinder for 3 dimensions?
Thank you for your help!
The text was updated successfully, but these errors were encountered: