Intro
Intro
Examples?
WHY?
Climatology
Emergency services
Bus-tracker
Epidemics
Theme
a spatial “relation”; e.g. roads, bus routes,
countries
Geographic Objects
(description, spatial component)
OPERATIONS ON GEOGRAPHIC OBJECTS
projection selection
OPERATIONS ON THEMES
union
OPERATIONS ON THEMES
overlay
OPERATIONS ON THEMES
• geometric selection
• windowing (only objects in window)
• merge
MORE OPERATIONS ON THEMES
• metric operations
• distance, area
• topological operations
• adjacent, within, connected
• interpolation/extrapolation
• location
• allocation
GIS AND DATABASES
• relational DBMS
physical-level tasks
• storage
• access paths
• query processing
• query optimization
• concurrency/recovery
AVOID DATABASES/LOOSELY COUPLED
drawbacks
• heterogeneous data
models
• loss of DBMS functionality
SDBMS EXAMPLE (SHEKHAR/CHAWLA)
Consider a spatial dataset with:
County boundary (dashed white line)
Fig 1.2
MODELING SPATIAL DATA
IN TRADITIONAL DBMS (SHEKHAR/CHAWLA)
Figure 1.3
SPATIAL DATA TYPES AND TRADITIONAL
DATABASES (SHEKHAR/CHAWLA)
Problems ?
SPATIAL DATA TYPES AND TRADITIONAL
DATABASES (SHEKHAR/CHAWLA)
Drawbacks:
Post-relational DBMS
Support user defined abstract data types
indexing, joins, …
WHAT IS A SDBMS ?
A SDBMS is a software module that
can work with an underlying DBMS
supports spatial data models, spatial abstract data types (ADTs) and
a query language from which these ADTs are callable
supports spatial indexing, efficient algorithms for processing spatial
operations, and domain specific rules for query optimization
SDBMS focuses on
Efficient storage, querying, sharing of large spatial datasets
Provides simpler set based query operations
Example operations: search by region, overlay, nearest neighbor, distance, adjacency,
perimeter etc.
Uses spatial indices and query optimization to speed up queries over large spatial
datasets.
Fig 1.1
THREE MEANINGS OF THE ACRONYM GIS
Geographic Information Services
Web-sites and service centers for casual users, e.g. travelers
Components include
spatial data model, query language, query processing, file organization
and indices, query optimization, etc.
Spatial Taxonomy:
multitude of descriptions available to organize space.
Topology models homeomorphic relationships, e.g. overlap
Euclidean space models distance and direction in a plane
Graphs models connectivity, Shortest-Path
SELECT S.name
FROM Senator S
WHERE S.district.Area() > 300
Standards
• SQL3 (a.k.a. SQL 1999) is a standard for query languages
• OGIS is a standard for spatial data types and operators
• Both standards enjoy wide support in industry
MULTI-SCAN QUERY EXAMPLE
Non-Spatial Join example
SELECT S.name
FROM Senator S, Business B
WHERE S.soc-sec = B.soc-sec AND S.gender = ‘Female’
Example 1)
SELECT S.name
FROM Senator S, Business B
WHERE S.soc-sec = B.soc-sec AND S.gender = ‘Female’
Example 2)
SELECT S.name
FROM Senator S, Business B, District D
WHERE S.soc-sec = B.soc-sec AND
S.district.Area() > 300;