Skip to content

Commit

Permalink
Always return LinearRings for the boundary.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Nov 3, 2018
1 parent 51612f2 commit ff69689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cartopy/crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def cw_boundary(self):
try:
boundary = self._cw_boundary
except AttributeError:
boundary = sgeom.LineString(self.boundary)
boundary = sgeom.LinearRing(self.boundary)
self._cw_boundary = boundary
return boundary

Expand All @@ -132,7 +132,7 @@ def ccw_boundary(self):
try:
boundary = self._ccw_boundary
except AttributeError:
boundary = sgeom.LineString(self.boundary.coords[::-1])
boundary = sgeom.LinearRing(self.boundary.coords[::-1])
self._ccw_boundary = boundary
return boundary

Expand Down

0 comments on commit ff69689

Please sign in to comment.