Re: [GRASS-user] Converting raster to Vector (areas)- Question
Luis Lisboa wrote: > Hello Markus and GRASS ML > But these two areas can have the same category, >> >> here 1, and you can add more info for each category to the attribute >> table. >> > > But can I do that while running r.to.vect? If yes, How? > Assign the same category to all areas with same cell value with r.to.vect -v Then add a table to the vector if none is connected, upload category values, create new columns, fill columns with values. Maybe something with r.stats could work, some scripting to generate a file with SQL commands to be executed with db.execute HTH, Markus M ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Converting raster to Vector (areas)- Question
Hello Markus and GRASS ML But these two areas can have the same category, > here 1, and you can add more info for each category to the attribute > table. > > But can I do that while running r.to.vect? If yes, How? ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Converting raster to Vector (areas)- Question
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 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Converting raster to Vector (areas)- Question
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? Thanks Luis ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user