Geographic Information Systems Spatial query and analysis

ForrayFerenc 191 views 45 slides Jul 17, 2024
Slide 1
Slide 1 of 45
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45

About This Presentation

Dr Earl Edwards
Ms. Valrie Grant, MSc. GIS Systems Spatial query and analysis


Slide Content

Project for the Strengthening of Spatial Data Infrastructures in
Member States and Territories of the Association of Caribbean States
Capacity Building Program
Geographic Information Systems
Dr Earl Edwards
Ms. ValrieGrant, MSc.

The GIS Process
Geospatial Information processing begins and
ends with the real world
Source: Aronoff (1991)
Data Management
Data Sources
Real World
Analysis
Data Input
Users

Topic 6:
Spatial Query and Analysis in GIS

Topic Outline
•What is Spatial Query?
•Querying Geodatabases
•ArcGIS Spatial Tools
•What is Spatial Analysis?
•Components of Spatial Analysis
•Spatial Interpolation
•Spatial Analysis Process

Information
Data when processed will remove the level of uncertainty in
a particular event.
Data Information Understanding
A better understanding of our world can be achieved
through the use of Spatial Queries and Spatial Analysis.

What is a Spatial Query?
•A spatial query is a special type of database
query supported by geodatabases and spatial
databases.
•It allows for the use of geometry data types such
as points, lines and polygons and that these
queries consider the spatial relationship
between these geometries.

Querying Databases
•Structured Query Language (SQL)
SELECT * FROM met_stationsWHERE
sensor_type= “Temperature” AND
retrieval_method= “Automatic”;

Querying Geodatabases

Querying the Geodatabase

ArcGISTools
•Found in ArcToolbox
–ArcMap, ArcCatalog,
ArcScene, and ArcGlobe
•Powerful set of tools to
perform analysis
geoprocessingtasks
•Designed to perform
vector analysis
•License determines tools
ArcGIS Advanced license level

Select
•Extracts features from a feature class or layer and stores
them in a new feature class
•Output feature class optionally created using a SQL
expression
Select zoning
polygons designated
as community
shopping district

Buffer

What is Spatial Analysis?
•Analysis is one of six GIS functions
•Process for highlighting patterns and
relationships in spatial (geographic) data
using spatial query
•Most people are still using GIS to only make
maps
•GIS can do much more -Analysis Query
Analyze
Store
Display
Capture
Output
Buildings
Streets
Reality
Customers

Components of Spatial Analysis
•Visualization
–Showinginteresting patterns
•Exploratory Spatial Data Analysis (ESDA)
–Findinginteresting patterns
•Spatial Modelling, Regression
–Explaininginteresting patterns

Why do analysis?
•Gives insight into places of interest
•Helps focus actions to choose the best option
Determining the
relationship between
crime locations
and schools
Crimes
Schools
0.1 mile buffer

Analysis answers simple questions
Map where
things are located
Map the most
and least
Map density
Find what
is inside
Find what
is nearby
Map change
X,Y
Analysis

Typical Operations
•Point pattern analysis (Hotspots)
•Points in polygons
•Polygon overlay
•Spatial interpolation
•Density estimation

Point Pattern Analysis
•Determine if patterns
exist among point
features
•Examine the spatial
patterns and draw
suitable conclusions
•Example:Crime hot
spot analysis in
Trinidad or Tobago

Point Pattern Analysis
Forexample,theworkof
JohnSnow1865plotting
deathsfromcholeraona
mapalongwiththe11
communitywells.
Themaprevealedan
association between
choleraandthebroad
streetpump

Point Pattern Analysis
PPA relies heavily on Tobler's
First Law of Geography
“Everythingisrelatedto
everythingelse,but
nearbythingsaremore
relatedthandistantthings”
Foundation of the fundamental
concept of spatial dependence
which is at the core of spatial
analysis
Waldo R Tobler

Overlay Analysis
Line on Polygon
+ + + + + + +
Polygon on
Polygon
Point on
Polygon

