Polygon intersection error in Shapely: “shapely.geos.TopologicalError: The operation 'GEOSIntersection_r' produced a null geometry”
问题 I have been trying to debug this problem but unable to do so. I am trying to find the intersection of two Polygon objects. It works most of the time but for the following case, it raises the following exception: P1 area: 13.125721955 P2 area: 1.0 Traceback (most recent call last): File "geom2d.py", line 235, in <module> print p1.intersection(p2) File "/usr/local/lib/python2.7/dist-packages/shapely/geometry/base.py", line 334, in intersection return geom_factory(self.impl['intersection'](self,