[GRASS-user] create raster from line vector

G. Allegri giohappy at gmail.com
Mon Feb 16 09:40:49 EST 2009


I share my vector, if someone wants to reproduce this problem:

http://www.geospatial.it/allegri/bordi.tar.gz
EPSG:32632

2009/2/16 G. Allegri <giohappy at gmail.com>:
> Thnaks Nikos. I don't have neither MASKs nor raster values near 0...
> As you can see in my command I've set the value to 1.
> I start to think there's something wrong with my GRASS build...
>
> 2009/2/16 Nikos Alexandris <nikos.alexandris at felis.uni-freiburg.de>:
>> On Mon, 2009-02-16 at 15:17 +0100, G. Allegri wrote:
>>> Hello everyone.
>>> A simple question, but I'm getting mad with it!
>>> I simply have to convert a vector line to raster. I've done it many
>>> times in the past, but this time I can't make it work:
>>>
>>> v.to.rast input=border output=border use=val type=line layer=1 value=1
>>>
>>> The output is simply blank (MAX and MIN values are NULL)
>>> What stupid error am I doing?
>>>
>>> Giovanni
>>
>> The first thing that fall into my mind:
>>
>> MASK?
>> Perhaps it's a irrelevant thought, but I remember some "strange"
>> behaviour with floating point values (in your case the pixels that
>> compose your raster line). Could it be they are rounded down to 0?
>>
>> Regards, Nikos
>>
>>
>


More information about the grass-user mailing list