Feature #4936
Ability to flip or reverse direction of a linestring
| Status: | New | Start Date: | 02/01/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | Digitising | |||
| Target version: | Version X - Unplanned | |||
| Platform: | Resolution: | |||
| Platform version: | Patch supplied: | No | ||
| Status info: |
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
Updated by Nathan Woodrow over 1 year 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 about 1 year ago
- Target version set to Version 2.0.0
Updated by Pirmin Kalberer 8 months ago
- Target version changed from Version 2.0.0 to Version X - Unplanned