Geographic Information Systems and Science SECOND EDITION Paul A. Longley, Michael F. Goodchild, David J. Maguire, David W. Rhind © 2005 John Wiley and.

Slides:



Advertisements
Similar presentations
Chapters 9 and 10, Longley et al. Data Bases: Population and Maintenance Geog 176B Lecture 8.
Advertisements

The Role of Error Map and attribute data errors are the data producer's responsibility, GIS user must understand error. Accuracy and precision of map and.
By RUPESH KUMAR.  Database? Types? Abstraction?  Database Models?  Database Integrity?  ACID?  RDBMS?  Normalization?  Data Warehouse?  Database.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
GI Systems and Science January 30, Points to Cover  Recap of what we covered so far  A concept of database Database Management System (DBMS) 
Database Management: Getting Data Together Chapter 14.
Data Management Design
Geographic Information Systems
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Chapter 11 Data Management Layer Design
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
BUSINESS DRIVEN TECHNOLOGY
CSC 2720 Building Web Applications Database and SQL.
RIZWAN REHMAN, CCS, DU. Advantages of ORDBMSs  The main advantages of extending the relational data model come from reuse and sharing.  Reuse comes.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Management COP4540, SCS, FIU An Introduction to database system.
IST Databases and DBMSs Todd S. Bacastow January 2005.
10. Creating and Maintaining Geographic Databases.
University of California , San Diego (UCSD)
Geografiske informasjonssystemer (GIS) SGO1910 & SGO4930 Vår 2004 Foreleser: Karen O’Brien Seminarleder: Gunnar Berglund
Computing for Bioinformatics Introduction to databases What is a database? Database system components Data types DBMS architectures DBMS systems available.
Database Lecture # 1 By Ubaid Ullah.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
“Codd’s Rules for Spatial ORDBMS”
Spatial Databases ENVE/CE 424/524. Definitions Database – an integrated set of data on a particular subject Spatial database - database containing geographic.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Module Title? DBMS Introduction to Database Management System.
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Database System Concepts and Architecture
Introduction: Databases and Database Users
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
University of Sunderland COM 220Lecture Two Slide 1 Database Theory.
Databases and Statistical Databases Session 4 Mark Viney Australian Bureau of Statistics 5 June 2007.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 4th Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Slide 1 Object Persistence Design Chapter 13 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by.
Storing Organizational Information - Databases
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Module 1: Database System
Database Systems DBMS Environment Data Abstraction.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
U.S. Census Data & TIGER/Line Files
1 Geog 357: Data models and DBMS. Geographic Decision Making.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
SQL Basics Review Reviewing what we’ve learned so far…….
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Databases and DBMSs Todd S. Bacastow January
“Introduction To Database and SQL”
The roles of GIS and DBMS
9. Creating and Maintaining Geographic Databases
Database Management System
Chapter 4 Relational Databases
Geographic Information Systems
“Introduction To Database and SQL”
Database.
Presentation transcript:

Geographic Information Systems and Science SECOND EDITION Paul A. Longley, Michael F. Goodchild, David J. Maguire, David W. Rhind © 2005 John Wiley and Sons, Ltd 10. Creating and Maintaining Geographic Databases

© 2005 John Wiley & Sons, Ltd Outline Definitions Characteristics of DBMS Types of database Geographic Extensions Storing data in DBMS tables SQL Geographic databases types and functions Geographic database design Structuring geographic Information Topology Indexing methods Editing and Data Maintenance Multi-user Editing Conclusions

© 2005 John Wiley & Sons, Ltd Definitions Database – an integrated set of data on a particular subject Geographic (=spatial) database - database containing geographic data of a particular subject for a particular area Database Management System (DBMS) – software to create, maintain and access databases

© 2005 John Wiley & Sons, Ltd Advantages of Databases over Files Avoids redundancy and duplication Reduces data maintenance costs Applications are separated from the data Applications persist over time Support multiple concurrent applications Better data sharing Security and standards can be defined and enforced

© 2005 John Wiley & Sons, Ltd Disadvantages of Databases over Files Expense Complexity Performance – especially complex data types Integration with other systems can be difficult

© 2005 John Wiley & Sons, Ltd Types of DBMS Model Hierarchical Network Relational - RDBMS Object-oriented - OODBMS Object-relational - ORDBMS

© 2005 John Wiley & Sons, Ltd Characteristics of DBMS (1) Data model support for multiple data types e.g MS Access: Text, Memo, Number, Date/Time, Currency, AutoNumber, Yes/No, OLE Object, Hyperlink, Lookup Wizard Load data from files, databases and other applications Index for rapid retrieval

© 2005 John Wiley & Sons, Ltd Characteristics of DBMS (2) Query language – SQL Security – controlled access to data Multi-level groups Controlled update using a transaction manager Backup and recovery DBA tools Configuration, tuning

© 2005 John Wiley & Sons, Ltd Characteristics of DBMS (3) Applications CASE tools Forms builder Reportwriter Internet Application Server Programmable API

© 2005 John Wiley & Sons, Ltd Role of DBMS

© 2005 John Wiley & Sons, Ltd Relational DBMS (1) Data stored as tuples (tup-el), conceptualized as tables Table – data about a class of objects Two-dimensional list (array) Rows = objects Columns = object states (properties, attributes)

