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?
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?
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.

Another option is the SAGA's "Convert Polygons to Lines" module (search in the Processing Toolbox Ctrl+Alt+T).
Another option is the GRASS's v.to.lines (search in the Processing Toolbox Ctrl+Alt+T).
Another option is using the following boundary($geometry) expression in the "Geometry by expression" tool (search in the Processing Toolbox Ctrl+Alt+T).