From: <js...@us...> - 2007-11-06 18:50:55
|
Revision: 4127 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4127&view=rev Author: jswhit Date: 2007-11-06 10:50:53 -0800 (Tue, 06 Nov 2007) Log Message: ----------- refine check for bogus polygons in fulldisk ortho projection. Modified Paths: -------------- trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py Modified: trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py =================================================================== --- trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py 2007-11-06 18:32:30 UTC (rev 4126) +++ trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py 2007-11-06 18:50:53 UTC (rev 4127) @@ -887,10 +887,12 @@ # to orthographic coordinates. if self.projection == 'ortho': # if coastline polygon covers more than 99% - # of map region, it's probably bogus, so - # skip it. - if name == 'gshhs' and \ - psub.area/boundarypolyxy.area > 0.99: continue + # of map region for fulldisk projection, + # it's probably bogus, so skip it. + areafrac = psub.area/boundarypolyxy.area + if name == 'gshhs' and\ + self._fulldisk and\ + areafrac > 0.99: continue bx = b[:,0]; by = b[:,1] blons, blats = maptran(bx, by, inverse=True) bx, by = self(blons, blats) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |