|
From: <ef...@us...> - 2009-12-08 02:12:46
|
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.
|