[GRASSLIST:7630] Re: r.grow

Glynn Clements glynn at gclements.plus.com
Wed Jul 20 02:11:21 EDT 2005


Gregory Booma wrote:

> I'm wondering if someone can explain how r.grow 'breaks ties'
> between two cells to determine which will grow into a space when
> both are eligible. I found discussion on the prior version of
> r.grow, but not for the updated version implemented in GRASS6.

The northernmost candidate is chosen; if there are multiple candidates
with the same northing, the westernmost is chosen.

If you want to look at the code, the relevant function is
setup_neighbors().

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list