georust / geozero

Zero-Copy reading and writing of geospatial data.
Apache License 2.0
352 stars 37 forks source link

Fix MVT large geometry processing #151

Closed nyurik closed 1 year ago

nyurik commented 1 year ago

If MVT uses extent is larger than 4096, is_area_positive test panics due to an integer overflow.

The solution seems to use i64 area computation instead - the parsing seem to work ok.