Geospatial
Visualization
School of Architecture
Dr. Timothy Norris : tnorris@miami.edu
Christopher Mader : cmader@med.miami.edu
UM GIS Day
Wednesday November 13th 1:30-5 p.m.
Today's Outline
Data Modeling (review)

  • Entities and Attributes

    Strength (Category – 1, 2, 3, 4, 5) is an aggregate categorical attribute that summarizes all windspeeds and maybe other stuff

Data Model (review)

Entities
And
Attributes
And
Relationships

Structured Query Language (SQL)

  • The Join: Relational and Spatial

    The “Join” is a concept from the world of Relational Databases, SQL and set theory, but the term is used generally to talk about combining data from one or more entities based on the relationship between those entities. In the land of Relational Databases a Join is the intersection between two sets (tables/entities).

Relational Join (attribute based)

  • SQL - Structured Query Language

    Widely used even outside the world of strictly “relational” databases. Created to operate on Relational Databases to retrieve and manipulate data.

    SQL is often used for data analytic purposes  - to aggregate values, sort, group, etc.

SQL

SELECT watch_warning.extent, watch_warning.type
FROM hurricane, advisory, watch_warning
WHERE hurricane.name = “Ian”
AND hurricane.h_id = advisory.h_id
AND advisory.ad_id = watch_warning.ad_id
SQL

SELECT watch_warning.type, COUNT(*)
FROM hurricane, advisory, watch_warning
WHERE hurricane.name = “Ian”
AND hurricane.h_id = advisory.h_id
AND advisory.ad_id = watch_warning.ad_id
GROUP BY watch_warning.type
TROP STORM WATCH, 2
HURRICANE WATCH, 5
TROP STORM WARNING, 1
HURRICANE WARNING, 10
Spatial Join

Analogous to a relational Join, but uses spatial attributes to accomplish the Join. GIS facilitates this kind of Join.


Spatial Join

SELECT watch_warning.type, COUNT(*)
FROM hurricane, advisory, watch_warning
WHERE hurricane.name = “Ian”
AND hurricane.h_id = advisory.h_id
AND advisory.ad_id = watch_warning.ad_id
AND st_within(city.postion, watch_warning.extent)
GROUP BY watch_warning.type
TROP STORM WATCH, 1
HURRICANE WATCH, 1
TROP STORM WARNING, 1
HURRICANE WARNING, 2
https://blog.cleverelephant.ca/2019/07/postgis-overlays.html
Online Mapping
Basemaps for Online Mapping
Exercises