Can anyone tell me what is wrong with the included text file[s].
I am trying to import a simple ungen file set with v.in.arc. But when
I run v.in.arc with the text file option it doesn't import giving the
error:
++++++++++++++++++++++
v.in.arc: Coverage type = polygon
The LABEL-TEXT file has been scanned. There are 15
lines in the file and 3 columns in the file
Working...
ERROR: Reading LABEL-TEXT or LABEL-POINTS file
++++++++++++++++++++++
It imports the lines file OK (without the text_in option.)
The command is:
v.in.arc lines_in=simple.pol points_in=simple.lab \
text_in=simple.txt vector_out=simple idcol=1 catcol=3 type=polygon
I've tried both GRASS4.2.1 and GRASS5beta6, also with
an optional 'END' line on each file in all combinations.
Also it says 15 lines: I count 14. . .
Any help appreciated.
D Gray
(attachments)
simple.lab (425 Bytes)
simple.txt (336 Bytes)
Hi David,
this might be related to G_strip commands used there.
Please try if you change G_strip to G_squeeze.
Reason could the the changes from gets to fgets
and related stuff.
Hope this helps (if you get it, please send me
the diffs for the CVS).
Markus Neteler
-----------------------------------------------------------------
Geographisches Institut | Schneiderberg 50
+ Physische Geographie 30167 Hannover, Germany
& Landschaftsoekologie + Tel: ++49-(0)511-762-4494
Universitaet Hannover Fax: ++49-(0)511-762-3984
neteler@geog.uni-hannover.de
-----------------------------------------------------------------
On Wed, Mar 08, 2000 at 05:02:30PM +0000, D D Gray wrote:
Can anyone tell me what is wrong with the included text file[s].
I am trying to import a simple ungen file set with v.in.arc. But when
I run v.in.arc with the text file option it doesn't import giving the
error:
++++++++++++++++++++++
v.in.arc: Coverage type = polygon
The LABEL-TEXT file has been scanned. There are 15
lines in the file and 3 columns in the file
Working...
ERROR: Reading LABEL-TEXT or LABEL-POINTS file
++++++++++++++++++++++
It imports the lines file OK (without the text_in option.)
The command is:
v.in.arc lines_in=simple.pol points_in=simple.lab \
text_in=simple.txt vector_out=simple idcol=1 catcol=3 type=polygon
I've tried both GRASS4.2.1 and GRASS5beta6, also with
an optional 'END' line on each file in all combinations.
Also it says 15 lines: I count 14. . .
Any help appreciated.
D Gray
Markus Neteler wrote:
Hi David,
this might be related to G_strip commands used there.
Please try if you change G_strip to G_squeeze.
Reason could the the changes from gets to fgets
and related stuff.
Hope this helps (if you get it, please send me
the diffs for the CVS).
Markus Neteler
>
> I've tried both GRASS4.2.1 and GRASS5beta6, also with
> an optional 'END' line on each file in all combinations.
>
> D Gray
Hi
Actually I must have missed a combination. It _was_ because of
the .lab file not having an END statement. I thimk perhaps I
forgot an EOL, and that's why it didn't pick this up.
Otherwise the build with 'G_squeeze' is working fine.
David.