Skip to content

Commit 1549c4d

Browse files
author
Jeff Whitaker
committed
fix clipping of stray coastline segments
1 parent 52f46b5 commit 1549c4d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,10 +1394,7 @@ def _readboundarydata(self,name,as_polygons=False):
13941394
xd = (bx[1:]-bx[0:-1])**2
13951395
yd = (by[1:]-by[0:-1])**2
13961396
dist = np.sqrt(xd+yd)
1397-
if self.projection == 'rotpole':
1398-
split = dist > 10.
1399-
else:
1400-
split = dist > 5000000.
1397+
split = dist > 0.5*(self.xmax-self.xmin)
14011398
if np.sum(split) and self.projection not in _cylproj:
14021399
ind = (np.compress(split,np.squeeze(split*np.indices(xd.shape)))+1).tolist()
14031400
iprev = 0

0 commit comments

Comments
 (0)