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

achim ak7 at jupiter.uni-freiburg.de
Tue Mar 3 06:25:15 EST 2009


Hi all,

I solved by adding cat via v.category (only) for the lines. Before only
centroids cats where present by default.

v.clean not nesessary.

Thanks Hamish!
achim

achim schrieb:
> Thanks Hamish,
> 
> but I do have cats. I did v.clean and I tried with v.category, too. But
> it doesn't help.
> 
> Maybe my cats addressing the nodes???
> 
> achim
> 
> Hamish schrieb:
>> 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
>>
>>
>>
>>       
>>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list