Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] r.stream.snap deletes table of input map from database #4793

Open
geografin opened this issue Dec 1, 2024 · 0 comments
Open

[Bug] r.stream.snap deletes table of input map from database #4793

geografin opened this issue Dec 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@geografin
Copy link

geografin commented Dec 1, 2024

Describe the bug

r.stream.snap command seem to delete a table that is connected to input map.

To reproduce

It should be done with any ready stream network. Use any radius and threshold you want.

  1. Execute 'v.in.ogr input=gages.shp output=gages --overwrite' to import any hydrologic stations
  2. Check if table gages exists with command db.tables
  3. Execute 'r.stream.snap input=gages stream_rast=streams threshold=$threshold radius=$radius output=corr_gages --overwrite'
  4. Check db.tables and see that table gages doesn't exist

Expected behavior

r.stream.snap should not touch table "gages". Also as the result corr_gages has no link to database, user should be able to make a link with 'v.db.connect map=corr_gages table=gages' but because of this incorrect behaviour we can't do that.

Screenshots

System description

  • Operating System: Linux, on Docker
  • GRASS GIS version: 8.4.1dev

Additional context

@geografin geografin added the bug Something isn't working label Dec 1, 2024
@geografin geografin changed the title [Bug] [Bug] r.stream.snap deletes table of input map from database Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant