[GRASS-user] v.to.rast error

Jacolin Yves yjacolin at free.fr
Mon Jul 31 07:38:02 EDT 2006


Thank you for your reply, my column was indeed a char type. I changed this in 
the dbf sourcefile (easier for me) and imported it again in grass.

Thank you.

Y.
Le Lundi 31 Juillet 2006 12:05, Markus Neteler a écrit :
> Jacolin Yves wrote on 07/31/2006 11:03 AM:
> > Ok, I know why I get this error (char type). What I don't understand is
> > why my column is in char type ?
>
> This was defined during import and depends on the data source.
>
> Could you post:
>  v.info -c clc_2000_centre
> ?
>
> > If I want to change this, do I need to use db.execute to create a new
> > column and then copy data from the first column to the new one ?
>
> Right.
>
> > Thank you for your tips !
> >
> > Y.
> >
> > Le Lundi 31 Juillet 2006 10:41, Jacolin Yves a écrit :
> >> Hi,
> >>
> >> I would like to rasterize a vector layer. I tried :
> >> v.to.rast input=clc_2000_centre layer=1 output=clc_2000_centre use=attr
> >> column=CODE_00 value=1 rows=4096 (using the GUI).
> >> I got this error :
> >> Column type not supported by db_select_to_array()
> >>
> >> The data of this column is integer, eg : 123, 234, 623, ...
> >>
> >> Do you have an idea ? Thanks,
> >>
> >> Y.
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser

-- 
Yves Jacolin
http://yjacolin.gloobe.org
----
Stagiaire Conservatoire Régional des Espaces Naturels de la région Centre
http://cahiersnaturalistes.free.fr/cpnrc/
----
- Qu'est-ce que cela peut faire que je lutte pour la mauvaise cause 
puisque je suis de bonne foi?
- Et qu'est-ce que ça peut faire que je sois de mauvaise foi
puisque c'est pour la bonne cause. (Jacques Prévert)




More information about the grass-user mailing list