Revision: 5995
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5995&view=rev
Author:   jswhit
Date:     2008-08-07 18:32:30 +0000 (Thu, 07 Aug 2008)

Log Message:
-----------
fix another typo

Modified Paths:
--------------
    trunk/toolkits/basemap/examples/testgdal.py

Modified: trunk/toolkits/basemap/examples/testgdal.py
===================================================================
--- trunk/toolkits/basemap/examples/testgdal.py 2008-08-07 18:19:23 UTC (rev 
5994)
+++ trunk/toolkits/basemap/examples/testgdal.py 2008-08-07 18:32:30 UTC (rev 
5995)
@@ -43,7 +43,7 @@
     # iterate over geometries. 
     for count in range(geo.GetGeometryCount()):
         geom = geo.GetGeometryRef(count)
-        if not geom.GetGeometryCount(): # just on geometry.
+        if not geom.GetGeometryCount(): # just one geometry.
             # get lon,lat points
             lons = [geom.GetX(i) for i in range(geom.GetPointCount())]
             lats = [geom.GetY(i) for i in range(geom.GetPointCount())]
@@ -53,9 +53,9 @@
             m.plot(x,y,'k')
         else: # iterate over nested geometries.
             for cnt in range( geom.GetGeometryCount()):
-                g1 = geom.GetGeometryRef( cnt )
-                lons = [g1.GetX(i) for i in range(g1.GetPointCount())]
-                lats = [g1.GetY(i) for i in range(g1.GetPointCount())]
+                g = geom.GetGeometryRef( cnt )
+                lons = [g.GetX(i) for i in range(g.GetPointCount())]
+                lats = [g.GetY(i) for i in range(g.GetPointCount())]
                 x, y = m(lons,lats)
                 m.plot(x,y,'k')
 # new axis for colorbar.


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to