Revision: 8013
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8013&view=rev
Author:   efiring
Date:     2009-12-08 02:12:38 +0000 (Tue, 08 Dec 2009)

Log Message:
-----------
bugfix: skip trying to make geos polygon lists if no coast polygons are found

Modified Paths:
--------------
    trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py

Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py
===================================================================
--- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-12-08 
02:02:49 UTC (rev 8012)
+++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-12-08 
02:12:38 UTC (rev 8013)
@@ -805,7 +805,7 @@
         # currently only used in is_land method.
         self.landpolygons=[]
         self.lakepolygons=[]
-        if resolution is not None:
+        if resolution is not None and len(self.coastpolygons) > 0:
             #self.islandinlakepolygons=[]
             #self.lakeinislandinlakepolygons=[]
             x, y = zip(*self.coastpolygons)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to