Feature request #4936

Ability to flip or reverse direction of a linestring

Added by Mike Toews almost 4 years ago. Updated 14 days ago.

Status:Closed Start Date:02/01/2012
Priority:Normal Due date:
Assigned to:- % Done:


Target version:Future Release - Nice to have
Platform: Resolution:duplicate
Platform version: Patch supplied:No
Status info: Tag:


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


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


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


Updated by Nathan Woodrow almost 4 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.

Updated by Giovanni Manghi over 3 years ago

  • Target version set to Version 2.0.0

Updated by Pirmin Kalberer about 3 years ago

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

Updated by Nyall Dawson 14 days ago

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

Duplicate of #2701

Also available in: Atom