[GRASS-user] v.to.rast with text column

Hamish hamish_b at yahoo.com
Wed Oct 14 07:39:32 EDT 2009


see also  https://trac.osgeo.org/grass/ticket/175


Achim wrote:
> v.to.rast has the option:
> 
> --%<--
> labelcolumn=name
>     Name of column used as raster category
> labels
> --%<--
> 
> And the raster values have to be numeric:
> 
> --%<--
> column=name
>     Name of column for attr parameter (data type
> must be numeric)
> --%<--
> 
> (http://grass.itc.it/grass64/manuals/html64_user/v.to.rast.html)
> 
> Try to make unique numbers from your string-column and
> convert them with
> column=... and labelcolumn...
> 
> Achim
> 
> 
> Dylan Beaudette schrieb:
> > Hi,
> > 
> > v.to.rast is letting me know that it does not accept
> text columns in an 
> > attribute table. Has anyone figured out a simple
> approach to making this 
> > work? I suppose that I could import the data into R,
> convert to factors, save 
> > the levels back to the table and use those... but
> there may be something out 
> > there that is simpler and can be done within GRASS.
> Also, would this be 
> > something worth adding to the v.to.rast code?
> > 
> > Cheers,
> > Dylan
 


      


More information about the grass-user mailing list