Sat, Dec 15 2001
19:07:37
|
|
Request created by guest
|
|
Subject: v.extract bug with file parameter
Hi,
unfortunately the file parameter of v.extract is not functional.
Please try with Spearfish dataset:
cat fields.extr
C. Mitchell#1
C. Mitchell#2
C. Mitchell#3
C. Mitchell#4
C. Mitchell#5
v.extract -n fields type=area out=fields.mitchell new=0 file=fields.extr
The result is an empty file. Using the "list" parameter the module
runs well.
Thanks for a fix :-)
Markus
|
|
Sun, Dec 16 2001
14:51:25
|
|
Mail sent by guest
|
|
Hi, Markus,
am trying to use the bugtracker system (:)
well, the bug is there in main.c and it concerns the sscanf stopping at
whitespaces reading from the file with categories. I roughly fixed this with
changing
sscanf(s,"%s",text)
to sscanf(s,"%[a-zA-Z .#0-9]")
another bug was nulling cptr right before comparing it to the name (and
assigning category in case the two were equal)
cheers,
alex |
|
Tue, Dec 18 2001
10:16:34
|
|
Comments added by guest
|
|
as else nobody commented, I (1) added more symbols to take from file and
(2) returned end-nulling cptr as it makes sense.
it works this way in the example given above
--alex |
|
Wed, Dec 19 2001
13:42:09
|
|
Mail sent by mneteler
|
|
Thanks,
Alex! The v.extract is working perfectly now. I will close
the bug report.
Congrats,
Markus
|
|
Wed, Dec 19 2001
13:42:16
|
|
Status changed to resolved by mneteler
|
|