2

I have one line layer which is made up of multiple segments. I want each segment to be a new line feature so that I can select them individually using select features by area, as in the picture.

enter image description here

  • 3
    What software are you using? QGIS? ESRI ArcGIS? Something else? – das-g Apr 3 '17 at 15:54
  • 1
    What (geometry type/feature type) are we looking at here? Is this a single 4-segment linestring? An area (polygon)? 4 single-segment linestrings? – das-g Apr 3 '17 at 15:55
  • 1
    You must split the geometry first into segments. – user30184 Apr 3 '17 at 15:58
5

It looks from the graphic like you're using QGIS, in which case you have a couple of steps, depending on whether you're looking at a polygon or a polyline.

If your layer is a polygon - start at 1
If your layer is a line - start at 2

  1. Open Vector > Geometry Tool > Polygons to lines : this will convert the polygon to lines.
  2. Open the processing toolbox > Explode Lines (you can find it by searching 'explode') : this will split all of your lines at their vertices to give you individual lines so you'll be able to select features by area and just get the one line.

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.