5

I have searched online for almost a week and can not find an answer to my issue.

I need to generate polygons from street borders in a given city.

I have downloaded data from openstreetmaps and imported it into QGIS.

Is there a way to generate polygons and use streets as borders?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
ztadic91
  • 151
  • 3
  • Question is duplicate to http://gis.stackexchange.com/questions/85452/make-a-polygon-from-intersecting-lines-in-qgis-using-polygonize-or-similar. Recommended answer is to use the "Polygonize" tool. – user30184 Jun 13 '14 at 07:49
  • Check this out http://gis.stackexchange.com/questions/58245/generate-polygons-from-a-set-of-intersecting-lines – dmitry.v.kiselev Jan 22 '15 at 11:18
  • I think GRASS gives a more comfortable solution for QGIS users (through the GRASS plugin). Import your polylines into GRASS, convert polylines to boundaries, generate centroids and finally clean and build polygon topology. – Zoltan Jan 26 '16 at 06:35

1 Answers1

2

There's a link Create polygon layer from polyline layer that might help on how to do this in QGIS.

This post mentions dangling lines (lines that don't form a complete boundary) which may or may not be important to you.

If you are after a single polygon that covers all of your roads (guaranteed) then consider a convex hull.

The QGIS documentation gives an exercise that might illuminate.

Michael Stimson
  • 25,566
  • 2
  • 35
  • 74