Docsity

Introduction to Spatial Databases-Temporal and Spatial Databases-Lecture 10 Slides-Computer Science, Appunti di Basi di Dati

Toggle sidebar
bg1
Temporal and Spatial Databases
Chapter 10: An Introduction to Spatial Databases
J. Gamper
◮Introduction
◮Modeling spatial concepts
◮Organizing the underlying space
◮Spatial data types, algebras, and relationships
◮Integrating geometry into DBMS data model
◮Querying spatial databases
◮Spatial indexes
◮System architecture
Literature
◮R.H. G¨uting: An introduction to spatial database systems. VLDB Journal
3:357–399 (1994)
◮R.H. G¨uting: Spatial database systems. Tutorial notes.
TSDB 2008/09 J. Gamper 1/46
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Anteprima parziale del testo

Scarica Introduction to Spatial Databases-Temporal and Spatial Databases-Lecture 10 Slides-Computer Science e più Appunti in PDF di Basi di Dati solo su Docsity!

Temporal and Spatial Databases

Chapter 10: An Introduction to Spatial Databases

J. Gamper

◮ Introduction

◮ Modeling spatial concepts

◮ Organizing the underlying space

◮ Spatial data types, algebras, and relationships

◮ Integrating geometry into DBMS data model

◮ Querying spatial databases

◮ Spatial indexes

◮ System architecture

Literature ◮ (^) R.H. G¨uting: An introduction to spatial database systems. VLDB Journal 3:357–399 (1994) ◮ (^) R.H. G¨uting: Spatial database systems. Tutorial notes.

Introduction

◮ The goal of spatial database research is to extend DBMS data models and

query languages to be able to manage geometries/geometric objects.

◮ (^) Data structures for geometric shapes ◮ (^) Algorithms for performing geometric computations ◮ (^) Indexing techniques for multi-dimensional space ◮ (^) Extensions of query optimizers

◮ The main motivation for spatial databases in the past was to support

geographic information systems (GIS)

◮ (^) Early GIS made limited use of DBMS technology ◮ (^) Only non-spatial data were stored in a DB; geometries were managed in separate files ◮ (^) Modern GIS systems are built on top of DBMS ◮ (^) All major commercial systems offer spatial extensions (e.g., Oracle, IBM DB2, Informix)

Introduction...

◮ Definition: A spatial DBMS

◮ (^) Is a DBMS with additional capabilities for handling spatial data ◮ (^) Offers spatial data types in its data model and query language ◮ (^) Structure in space, e.g., point, line, region ◮ (^) Relationships among them, e.g., intersection ◮ (^) Supports spatial data types in its implementation ◮ (^) Providing at least spatial indexing (retrieving objects in particular area without scanning the whole space) ◮ (^) Efficient algorithms for spatial join (not simply filtering the Cartesian product)

Introduction...

◮ 3-Layer Architecture of a Spatial DBMS

Modeling Spatial Concepts...

◮ Three fundamental abstractions of single objects

◮ (^) Point: An object for which only its location but not its extent is relevant ◮ (^) e.g., cities on a large-scale map, hospitals, subway stations ◮ (^) Line (curve): An entity moving through space or a connection in space ◮ (^) e.g., rivers, highways, telepone cables ◮ (^) Region: An entity that has an extent in the 2D space ◮ (^) e.g., countries, forests, lakes ◮ (^) May in general have holes and consist of several disjoint pieces

Modeling Spatial Concepts...

◮ The two most important abstractions

for spatially related collections of

objects

◮ (^) Partition: A set of region objects that are required to be disjoint ◮ (^) The adjacency relationship is of particular interest, i.e., common boundary of region objects ◮ (^) e.g., land use, districts, land ownership ◮ (^) Network: A graph embedded into the plane, consisting of a set of point objects forming its nodes and a set of line objects decribing the geometry of the edges ◮ (^) e.g., highways, public transport, power supply lines

◮ Other intersting abstractions include nested partition, e.g., a country

partitioned into provinces partitioned into districts, etc.

