Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to convert a raster map encoding directional flows (the output of r.terraflow) to a vector map. I'm using r.thin to process the output. It terminates successfully with 0 pixels removed during the last iteration. Yet when I try to vectorise the result with and feature=line, I get the following error message:

Extracting lines...
ERROR: Raster map is not thinned properly.
   Please run r.thin.

I have tried rerunning r.thin on the already thinned output, with the same result. I did not find anything in the documentation of either r.thin or to suggest what might be the problem here or how to fix it.

share|improve this question

The r.thin module will thin only the non-zero cells in a raster map. Please check that this condition is fulfilled. Perhaps you have to r.null on the map to set no data pixels to NULL beforehand.

share|improve this answer
Thanks for the suggestion. I've tried both adding a null map and removing it with r.null and I get the same result. Any other ideas? – Lars Kotthoff Mar 10 '12 at 12:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.