s2geometry icon indicating copy to clipboard operation
s2geometry copied to clipboard

s2 cannot handle more than 2^31 - 1 vertices in polyline/polygon

Open MBkkt opened this issue 1 year ago • 7 comments

https://github.com/google/s2geometry/blob/master/src/s2/encoded_s2point_vector.h#L131

Access by int, uint32 size_, by size encoded and decoded as size_t

So in general s2 cannot handle more than 2^31 - 1 vertices in polyline/polygon :(

It looks pretty easy to fix and also looks like current encoding/decoding can handle this.

Do you plan to fix this?

MBkkt avatar Jan 17 '23 21:01 MBkkt