
For this lecture, students will download and install SQL Server and SQL Server Management Studio
This lecture will allow show you how to load the Annapolis.bak file into SQL Server. Make sure to download the file annapolis.zip, and unzip it. The video will step you through the steps to restore the database.
Explore managing spatial data with SQL Server, including spatial constructs, vector geometry, and coordinate systems. Master querying, indexing for big data, and classic geographic models, plus an emergency response example.
This lecture will present some of the arguments people use to discourage the use of SQL. It will also begin to answer why SQL is actually a preferable language for managing data.
This lecture will continue to build the case for why SQL is superior to other methods of manipulating data. Further, it will present the argument that SQL is actually far superior than traditional GIS processes.
Apply boolean operations in SQL Server to filter spatial data by greater than, less than, and equal to, using and, or, and not on parcels and land use.
Explore string operations in SQL Server, using substring, left, lower, upper, cast, and character index functions to search, modify, and format text within a database.
Learn date and time operations in SQL Server to convert strings to dates, compute differences, extract day, month, year, and use date from parts and date name for transaction analysis.
Master spatial functions in SQL Server using geometry data types, including buffering, containment, and intersects. Work with parcels, parks, flood maps, and critical areas to compute intersections.
Master the select statement to retrieve data from tables with star or specific columns, using where clauses and conditions, and join tables on account id, total value, and land use.
Explore how the group by clause performs aggregate computations on parcel data, producing sums, counts, and averages by land use, with spatial joins and union aggregates.
Explore SQL aggregate functions and set operations—standard deviation, average, coefficient of variation, top, order by, between, in, and union all—applied to obesity data and geographic patterns.
Learn to edit data in SQL Server by creating, dropping, and altering tables; inserting, updating, and deleting records; and linking geometry data to owner and account information via spatial queries.
Explore spatial type functions in SQL Server, including geometry operations like buffer, contains, intersects, distance, and adjacency, applied to parcel and state data for geospatial analysis.
Explore spatial functions in SQL Server, including area, boundary, centroid, start and end points, and coordinate system considerations, with practical examples using buildings, parcels, and states.
Explore spatial analysis with SQL Server by applying distance functions to geographic data, build a nearest neighbor index, and compute average nearest neighbor distances between cities.
The Huff model for retail gravitation estimates a customer’s probability of visiting a store by combining store attractiveness with inverse distance weighting, enabling SQL-based market cannibalization and sales projections.
Explore a variogram of the last spring frost date across 76 cities to quantify spatial autocorrelation as distance grows, using 50‑mile bands and semi-variance.
Map flood zones in SQL Server using grid codes and distinct counts to identify parcels under two feet of water and total land value by land use for emergency response.
Explore next steps after completing managing spatial data with SQL Server Express 2012, and discover resources and courses for spatial data work including PostGIS and open source tools.
Are you a database user who wants to learn about spatial data analytics? Are you a GIS professional stuck in a rut of only knowing how to use a GIS GUI? Do you want to learn how to automate tasks, but are afraid of computer programming. If so, SQL is the most powerful tool you can learn to help you perform complex GIS tasks. This course is designed to teach you how to write SQL to replicate many database and GIS tasks using Microsoft's SQL Server. We will start at a very basic overview, and then proceed to more advanced topics related to GIS.
Through a series of lectures, I will work side-by-side with you to develop SQL queries in SQL Server that perform advanced GIS tasks, some of which might be impossible to perform in the GUI. Once my students learn GIS, they very rarely want to return back to using the GUI.
By writing SQL code alongside me, you will see how solving GIS tasks in SQL is like a second nature. This is a very comprehensive course that should take multiple days to complete - but don't worry about that - you will be having a lot of fun learning how powerful SQL can be, and continually ask yourself "why didn't I start using SQL sooner!"