Modify

#7409 closed defect (fixed)

[PATCH] Plugin routing ignores roundabout implicit oneway

Reported by: franpd@… Owned by: team
Priority: normal Component: Plugin routing
Version: latest Keywords: roundabout oneway
Cc:

Description

In roundabouts with no oneway tag, the plugin assumes bidirectional path instead of oneway. Implicit oneway is not applied.

Attachments (4)

Roundabout_before.png (108.4 KB) - added by franpd@… 15 months ago.
Roundabout before patch
Roundabout_after.png (94.1 KB) - added by franpd@… 15 months ago.
Roundabout_after.2.png (94.1 KB) - added by franpd@… 15 months ago.
Roundabout after patch
RoutingGraph.java.patch (1.8 KB) - added by franpd@… 15 months ago.
Patch

Download all attachments as: .zip

Change History (26)

Changed 15 months ago by franpd@…

Roundabout before patch

Changed 15 months ago by franpd@…

Changed 15 months ago by franpd@…

Roundabout after patch

Changed 15 months ago by franpd@…

Patch

comment:1 follow-up: Changed 15 months ago by akks

Should we apply it together with your patch in #3447?

comment:2 Changed 15 months ago by akks

Maybe you will want get SVN account from TomH and continue to support routing plugin?

comment:3 in reply to: ↑ 1 Changed 15 months ago by anonymous

Replying to akks:

Should we apply it together with your patch in #3447?

May be I should create a patch with both changes at the same time, as one of them can delete some code from the other one.

Replying to akks:

Maybe you will want get SVN account from TomH and continue to support routing plugin?

I would be pleased if I can help improving the routing plugin. I talked to the owners and liked the idea.

comment:4 Changed 15 months ago by akks

This could help getting account: http://josm.openstreetmap.de/ticket/7237#comment:13

comment:5 follow-up: Changed 15 months ago by akks

Can your include patches for routing yourself now?

comment:6 in reply to: ↑ 5 Changed 15 months ago by franpd@…

Replying to akks:

Can your include patches for routing yourself now?

I have the access now. I will try to submit the changes and close the tickets as soon as possible.
Thank you very much.

comment:7 follow-up: Changed 15 months ago by akks

I did not mean to hurry you, I am just curios :)

Do not forget main cycle of publishing version - use "ant publish" with comment in build.xml or perform full "commit source -> update source (svn update) -> ant dist -> commit jar" cycle. I missed some steps several times (forget svn add, forget to publish jar or source, most often - forget to update and rebuild the source).

The guide
http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
is also worth reading:)

Last edited 15 months ago by akks (previous) (diff)

comment:8 in reply to: ↑ 7 Changed 15 months ago by franpd@…

Replying to akks:

I did not mean to hurry you, I am just curios :)

Do not forget main cycle of publishing version - use "ant publish" with comment in build.xml or perform full "commit source -> update source (svn update) -> ant dist -> commit jar" cycle. I missed some steps several times (forget svn add, forget to publish jar or source, most often - forget to update and rebuild the source).

The guide
http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
is also worth reading:)

I need your help in committing the changes. Could you please help me? I do not now if you can send me an email or I can just post my scenario and problem in here.

comment:9 follow-up: Changed 15 months ago by akks

It is simpler to put it here, so not only me could help. What is the problem?
if you need e ma il, it is alexei_kasatkin <at sign> mail.ru

Last edited 15 months ago by akks (previous) (diff)

comment:10 in reply to: ↑ 9 Changed 15 months ago by franpd@…

Replying to akks:

It is simpler to put it here, so not only me could help. What is the problem?
if you need e ma il, it is alexei_kasatkin <at sign> mail.ru

Scenario:
Eclipse installed on Windows 7. Followed all steps in videos "​How to checkout JOSM into Eclipse" and "How to checkout a JOSM plugin into Eclipse". Projects located in /workspace/core/... for JOSM and /workspace/plugins/routing/... for the plugin, so the paths in build.xml have not to be changed. Changed plugin SVN from "http://svn.openstreetmap.org/applications/editors/josm/plugins/routing" to "http://myusername@svn.openstreetmap.org/applications/editors/josm/plugins/routing". Ant could not find a command line SVN, so I installed TortoiseSVN (I do not know it is the best solution, or if I can do with Eclipse). All local compilations and tests work fine.


Problems:

1) I do not know where to configure my SVN account password.

2) When I try to publish (ANT -> publish), it gets stalled in the commit step (maybe waiting for a password). No windows appears to ask for it.

comment:11 follow-up: Changed 15 months ago by akks

This is the password problem. Commit source first time with TortoiseSvn (gui or command line svn commit src -m "routing plugin update") - it will ask for user and password (by the way, it does not work from behind proxy at my university).

Then ant publish will then work saved password (it is noninteractive).
You can clean password later by TortoiseSvn settings (Settings-Saved Data-Authentication data-clean)

Last edited 15 months ago by akks (previous) (diff)

comment:12 in reply to: ↑ 11 Changed 15 months ago by franpd@…

Replying to akks:

This is the password problem. Commit source first time with TortoiseSvn (gui or command line svn commit src -m "routing plugin update") - it will ask for user and password (by the way, it does not work from behind proxy at my university).

Then ant publish will then work saved password (it is noninteractive).
You can clean password later by TortoiseSvn settings (Settings-Saved Data-Authentication data-clean)

Sorry I am not experienced with SVN, so...what exactly should I write in the "routing plugin update" part of the command, knowing the paths I told you before?

comment:13 follow-up: Changed 15 months ago by akks

Just a message to be shown in http://trac.openstreetmap.org/timeline
for example "Routing plugin: added one-way support". TortoiseSVN GUI commit should also work (src folder in Explorer -> context menu -> commit -> [enter message] -> OK - [enter login and password]). Short SVN introduction: http://www.cse.yorku.ca/percept/svn_starters_guide.pdf

Last edited 15 months ago by akks (previous) (diff)

comment:14 in reply to: ↑ 13 ; follow-up: Changed 15 months ago by anonymous

Replying to akks:

Just a message to be shown in http://trac.openstreetmap.org/timeline
for example "Routing plugin: added one-way support". TortoiseSVN GUI commit should also work (src folder in Explorer -> context menu -> commit -> [enter message] -> OK - [enter login and password]). Short SVN introduction: http://www.cse.yorku.ca/percept/svn_starters_guide.pdf

Oh, then I meant "src" part of the command :) Now I see it should be workspace/plugins/routing/src

comment:15 in reply to: ↑ 14 ; follow-up: Changed 15 months ago by akks

Replying to anonymous:

Replying to akks:

Just a message to be shown in http://trac.openstreetmap.org/timeline
for example "Routing plugin: added one-way support". TortoiseSVN GUI commit should also work (src folder in Explorer -> context menu -> commit -> [enter message] -> OK - [enter login and password]). Short SVN introduction: http://www.cse.yorku.ca/percept/svn_starters_guide.pdf

Oh, then I meant "src" part of the command :) Now I see it should be workspace/plugins/routing/src

It is better to commit from corresponding folder (svn commit in routing folder commits sources, images, build.xml, etc.). Do not forget to add files to svn (svn add or gui menus) if you create them (new .java, new images, etc.).

comment:16 in reply to: ↑ 15 Changed 15 months ago by franpd@…

Replying to akks:

Replying to anonymous:

Replying to akks:

Just a message to be shown in http://trac.openstreetmap.org/timeline
for example "Routing plugin: added one-way support". TortoiseSVN GUI commit should also work (src folder in Explorer -> context menu -> commit -> [enter message] -> OK - [enter login and password]). Short SVN introduction: http://www.cse.yorku.ca/percept/svn_starters_guide.pdf

Oh, then I meant "src" part of the command :) Now I see it should be workspace/plugins/routing/src

It is better to commit from corresponding folder (svn commit in routing folder commits sources, images, build.xml, etc.). Do not forget to add files to svn (svn add or gui menus) if you create them (new .java, new images, etc.).

Done. Could you please check if all steps have been uploaded correctly (src + jar + version + comments)?

Thank you very much!

comment:17 follow-up: Changed 15 months ago by akks

Source and build.xml are OK.
You can do ant publish to publish jar now (it should not hang).
(Use http://trac.openstreetmap.org/timeline to check)

Last edited 15 months ago by akks (previous) (diff)

comment:18 in reply to: ↑ 17 ; follow-up: Changed 15 months ago by franpd@…

Replying to akks:

Source and build.xml are OK.
You can do ant publish to publish jar now (it should not hang).
(Use http://trac.openstreetmap.org/timeline to check)

jar file should have been uploaded too at that moment, as I made ant publish after committing with TortoiseSVN.

comment:19 in reply to: ↑ 18 ; follow-up: Changed 15 months ago by akks

Replying to franpd@…:

jar file should have been uploaded too at that moment, as I made ant publish after committing with TortoiseSVN.

Hmm, but there is no JAR in repository, as you can see in timeline. I had such problem too. It seems ant publish ended with error. It may be conflicts in dist folders, for example (some plugins updated)...
Try to make svn update and then ant dist and then commit routing.jar from dist with TortoiseSVN...

Last edited 15 months ago by akks (previous) (diff)

comment:20 in reply to: ↑ 19 ; follow-up: Changed 15 months ago by franpd@…

Replying to akks:

Replying to franpd@…:

jar file should have been uploaded too at that moment, as I made ant publish after committing with TortoiseSVN.

Hmm, but there is no JAR in repository, as you can see in timeline. I had such problem too. It seems ant publish ended with error. It may be conflicts in dist folders, for example (some plugins updated)...
Try to make svn update and then ant dist and then commit routing.jar from dist with TortoiseSVN...

I think it may be because dist dir is outside my workspace folder. I will try to upload it.

comment:21 in reply to: ↑ 20 Changed 15 months ago by franpd@…

Replying to franpd@…:

Replying to akks:

Replying to franpd@…:

jar file should have been uploaded too at that moment, as I made ant publish after committing with TortoiseSVN.

Hmm, but there is no JAR in repository, as you can see in timeline. I had such problem too. It seems ant publish ended with error. It may be conflicts in dist folders, for example (some plugins updated)...
Try to make svn update and then ant dist and then commit routing.jar from dist with TortoiseSVN...

I think it may be because dist dir is outside my workspace folder. I will try to upload it.

I think it is OK now. I had to add dist dir as a SVN source too.

comment:22 Changed 15 months ago by franpd

  • Resolution set to fixed
  • Status changed from new to closed

Patch applied.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.