Book Image

Learning the FOSS4G Stack: Spatial SQL with Postgres/PostGIS [Video]

By : Arthur Lembo
4 (1)
Book Image

Learning the FOSS4G Stack: Spatial SQL with Postgres/PostGIS [Video]

4 (1)
By: Arthur Lembo

Overview of this book

<p>This course is part of an entire curriculum based on free and open source GIS (FOSS4g) software. The curriculum is grouped into different categories of the FOSS4g stack - Desktop, Server, and Developer. As part of this course, you will learn the most popular open source database - Postgres 11. </p><p>You’ll start with the basics of Postgres, explore PostGIS as a spatial plugin, and then go on to solve spatial problems using SQL. The course uses real data from Tompkins County, New York, and seamlessly integrates with other gisadvisor courses that will teach you QGIS, GDAL, GeoServer, and Python. You'll also explore the capabilities of SQL, working with raster, vector, and attribute data. After you’ve learned SQL and spatial SQL, you’ll understand how to simulate real-world examples of GIS projects and spatial analysis. </p><p>By the end of this course, you will be well-versed with the FOSS4g stack and be equipped with the skills you need for everything from conducting spatial analysis to solving spatial problems using SQL. </p><p>All the codes and supporting files for this course are available at: https://github.com/PacktPublishing/Learning-the-FOSS4g-Stack-Spatial-SQL-with-Postgres-PostGIS</p>
Table of Contents (7 chapters)
Chapter 4
Traditional SQL
Content Locked
Section 4
Conditional statements with SQL: CASE
Oftentimes we'll want more control over the queries that we perform. In programming languages, this takes the form of if/then and while clauses. SQL has its own ability to evaluate conditions. In this lecture we'll explore the use of CASE statements in SQL. We'll look at basic CASE statements, CASE statements with spatial data, and CASE statements that span multiple tables.