Geospatial Analysis with SQL: A hands-on guide to performing geospatial analysis by unlocking the syntax of spatial SQL

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Leverage the power of SQL to perform geospatial analysis and increase your speed and efficiency working with a variety of spatial applications such as PostGIS and QGIS Key Features Follow along with actionable instructions with this practical guide Become well-versed in advanced spatial modeling and machine learning techniques Learn best practices for performing spatial analysis from an expert spatial data analyst Book Description 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. What you will learn Understand geospatial fundamentals as a basis for learning spatial SQL Generate point, line, and polygon data with SQL Use spatial data types to abstract and encapsulate spatial structures Work with open source GIS combined with plug-ins Visualize spatial data and expand QGIS functionality with Postgres Apply location data to leverage spatial analytics Perform single-layer and multiple-layer spatial analyses Who this book is for This book is for anyone looking to leverage their SQL knowledge to perform geospatial analysis. GIS analysts, data analysts, and data scientists with a basic understanding of both geospatial analysis and SQL will find this book useful. Table of Contents Introducing the Fundamentals of Geospatial Analytics Conceptual Framework for SQL Spatial Data Science – Geometry Versus Geography Analyzing and Understanding Spatial Algorithms An Overview of Spatial Statistics Using SQL Functions – Spatial and Non-Spatial Building SQL Queries Visually in a Graphical Query Builder Exploring PostGIS for Geographic Analysis Integrating SQL with QGIS

Author(s): Bonny P McClain
Publisher: Packt Publishing Pvt Ltd
Year: 2023

Language: English
Pages: 234

Geospatial Analysis with SQL
Contributors
About the author
About the reviewers
Preface
Who is this book for?
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Share Your Thoughts
Download a free PDF copy of this book
Section 1: Getting Started with Geospatial Analytics
1
Introducing the Fundamentals of Geospatial Analytics
Technical requirements
Spatial databases
SRIDs
Understanding geospatial data types
Raster models
Exploring SQL
SELECT statements
WHERE statements
CREATE statements
Summary
2
Conceptual Framework for SQL Spatial Data Science – Geometry Versus Geography
Technical requirements
Creating a spatial database
Options for databases with spatial functions
Exploring databases with psql
Importing data
Fundamentals of a query-based syntax
Changing column names
Identifying tables
Introducing query-based syntax
Analyzing spatial relationships
Detecting patterns, anomalies, and testing hypotheses
Summary
3
Analyzing and Understanding Spatial Algorithms
Technical Requirements
Developing knowledge about geographic space
Connecting to databases and executing SQL queries
Reasoning and key decisions about spatial concepts
Exploring pattern detection tools
Executing SQL queries in QGIS
Summary
4
An Overview of Spatial Statistics
Technical requirements
Creating spatial vectors with SQL
Renaming table columns – US census
What do the census table codes mean?
Running queries in QGIS
Building prediction models
Summary
Section 2: SQL for Spatial Analytics
5
Using SQL Functions – Spatial and Non-Spatial
Technical requirements
Preparing data
Creating a dataset using the Open Street Map plugin
Null values in PostgreSQL
Spatial concepts
ST_Within
CREATE VIEW
ST_Buffer
Creating functions in SQL
Mining areas in Brazil
Summary
6
Building SQL Queries Visually in a Graphical Query Builder
Technical requirements
Conditional queries
SQL data queries using the graphical query builder
Aggregation and sorting queries
Understanding census-designated places
The SQL Query Builder
Exploring census data in the SQL Query Builder
Summary
7
Exploring PostGIS for Geographic Analysis
Technical requirements
Configuring and authenticating PostGIS in QGIS
Loading data into PostGIS
Importing data into PostGIS
Discovering the PgAdmin dashboard
Executing SQL queries in pgAdmin
Importing additional data – power plants
Additional data queries – IS NOT NULL
Differentiating polygons in OSM data
Spatial queries
Exploring ST_Contains and multi-table joins
Summary
8
Integrating SQL with QGIS
Technical Requirements
Understanding the SQL query builder in QGIS
Comparing polygons between two large datasets
Raster data
Installing plugins
The GEE data catalog plugin
Landscape Change Monitoring System
raster2pgsql
Terminal raster import
Summary
Index
Why subscribe?
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book