Skip to main content

Obtain polygons from road centerlines

Getting road centerlines

Download the shape files for the state of New Jersey from Geofabrik Download Server. This is a German website offering free data from OSM. They even offer paid services, check the email thread Need poygon data for Abescon island, NJ, USA, for more details. The thread contains a small discussion on obtaining polygon data for the Absecon Island.

Using data from Geofabrik server

  1. Open QGIS and then Layer Add Vector Layer and then select the downloaded zip file
  2. Click on Add
  3. Select the layer/layers you wish to add (In this case choose osm_roads_free_1)

Contents of the zip file

Chipping the road centerlines

The added vector layer contains the road centerlines for the entire state of New Jersey. You will need to choose your region of interest (in this case, the bounding box provided by Dick).

  1. Select the road centerlines layer from the bottom left Layers panel
  2. Right click on the layer

Clipping

Click Export

  1. Give the file a name
  2. Note: Choose the CRS properly, else it poses a problem while creating the road polygons
  3. Set the CRS as EPSG: 3857
  4. Check the Add saved file to the map
  5. Click on OK

Clipped Road Centerlines

Creating road polygons using Buffer technique

Once you have the chipped tile of interest, you now need to create polygons from those centerlines.

  1. In the Processing Toolbox, search for Buffer

Processing Toolbox

  1. For the input layer, choose the chipped road centerline
  2. And adjust the distance parameter accordingly
  3. Average width of a street is around 20 ft (10 ft on each side), which comes around 3m

Processing Toolbox 2

  1. Give a name to save the file
  2. Click on Run
  3. You have successfully created road polygons for your tile

Buffered Road Polygons