[GRASS-user] create raster from line vector

G. Allegri giohappy at gmail.com
Mon Feb 16 10:26:37 EST 2009


Damn! So it was simply a problem with the attribute table. In the
meantime I've solved doing a moving average on the rasterized polygon,
and extracting only the cat values between the inside and the
outside... Not a straightfarword solution :)

Thanks Nikos

2009/2/16 Nikos Alexandris <nikos.alexandris at felis.uni-freiburg.de>:
> On Mon, 2009-02-16 at 16:00 +0100, Nikos Alexandris wrote:
>> > > I share my vector, if someone wants to reproduce this problem:
>> > >
>> > > http://www.geospatial.it/allegri/bordi.tar.gz
>> > > EPSG:32632
>
> It works now. No problem.
>
> Cheers, Nikos
> ---
>
>> history
>
> 1  v.in.ogr dsn=/home/nik/Desktop/in/bordi.shp out=testbordi
> 2  d.mon x0
> 3  g.region vect=testbordi
> 4  g.region vect=testbordi -pa
> 5  d.vect testbordi
> 6  v.info testbordi
> 7  v.to.rast testbordi out=testbordirast use=val value=1
> 8  d.rast -o testbordirast
> 9  r.info testbodirast
> 10  r.info testbordirast
> 11  history
>
> # r.info
> r.info testbordirast -hgr
>
> min=1
> max=1
> north=4668313.355348
> south=4446909.136474
> east=1312106.717266
> west=1009114.847644
> Data Source:
>   Vector Map: testbordi in mapset PERMANENT
>   Original scale from vector map: 1:1
> Data Description:
>   generated by v.to.rast
> Comments:
>   v.to.rast input="testbordi" output="testbordirast" use="val" type="p\
>   oint,line,area" layer=1 value=1 rows=4096
>
>


More information about the grass-user mailing list