-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
GeoJSON with vertical line crashes #8764
Comments
I initially thought this was related to this crash which happens when you have lines that are perfectly straight (sometimes): #8464 but it looks like this issue is specific to vertical lines. Here's a Sandcastle that loads the following GeoJSON: The first two points are exactly vertical. If you remove the last point, it crashes. |
Also reported here with some additional debugging notes: #8974 |
@OmarShehata This could be related to calculating the number of points in a rhumb line; if you have two points in a polyline that differ only in altitude, then the radians distance squared tends to be zero. For this particular case making a change will fix the issue.
I have not tested this for other side effects. |
When loading the folling Sandcastle example, it will crash with following error:
The example just loads one simple GeoJSON Feature of type LineString. If I change any of the three coordinates slighty, it works
Sandcastle example:
Browsers:
Google Chrome Version 80.0.3987.163
Firefox 75.0 (64-Bit)
Internet Explorer 11.719.18362.0
Operating System:
Windows 10
The text was updated successfully, but these errors were encountered: