Defragging Fragged Streets
Posted by alexkemp on 20 August 2016 in English. Last updated on 8 February 2019.There has been an increased alertness to my changeset comments in recent weeks. I thought it reasonable, since I’m half-inventing words, to explain at greater length what on earth was going on.
I started mapping in March by entering house numbers & names onto the map & have continued doing that most days since. I’ve been using terracer within JOSM to do it, including associatedStreet relations for each house, something that terracer made easy. The team that maintain JOSM have been working hard to allow it to work under Java-8 (the dependency was previously on Java-7); however, many plugins (including terracer) are unmaintained and, as the chief developer informed me, they do not bother to check what effect their changes have upon any plugin.
Shortly after I started, version-32158 started crashing JOSM when certain options were selected and, shortly after, it was NOT possible to create a relation with terracer under any circumstances. That circumstance continues today, using the current-stable JOSM-10786 (terracer-32699).
This is how to create a new associatedStreet relation:
- Select your street ways + all houses
- From the menu, choose menu:Presets | Relations | Associated Street
- From the dialog, Enter the name of the street
- Press “New relation”
- (house members should get a ‘house’ role, whilst the street ways get a ‘street’ role)
That was fine, and it worked, but I only knew how to create a new relation, and not how to add new members to an existing relation. Consequently, and especially with big roads, the number of relations for each road began to grow. I was fragging (fragmenting) the street relations.
Eventually, I discovered how to add new houses to an existing associatedStreet relation. This is how you do it:
- Select the houses and/or street(s) to add to an existing same-street relation
- Switch on the Relations window (menu:Windows | Relations) or (alt-shift-R)
- Select the associatedStreet relation to add to and click on ‘Edit’
- The houses, etc. that you selected outside of the Relation Editor are now selected in the RHS window; click on the button to add them to the relation
- (optional) sort the relation
- Click to save
I hadn’t done it deliberately but, since it was me that had fragmented so many street relations, It seemed only reasonable that it should be me that defragged them. Hence the changesets. I notified them one at a time so that, if something went horribly wrong, it would be easy to revert any individual street.
Discussion
Comment from andygol on 21 August 2016 at 20:31
Hi alexkemp!
Do you know about reltoolbox plugin for JOSM?
I hope it will help your to work with relations!