“Spatial analysis is the process of analysing the relationship between locations, attributes, and the relationship of features through analytical techniques.”
Spatial analysis is the crux of GIS. It allows us to answer complicated questions in relation to spatial data. When undertaking spatial analysis it is important to categorize the problem and define the category of tools you will be using. Effective spatial analysis requires an intelligent user.
This module looks at a variety of spatial analysis techniques that can be used to answer geographic questions.
Goal: You are a resident of a neighbourhood and have been provided with crime data and police stations data. Use the datasets to answer interesting questions about your area.
police station
layer and create a join with the crime
layer using the join column
.police station
layer and delete the join you have created above.police_crime
using the SQL given below.Questions
count algorithm
. What other alternative methods exist to count the number of features that occur within a polygon.Sum algorithm
police_crime
create a bar plot indicating how a specific crime type reported at a particular police station varies over time. Diagrams
options from the layer properties or the QGIS plugin Plotly
Name | Expectation |
---|---|
Count Algorithm ❗ |
Points In polygon |
Sum Algorithm ❗ |
Sum line lengths |
Diagram ❗ |
Bar Chart |
Virtual layer SQL ❗ |
select a.*,b.geometry from crime as a join police_station as b on upper(a.name) = upper(b.name) |
Diagram Plugin ❗ |
Data Plotly |
join column ❗ |
name |
Spatial statistics allows you to interrogate the data and produce useful insight or trends about the data. In QGIS you can use native tools like Basic Statistics
to generate statistics for numerical values. The QGIS expression dialogue also allows users to interrogate the data either directly using attributes or the geometry of the features.
Because humans are very good at interpreting visual data it is important to provide the outputs visually. Symbolisation acts as a nice visualisation tool. QGIS provides diagram tools for visualisation. The tools available are pie charts and histograms.
Which statement is true with regards to attribute based join:❗
Spatial statistics can only be used with the following data types:❗
Which of the following data types can be used with the statistical summary tool:❗