Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Geospatial Analysis with SQL

You're reading from   Geospatial Analysis with SQL A hands-on guide to performing geospatial analysis by unlocking the syntax of spatial SQL

Arrow left icon
Product type Paperback
Published in Oct 2023
Publisher Packt
ISBN-13 9781835083147
Length 234 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Bonny P McClain Bonny P McClain
Author Profile Icon Bonny P McClain
Bonny P McClain
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Section 1: Getting Started with Geospatial Analytics FREE CHAPTER
2. Chapter 1: Introducing the Fundamentals of Geospatial Analytics 3. Chapter 2: Conceptual Framework for SQL Spatial Data Science – Geometry Versus Geography 4. Chapter 3: Analyzing and Understanding Spatial Algorithms 5. Chapter 4: An Overview of Spatial Statistics 6. Section 2: SQL for Spatial Analytics
7. Chapter 5: Using SQL Functions – Spatial and Non-Spatial 8. Chapter 6: Building SQL Queries Visually in a Graphical Query Builder 9. Chapter 7: Exploring PostGIS for Geographic Analysis 10. Chapter 8: Integrating SQL with QGIS 11. Index 12. Other Books You May Enjoy

Exploring census data in the SQL Query Builder

For the remaining chapter, let’s explore the population dynamics in Los Angeles County—specifically, declines or increases in the Hispanic population. The folder download included a JSON file. We need to identify populations of interest from the dense JSON file you see in Figure 6.19:

Figure 6.19 – Demographic metadata JSON file Hispanic/non-Hispanic aged over 18

Figure 6.19 – Demographic metadata JSON file Hispanic/non-Hispanic aged over 18

The area highlighted in Figure 6.19 is the percent change in population from the 2010 census to the 2020 census. In addition, I captured the total population and total population: Hispanic Latino for 2020, "P0040001_2020": "P4-1: Total (2020)", "P0040002_2020": "P4-2: Hispanic or Latino (2020)".

Renaming the columns in census tables is quite a task. The codes identify data products available from the census. For example, B in the column heading in Figure 6.20 is used for detailed estimates...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime