Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing blue lines in ORS TOOL #120

Closed
Mikida opened this issue Sep 29, 2020 · 10 comments · Fixed by #192
Closed

Removing blue lines in ORS TOOL #120

Mikida opened this issue Sep 29, 2020 · 10 comments · Fixed by #192
Assignees
Labels
easy fix Issues that are rather quick to be resolved investigate
Milestone

Comments

@Mikida
Copy link

Mikida commented Sep 29, 2020

Here's what I did

Dear someone who can help.

I’m working in QGIS 3.14.16 and using an ORS Tools version 1.2.3. I have encountered a problem with some blue route lines. Even if all layers are unactivated, the blue lines are showing. The lines are a result of using the ORS tool for route planning. I added another line using the ORS tool just to demonstrate (displayed in the picture). There should be some way to remove the line. So, my question is, how can I remove everything or a selection of that what is plotted using the ORS tool?


Here's what I got

image_for_ors_question_bluelines


Here's what I was expecting

I would want the lines to be removable in an elegant/easy way.


Here's what I think could be improved

The lines can be removed through restarting QGIS. This cannot however be as intended. The lines should be removable and re-plotted. I don't know how this is done. I have noted other users have had the same problem, but no solution to this problem can be found.

@davidafuller01
Copy link

+1. Why not remove the blue lines when the waypoints are deleted?

@Mikida
Copy link
Author

Mikida commented Nov 18, 2020

@davidafuller01, this is what I'm trying to do. Does the ORS tool save the waypoints (blue lines), somewhere besides as a new layer? The blue lines cannot be removed simply by removing the calculated route as a layer. If @davidafuller01 has any advice how to remove the blue lines after the waypoint calculation, I would be very happy. Thank you.

@davidafuller01
Copy link

@Mikida - I was echoing your request that the blue lines be cleared (or a function added to allow the user to clear them). I have the same issue and no solution.

@fran2a
Copy link

fran2a commented Feb 12, 2021

Any update? Thx

@nilsnolde
Copy link
Contributor

I'm not a maintainer anymore since a while, but the I'll at least leave the brute force approach here:

for a in QgsProject.instance().annotationManager().annotations():
    QgsProject().instance().annotationManager().removeAnnotation(a)

in the QGIS Python console. Careful, will remove all the project's annotations. The only way around until someone will fix the issue in the code.

@nilsnolde nilsnolde pinned this issue Feb 13, 2021
@koebi koebi self-assigned this Apr 29, 2021
@FlyingEagle
Copy link

The Python Code above is not working for me or I make mistakes, I am a python noob ;-)

Are there any updates for this issue?

@koebi
Copy link
Collaborator

koebi commented Jul 16, 2021

Hey,

no you are probably not, is is very well possible that the code above does not work in certain situations.
This is currently being worked on, albeit somewhat irratically, so there's no expected timeframe for when this will get fixed.

@ThePieMonster
Copy link

I am also experiencing the blue lines not being removed once a new route layer is created. Even after removing the created layer or exiting out of the plugin, the blue lines remain. Very annoying!

@TheGreatRefrigerator TheGreatRefrigerator changed the title Removing blue lines in ORS TOOL in QGIS 3.14.16 Removing blue lines in ORS TOOL Jun 12, 2023
@MichaelsJP MichaelsJP added easy fix Issues that are rather quick to be resolved investigate labels Oct 2, 2023
@merydian merydian unpinned this issue Oct 2, 2023
@merydian merydian pinned this issue Oct 2, 2023
@merydian
Copy link
Collaborator

merydian commented Oct 2, 2023

Is it possible that this isn't a problem anymore? I only see blue lines during digitization of the route points. They dissappear completely after ending the digitization.

@TheGreatRefrigerator
Copy link
Collaborator

Might be OS and QGIS version specific, as long as not thoroughly tested on different versions, i would leave this open.

@koebi koebi assigned merydian and unassigned koebi Nov 6, 2023
@merydian merydian linked a pull request Nov 13, 2023 that will close this issue
@MichaelsJP MichaelsJP added this to the Version 1.7 milestone Dec 15, 2023
koebi added a commit that referenced this issue Dec 22, 2023
@merydian merydian unpinned this issue Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment