Book Image

Geospatial Analysis with SQL

By : Bonny P McClain
Book Image

Geospatial Analysis with SQL

By: Bonny P McClain

Overview of this book

Geospatial analysis is industry agnostic and a powerful tool for answering location questions. Combined with the power of SQL, developers and analysts worldwide rely on database integration to solve real-world spatial problems. This book introduces skills to help you detect and quantify patterns in datasets through data exploration, visualization, data engineering, and the application of analysis and spatial techniques. You will begin by exploring the fundamentals of geospatial analysis where you’ll learn about the importance of geospatial analysis and how location information enhances data exploration. Walter Tobler’s second law of geography states, “the phenomenon external to a geographic area of interest affects what goes on inside.” This quote will be the framework of the geospatial questions we will explore. You’ll then observe the framework of geospatial analysis using SQL while learning to create spatial databases and SQL queries and functions. By the end of this book, you will have an expanded toolbox of analytic skills such as PostGIS and QGIS to explore data questions and analysis of spatial information.
Table of Contents (13 chapters)
Free Chapter
1
Section 1: Getting Started with Geospatial Analytics
6
Section 2: SQL for Spatial Analytics

Technical requirements

The data for the exercises in this chapter can be found on GitHub at https://github.com/PacktPublishing/Geospatial-Analysis-with-SQL

The following datasets will be used in this chapter:

  • Airport_Influence_area
  • Census_Designated_places_2020
  • Income_per_Capita per census tract
  • American Community Survey (ACS) – 1 year data

As we learned about geometric and geographic spatial queries in defining coordinates and locations, we investigated points, lines, and areas of polygons. When referring to a topological query, we are mainly interested in where objects are located and where they might intersect, in addition to specific attributes.

Topological SQL queries investigate spatial relations between tables or entities within a database. Topological criteria focus on the arrangement of entities in space. These arrangements are preserved regardless of projection. We have already explored spatial relationships such as distance...