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

What this book covers

Chapter 1, Introducing the Fundamentals of Geospatial Analytics, introduces the foundational aspects of spatial databases and data types. This chapter also introduces learners to structured query language (SQL).

Chapter 2, Conceptual Framework for SQL Spatial Data Science – Geometry Versus Geography, explains how to create a spatial database to enable you to import datasets and begin analysis. You will also learn the fundamentals of writing query-based syntax.

Chapter 3, Analyzing and Understanding Spatial Algorithms, shows you how to connect databases created in pgAdmin to QGIS, where you will learn how to join tables and visualize the output by selecting layers and viewing them on the QGIS canvas.

Chapter 4, An Overview of Spatial Statistics, covers working with spatial vectors and running SQL queries while introducing you to US Census datasets.

Chapter 5, Using SQL Functions – Spatial and Non-Spatial, demonstrates how to use spatial statistics in PostGIS to explore land use characteristics and population data. You will learn how to write a user-defined function and run the query.

Chapter 6, Building SQL Queries Visually in a Graphical Query Builder, contains examples of how to access a graphical query builder and begin building more complex frameworks by taking a deeper dive and bringing together skills learned earlier.

Chapter 7, Exploring PostGIS for Geographic Analysis, looks at pgAdmin more closely to customize workflows by running SQL queries in pgAdmin and visualizing the output within the geometry viewer.

Chapter 8, Integrating SQL with QGIS, moves spatial queries back to QGIS as you work with DB Manager and are introduced to raster data and functions.