Skip to content

Commit

Permalink
polygons should have 4+ points SciTools#883
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jun 20, 2017
1 parent 6f7ab71 commit 72075f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/source/contributors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ the package wouldn't be as rich or diverse as it is today:
* Zachary Tessler
* Daniel Eriksson
* Crispian Batstone
* Daryl Herzmann


Thank you!
Expand Down
2 changes: 1 addition & 1 deletion lib/cartopy/mpl/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def path_to_geos(path, force_ccw=False):
axis=1)
if all(verts_same_as_first):
geom = sgeom.Point(path_verts[0, :])
elif (path_verts.shape[0] > 2 and
elif (path_verts.shape[0] > 3 and
(path_codes[-1] == Path.CLOSEPOLY or
verts_same_as_first[-1])):
if path_codes[-1] == Path.CLOSEPOLY:
Expand Down

0 comments on commit 72075f7

Please sign in to comment.