Skip to content

Commit 3c2e621

Browse files
authored
Merge pull request #380 from guziy/master
make sure basemap does not fail when fix yields empty polygons
2 parents e63b899 + 932ba0e commit 3c2e621

File tree

4 files changed

+1006
-548
lines changed

4 files changed

+1006
-548
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,5 @@ doc/examples
6767
doc/_templates/gallery.html
6868
doc/users/installing.rst
6969
doc/_static/matplotlibrc
70+
71+
.DS_Store

lib/mpl_toolkits/basemap/test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ def test_optional_casting(self):
240240
assert bmap1.proj4string == bmap2.proj4string
241241

242242

243+
class TestOrthoProjPolygons(TestCase):
244+
def test_basemapcreation_should_not_fail(self):
245+
# different resolutions should work
246+
for r in ['c', 'l', 'i', 'h', 'f']:
247+
m = Basemap(projection='ortho',resolution=r,lat_1=45.,lat_2=55,lat_0=50,lon_0=-107.)
248+
pass
249+
243250
def test():
244251
"""
245252
Run some tests.

0 commit comments

Comments
 (0)