Explorar o código

r.in.wms: fix typos (patch provided by Stepan Turek)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54461 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=12) %!d(string=hai) anos
pai
achega
a045e1e63f
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      scripts/r.in.wms/wms_base.py
  2. 2 2
      scripts/r.in.wms/wms_cap_parsers.py

+ 1 - 1
scripts/r.in.wms/wms_base.py

@@ -473,7 +473,7 @@ class GRASSImporter:
                                  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?

+ 2 - 2
scripts/r.in.wms/wms_cap_parsers.py

@@ -205,7 +205,7 @@ class WMSCapabilitiesTree(BaseCapabilitiesTree):
                     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 @@ class OnEarthCapabilitiesTree(BaseCapabilitiesTree):
         if end_i < 0:
             end_i = len(params_str)
 
-        return (start_i, end_i) 
+        return (start_i, end_i)