Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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 skyper)

It seems to me that r5516 does not work as

  1. automatical sorting first sorts by object type and than housenumbers but it should do it the opposite way.
  2. If you just select the closed ways at the bottom of the relation and try to sort them it does not sort at all.
  3. 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)

relation_unsorted.osm (34.5 KB ) - added by skyper 12 years ago.
sample

Download all attachments as: .zip

Change History (7)

by skyper, 12 years ago

Attachment: relation_unsorted.osm added

sample

comment:1 by skyper, 12 years ago

Description: modified (diff)

comment:2 by skyper, 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:

  1. place closed ways and
  2. nodes

Cheers

comment:3 by simon04, 12 years ago

trunk/src/org/openstreetmap/josm/tools/AlphanumComparator.java might be of interest for resolving this issue …

comment:4 by Don-vip, 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.

comment:5 by Don-vip, 12 years ago

Resolution: fixed
Status: newclosed

In 5603/josm:

fix #8224 - Relation sorting: run custom sorters before default one in order to take into account all primitives based on their role before their type -> this allows to sort associatedStreet houses if the addr:housenumber is set on a closed way instead of a node

in reply to:  5 comment:6 by skyper, 12 years ago

Replying to Don-vip:

In 5603/josm:

fix #8224 - Relation sorting: run custom sorters before default one in order to take into account all primitives based on their role before their type -> this allows to sort associatedStreet houses if the addr:housenumber is set on a closed way instead of a node

Thanks.

Totally forgot about relations (site,multipolygon,...) but it works.

Only minor issue I have that the order of the elements with role=street is sometimes changed without closing any gaps. E.g. the relation is changed without any benefit.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.