v.to.rast
Sue Tewalt x6437
stewalt at ncrds.er.usgs.gov
Tue Dec 2 07:33:58 EST 1997
>
> Hello all!
>
> I have a fairly large vector file containing field boundaries in a
> specific county. I am currently trying to convert this vector
> file to a raster using v.to.rast. I do the following:
>
> g.region vect=flds.vector res=1
> v.to.rast input=flds.vector output=flds.vector.out
>
> After conversion, however, the resulting raster file is *mostly*
> empty. With only certain fields in color (and the rest white).
> I've *checked* the attributes file of the vector map and it
> contains some 902 entries, but when I do a v.stats on my fields
> layer, I get:
>
> | Format: Version 4.0 (Level 2 access) (Portable)
> |
> |
> | Number of Lines: 2775
> | Number of Nodes: 1865
> | Number of Areas: 916 (incomplete)
> | Number of Isles: 23 (incomplete)
> | Number of Atts : 896
>
Have you looked at your vector file in v.digit? Under the toolbox
menu you can use o to display unlabeled areas (which won't convert to
raster) and u to display open-area lines (topology of the polygon is
not closed). Your resolution seems low enough that any closed vector
polygon should convert to raster.
More information about the grass-user
mailing list