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

Raster data

Learning how to work with raster data could actually fill an entire book. My goal is to present an introduction discussing where to find datasets, upload them to your database, and begin interacting within QGIS using a few built-in tools and the SQL query builder.

Navigating to the Plugins menu, you should have the DB Manager plugin installed. Let’s add the Google Earth and the Google Earth Engine Data Catalog plug-in. You will not need this to follow along with the examples provided in the chapter but it is a powerful tool for locating raster data and my goal is for you to continue exploring SQL and geospatial analysis beyond the pages of this book.

An additional plugin available after you register on the Earthdata site, https://urs.earthdata.nasa.gov/profile, shown in Figure 8.11, is SRTM_downloader.

SRTM_downloader is an additional resource for locating raster data. Return to the Plugins menu and search for SRTM_downloader. Once it's downloaded,...