Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.

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.
Basic SQL Introduction Presented by: Madhuri Bhogadi.
Lecture-7/ T. Nouf Almujally
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) 
What is Where? u Getting Started With Geographic Information Systems u Chapter 5.
What is Where? Lecture 5 Introduction to GISs Geography 176A Department of Geography, UCSB Summer 06, Session B.
Database Management: Getting Data Together Chapter 14.
Geographic Information Systems
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
What is Where? u Getting Started With Geographic Information Systems u Chapter 5.
Geographic Information Systems and Science SECOND EDITION Paul A. Longley, Michael F. Goodchild, David J. Maguire, David W. Rhind © 2005 John Wiley and.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Attribute databases. GIS Definition Diagram Output Query Results.
CSC 2720 Building Web Applications Database and SQL.
SESSION 7 MANAGING DATA DATARESOURCES. File Organization Terms and Concepts Field: Group of words or a complete number Record: Group of related fields.
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.
What is Where? Getting Started With Geographic Information Systems Chapter 5.
IST Databases and DBMSs Todd S. Bacastow January 2005.
10. Creating and Maintaining Geographic Databases.
Geografiske informasjonssystemer (GIS) SGO1910 & SGO4930 Vår 2004 Foreleser: Karen O’Brien Seminarleder: Gunnar Berglund
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
MICROSOFT ACCESS Pn. Jamilah Binti Yusof. DEFINITION A database is the computer equivalent of an organized list of information. Typically, this information.
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.
Attribute Data in GIS Data in GIS are stored as features AND tabular info Tabular information can be associated with features OR Tabular data may NOT be.
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.
Module Title? DBMS Introduction to Database Management System.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
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.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
University of Sunderland COM 220Lecture Two Slide 1 Database Theory.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
“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.
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.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Implementation of the Relational Model There is no substitute for the comfort supplied by the utterly taken-for-granted relationship. Iris Murdoch.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
Geographic Information Systems (GIS) SGO1910 & SGO4930 Fall 2005.
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
Mining real world data RDBMS and SQL. Index RDBMS introduction SQL (Structured Query language)
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Geographic Information Systems GIS Data Databases.
Fundamental of Database Systems
“Introduction To Database and SQL”
9. Creating and Maintaining Geographic Databases
Geographic Information Systems
“Introduction To Database and SQL”
Database.
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Geographic Information Systems
Presentation transcript:

Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4

Outline Definitions Characteristics of DBMS Types of databases Relational model SQL Queries as a gateway to spatial analysis

cell towers +/- 500 m Google db of tower locations Graphic courtesy of Wired, Feb Wi-Fi +/- 30 m Skyhook servers and db iPhone GPS +/- 10 m iPhone uses reference network

Definitions Database – an integrated set of data (attributes) on a particular subject Geographic (=geospatial) database - database containing geographic data of a particular subject for a particular area Database Management System (DBMS) – software to create, maintain and access databases

A GIS can answer the question: What is where? WHAT: Characteristics of features (= attributes). WHERE: In geographic space.

A GIS links attribute and spatial data Attribute Data Flat File or DBMS Relationships Topology Table Map Data Point File Line File Area File Topology Type

Flat File or DBMS RecordValue Attribute RecordValue RecordValue

Ancient DBMS From Clarke, Getting Started with GIS

Types of DBMS Models Hierarchical Network Relational - RDBMS Object-oriented - OODBMS Object-relational - ORDBMS

Historically, databases were structured hierarchically in flat files...

Relational Databases rule now

Characteristics of DBMS (1) 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

Characteristics of DBMS (2) Query language – e.g., SQL Security – controlled access to data Multi-level groups Controlled update using a transaction manager Backup and recovery

Characteristics of DBMS (3) Applications Forms builder Reportwriter Internet Application Server CASE tools Programmable API

Geographic Information System Database Management System Data loading Editing Visualization Mapping Analysis Storage Indexing Security Query Data System Task Role of DBMS

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)

Table Row = object Vector feature Column = attribute

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

Relational Join Fundamental query operation Occurs because 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

Relational Databases

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

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

Spatial Search: Gateway to Spatial Analysis Overlay is a spatial retrieval operation that is equivalent to an attribute join. Buffering is a spatial retrieval around points, lines, or areas based on distance.

Overlay Image courtesy of K. Foote/M. Lynch, UT-Austin

Overlay 0 1

Overlay like an attribute join

Types of overlay operations Union Intersect Identity Max Min Etc.

Union computes the geometric intersection of two polygon coverages. All polygons from both coverages will be split at their intersections and preserved in the output coverage.

Union within 25 miles of a city OR within 25 miles of a major river.

Intersect computes the geometric intersection of two coverages. Only those features in the area common to both coverages will be preserved in the output coverage.

Intersect within 25 miles of a city AND within 25 miles of a major river.

Identity computes the geometric intersection of two coverages. All features of the input coverage, as well as those features of the identity coverage that overlap the input coverage, are preserved in the output coverage.

Identity within 25 miles of a city OR within 25 miles of a major river. within 25 miles of a city AND within 25 miles of a major river. Portion of the major city buffer WITHIN the major river buffer

Identity Intersect

Buffer

Complex Retrieval: Map Algebra Combinations of spatial and attribute queries can build some complex and powerful GIS operations, such as weighting. Weighted overlay analysis really just complex retrieval.

Map Algebra Compared with RAINFALL 1990 RAINFALL 1991 MAX RAINFALL 1990-’91

Recode OR

A-B = AGRICULTURAL C-E = NON-AGRICULTURAL