Details Ticket 874


Comment | Reply | Take | Open


Serial Number 874
Subject v.extract bug with file parameter
Area none
Queue grass
Requestors neteler@itc.it
Owner none
Status resolved
Last User Contact Wed Dec 19 13:42:09 2001 (7 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Dec 19 13:42:16 2001 (7 yr ago)
Created Sat Dec 15 19:07:37 2001 (7 yr ago)

Transaction History Ticket 874


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  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request