[GRASS-user] Errors with v.in.ascii with Strings

Hamish hamish_b at yahoo.com
Sun Sep 14 21:53:55 EDT 2008


Ryan R. Rosario wrote:
> I am able to import a CSV file containing two columns both of double
> precision, but once I add in a third column (called 'name') of text with
> arbitrary length, I get the following error:
> 
> "x column is not of number type"
> 
> The command I am using is as follows:
> 
> v.in.ascii input=data.csv output=incidents format=point fs=, skip=1
> {columns=x double precision, y double precision, name varchar(255)}
> x=1 y=2 z=0 cat=0 --overwrite
> 
> There must be something in the text that v.in.ascii does not like. FWIW,
> this third column contains street addresses. What could be causing this? 

maybe a comma in the street address is confusing it? Can you export with
another field separator like "|"? 

or turn on full debug messages:
  g.gisenv set="DEBUG=5"
and rerun. Set it back to 0 to get no messages.

no header lines or blank lines at the end?
,,,,


Hamish



      



More information about the grass-user mailing list