Docsity

Spatial Databases - Lecture Outline | GEOG 473, Study notes of Geography

Partial preview of the text

Download Spatial Databases - Lecture Outline | GEOG 473 and more Study notes Geography in PDF only on Docsity!

Spatial Databases

Spatial Databases

Kuan Song Kuan Song

Department of Geography Department of Geography

University of Maryland University of Maryland

Feb 2, 2009 Feb 2, 2009

Lecture Outline

Lecture Outline

Information Management

Information Management

What is database

What is database

Database Design

Database Design

Geospatial Database

Geospatial Database

Metadata

Metadata

Question 1

Question 1

 

What is the difference between What is the difference between

georeferenced

georeferenced

data data

and and

digital maps digital maps

 

The term The term

Georeferenced Georeferenced

data data

emphasizes emphasizes

the data attributes, while the term the data attributes, while the term

digital digital

maps maps

emphasizes the spatial geometry. emphasizes the spatial geometry.

 

GIS has to cope with these two types of GIS has to cope with these two types of

information information

How to organize Information? An example How to organize Information? An example

 

A company at whitetail ski resort

A company at whitetail ski resort

maintains a customer list

maintains a customer list

 

Customers need individual trip

Customers need individual trip

planning, hotel rooms, and ski

planning, hotel rooms, and ski

classes.

classes.

 

What would you do as the manager?

What would you do as the manager?

GIS as computerized information GIS as computerized information

management

management

 

How to organize non

How to organize non

spatial

spatial

information?

information?

 

How to link the maps to non

How to link the maps to non

spatial

spatial

information?

information?

1. Information Management

1. Information Management

 

1.1 How do we store and use data? 1.1 How do we store and use data?

Non Non

computerized management, e.g. diarycomputerized management, e.g. diary

 

‘ ‘

Andy and Susan went to whitetail ski resort fromAndy and Susan went to whitetail ski resort from

Maryland for the weekend, where they met Frank. Maryland for the weekend, where they met Frank.

Frank had a minor accident, some bruises, and headed Frank had a minor accident, some bruises, and headed

home in Virginia. home in Virginia.

’’

Computerized, e.g. tables Computerized, e.g. tables

 

Much easier for updating and querying Much easier for updating and querying

Name Name

Origin Origin

Andy Andy

MDMD

Susan Susan

MDMD

Frank Frank

VAVA

Problems of file Problems of file

processing systems processing systems

 

Data Redundancy

Data Redundancy

 

Data Inconsistency

Data Inconsistency

 

Difficulty accessing data

Difficulty accessing data

 

Difficulty in sharing data

Difficulty in sharing data

 

Security breach

Security breach

The advent of Database

The advent of Database

 

Time: ~

Time: ~

 

Form: Simple tables

Form: Simple tables

 

Evolution:

Evolution:

From individual tables to inter From individual tables to inter

connected tables connected tables

From inter From inter

connected tables to objects connected tables to objects

From non From non

spatial database to spatial spatial database to spatial

database database

Components of a DBMS

Components of a DBMS

 

A data model A data model

 

Metadata Metadata

 

A query Language A query Language

 

Index Index

 

Security Security

 

Controlled update Controlled update

 

Backup and recovery Backup and recovery

 

Administrative tools Administrative tools

 

Application Application

 

Application programming interface Application programming interface

3. How to design a conventional

3. How to design a conventional

database?

database?

 

General Steps (Longley Figure 10.9):

General Steps (Longley Figure 10.9):

  1. User View 2. Objects andRelationships 3. GeographicalRepresentation
  2. Database Types 5. Database Structure
    1. DatabaseSchema

Conceptual Model

Logical Model

Physical Model

Step 2. Determine the relationship Step 2. Determine the relationship

links among the objects

links among the objects

 

Flight, Airport, Hotel Room, and Ski

Flight, Airport, Hotel Room, and Ski

class are all linked by Visitor

class are all linked by Visitor

 

Room is part of hotel

Room is part of hotel

 

Ski site is linked to ski class

Ski site is linked to ski class

Step 3. The Entity Step 3. The Entity

Relationship (E Relationship (E

R) Model R) Model

 

Objects are modeled as entities Objects are modeled as entities

 

Entities are described by a set of attributes Entities are described by a set of attributes

 

Non Non

spatial relationships: One spatial relationships: One

ToTo

One (1:1), One (1:1),

One One

To To

Many (1:M), Many Many (1:M), Many

To To

One (M:1), Many One (M:1), Many

To To

Many (M:N)Many (M:N)

 

Spatial Relationships: Equal, Disjoint, Intersect, Spatial Relationships: Equal, Disjoint, Intersect,

Touch, Cross, Within, Contain, Overlap Touch, Cross, Within, Contain, Overlap

Flight

Visitor

Room

Ski Class

Hotel

Ski Site

Flight No.

Name

Dest.

Book

Flight No.

Flight No.

Ski Class

No.

Book

Register

Part of

Occur at

Spatial

Touch

Coach

Site No.

Hotel

Name

Hotel Addr.

Name

Room No.

Checkin/out

1

M

1

1

M

1

M

M

M

N

N

Skill Lvl

M

Step 4. Selecting one type of DBMS Step 4. Selecting one type of DBMS

 

Relational DBMS (RDBMS)

Relational DBMS (RDBMS)

 

Object DBMS (ODBMS)

Object DBMS (ODBMS)

 

Object

Object

relational DBMS (ORDBMS)

relational DBMS (ORDBMS)

Is there really many choices? Is there really many choices?