Green View Index for QGIS

Alexandros Voukenas

Updated:

Green View Index is a QGIS plugin that can be used to easily calculate Green View Index through Google Street View images.

Calculating the amount of vegetation street level imagery

The Green View Index (GVI) has emerged in the literature of the latest years as an objective measurement of urban green at the street level. Unlike satellite derived NDVI, which provides a mapping of vegetation from the top level, GVI utilizes street-level imagery to quantify the presence of vegetation from a human-eye point of view. 

An image on the left of a street view and a black and white image on the right with white representing areas of vegetation from the street image.
The Green View Index plugin uses street-level imagery to measure the amount of vegetation visible to the human eye.

How Green View Image is calculated

Most popularly, Google Street View images are used as input. Very simply put, the GVI for an image is the ratio of vegetation pixels to the total number of pixels of the image.

Text showing the equation for Green View Index.

With the availability of APIs for street level imagery (such as Google Street View, Bing Streetside View or Tencent Maps), it is possible to acquire images at multiple angles to capture a person’s view more realistically. It has generally been established in the literature to use a total of 18 angles (Li et. al., 2015): 6 in the horizontal plane and 3 in the vertical plane.


Free weekly newsletter

Fill out your e-mail address to receive our newsletter!
Email:  

By entering your email address you agree to receive our newsletter and agree with our privacy policy.
You may unsubscribe at any time.


Therefore, to calculate GVI for a point in space, the GVIs of each individual image from each angle are summed together:

Text showing the equation for Green View Index for a point in space.

where and j denote the image acquired at horizontal and vertical angle respectively.

The Green View Index plugin for QGIS performs the three main operations required for Green View Index calculations of a given area. They are organized in three separate scripts:

  1. Generate Sample Points: Creates random points within an area. Those points can be used as input in the next tools
  2. Access Google Street View Images: For a point dataset, it accesses street view locations with parameters given by the user (such as field of view, image size and direction angles)
  3. Calculate Green View Index: For the images accessed by the previous tool, the vegetation pixels are extracted, and the Green View Index of its point is calculated
A series of four maps showing the process of calculating the amount of vegetation across an area.

The plugin requires a registration for Google Street View Static API (instructions can be found here). No charges are made for registration and there are several thousands of requests that can be made each month for free. It also requires installing the libraries scikit-image and gpsphoto through OSGeo4W Shell and pip (pip install gpsphoto & pip install scikit-image).

The Green View Index for QGIS plugin can be accessed through the plugin repository in QGIS (recommended) or the latest version as zip file through the code repository.

Contributions and feedback are welcome.

References

Li, X., Zhang, C., Li, W., Ricard, R., Meng, Q., & Zhang, W. (2015). Assessing street-level urban greenery using Google Street View and a modified green view index. Urban Forestry & Urban Greening14(3), 675-685. https://doi.org/10.1016/j.ufug.2015.06.006

Yang, J., Zhao, L., Mcbride, J., & Gong, P. (2009). Can you see green? Assessing the visibility of urban forests in cities. Landscape and Urban Planning91(2), 97-104. https://doi.org/10.1016/j.landurbplan.2008.12.004

Related

Photo of author
About the author
Alexandros Voukenas