[GRASSLIST:10069] Re: v.to.db syntax

Michael Barton michael.barton at asu.edu
Tue Jan 31 01:50:50 EST 2006


Kirk,

Here's one thought. Are the columns actually named "x" and "y"?
You need to specify real column names.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



> From: "Kirk R. Wythers" <kwythers at umn.edu>
> Date: Mon, 30 Jan 2006 15:23:21 -0600
> To: List Users GRASS <GRASSLIST at baylor.edu>
> Cc: Blazek Radim <blazek at itc.it>
> Subject: [GRASSLIST:10057] v.to.db syntax
> 
> Could someone expand on the syntax for the command v.to.db?
> 
> I have a vector file that came with bad y coordinate values in the
> downloaded dbf attribute table. Therefor when I read the shape file
> into grass with v.in.ogr (I'm connected to postgresql database), the
> y value in attribute table in pg is also wrong. I want to re-write
> the y coordinates in the attribute table with the correct geometry
> from the vector file.
> 
> I tried:
> 
>   v.to.db NAME_OF_GRASS_VECTOR option=coor col=x,y
> 
> The command appeared to run (albit it took a while) but did not re-
> write the attibute table associated with the vector. Anyone see what
> I messed up?
> 
> Thanks,
> 
> Kirk




More information about the grass-user mailing list