© 2005 John Wiley & Sons, Ltd Relational DBMS (2) Most popular type of DBMS Over 95% of data in DBMS is in RDBMS Commercial systems IBM DB2 Informix Microsoft Access Microsoft SQL Server Oracle Sybase

© 2005 John Wiley & Sons, Ltd Table Row = object Column = property Table = Object Class Object Classes with Geometry called Feature Classes

© 2005 John Wiley & Sons, Ltd Figure 10.2b

© 2005 John Wiley & Sons, Ltd Figure 10.2c

© 2005 John Wiley & Sons, Ltd Figure 10.3A ParcelNumbOwnerNamOwnerAddressPostalCodeZoningCodeZoningTypeDate / AssessedValue 673/100Jeff Peters10 Railway Cuttings Residential Joel Campbell1115 Center Place Residential Dave Widseler Commercial Diamond Plaza Commercial D Widseler452 Diamond Plaza Commercial Sam Camarata19 Big Bend Bld Residential Chris CapelliHastings Barracks Residential Sheila Sullivan10034 Endin Mansions Residential

© 2005 John Wiley & Sons, Ltd Figure 10.3B

© 2005 John Wiley & Sons, Ltd Figure 10.3C

© 2005 John Wiley & Sons, Ltd Figure 10.3D Joined table

© 2005 John Wiley & Sons, Ltd Fig 10.4

© 2005 John Wiley & Sons, Ltd Relation Rules (Codd, 1970) Only one value in each cell (intersection of row and column) All values in a column are about the same subject Each row is unique No significance in column sequence No significance in row sequence

© 2005 John Wiley & Sons, Ltd Normalization Process of converting tables to conform to Codd’s relational rules Split tables into new tables that can be joined at query time The relational join Several levels of normalization Forms: 1NF, 2NF, 3NF, etc. Normalization creates many expensive joins De-normalization is OK for performance optimization

© 2005 John Wiley & Sons, Ltd Relational Join Fundamental query operation Occurs because Normalization Data created/maintained by different users, but integration needed for queries Table joins use common keys (column values) Table (attribute) join concept has been extended to geographic case

© 2005 John Wiley & Sons, Ltd SQL Structured (Standard) Query Language – (pronounced SEQUEL) Developed by IBM in 1970s Now de facto and de jure standard for accessing relational databases Three types of usage Stand alone queries High level programming Embedded in other applications

© 2005 John Wiley & Sons, Ltd Types of SQL Statements Data Definition Language (DDL) Create, alter and delete data CREATE TABLE, CREATE INDEX Data Manipulation Language (DML) Retrieve and manipulate data SELECT, UPDATE, DELETE, INSERT Data Control Languages (DCL) Control security of data GRANT, CREATE USER, DROP USER

© 2005 John Wiley & Sons, Ltd Geometry Class Hierarchy

© 2005 John Wiley & Sons, Ltd Spatial Relations Equals – same geometries Disjoint – geometries share common point Intersects – geometries intersect Touches – geometries intersect at common boundary Crosses – geometries overlap Within– geometry within Contains – geometry completely contains Overlaps – geometries of same dimension overlap Relate – intersection between interior, boundary or exterior

© 2005 John Wiley & Sons, Ltd Two Possible Relations for Geographic Databases

© 2005 John Wiley & Sons, Ltd Spatial Methods Distance – shortest distance Buffer – geometric buffer ConvexHull – smallest convex polygon geometry Intersection – points common to two geometries Union – all points in geometries Difference – points different between two geometries SymDifference – points in either, but not both of input geometries

© 2005 John Wiley & Sons, Ltd Examples of spatial analysis methods on geometries

© 2005 John Wiley & Sons, Ltd Four levels of data model available for use in GIS projects.

© 2005 John Wiley & Sons, Ltd Stages in Database Design

© 2005 John Wiley & Sons, Ltd Topology Two main database approaches Normalized Arc-node primitives Physical Simple features + rules

© 2005 John Wiley & Sons, Ltd Normalized Database Topology Model

© 2005 John Wiley & Sons, Ltd Physical Database Topology Model

© 2005 John Wiley & Sons, Ltd Indexing Used to locate rows quickly RDBMS use simple 1-d indexing (R-tree, B- tree, etc.) Spatial DBMS need 2-d, hierarchical indexing Grid Quadtree R-tree Others Multi-level queries often used for performance (MBR)

© 2005 John Wiley & Sons, Ltd

Multi-level Grid Index

© 2005 John Wiley & Sons, Ltd Point Quadtree

© 2005 John Wiley & Sons, Ltd Region Quadtree

© 2005 John Wiley & Sons, Ltd Quadtree Search Order

© 2005 John Wiley & Sons, Ltd R-tree

© 2005 John Wiley & Sons, Ltd MBR

© 2005 John Wiley & Sons, Ltd Database transactions: (A) Linear short transactions; (B) Branching version tree

© 2005 John Wiley & Sons, Ltd Version Reconciliation

© 2005 John Wiley & Sons, Ltd Version tree showing database states for a Main Plant geographic database

© 2005 John Wiley & Sons, Ltd Summary Database – an integrated set of data on a particular subject Databases offer many advantages over files Relational databases dominate Some limitations for GIS