fast-hilbert icon indicating copy to clipboard operation
fast-hilbert copied to clipboard

Avoid panics for untrusted data

Open nyurik opened this issue 6 months ago • 1 comments

Hi, I would like to use your code with the https://github.com/stadiamaps/pmtiles-rs but it seems invalid coordinates may panic the code. Would it be possible to return Option<...> in the cases where the code would panic? The common problem we may face is user-supplied invalid data, so we should avoid panicking in those cases. Thanks!

nyurik avatar Jun 04 '25 20:06 nyurik

It should not be too hard to implement this. Won't have time to look at this before end of next week.

becheran avatar Jun 05 '25 15:06 becheran