[GRASS-user] <Q>How to add coordinate (x,y) data?

SGW00412 at nifty.com SGW00412 at nifty.com
Sun Sep 14 19:58:41 EDT 2008


Dear Hamish san;

Thank for your kind advice !

> Someone else will have to answer that.

Okey, to use spgrass6 is the better method for kriging and R, I guess...

Ysuo shimada
---------
Hamish <hamish_b at yahoo.com>さん:
> Yasuo Shimada wrote:
> > I want to add coordinate (x, y) data to point-vector-table.
> > However, I do not know how to do it....
> > 
> > Normally, point-vector-table has not coordinate data.
> > cat    elev
> > 1     27.000
> > 2     25.000
> > 3     39.000
> > 
> > So, I used addcol command:
> > v.db.addcol map=xx columns="x single"
> > v.db.addcol map=xx columns="y single"
> > 
> > cat    elev   x    y
> > 1     27.000 ....  ....
> > 2     25.000 ....  ....
> > 3     39.000 ....  ....
> > 
> > I want to add coordinate data into x, y columns.. for
> > example;
> > 
> > cat    elev       x       y
> > 1     27.000    139.6721 35.14625
> > 2     25.000    139.6230 35.15768
> > 3     39.000    139.6232 35.14543
> > 
> > However, I do not know how to do it....
> > Please teach me how to add coordinate (x,y) data ?
> 
> v.db.addcol columns='x DOUBLE PRECISION, y DOUBLE PRECISION'
> v.to.db option=coor columns=x,y
> 
> 
> > I want to kriging analysis with R and library(gstat).
> > I guess, Kiriging (gstat) needs a file including data and
> > coordinate(x,y)data.
> 
> Someone else will have to answer that.
> 
> 
> Hamish
> 
> 
>       


More information about the grass-user mailing list