User Tools

Site Tools


This is an old revision of the document!

Settlements and landscape: analysis techniques

Input Data

  1. A raster DEM of the studied territory. You can obtain an aspect map from it using the r.slope.aspect module.
  2. A vector map of sites or buildings dating from a defined period.

The steps to the analysis

Convert the vector map to raster with the command: input=edifici output=edifici.mask use=val layer=1 value=1 rows=4096

Remember that this conversion is run following the region settings. You can view the region settings with:

g.region -p

Now the resulting raster map becomes our MASK:

r.mask input=edifici.mask maskcats=*

From now on, all subsequent operations will be limited to the cells defined in our MASK, corresponding to built areas or settlements.

The simplest analysis we can run is d.histogram. These are the histograms of elevation and aspect for the whole of our study area. Aspect is calculated counterclockwise from east, thus 0 = 360 = E, 90 = N, 180 = W, 270 = S. See for the manual page of r.slope.aspect.

Applying built.areas as MASK results in these histograms:


This simple exploratory analysis leads us to understand that in the study area there's a strong preference for sites exposed S-SE, built mostly around 700 meters above sea level.

spatial_analysis/settlements_and_landscape.1191247704.txt.gz · Last modified: 2018/08/03 23:47 (external edit)