[GRASS-SVN] r54461 - grass/trunk/scripts/r.in.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 29 12:41:01 PST 2012


Author: martinl
Date: 2012-12-29 12:41:00 -0800 (Sat, 29 Dec 2012)
New Revision: 54461

Modified:
   grass/trunk/scripts/r.in.wms/wms_base.py
   grass/trunk/scripts/r.in.wms/wms_cap_parsers.py
Log:
r.in.wms: fix typos (patch provided by Stepan Turek)


Modified: grass/trunk/scripts/r.in.wms/wms_base.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_base.py	2012-12-29 20:38:08 UTC (rev 54460)
+++ grass/trunk/scripts/r.in.wms/wms_base.py	2012-12-29 20:41:00 UTC (rev 54461)
@@ -473,7 +473,7 @@
                                  overwrite = True,
                                  maskcats = "0",
                                  flags = 'i',
-                                 input = self.opt_output + '.alpha') != 0: 
+                                 raster = self.opt_output + '.alpha') != 0: 
                 grass.fatal(_('%s failed') % 'r.mask')
         
         #TODO one band + alpha band?

Modified: grass/trunk/scripts/r.in.wms/wms_cap_parsers.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_cap_parsers.py	2012-12-29 20:38:08 UTC (rev 54460)
+++ grass/trunk/scripts/r.in.wms/wms_cap_parsers.py	2012-12-29 20:41:00 UTC (rev 54461)
@@ -205,7 +205,7 @@
                     if cmp is not None:
                         cmp_text = cmp.text
                 
-                if cmpt_text is None or \
+                if cmp_text is None or \
                    cmp_text.lower() == parent_cmp_text.lower():
                     is_there = True
                     break
@@ -632,4 +632,4 @@
         if end_i < 0:
             end_i = len(params_str)
 
-        return (start_i, end_i) 
\ No newline at end of file
+        return (start_i, end_i)



More information about the grass-commit mailing list