16

I have a polygon, imported from a shapefile in QGIS. I would like transform it to a linestring instead so I can save it as a GPX file later.

How can I transform a polygon to a linestring in QGIS?

1
  • 3
    simply cutting a polygonal object won't transform it to line. you would need to do a poly to line conversion. I can tell you how to do that in arcmap. I'm sure it is just as easy in qgis. Commented Oct 17, 2011 at 14:45

4 Answers 4

26

Assuming you're using QGIS >= 1.6.0. There is a geoalgorithm called "Polygons to lines" accessible via Vector > Geometry Tools > Polygons to Lines (otherwise search in the Processing Toolbox Ctrl+Alt+T), which will create a new shapefile with all the attributes of the original.

Vector_Menu

0
5

Another option is the SAGA's "Convert Polygons to Lines" module (search in the Processing Toolbox Ctrl+Alt+T).

Input:
input

Working window:
window

Output:
output

3

Another option is the GRASS's v.to.lines (search in the Processing Toolbox Ctrl+Alt+T).

Input:
input

Working window:
window

Output:
output

0
2

Another option is using the following boundary($geometry) expression in the "Geometry by expression" tool (search in the Processing Toolbox Ctrl+Alt+T).

Input:
input

Working window:
window

Output:
output

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.