1. I have a polygon(state) now the state divide into two.
  2. I have a new polygon with two state.

I want to copy only the new border(line) which divides the two state from new polygon to old.

I am trying to select a line from a polygon but it is not possible.

  • It is not possible to select a line from a polygon, they are two completely different geometry types. Perhaps it would be best to transfer the attributes from one to the other. Mar 4, 2015 at 5:42
  • u mean merge polygon attributes.
    – shiv
    Mar 4, 2015 at 5:47
  • Sort of, you export the centroids (labels) with the correct attributes and the lines of the new polygons then create polygons from those boundaries and labels... new geometry, old attributes. As long as the centriods fall in the correct polygon it will work well. I don't recommend doing this for layers with lots of polygons but as you've only got two it should be easy. Mar 4, 2015 at 5:48
  • Selecting a line from a polygon needs an interim step of splitting polygon to segments but I am not sure what you would like to do next.
    – user30184
    Mar 4, 2015 at 7:34
  • I thought of adding line to polygon, Copy paste.
    – shiv
    Mar 4, 2015 at 10:17

1 Answer 1


Another approach to extract line from polygon and merge line with polygon.

  1. Convert polygon to line. Goto: Vector -> Geometry tools -> Polygons to lines.

  2. Retain the lines u want and delete the rest of the line. To delete, load the new layer select Toggle Editing then Goto: Edit -> Split features

Now draw line on top of line u want to delete new node will appear on the line.Now click on Select Features from Attribute toolbar and select the line and press delete key ( I followed the above approach for deletion because by default it is selecting all the lines for deletion).

enter image description here

  1. Now merge the TWO-shape file (Polygon and Line). Goto: Vector -> Data management Tools -> Merge shape Files to One

enter image description here

Check the “Select by layers in the folder” option, Browse the input files and generate new shape file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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