Open mcara opened 5 years ago
I am experiencing the same error, a potential temporary workaround, if you are only concerned with the area, for example, is projecting the spherical polygon to a shapely object and find the intersection
that way.
``def spherical_poly_to_poly(poly):
""" Converts a spherical polygon to a lon lat polygon """
radec = list(poly.to_radec())
lons, lats = radec[0][0], radec[0][1]
poly = geometry.Polygon(list(zip(lons, lats)))
return poly
I think part of the problem is some sort of self intersection in the polygons? When I convert to shapely objects I get errors even through shapely intersections but only for the ones that have assertion errors SphericalPolyon. A fix for this is shapely is to simply buffer the polygon --> p = p.buffer(0). I'll let you know if I find a fix
When computing intersections of almost overlapping polygons. Example: