Opened 12 years ago
Last modified 6 years ago
#1823 new enhancement
v.clean -rmdup: eliminate identical categories
Reported by: | Nik | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 7.6.2 |
Component: | Vector | Version: | unspecified |
Keywords: | v.clean, rmdupl | Cc: | n.hafner@…, neteler@… |
CPU: | x86-64 | Platform: | MSWindows 7 |
Description
when v.clean with the tool rmdup is used currently there is no possibility to remove identical categories automatically. that would be great. and it would be also very helpful if I could decide to eliminate either the first category or the second automatically in case of the categories are different.
attachment with demo-shapefile
Attachments (1)
Change History (11)
by , 12 years ago
comment:1 by , 12 years ago
Component: | Default → Vector |
---|---|
Keywords: | v.clean rmdupl added |
Milestone: | 6.4.3 → 7.0.0 |
comment:2 by , 12 years ago
comment:3 by , 9 years ago
Cc: | added; removed |
---|---|
Milestone: | 7.0.0 → 7.0.5 |
comment:4 by , 8 years ago
Milestone: | 7.0.5 → 7.3.0 |
---|
comment:7 by , 7 years ago
Milestone: | 7.4.1 → 7.4.2 |
---|
comment:8 by , 6 years ago
Milestone: | 7.4.2 → 7.6.0 |
---|
All enhancement tickets should be assigned to 7.6 milestone.
Note:
See TracTickets
for help on using tickets.
Replying to Nik:
If there are no identical categories in the input, there are also no identical categories in the output. If two different lines have identical coordinates and identical categories, one line is removed and the categories are not changed (no duplicate identical categories). IOW, there is no need to eliminate identical categories because the output geometry does (should) not have several identical categories.
What would be possible is to decide whether only the categories of the first geometry encountered are used or all categories of all found duplicates. Discriminating between first and second geometry does not make sense because there is no inherent logical order of geometries.
The purpose of
v.clean
is to perform topological cleaning of geometries. Cleaning of categories, say, if a geometry has multiple categories in one layer, keep only the unique category if exist, would be a task forv.category
.BTW, the projection info says it's in latlon, but the coordinates seem to be meters or feet, definitively not degrees:
After removing duplicates, the resulting line has two categories, 1 and 2 in layer 1, thus no identical categories.
Markus M