Revision: 4351
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4351&view=rev
Author:   jswhit
Date:     2007-11-17 05:29:15 -0800 (Sat, 17 Nov 2007)

Log Message:
-----------
fix omerc projection parameter checking

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-17 13:22:47 UTC (rev 4350)
+++ trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py   
2007-11-17 13:29:15 UTC (rev 4351)
@@ -540,14 +540,7 @@
             projparams['lat_2'] = lat_2
             projparams['lon_2'] = lon_2
             if None in [llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat]:
-                if width is None or height is None:
-                    raise ValueError, 'cannot specify map region with width 
and height keywords for this projection, please specify lat/lon values of 
corners'
-                else:
-                    if lon_0 is None or lat_0 is None:
-                        raise ValueError, 'must specify lon_0 and lat_0 when 
using width, height to specify projection region'
-                    llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat = 
_choosecorners(width,height,**projparams)
-                    self.llcrnrlon = llcrnrlon; self.llcrnrlat = llcrnrlat
-                    self.urcrnrlon = urcrnrlon; self.urcrnrlat = urcrnrlat
+                raise ValueError, 'cannot specify map region with width and 
height keywords for this projection, please specify lat/lon values of corners'
         elif projection == 'aeqd':
             if lat_0 is None or lon_0 is None:
                 raise ValueError, 'must specify lat_0 and lon_0 for Azimuthal 
Equidistant basemap'


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to