Details Ticket 1388


Comment | Reply | Take | Open


Serial Number 1388
Subject various v.extract bugs
Area bug
Queue grass
Requestors neteler@itc.it
Owner none
Status resolved
Last User Contact Tue Mar 11 10:33:50 2003 (5 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Tue Mar 11 10:33:53 2003 (5 yr ago)
Created Thu Oct 31 17:57:12 2002 (6 yr ago)

Transaction History Ticket 1388


Thu, Oct 31 2002 17:57:12    Request created by guest  
Subject: various v.extract bugs

Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources

Hi,

today I found a bug in v.extract: It does not extract the correct vectors.

Eg.: I want to extract category "PS" into a new map.
v.report markveggy.vegtype ty=area  | grep PS
Processing area   396
|329|PS                                   
|387|PS  

TEST 1: extract by category names:
v.extract -n markveggy.vegtype output=markveggy.1 type=area new=0 list="PS"
v.report -h markveggy.1 ty=area
[...]
|#|description                                                              
|0|no data                                                                  
==> Oops.No result.

TEST 2: extract by category value
v.extract markveggy.vegtype output=markveggy.1 type=area new=0 list=329,387 
v.report -h markveggy.1 ty=area
[...]
|  0|no data    
|387|PS      

==> Oops.Partially wrong.


Second example: Another category name which appear several times:
v.report markveggy.vegtype ty=area  | grep Wi
Processing area   396
|  2|Wiii                                                                   
|  3|Wiii                                                                   
|  5|Wiii                                                                   
|  8|Wi-Wii-Wiii                                                            
|  9|Wiii                                                                   
| 14|Wiii                                                                   
| 21|Wiii-Wii                                                               
| 43|Wi-Wii-Wiii                                                            
|179|Wiii                                                                   
|181|IFA-Wiii                                                               
|193|Wii-Fi-Fvia                                                            
|210|Wi-Wii                                                                 
v.extract -n markveggy.vegtype output=markveggy.1 type=area new=0 list=Wiii
v.report -h markveggy.1 ty=area
[...]
|1|B-Aia-Mod

==> Complete nonsense...
Hint:
v.report markveggy.vegtype ty=area  | grep B-Aia-Mod
|  1|B-Aia-Mod

So it seems to take the first entry in this case.

A bugfix were great, but take this at least as warning to check the
results from v.extract.

Best,

 Markus

Tue, Mar 11 2003 10:33:50    Mail sent by mneteler  
-n is buggy and was removed from the module.

The rest of v.extract works.

Markus
Tue, Mar 11 2003 10:33:53    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