Modify

Opened 11 years ago

Last modified 11 years ago

#10974 new enhancement

Avoiding collateral damages in PTv2 routes

Reported by: Weide <osm@…> Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

By far the most damages in Public Transport Version 2 Routes are done by mappers using "p" when working in an entirely different context, mostly lanes and speed limits. Some of them dont even know, that relations carrying information in the sequence of members exist and may be invisible. JOSM handles this situation very well if the necessary objects to handle this are already loaded. The advice to the mappers is to use "p" each and every time only after selecting the way and it's end nodes and using Alt-Ctrl-D on them. But it would be enough to load all the PTv2-routes having the way as a member and the neighbour elements of the way in their member list. Is there any way to support this automatically?

A few damages in Public Transport V2 Routes are done using the button "add to relation". As inserting a member into a PTv2 route without giving the position is nearly always wrong, the button should be deactivated if the destination relation contains type=route and public_transport:version=2.

A function to replace an already existing object by another already existing object (especially a node by a way or a relation or a way by a relation) in every parent relation without changing the position or role would avoid many problems. This process is very error prone if done step by step by the mapper. This occurs mainly in the context of detail mapping of platforms.

Attachments (0)

Change History (12)

comment:1 by Don-vip, 11 years ago

Component: unspecifiedCore

comment:2 by skyper, 11 years ago

Especially with public_transport:version=2 it should be no problem to insert the new member at the right position. Do not know if it is worth to code a routine for stop/platform but for route ways it shouldn't be that much work.

comment:3 by Weide <osm@…>, 11 years ago

It is only needed for route ways.

I think think the code to do the insertion is already in JOSM. Problems occur, if the information needed by the code is not loaded.

in reply to:  3 ; comment:4 by skyper, 11 years ago

Replying to Weide <osm@…>:

It is only needed for route ways.

I was replying also to below, where stop/platform come into play and yes, the order should be from first to last stop which could be recognized as stop is a node of a route way.

Replying to Weide <osm@…>:

A few damages in Public Transport V2 Routes are done using the button "add to relation". As inserting a member into a PTv2 route without giving the position is nearly always wrong, the button should be deactivated if the destination relation contains type=route and public_transport:version=2.

in reply to:  4 comment:5 by Weide <osm@…>, 11 years ago

Replying to skyper:

I was replying also to below,...

Ahh, I see. I think, it would be too much work for the result.

in reply to:  description ; comment:6 by skyper, 11 years ago

Replying to Weide <osm@…>:

A function to replace an already existing object by another already existing object (especially a node by a way or a relation or a way by a relation) in every parent relation without changing the position or role would avoid many problems.

Have a look at ReplaceGeometry from utilsplugin2. It will do the job.

in reply to:  6 ; comment:7 by Weide <osm@…>, 11 years ago

Replying to skyper:

Replying to Weide <osm@…>:

A function to replace an already existing object by another already existing object (especially a node by a way or a relation or a way by a relation) in every parent relation without changing the position or role would avoid many problems.

Have a look at ReplaceGeometry from utilsplugin2. It will do the job.

Yes, I didn't know that one. Thanks.

(Well, I'm missing the "del" delete warning "You are about to delete nodes outside of the area you have downloaded. This can cause problems because other objects (that you do not see) might use them. Do you really want to delete?", but it's a big advantage.)

in reply to:  7 ; comment:8 by skyper, 11 years ago

Replying to Weide <osm@…>:

Replying to skyper:

(Well, I'm missing the "del" delete warning "You are about to delete nodes outside of the area you have downloaded. This can cause problems because other objects (that you do not see) might use them. Do you really want to delete?", but it's a big advantage.)

Please recheck and open an new ticket if it really deletes existing nodes with positive ids outside download area.
Note: It should first replace all nodes with id=0 or negative and as far as I know it should not work outside download area.

in reply to:  8 comment:9 by Weide <osm@…>, 11 years ago

Replying to skyper:

Please recheck and open an new ticket if it really deletes existing nodes with positive ids outside download area.
Note: It should first replace all nodes with id=0 or negative and as far as I know it should not work outside download area.

No, it does not delete the node - after the exchange it's id is in one of the nodes of the new object. But it works outside of the downloaded area and if you forget to do CTRL-Alt-D on the node before doing the exchange, the node will be replaced only in the relations which are already loaded. The warning that I am missing should have been "You are about to exchange an object outside of the area you have downloaded. This can cause problems because other objects (that you do not see) might use them. Do you really want to exchange?"

comment:10 by skyper, 11 years ago

Strange, as far as I remember it did not work outside download area. Did not check what happens if I first move the object inside the area but this is probably always a problem.

Please, open a new ticket, with a step by step description. - Thanks

in reply to:  10 ; comment:11 by Weide <osm@…>, 11 years ago

Replying to skyper:

Please, open a new ticket, with a step by step description. - Thanks

That should be an enhancement request, right?

in reply to:  11 comment:12 by skyper, 11 years ago

Replying to Weide <osm@…>:

Replying to skyper:

Please, open a new ticket, with a step by step description. - Thanks

That should be an enhancement request, right?

Still think this is a regression (e.g. defect) but have to check it. Maybe, try some older tested-versions.
Though it does not really matter, as long as we get a proper bug report with status report we are usually happy and changing type later is no problem.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Weide <osm@…>.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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