[GRASS-user] Converting raster to Vector (areas)- Question

Markus Metz markus.metz.giswork at googlemail.com
Wed Jul 21 08:33:04 EDT 2010


Luis Lisboa wrote:
> Greetings
> I have a labeled/classified image like this (hoje this displayed correctly
> ):
> 1 1 1 1 1 1 3
> 2 2 2 1 1 1 3
> 2 2 1 1 1 1 3
> 2 1 4 4 4 4 4
> 4 4 4 4 4 4 4
> When I convert this to vector (areas) the pixel with value 1 in row 4 is
> considered a different "area" from the one with all ones but it shouldn't
> because it's connected with the 1 big area by pixel corner.
> My question is: how can I convert tyhis to vector and still consider that 1
> as being part of the big clusters of 1?

By definition (GRASS vector model and GC simple features), these two
are different areas and can not be combined because they do not share
a common boundary. But these two areas can have the same category,
here 1, and you can add more info for each category to the attribute
table.

Markus M


More information about the grass-user mailing list