1

As title, I have one line shapefile with many segments:

enter image description here

How to use QGIS to quickly edit this line shapefile and output a new file looks like the original one, but with only one segment (its attribute table only has one row)?

2

Create a new field of integer type and give one value for all rows in this field. Then use dissolve tool from Vector -> Geoprocessing tools -> Dissolve, if you are using QGIS 2.14.7, and select the NewField as a base to dissolve your polygons. If you are using QGIS 2.16.3, then go to Processing toolbox -> QGIS geoalgorithms -> Vector geometry tools -> Dissolve.

Or you can use Singlepart to multipatrs tool from Vector -> geometry tools and do the same process of selecting the new field with one value for all rows.

  • Thank you, it worked, but the manual of 'Dissolve' make me believe that the function only handle polygons. – Heinz Oct 20 '16 at 4:10
  • Glad it worked. – ahmadhanb Oct 20 '16 at 4:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.