2

QGIS has "polygon to line" but this isn't exact reverse engineering of "line to polygon". I want no overlapped border closed lines, just segmented (on each intersected point) lines.

Additionally I want to remove to outermost boundary (if it can be automatically done).

Example: in the case of a kite shape (4 triangle polygons) will turned into inner skeleton cross lines (4 segments)

2
  • You could try this: First, use the polygon to line tool. After you get your line segments, don't yet delete your polygon that they were created from and do a select by location and get all lines that lie COMPLETELY WITHIN your polygon. Switch your selection and you should get all of the line segments that make up your outside border. You can then just delete these. I'm not sure if the select by location would work in this manner, not giving you the borders, but you can give it a shot.
    – Conor
    Commented Sep 13, 2013 at 23:54
  • The selection tool would unfortunately get all the lines that intersect the boundary as well as the internal lines, so that won't work ...
    – Simbamangu
    Commented Sep 14, 2013 at 7:43

4 Answers 4

1

had a similar problem and got help here: How do I split polygons into line segments?. afterwards delete the "outer" lines

2
  • lengthy one, but better than using scissor manually :( Commented Sep 17, 2013 at 8:40
  • I'm imagining export this polygons to raster wgs84 and then retrace it... Commented Sep 17, 2013 at 9:07
1

I found more another way using sextante entirely

  1. polygon to line
  2. v.clean > break/bpol
  3. v.clean > rmdup

rmdup will return two result: outer and the inside (without overlapped segments)

0

You could get partway to the solution with QGIS and the GRASS plugin; unfortunately the select tool doesn't let you select only internal lines (as suggested by @Conor) so removing the outermost boundary would be tough.

In QGIS 1.8, if you have a layer A, to split the polygons into single, non-overlapping lines:

  1. Polygons to lines giving A_lines;
  2. Using GRASS plugin, v.split A_lines (with 1 segment option) to give single segments A_lines_single;
  3. Delete duplicate geometries with the MMQGIS plugin (MMQGIS | Modify menu) giving A_lines_single_unique.
0

There is a option available in Sextante box called V.clean perform this and use polygoniser plugin option .I think when you use V.clean it will remove unwanted topological error in lines .Then use Polygoniser to convert lines to polygons.

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.