Feature request #2701

Add a "reverse lines" processing algorithm

Added by Ricardo Silva almost 14 years ago. Updated over 8 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Processing/QGIS
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:12761

Description

This is a feature request for adding one extra tool to the editing toolbar. This tool would reverse the direction of lines. This is very handy for producing fancy symbology settings and also when using vector files created in Qgis as an input for profile generation modules in other GIS software such as GRASS and Saga.

History

#1 Updated by Giovanni Manghi over 12 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#2 Updated by Giovanni Manghi about 12 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#3 Updated by Pirmin Kalberer over 11 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

#4 Updated by Médéric RIBREUX over 8 years ago

  • Pull Request or Patch supplied set to No
  • Status changed from Open to Feedback
  • Assignee deleted (nobody -)

Hello,

what do you think about having a Processing tool to do it (named like "Reverse lines") ? It would be stored into the QGIS Vector Geometry tools and we could use it to revert all the lines or polygons of a layer or just some part of the layer objects (with selection).

#5 Updated by Médéric RIBREUX over 8 years ago

After digging with GRASS, you can use v.edit to flip the direction of selected vector lines. But v.edit is not in QGIS Processing so I think that a dedicated Processing tool that uses QGIS Python API could do the job...

#6 Updated by Nyall Dawson over 8 years ago

what do you think about having a Processing tool to do it (named like "Reverse lines") ? It would be stored into the QGIS Vector Geometry tools and we could use it to revert all the lines or polygons of a layer or just some part of the layer objects (with selection).

+1. I think we should avoid adding new icons to the editing toolbar unless there's no other alternative, as that toolbar is already cluttered and confusing. A processing tool would be perfect for this.

#7 Updated by Nyall Dawson over 8 years ago

  • Subject changed from Add a "reverse lines" tool to the editing options to Add a "reverse lines" processing algorithm
  • Category changed from Vectors to Processing/QGIS

#8 Updated by Médéric RIBREUX over 8 years ago

  • Resolution set to fixed/implemented
  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

Hello, bug triage...

fixed in d0625b8 for Processing.

There is also "a new expression" da436f9 named 'reverse' that does the same thing !

I am closing this feature request (and good job Nyall !).

Also available in: Atom PDF