Explorar o código

r.import extent=region bug fix (#404)

* r.import extent fix
AnikaBettge %!s(int64=5) %!d(string=hai) anos
pai
achega
c7af150325
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      scripts/r.import/r.import.py

+ 4 - 0
scripts/r.import/r.import.py

@@ -275,6 +275,10 @@ def main():
         if os.path.exists(path):
             grass.fatal(_("Input contains GCPs, rectification is required"))
 
+    if 'r' in region_flag:
+        grass.run_command('g.remove', type="vector", flags="f",
+                          name=tgtregion)
+
     # switch to target location
     os.environ['GISRC'] = str(TGTGISRC)