GIS Data Models GEOG 370 Christine Erlien, Instructor.

Slides:



Advertisements
Similar presentations
C6 Databases.
Advertisements

Introduction to Databases
Managing data Resources: An information system provides users with timely, accurate, and relevant information. The information is stored in computer files.
File Systems and Databases
Database Management: Getting Data Together Chapter 14.
Organizing Data & Information
3-1 Chapter 3 Data and Knowledge Management
1 Data & Database Development. 2 Data File Bit Byte Field Record File Database Entity Attribute Key field Key file management concepts include:
PROCESS IN DATA SYSTEMS PLANNING DATA INPUT DATA STORAGE DATA ANALYSIS DATA OUTPUT ACTIVITIES USER NEEDS.
Attribute databases. GIS Definition Diagram Output Query Results.
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Databases Chapter 11.
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.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Chapter 6 Physical Database Design. Introduction The purpose of physical database design is to translate the logical description of data into the technical.
Database Design Concepts
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Chapter 13 File Structures. Understand the file access methods. Describe the characteristics of a sequential file. After reading this chapter, the reader.
1 Advanced Computer Programming Databases. Overview What is a database? Database Basics Database Components Data Models Normalization Database Design.
1 © Prentice Hall, 2002 Physical Database Design Dr. Bijoy Bordoloi.
1 California State University, Fullerton Chapter 7 Information System Data Management.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Concepts and Terminology Introduction to Database.
TM 7-1 Copyright © 1999 Addison Wesley Longman, Inc. Physical Database Design.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Data and its manifestations. Storage and Retrieval techniques.
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
Database Normalization Lynne Weldon July 17, 2000.
GUS: 0262 Fundamentals of GIS Lecture Presentation 3: Relational Data Model Jeremy Mennis Department of Geography and Urban Studies Temple University.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
Information Systems Today (©2006 Prentice Hall) 3-1 CS3754 Class Note 12 Summery of Relational Database.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
What's a Database A Database Primer Let’s discuss databases n Why they are hard n Why we need them.
Chapter 4c, Database H Definition H Structure H Parts H Types.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Database Management COP4540, SCS, FIU Physical Database Design (ch. 16 & ch. 3)
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
1 Technology in Action Chapter 11 Behind the Scenes: Databases and Information Systems Copyright © 2010 Pearson Education, Inc. Publishing as Prentice.
Relational Theory and Design
Zhangxi Lin Texas Tech University ISQS 6347, Data & Text Mining 1 ISQS 6339 Data Management and Business Intelligence Database Review.
Lesson 2: Designing a Database and Creating Tables.
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Flat Files Relational Databases
CIS 250 Advanced Computer Applications Database Management Systems.
FILE ORGANIZATION.
1 Geog 357: Data models and DBMS. Geographic Decision Making.
Introduction to Databases Angela Clark University of South Alabama.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
Chapter 5 Record Storage and Primary File Organizations
Database Planning Database Design Normalization.
Edexcel OnCourse Databases Unit 9. Edexcel OnCourse Database Structure Presentation Unit 9Slide 2 What is a Database? Databases are everywhere! Student.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
IT 5433 LM4 Physical Design. Learning Objectives: Describe the physical database design process Explain how attributes transpose from the logical to physical.
Databases and DBMSs Todd S. Bacastow January
INLS 623– Database Systems II– File Structures, Indexing, and Hashing
Databases A brief introduction….
Physical Database Design
Chapter 17 Designing Databases
Microsoft Access Date.
Presentation transcript:

GIS Data Models GEOG 370 Christine Erlien, Instructor

GIS Data Models: Why? Knowing how GIS data are structured helps us to use GIS programs more effectively –Basic computer file structures –Database structures

Basic computer file structures What is where? –Computer file structures allow the computer to store, order, & search data Types: –Simple list –Ordered sequential –Indexed file

Basic computer file structures: Simple list Simple List –Most basic –No order, no organization –Input is simple  just add on –Searching difficult & inefficient –Example: If my class roster were ordered based on when you added this class

Basic computer file structures: Ordered sequential files Ordered sequential files –Records ordered by alphabetic or numerical character sequence How? Algorithm: divide and conquer –Record compared to records preceding & following to determine which 1/2 to search –Repeat until done –Inserting a record is slow –Searching more efficient than simple list

