Skip to content

Commit

Permalink
attempt to fix r.basin issue #443 (#454)
Browse files Browse the repository at this point in the history
add overwrite=True in script to satisfy the new v.to.db behaviour
  • Loading branch information
hellik committed Feb 27, 2021
1 parent 07e69bf commit 995210e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions grass7/raster/r.basin/r.basin.py
Expand Up @@ -280,7 +280,8 @@ def main():
qlayer = 1,
option = 'perimeter',
units = 'kilometers',
columns = 'perimeter')
columns = 'perimeter',
overwrite = True)

# Read perimeter
tmp = grass.read_command('v.to.db', map = v_basin,
Expand All @@ -300,7 +301,8 @@ def main():
qlayer = 1,
option = 'area',
units = 'kilometers',
columns = 'area')
columns = 'area',
overwrite = True)

# Read area
tmp = grass.read_command('v.to.db', map = v_basin,
Expand Down Expand Up @@ -449,7 +451,8 @@ def main():

grass.run_command('v.to.db', map = v_outlet_snap,
option = "coor",
col = "x,y")
col = "x,y",
overwrite = True)

namefile = os.path.join(directory, prefix + '_outlet_coors.txt')

Expand Down

0 comments on commit 995210e

Please sign in to comment.