[GRASS-user] Re: dbf File not being Created with v.in.ascii

Markus Neteler neteler at itc.it
Wed Jul 25 02:51:40 EDT 2007


Ryan,

OK, so there are no attributes in the CSV but only geometry and
category number (ID). GRASS will not create a DBF file
since there is no need for it, given these data.

If you want to later add a table, simply use v.db.addtable.

Hope this helps,
Markus

On Tue, Jul 24, 2007 at 10:42:26PM -0700, ucl wrote:
> Perhaps I am misunderstanding what you mean by defining attribute columns.
> 
> Here are the first two lines:
> Latitude,Longitude,Category
> 34.420757,-119.685126,1
> 
> Markus Neteler wrote:
> > 
> > Can you post the first two lines of you CSV file? Otherwise the problem
> > is hard to understand. So far you still don't define any attribute
> > columns,
> > hence, no DBF (or other table) is generated.
> > 
> > Markus
> > 
> > Ryan Rosario wrote on 07/24/2007 09:26 AM:
> >> Thanks for the suggestions.
> >>
> >> I tried that and it did not work. I added an extra column to my data
> >> file called category and exported it to CSV. I then read in the vector
> >> using
> >>
> >> v.in.ascii input='responseTime.csv ' output=response format=point
> >> fs=',' skip=1 col='y double, x double, cat int' x=2 y=1 cat=3 --overwrite
> >>
> >> I did this both in the GUI and command-line and I also deleted the
> >> previous vector in case there was garbage left over.
> >>
> >> v.info response shows no dblinks.
> >>
> >> Is there something else I can try?
> >>
> >> Ryan
> >>
> > 
> http://www.nabble.com/dbf-File-not-being-Created-with-v.in.ascii-tf4127648.html#a11759207




More information about the grass-user mailing list