Opened 10 years ago
Closed 9 years ago
#2618 closed defect (fixed)
v.category option=transfer does not copy multiple cat values
Reported by: | ulf | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.4 |
Component: | Vector | Version: | 7.0.0 |
Keywords: | v.category transfer | Cc: | |
CPU: | x86-64 | Platform: | Linux |
Description
v.vector with option=transfer only copies one category value when a feature has multiple category values in the same layer. An example to explain what I mean:
echo "100|100|1" | v.in.ascii output=test input=- fid=$(v.edit --quiet layer=1 map=test tool=select cat=1) v.edit map=test layer=1 tool=catadd ids=${fid} cats=2
Now,
v.category option=print layer=1 input=test2
outputs "1/2", but
v.category option=print layer=2 input=test2
outputs "1". I would expect "1/2"...
Change History (9)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Summary: | v.vector option=transfer does not copy multiple cat values → v.category option=transfer does not copy multiple cat values |
---|
Fixed in r64825,6 (trunk, relbr70).
comment:4 by , 9 years ago
I added the commands as a Bash test case in r65485 but I actually don't understand what the output means here (why it is the same for layer=1
and layer=2
?) and what option=transfer
does. It would be good if somebody can review it and/or comment in the test.
Side note: The Bash script tests (test cases, test files) are really easy to create. Just look at r65485. They have a lot of problems and the solution is not scalable but it is better than no test!
comment:9 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The fix seems to work and the test looks ok to me, so closing.
One row disappeared from my example - to create map
test2
i did the following:Sorry about that, Ulf