Feature request #4936

Ability to flip or reverse direction of a linestring

Added by Mike Taves almost 13 years ago. Updated almost 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Digitising
Pull Request or Patch supplied:No Resolution:duplicate
Easy fix?:No Copied to github as #:14735

Description

As of QGIS 1.7.3, there doesn't appear to be any way to reverse the direction of a linestring (or linear ring).

E.g.:

LINESTRING (140 350, 220 340, 230 370, 280 370, 280 300, 210 260)

Reversed:

LINESTRING (210 260, 280 300, 280 370, 230 370, 220 340, 140 350)

It would be beneficial to have a Flip1 or Reverse2 button in the "Advanced Digitizing" toolbar.

[1] Term used in Esri's ArcDesktop, see http://webhelp.esri.com/ArcGISDesktop/9.3/index.cfm?TopicName=Flipping_lines
[2] Term used by both JTS and GEOS, see http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1geom_1_1LineString.html#a31

History

#1 Updated by Nathan Woodrow almost 13 years ago

I wrote a small plugin to do this a while ago, can be found in the Plugin Installer searching for "Swap". I plan on adding this function to the core QGIS code at some stage but no ETA at the moment.

#2 Updated by Giovanni Manghi over 12 years ago

  • Target version set to Version 2.0.0

#3 Updated by Pirmin Kalberer about 12 years ago

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

#4 Updated by Nyall Dawson almost 9 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

Duplicate of #2701

Also available in: Atom PDF