Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Geospatial Analysis with SQL
  • Table Of Contents Toc
Geospatial Analysis with SQL

Geospatial Analysis with SQL

By : Bonny P McClain
4.7 (14)
close
close
Geospatial Analysis with SQL

Geospatial Analysis with SQL

4.7 (14)
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)
close
close
Lock Free Chapter
1
Section 1: Getting Started with Geospatial Analytics
6
Section 2: SQL for Spatial Analytics

Analyzing spatial relationships

Locating datasets is a necessary step for analysis. We have uploaded several datasets from NYC Open Data. The Department of Health and Mental Hygiene (DOHMH) dataset reports environmental complaints logged by the DOHMH.

How can we find out where the type and frequency of these complaints are located? Are there areas where the complaints are handled more efficiently?

Let’s learn how to join tables and analyze data based on additional columns and data types. Run the following code to use INNER JOIN on the two tables:

SELECT * FROM ch2."nyc_neighborhoods" JOIN ch2."DOHMH" ON name = "NTA";
SELECT *
FROM ch2."nyc_neighborhoods",ch2."DOHMH"
WHERE name = "NTA";

Although tables are not visually informative in the same way as maps, they can be instrumental in formulating questions and bringing datasets together. Figure 2.16 shows a join of tables in pgAdmin:

Figure 2.16 – Join of tables in pgAdmin
...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Geospatial Analysis with SQL
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon