this bug's URL: http://intevation.de/rt/webrt?serial_num=4225
-------------------------------------------------------------------------
Subject: v.clean: rmdac tool doesn't create the error vector
Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 2006-03-29
v.clean tool=rmdac removes multiple centroids from input OK, but fails to create the "error" vector:
### There are 2 redundant centroids which I want to spot:
$ v.build parcels
Building topology ...
4137 primitives registered
Building areas: 100%
1112 areas built
12 isles built
Attaching islands: 100%
Attaching centroids: 100%
Topology was built.
Number of nodes : 3037
Number of primitives: 4137
Number of points : 0
Number of lines : 0
Number of boundaries: 3023
Number of centroids : 1114
Number of areas : 1112
Number of isles : 12
Number of duplicate centroids : 2
### ... So I use v.clean to put duplicate centroids into the error vector file, so I could find out where they are; but as you can see below the error vector is empty (though cleaning took place, since there are 2 centroids less and no duplicates in the output):
$ v.clean input=parcels output=parcels_cl error=parcels_err tool=rmdac
+---------------------------------+---------------+
| Tool | Threshold |
+---------------------------------+---------------+
| Remove duplicate area centroids | 0.000000e+00 |
+---------------------------------+---------------+
Copying vector lines ...
--------------------------------------------------
Rebuilding parts of topology ...
Building topology ...
4137 primitives registered
Building areas: 100%
1112 areas built
12 isles built
Attaching islands: 100%
Attaching centroids: 100%
Topology was built.
Number of nodes : 3037
Number of primitives: 4137
Number of points : 0
Number of lines : 0
Number of boundaries: 3023
Number of centroids : 1114
Number of areas : 1112
Number of isles : 12
Number of duplicate centroids : 2
--------------------------------------------------
Tool: Remove duplicate area centroids
Duplicate area centroids: 2
--------------------------------------------------
Rebuilding topology for output vector ...
Building topology ...
4135 primitives registered
Building areas: 100%
1112 areas built
12 isles built
Attaching islands: 100%
Attaching centroids: 100%
Topology was built.
Number of nodes : 3035
Number of primitives: 4135
Number of points : 0
Number of lines : 0
Number of boundaries: 3023
Number of centroids : 1112
Number of areas : 1112
Number of isles : 12
--------------------------------------------------
Building topology for error vector ...
Building topology ...
0 primitives registered
0 areas built
0 isles built
Attaching islands:
Attaching centroids: Topology was built.
Number of nodes : 0
Number of primitives: 0
Number of points : 0
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0
Maciek
-------------------------------------------- Managed by Request Tracker