[GRASS-user] v.in.ascii create a dbtable

Roger Bivand Roger.Bivand at nhh.no
Thu Apr 5 08:20:39 EDT 2007


On Thu, 5 Apr 2007, Martin Landa wrote:

> Hi,
> 
> I noticed this "strange" behaviour last week. Table is created only if
> you declare at least one addition column in the table, e.g. col="cat
> int, x double, y double, z double, data int".

Is v.in.ascii creating a 3D point, even if -z is not set?

echo "1|1|1" | v.in.ascii out=test z=3
v.info test

has no dblink and is 3D;

echo "1|1|1" | v.in.ascii out=test1 col="x double, y double, z double"
v.info test1

has a dblink and is not 3D.

> 
> E.g.:
> 
> echo "1|1|1" | v.in.ascii out=test z=3
> 
> no table is created (maybe the user could expect the table [cat|x|y|z]?)
> 
> but
> 
> echo "1|1|1|10" | v.in.ascii out=test z=3 col="x double, y double, z
> double, data int"
> 
> works
> 
> cat|x|y|z|data
> 1|1|1|1|10
> 
> Martin
> 
> 2007/4/5, temiz <temiz at deprem.gov.tr>:
> > hello
> >
> > Sorry But I am cofused about v.in.ascii ?
> > doesn't v.in.ascii create a dbtable?
> >
> > cat elreg2.xy | v.in.ascii  out=elreg2 fs='|' cat=1 x=2 y=3 z=4
> > columns='cat integer, x double precision, y double precision, z integer)'
> >
> > no related table created !
> >
> > regards
> >
> > --
> > Ahmet Temiz
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> > _______________________________________________
> > grassuser mailing list
> > grassuser at grass.itc.it
> > http://grass.itc.it/mailman/listinfo/grassuser
> >
> 
> 
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the grass-user mailing list