ncsu-geoforall-lab / geospatial-modeling-course

NCSU GIS/MEA582: Geospatial Modeling and Analysis Course
http://ncsu-geoforall-lab.github.io/geospatial-modeling-course
35 stars 12 forks source link

Include r.grow.distance as a continuous alternative to r.buffer #23

Open wenzeslaus opened 8 years ago

wenzeslaus commented 8 years ago

The buffers and cost assignment for GRASS GIS uses r.buffer. In the example with roads, it would be good to include r.grow.distance as well and let students compare the results (perhaps also with the cost to roads). Here is the current example with r.buffer:

g.region raster=landuse96_28m -p
r.buffer roadsmajor output=roads_buffers distances=250,500,2500
r.mapcalc "noise = if(landuse96_28m==1 || landuse96_28m==2, roads_buffers, null())"
r.colors noise color=ryg

http://ncsu-osgeorel.github.io/geospatial-modeling-course/grass/buffers_cost.html https://grass.osgeo.org/grass70/manuals/r.grow.distance.html

wenzeslaus commented 6 years ago

Perhaps the combination of noise and schools can be done once using a classified buffer (r.buffer) and once distance (r.grow.distance) and then classified later or not at all. However, the exercise would make the point only if some of the actual distances is a close to initial buffer sizes (e.g. school in 251 m falling into 250-500 category). We could also compute a difference of buffer size (or middle of the interval, i.e. (500 - 250) / 2 + 250 for the second interval) and actual distance (stored in a table or as raster) to see how far is the category from the actual distance.