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

In GRASS plugin, r.water.outlet is not working #12364

Closed
qgib opened this issue Dec 20, 2009 · 2 comments
Closed

In GRASS plugin, r.water.outlet is not working #12364

qgib opened this issue Dec 20, 2009 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Dec 20, 2009

Author Name: Micha Silver (@micha-silver)
Original Redmine Issue: 2304

Redmine category:grass
Assignee: Lorenzo Masini


I cannot get expected results with the r.water.outlet GRASS module in QGIS 1.3.0. I've tried in a few different locations, on both win and linux setups, and I always get a uniform raster with value 0 covering the whole region.
I recall this working properly in earlier versions of QGIS (pre-1.0)

To duplicate the issue:
In the North Carolina database, run r.watershed using the elevation raster to create flow direction, streams and catchments rasters. Then run r.water.outlet using the resulting flow direction, and a drainage outlet point on the streams raster. Results are always a black raster covering the whole region.

Working in GRASS, outside of QGIS, using the same GRASS database, flow direction, and same easting-northing values results in a correct drainage basin.

@qgib
Copy link
Contributor Author

qgib commented Jan 6, 2010

Author Name: Redmine Admin (Redmine Admin)


Works for me (svn trunk) but the output map displayed in qgis with default color map (grayscale) is black.

Are you sure that realy the values are 0, try r.stats -c? Try to change in raster layer options the colormap to pseudo color in qgis.

I believe, that the bug is in qgis in rendering of a layer with values 0 and 1 using grayscale colormap. If you confirm this, please close this ticket as invalid and create a new one for this problem.

@qgib
Copy link
Contributor Author

qgib commented Jan 6, 2010

Author Name: Micha Silver (@micha-silver)


Quite right! I apologize for mis-reporting. The module r.water.outlet indeed works, but QGIS displays grayscale values of 0 and 1 as all black, so there's no differentiation of the final watershed. Changing the symbology to pseudocolor (or any other color ramp) will show the resulting watershed correctly.


  • resolution was changed from to invalid
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS
Projects
None yet
Development

No branches or pull requests

1 participant