Raster cell coincidence
•Analysis between rasterscompares values for cells
–Rastersmust be registered to a common coordinate system
TotCost (3,2) = Cost1 (3,2) + Cost2 (3,2)
15 = 5 + 10
TotCost
Cost1
Cost2
0
1
2
10
2
3 3
4
4
5
10
15

Spatial Interpolation
•Traditionally, data collected in the field comprise of point
measurements at discrete locations. Today it is usual to
have automated system, like weather station, that collect
vast amounts of data
•These datasets are still samples and would not
represent a continuous surface over the area of interest
•Spatial interpolation methods are used to estimate
values at unsampledlocations using measurements at
sampled locations
•Effectively fills in the unknown information using the
known information

Spatial Interpolation
•Methods include
–Inverse Distance
Weighted
–Spline
–Kriging

•Mitchell (2005) Draper et al (2005)
Spatial Analysis Process

Spatial Analysis Process
Define the
problem
Identify
your data
Choose a
method
Process
the data
Look at the
results
Based on ESRI

Spatial Analysis Process
•Problem formulation
•Planning
•Data gathering
•Exploratory analysis
•Hypothesis formulation
•Modelling and testing
•Consultation and review
•Reporting and/or implementation

Problem –Site Suitability
•Phrase the problem as a question
–Where would be a suitable location for a new school?
•Desk study / literature review
–How have others dealt with this in the past?
–What are the possible models?
•Criteria for selection
–Close to recreation areas
–Not close to existing schools
–Gently sloping ground
–Close to residential areas

Possible Result -Optimal Site

A Simple Model
Onions
Chop
Boil
Whole
Chicken
CeleryCarrots
Wild
Rice
Chopped
Vegetables
Chicken
Broth
Garlic
Chicken
Soup
Salt
and
Pepper
Boil
Chicken
Boiled
Separate
Chicken
Bones
Chicken
Meat

31
Roads
A Cartographic Model
Streams
Perennial
Stream
Road
Buffer
Stream
Buffer
Composite 2
Composite 3
BUFFER
200
SELECT
OVERLAY
Soils
Zones
Composite 1
BUFFER
500
OVERLAY
OVERLAY

Cartographic Modelling with Model Builder

Modelling Susceptibility to Landslides
•Precipitation
•Elevation
•Slope
•Aspect
•Curvature
•Earthquake zones
•Landcover
•Soil/Geology
•Human activities
•etc
Source: USGS
Source: Jamaica Gleaner

Historical Landslides
Source: Dr RafiAhmad, UWI Mona

Landslide Susceptibility Model

Landslide Susceptibility Zones
Source: Mona GeoinfomaticsInstitute

Other Analysis Examples
Determination of visibility
line-of-sight
view sheds
Site Suitability Analysis
Finding the best site for a school
Network Analysis
optimal routes
allocation of resources

SiteSuitability
Asuitabilitymodeltypicallyanswersthequestion,Whereisthebestlocation?—whetheritinvolves
findingthebestlocationforanewroadorpipeline,anewhousingdevelopment,oraretailstore.
Forinstance,acommercialdeveloperbuildinganewretailstoremaytakeintoconsiderationdistance
tomajorhighwaysandanycompetitors'stores,thencombinetheresultswithland-use,population
density,andconsumerspendingdatatodecideonthebestlocationforthestore.
ArcGISSpatialAnalystderivesnewinformationfromtheoverlayofmultiplelayers,whichcanthen
beusedtodeterminethebestlocation.

Network Analysis
Route Closest Facility
Service Area
Vehicle Routing
Problem
Location-Allocation
Origin-Destination
Cost Matrix

Density Analysis

Hydrologic Analysis

British statistician
George E. Box
“Essentially all
models are wrong,
but some are useful”

UP NEXT …..
Activity: Conducting Spatial Query and
Analysis in ArcGIS

Acknowledgement
Except where stated, images used in this
presentation were acquired from multiple sources
on the world wide web.