Skip to main content
spelling
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

Convert multiple polylines to polygons in QGisQGIS

I have a vector layer with several polyline segments that represent borders of different areas. Each segment is connected to at least two other segments (at its start and its end). Some segments are connected to more then two other segments.

I need to convert those multiple polylines to multiple polygons. (See fig.)

enter image description here

When I use polygonize tool in vector->geometry menu it treats each segment as it's own polygonepolygon and makes garbage. (See fig 2)

enter image description here

Merging all segments into a single one doesn't help. Clipping large polygonepolygon with lines also doesnt'doesn't help in this case since line segments doesn't cross the whole large polygonepolygon.

This problem seems obvious but I'm stuck. I can do it in GRASS with ease, but I have no idea how to do it in QGisQGIS. I don't mind using pythonPython scripting for this.

Convert multiple polylines to polygons in QGis

I have a vector layer with several polyline segments that represent borders of different areas. Each segment is connected to at least two other segments (at its start and its end). Some segments are connected to more then two other segments.

I need to convert those multiple polylines to multiple polygons. (See fig.)

enter image description here

When I use polygonize tool in vector->geometry menu it treats each segment as it's own polygone and makes garbage. (See fig 2)

enter image description here

Merging all segments into a single one doesn't help. Clipping large polygone with lines also doesnt' help in this case since line segments doesn't cross the whole large polygone.

This problem seems obvious but I'm stuck. I can do it in GRASS with ease, but I have no idea how to do it in QGis. I don't mind using python scripting for this.

Convert multiple polylines to polygons in QGIS

I have a vector layer with several polyline segments that represent borders of different areas. Each segment is connected to at least two other segments (at its start and its end). Some segments are connected to more then two other segments.

I need to convert those multiple polylines to multiple polygons. (See fig.)

enter image description here

When I use polygonize tool in vector->geometry menu it treats each segment as it's own polygon and makes garbage. (See fig 2)

enter image description here

Merging all segments into a single one doesn't help. Clipping large polygon with lines also doesn't help in this case since line segments doesn't cross the whole large polygon.

This problem seems obvious but I'm stuck. I can do it in GRASS with ease, but I have no idea how to do it in QGIS. I don't mind using Python scripting for this.

Tweeted twitter.com/StackGIS/status/879470396575272960
Source Link

Convert multiple polylines to polygons in QGis

I have a vector layer with several polyline segments that represent borders of different areas. Each segment is connected to at least two other segments (at its start and its end). Some segments are connected to more then two other segments.

I need to convert those multiple polylines to multiple polygons. (See fig.)

enter image description here

When I use polygonize tool in vector->geometry menu it treats each segment as it's own polygone and makes garbage. (See fig 2)

enter image description here

Merging all segments into a single one doesn't help. Clipping large polygone with lines also doesnt' help in this case since line segments doesn't cross the whole large polygone.

This problem seems obvious but I'm stuck. I can do it in GRASS with ease, but I have no idea how to do it in QGis. I don't mind using python scripting for this.