Look at the picture #1. This is my cost surface raster that has only 2 values. Area restricted for path to cross (red one) and area that is free to go (yellow one). As I need it and as I undestand how it is should to work, my least cost path shoul be look like a straight line beetween two point for most of a time. Practically I have what you can see on picture #2 (performed by r.drain). Cumulative cost gained by using r.cost module showed on picture #3. And to be more clear, what I want to get is showed on picture #4.Basicaly I just need to get minimum distance beetween two points.
Help me please, is there a way to reach the goal? Thank you for your help!
أكثر...

Help me please, is there a way to reach the goal? Thank you for your help!
أكثر...