6 Conversion raster-vector and vice versa

GRASS is able to convert between raster and vector models (map representations), including attribute transfer. To convert vector maps to raster maps, use v.to.rast. It can either assign fixed values to the resulting map (useful when generating a raster MASK) or transfer the attributes of a specified column.

The module r.to.vect does the opposite, it vectorizes raster points, lines and areas. While points can be vectorized straight away, lines have to be thinned (skeletonized) with r.thin beforehand.




© 2005, GDF Hannover bR - Solutions for spatial data analysis and remote sensing