Organizing the Underlying Space...

◮ Solution: Definition of a discrete geometric basis for modeling as well as

for implementation.

◮ Two approaches for a geometric basis:

◮ (^) Simplicial complexes (based on combinatorial topology) (Frank & Kuhn 86, Egenhofer, Frank & Jackson 89) ◮ (^) Realms (G¨uting & Schneider 93, Schneider 97)

Organizing the Underlying Space...

◮ Basic concepts of simplicial complexes

◮ (^) d-Simplex: A minimal object of dimension d ◮ (^) Consists of d + 1 simplices of dimension d − 1

◮ (^) Simplicial complex: A finite set of simplices such that the intersection of any two simplices in the set is a component used in a simplex. ◮ (^) c, d, e are not valid complexes

Spatial Data Types and Algebras

◮ The basic spatial abstractions can be embedded into an existing DBMS

data model by using abstract data types

◮ Spatial (abstract) data types encapsulate

◮ (^) the structure of a spatial object, e.g., region ◮ (^) and operations on it, e.g., predicates, functions, construction operators

◮ Spatial algebra: A collection of spatial data types with related operations

◮ (^) Important properties of an algebra are closure under operations and completeness

ROSE Algebra

◮ ROSE Algebra (RObust Spatial Extension, G¨uting & Schneider 95)

◮ (^) A spatial algebra with realm-based spatial data types (i.e., objects composed from realm elements)

◮ ROSE data types: points, lines, regions

ROSE Algebra...

◮ ROSE operations: ROSE provides precisely defined operations

◮ (^) Let GEO = {points, lines, regions}, EXT = {lines, regions} and geo ∈ GEO, ext ∈ EXT

◮ Spatial predicates for topological relationships

inside : geo × region → bool

intersect, meets : ext × ext → bool

adjacent, encloses : regions × regions → bool

◮ Operations returning atomic spatial data types

intersection : lines × lines → points

intersection : regions × regions → regions

plus, minus : geo × geo → geo

contour : regions → lines

ROSE Algebra...

◮ Spatial operators returning numbers

dist : geo × geo → real

perimeter, area : regions → real

◮ Spatial operations on set of objects

sum : set(obj) × (obj → geo) → geo

◮ (^) sum is a spatial aggregate function: Takes a set of objects together with a spatial attribute of the objects of type geo and returns the geometric union of all attribute values ◮ (^) e.g., form the union of a set of provinces to determine the area of a country

closest : set(obj) × (obj → geo) × geo → set(obj)

◮ (^) The closest operator determines within a set of objects those whose spatial attribute value has minimal distance from some other geometric object

Spatial Relationships...

◮ Extensions have been proposed

◮ (^) Consider dimension of the intersection → 256 combinations out of which 52 are valid

◮ Minimal solution:

◮ (^) 5 basic relationships: touch, in , cross, overlap, disjoint ◮ (^) 3 operators b, f , and t to get the boundaries ◮ (^) b applied to an area returns the boundary line ◮ (^) f and t return the end points of a line

◮ Properties of the minimal solution:

◮ (^) 5 relationships are mutually exclusive ◮ (^) 5 relationships + 3 boundary operators can distinguish all 52 valid configurations above

Integrating Geometry into the DBMS Data Model

◮ Spatial datatypes can be embedded in any data model, e.g., the relational

data model

◮ DBMS data model must be extended with SDTs at the level of atomic

data types (integer, string)

◮ Basic idea

◮ (^) Represent spatial objects by objects (of the DBMS data model) with at least one SDT attribute. ◮ (^) Relational data model: spatial objects are tuples with at least one SDT attribute ◮ (^) Example: Relational tables to store cities, rivers, and countries cities( name:string, population:int, location:points ) rivers( name:string, route:line ) highways( name:string, route:line ) states( name:string, area:region ) ◮ (^) Representation of spatially related collections of objects (e.g., paritions) as a set of objects with a region attribute ◮ (^) Loses some information, e.g., regions are disjoint

◮ Modeling of spatially embedded networks has not received much

attention in research