#8224 closed defect (fixed)
sorting associatedStreet relation broken
Reported by: | skyper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | sort relation | Cc: |
Description (last modified by )
It seems to me that r5516 does not work as
- automatical sorting first sorts by object type and than housenumbers but it should do it the opposite way.
- If you just select the closed ways at the bottom of the relation and try to sort them it does not sort at all.
- If you select just one single member and press sort it sorts but it should not.
Gonna attach an example file.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2012-11-26 02:30:58 Last Changed Author: simon04 Revision: 5600 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2012-11-25 21:24:25 +0100 (Sun, 25 Nov 2012) Last Changed Rev: 5600 Identification: JOSM/1.5 (5600 de) Memory Usage: 466 MB / 643 MB (181 MB allocated, but free) Java version: 1.6.0_24, Sun Microsystems Inc., OpenJDK 64-Bit Server VM Operating system: Linux Dataset consistency test: No problems found Plugin: PicLayer (28807) Plugin: terracer (28807) Plugin: utilsplugin2 (28807)
Attachments (1)
Change History (7)
by , 12 years ago
Attachment: | relation_unsorted.osm added |
---|
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
Did some more sorting and even with only closed way role=house
selected and it does rearrange but not right. Maybe some issue you with alphabetical numbering ?
What happens if there is more than one member with the same house number ? I suggest to:
- place closed ways and
- nodes
Cheers
comment:3 by , 12 years ago
trunk/src/org/openstreetmap/josm/tools/AlphanumComparator.java might be of interest for resolving this issue …
comment:4 by , 12 years ago
The current algorithm does not take into account addresses set on ways but only on nodes. I have to rethink it to match your example.
sample