[GRASS-SVN] r56975 - grass-addons/grass6/raster/r.in.wms2

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 2 04:50:49 PDT 2013


Author: hamish
Date: 2013-07-02 04:50:48 -0700 (Tue, 02 Jul 2013)
New Revision: 56975

Modified:
   grass-addons/grass6/raster/r.in.wms2/wms_base.py
Log:
match g6 m.proj output format

Modified: grass-addons/grass6/raster/r.in.wms2/wms_base.py
===================================================================
--- grass-addons/grass6/raster/r.in.wms2/wms_base.py	2013-07-02 11:42:48 UTC (rev 56974)
+++ grass-addons/grass6/raster/r.in.wms2/wms_base.py	2013-07-02 11:50:48 UTC (rev 56975)
@@ -279,10 +279,10 @@
             points = points.splitlines()
             if len(points) != 4:
                 grass.fatal(_("Region definition: 4 points required"))
-            
+
             for point in points:
                 try:
-                    point = map(float, point.split("|"))
+                    point = map(float, point.replace('\t', ' ').split(' '))
                 except ValueError:
                     grass.fatal(_('Reprojection of region using m.proj failed.'))
                 if not bbox['maxy']:



More information about the grass-commit mailing list