Solving Complex Spatial Analysis Problems with QGIS
Ujaval Gandhi
Spatial Thoughts LLP
ujaval@spatialthoughts.com
QGIS Open Day
August 2023
Watch Video Recording
Spatial Thoughts
✅ QGIS.org certified training provider
✅ QGIS.org sustaining member
❤️
#SpatialAnalysisChallenge
The Past Challenges
In Today’s Talk
Challenge 1:
Connect Buildings to Nearest Point on the Road
Problem Statement
Connect each building's road-facing edge to the nearest point on the street segment.
Datasets:
Solution 1: QGIS Processing Algorithms
Solution 2: QGIS Expressions
Full solution [github]
Other Solutions
See the original Twitter Thread and LinkedIn Post with all solutions
PostGIS
RStats / Python / QGIS Expressions
Challenge 2:
Creating Variable Buffers
Problem Statement
Buffer each point in Layer A so that the buffer contains at exactly 5 points from Layer B
Datasets:
Solution: QGIS Expressions
Solution: QGIS Expressions (Improved)
Full Solution [video]
Other Solutions
See the original Twitter Thread and LinkedIn Post with all solutions
QGIS
RStats / Python
Google Earth Engine / FME
Challenge 3:
Conditional Spatial Join
Problem Statement
Add the name of the place within the polygon having the highest population
Datasets:
Solution 1: Geometry Generators
Full solution [twitter]
Solution 2: PyQGIS Processing Algorithms
Solution 3: PostGIS
Other Solutions
See the original Twitter Thread and LinkedIn Post with all solutions
PostGIS
QGIS Modeler / GeoPandas
Bonus Challenge:
Constrained Nearest Neighbor Analysis
Problem Statement
Connect each school to the nearest college in the same administrative region
Datasets:
Connect and Participate in the challenge!
Summary