diff options
Diffstat (limited to 'lib/polygon.py')
-rw-r--r-- | lib/polygon.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/polygon.py b/lib/polygon.py index 689e272..4270ce6 100644 --- a/lib/polygon.py +++ b/lib/polygon.py @@ -631,6 +631,10 @@ class SphericalPolygon(object): result = copy(polygons[0]) for polygon in polygons[1:]: result = result.intersection(polygon) + # If we have a null intersection already, we don't + # need to go any further. + if len(result._points) < 3: + return result return result else: raise ValueError("method must be 'parallel' or 'serial'") |