Basic computer file structures: Ordered sequential files Example file: Chapel Hill Cary Durham Graham Greensboro Raleigh To add: Maggie Valley What’s the process?

Basic computer file structures Indexed files –Database index Can be built for field that uniquely identifies a record (primary key) or other fields Used to determine the location of rows in a file that satisfy some condition Keys & indexes can be extracted & sorted and original file accessed faster than the original file could be sorted –Types Direct: Each record searched for particular properties Inverted: Index based on anticipated search criteria

Indexed files Inverted index Direct index

Advantages –Quicker (i.e., reduces computational time) Disadvantages –Inverted Requires knowledge of likely search criteria Data additions require recalculation of index Basic computer file structures: Indexed files

Databases & Database Structures What is where? –Geographic searches  data retrieval –Data retrieval requires data organization

Databases & Database Structures Database: Collection of multiple files –Requires more elaborate structure for management DBMS: Database Management System Database structure types –Hierarchical data structures –Network systems –Relational database systems

Database Structures: Hierarchical Hierarchical data structures –One-to-many (parent-child) relationship –Requires relationship be defined before structure & decision rules developed –Advantage: Easy to search –Disadvantage: Knowledge of all questions that might be asked necessary –Unanticipated criteria make search impossible Large index files  memory intensive, slow access

Hierarchical Database Structures

Database Structures: Network Systems Network Systems –Allow users to move from data item to data item through a series of pointers Pointers: Computer structures that direct a piece of data to all others to which it relates (connect one file location to another) –Pointers indicate relationships among data items

Database Structures: Network Systems

Advantages: –Less rigid than hierarchical structure –Can handle many-to-many relationships –Reduce data redundancy –Greater search flexibility Disadvantages: –In very complex GIS databases, the number of pointers can get quite large  storage space

Database Structures: Relational Databases Predominant in GIS Tuples: Ordered records/rows of attribute values Primary Key: Unique identifier for each record in a relational table Lu_codeCrop typeStatusCost Row cropsActive1000/ha OrchardsDormant1500/ha RangelandActive900/ha Row cropsActive1100/ha Garden farms Active1250/ha Row cropsDormant1050/ha

Database Structures: Relational Databases Joining tables  Relational join –Matching data from one table to corresponding data in another table –How? Link the primary key to the foreign key Primary Key: Unique identifier in 1 st table Foreign key: Column in 2 nd table to which primary key is linked

Database Structures: Relational Databases

Relational DB & Normal Forms Normal forms: A set of rules established to indicate the form tables should take Goal: Reduce database redundancy  database performance is better First normal form –Table must contain columns & rows –Columns will be used for searches, so only one value per cell

Second normal form –Every column that is not the primary key should be dependent on the primary key On the entire primary key if primary key is comprised of more than one column Relational DB & Normal Forms | PART | WAREHOUSE | QUANTITY | WAREHOUSE-ADDRESS | Key: Part & Warehouse together Address  only dependent on warehouse portion of key | PART | WAREHOUSE | QUANTITY || WAREHOUSE | WAREHOUSE-ADDRESS | Example from William Kent, "A Simple Guide to Five Normal Forms in Relational Database Theory", Communications of the ACM 26(2), Feb. 1983,

Relational DB & Normal Forms Third Normal Form –Nonprimary keys must depend on primary key –Primary key does not depend on any nonprimary key | EMPLOYEE | DEPARTMENT | LOCATION | Key field: Employee Location is redundant & not dependent on key field | EMPLOYEE | DEPARTMENT | | DEPARTMENT | LOCATION |

Normalization of Database Tables Normalization: Process of organizing data in a database –Creating tables & establishing relationships between them according to rules of normal form –Goal: Make the database more flexible by eliminating redundancy and inconsistent dependency

Normalization of Database Tables Problem with data redundancy: –Wastes disk space –Creates maintenance problems If data existing in more than one place must be changed  must be changed the same way in each case

Normalization & Normal Forms Describing databases –If the 1st rule is observed, the database is said to be in "first normal form." –If the first 3 rules are observed, the database is considered to be in "third normal form." Additional levels of normalization are possible, but 3rd normal form is considered the highest level necessary for most applications

Recap File types –Simple list –Ordered Sequential –Indexed Databases: Many files –Structure necessary  access to data in 1 or more files easier Database types –Hierarchical –Network –Relational