-
Notifications
You must be signed in to change notification settings - Fork 199
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
Running convex hull on LineString causes a panic #531
Comments
The calculation at: https://github.com/georust/geo/blob/master/geo/src/algorithm/convex_hull/qhull.rs#L98 seems to overflow and produce nan for the input. What would be a good fix here? |
My initial impulse would be to ask "What happens to GEOS for this input ?". But in general, we should perhaps switch to returning a |
this is what gdal gives back:
|
I wonder whether GDAL / GEOS has any notion of f32… Do we get the same failure on f64 input? |
using
|
and the original geo panic here disappears with f64 |
Once we make the Kernel trait public, users can implement |
Discovered while fuzzing.
Add this to
src/algorithm/convex_hull/test.rs
:Run
RUST_BACKTRACE=1 cargo test test_foo
:The text was updated successfully, but these errors were encountered: