Hi all,<br>
<br>
I'm trying to bring in a comma separated text file as a point vector
file in GRASS using v.in.ascii, before i try to link it to a large 33Mb
dbf data file. <br>
<br>
The csv file looks like this with 39 rows and i removed the header
because grass60 (on Ubuntu breezy) does not have the skip option in the
v.in.ascii command: the columns are WMOID, cityname, Latitude and
Longitude. I want to use the WMOID as 'cat' in order to link my dbf
data later.<br>
<br>
<span style="color: rgb(255, 0, 0);">420710,AMRITSAR,31.63,74.86
</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">421010,PATIALA,30.33,76.46
</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">421310,HISSAR,29.16,75.73
</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">421820,DELHI,28.58,77.20
</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">423390,JODHPUR,26.30,73.01
</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">423480,JAIPUR,26.81,75.80
</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">423690,LUCKNOW,26.75,80.88
</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">424100,GAUHATI,26.10,91.58<br>
<br>
<span style="color: rgb(0, 0, 0);">I Tried the following command and got the error:</span><br>
<br>
cat reformat/STATIONS2.dat | v.in.ascii output=stations2 fs=','
columns='cat int, name(varchar(30), y double, x double' x=4 y=3 cat=1<br>
WARNING: DOS text format found, attempting import anyway<br>
Maximum input row length: 39<br>
Maximum number of columns: 4<br>
Minimum number of columns: 4<br>
column: 1 type: integer<br>
column: 2 type: string length: 18<br>
column: 3 type: double<br>
column: 4 type: double<br>
DBMI-DBF driver error:<br>
SQL parser error in statement:<br>
create table stations2 ( cat int, name(varchar(30), x double, y double )<br>
Error in db_execute_immediate()<br>
<br>
ERROR: Cannot create table: create table stations2 ( cat int,<br>
name(varchar(30), x double, y double )<br>
<br>
</span>I also get the same error with<br>
<br>
v.in.ascii input=reformat/STATIONS.csv output=gstations fs=','
skip=1 columns='cat int, label(varchar(30), y double, x double' x=4 y=3
cat=1<br>
<br>
help!<br>
vishal<br>
<br>
<a href="http://www.people.cornell.edu/pages/vkm2">www.people.cornell.edu/pages/vkm2</a><br>
<br>