[GRASS-user] v.to.rast "Converted points/lines: 0 of 47763"

Hamish hamish_b at yahoo.com
Tue Mar 3 06:01:58 EST 2009


achim wrote:
> today another question.
> 
> My problem:
> I converted boundaries from an area vmap to lines via
> v.type
> v.type input=gitter at achim output=gitter_lines
> type=boundary,line --o
> 
> Now I want to convert these lines to raster-cells via:
> 
> v.to.rast --overwrite input=gitter_lines at achim
> output=gitter_lines
> use=cat type=line
> 
> but nothing converts!
> 
> Loading data...
> Pass 1 of 2:
> Reading features...
> Schreibe Rasterkarte...
> Pass 2 of 2:
> Schreibe Rasterkarte...
> Converted areas: 0 of 0
> Converted points/lines: 0 of 47763
> v.to.rast komplett.
> 
> 
> What am I doing wrong?

boundaries typically do not have a category value (e.g. a boundary between
two fields: which farmer owns the boundary?), but sometimes can (e.g. if
boundary is also a road)

only items with category are processed by most vector modules (they loop
from the first cat to the last cat). So run v.category to add cats to
your lines and then it should work.

there is a (short) word about this in the vectorintro help file.


Hamish



      



More information about the grass-user mailing list