> Assuming there is a raster map with areas (e.g. the result of a classification). Ok, now it's clear. That's a good point... maybe one could write an algorithm similar to r.grow or r.lake: add pixels starting from a point until a pixel with the same category of the seed is found. A good exercise :-)