|
From: <js...@us...> - 2008-08-13 13:11:54
|
Revision: 6029
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6029&view=rev
Author: jswhit
Date: 2008-08-13 13:11:51 +0000 (Wed, 13 Aug 2008)
Log Message:
-----------
more kludges for geos 3.0.0
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 2008-08-12 18:36:29 UTC (rev 6028)
+++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2008-08-13 13:11:51 UTC (rev 6029)
@@ -913,6 +913,12 @@
antart = True
else:
poly = Shape(b)
+ # this is a workaround to avoid
+ # "GEOS_ERROR: TopologyException:
+ # found non-noded intersection between ..."
+ # with geos 3.0.0
+ if _geoslib.__geos_major_version__ > 2:
+ poly = poly.simplify(1.e-10)
antart = False
# create duplicate polygons shifted by -360 and +360
# (so as to properly treat polygons that cross
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|