Open kapsteur opened 1 year ago
your loop is probably containing the world,rather than just the area you are expecting, check for clockwise ordering of your points
I've answered too fast, a loop can't have duplicates points, (not like geosjon polygon) and the result is probably your loop containing the world
// Loops are not allowed to have any duplicate vertices (whether adjacent or
// not). Non-adjacent edges are not allowed to intersect, and furthermore edges
// of length 180 degrees are not allowed (i.e., adjacent vertices cannot be
// antipodal). Loops must have at least 3 vertices (except for the "empty" and
// "full" loops discussed below).
I noticed a case when my transformation of polygons to cells take long time and lot of memory. After some investigations I found a reproductible case. It seem, when a polygons contains multiple time the same point the S2 library loop on something.
I created a test case :