Important Database Concepts Introduction to GIS. How is Data Stored? People use number system with base 10 –decimal number Each digit corresponds to 10.

Slides:



Advertisements
Similar presentations
Database management system (DBMS)  a DBMS allows users and other software to store and retrieve data in a structured way  controls the organization,
Advertisements

Data Models There are 3 parts to a GIS: GUI Tools
Some computer fundamentals and jargon Memory: Basic element is a bit – value = 0 or 1 Collection of “n” bits is a “byte” Collection of several bytes is.
Geodatabase basic. The geodatabase The geodatabase is a collection of geographic datasets of various types used in ArcGIS and managed in either a file.
Structured Query Language - SQL Carol Wolf Computer Science.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Chapter 5 The Relational Database Model: Introduction
©2007 by Austin Troy. All rights reserved Lecture 6 Important Database Concepts Introduction to GIS Lecture slides by Austin Troy, University of Vermont,
Attribute databases. GIS Definition Diagram Output Query Results.
Attribute Data Input and Management
MS Access 2007 IT User Services - University of Delaware.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
Introduction to Database Systems
IST Databases and DBMSs Todd S. Bacastow January 2005.
©2005 Austin Troy. All rights reserved Lecture 3: Introduction to GIS Understanding Spatial Data Structures by Austin Troy, Leslie Morrissey, & Ernie Buford,
Database Design Concepts
GIS Concepts ‣ What is a table? What is a table? ‣ Queries on tables Queries on tables ‣ Joining and relating tables Joining and relating tables ‣ Summary.
Working with Tables Lesson 5 of Introduction to ArcGIS for Emergency Managers.
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.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Rensselaer Polytechnic Institute CSCI-4380 – Database Systems David Goldschmidt, Ph.D.
Number Systems Spring Semester 2013Programming and Data Structure1.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
How do we represent the world in a GIS database?
Fundamentals of GIS Lecture materials by Austin Troy (c) 2010, except where noted Lecture 3 Part 1.Important Database Concepts Part 2. Queries Lecture.
Chapter 4 Introduction to MySQL. MySQL “the world’s most popular open-source database application” “commonly used with PHP”
CSC 2720 Building Web Applications Database and SQL.
Chapter 8. ATTRIBUTE DATA INPUT AND MANAGEMENT
Common Field Types Primary Key Descriptive Fields Foreign Key.
Chapter 5: Data Types (2013) Revision Candidates should be able to know: Identify different data types? Key terms: File, record, field and key field Database.
1 SQL Tarek El-Shishtawy Professor Ass. Of Computer Engineering.
©2007 by Austin Troy. All rights reserved Lecture 6 Database Concepts Introduction to GIS By Brian Voigt University of Vermont Thanks are due to Dr Troy,
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
Database revision.
GIS Data Structures How do we represent the world in a GIS database?
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
NR 143 Study Overview: part 1 By Austin Troy University of Vermont Using GIS-- Introduction to GIS.
CEC 220 Digital Circuit Design Binary Codes
Operators & Identifiers The Data Elements. Arithmetic Operators exponentiation multiplication division ( real ) division ( integer quotient ) division.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
DATA Spatial Data – where things are Non Spatial Data or Attribute Data – What things are Data in a computer database are managed and accessed through.
Introduction to Databases CISC Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Mr C Johnston ICT Teacher
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
CEC 220 Digital Circuit Design Binary Codes Mon, Aug 31 CEC 220 Digital Circuit Design Slide 1 of 14.
©2007 by Austin Troy. All rights reserved Lecture 6 Important Database Concepts Introduction to GIS Lecture slides by Austin Troy, University of Vermont,
Retele de senzori Curs 2 - 1st edition UNIVERSITATEA „ TRANSILVANIA ” DIN BRAŞOV FACULTATEA DE INGINERIE ELECTRICĂ ŞI ŞTIINŢA CALCULATOARELOR.
Creating E/R Diagrams with SQL Server Management Studio, Writing SQL Queries D0ncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
Introduction to Database Programming with Python Gary Stewart
Chapter 3 Data Representation
Geog. 314 Working with tables.
Programming and Data Structure
Databases Chapter 9 Asfia Rahman.
Databases Chapter 16.
Number Systems and Binary Arithmetic
Chapter 4 Attribute Data.
Unit 16 – Database Systems
Floating Point Number system corresponding to the decimal notation
Physical Structure of GDB
EPSII 59:006 Spring 2004.
B065: PROGRAMMING Variables 1.
ICT Database Lesson 2 Designing a Database.
ESRM 250/CFR 520 Autumn 2009 Phil Hurvitz
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

Important Database Concepts Introduction to GIS

How is Data Stored? People use number system with base 10 –decimal number Each digit corresponds to 10 to some power Hence a number with 3 digits has 10 3 or 1000 possibilities (combinations) Computers use a base 2 system of storing numbers and values Bit: 0 or 1, like switch Off/On: Off: 0; On: 1 A byte is 8 bits, so 2 8 or 256 possibilities

How do binary numbers translate to real numbers? Switch combinations determine base ten number based on the formula: N 10 = 2 b-1 *digit+2 b-2 *digit +…2 b-b *digit Where b= number of bits storing the number Hence the binary number = 2 7 * * * * * * * *1 = And the binary number = 2 7 * * * * * * * *0 =

Number of possible values for a unit of data is an exponential function of the number of switches 2 8 = 256eight bit data (1 byte) 2 16 = 65,536sixteen bit data (2 bytes) 2 32 = 4,294,967,296thirty two bit data ( 4 bytes) Number of Possible Values given number of bits

Number of bits determines data types Examples of Integer data types  Byte: 2 8 (0 to 255)  Short Integer: 2 16 (ranges from –32,767 to +32,767, the sixteenth bit determines sign)  Long Integer: 2 32 (+/ e+09 )

Floating point data types The number can have a decimal, but the number of places is variable The number of bits determines not just the number of possible magnitudes but also the level of precision of the decimal, represented as number of decimal places. Fewer bits in FP numbers can lead to rounding errors Two types of FP number  Single Precision: Often 2 32  Double Precision: Usually double the bits of single precision (i.e )

 Date (recognizes order in dates)  String (text)  When numbers are represented as text they have no numerical properties (e.g. zip codes)  Boolean (yes, no) Other Data Types

Example: Data Type for a Land Use Feature Class in ArcGIS

Three Classic Database Management System (DBMS) Models Hierarchical Network Relational – Most GISs use this model, to be explained in detail

Relational (Tabular) Database Model A design used in database systems in which relationships are created between one or more flat files or tables based on the idea that each pair of tables has a field in common, or “key”. In a relational database, the records are generally different in each table The advantages: - each table can be prepared and maintained separately - tables can remain separate until a query requires connecting, or relating them - relationships can be one to one, one to many or many to one

NamePhoneAddressStudent ID *** Records are the unit that the data are specific to Fields, or columns, are attribute categories Cells are where individual values of a record for a field are stored Data Tables (flat files) records fields cells Headings: are the labels for the columns

Course name Course number enrollmentfaculty ID *** Is a field that is common to two or more flat files; allows a query to be done across multiple tables or allows two tables to be joined Data key NamePhoneAddressfaculty ID *** Flat file: professor infoFlat file: course info

KeyA B C KeyA B C JOIN In this case we have a one to one join; here the key is unique 3 50 Join Tables Based on the values of a field that can be found in both tables The name of the field does not have to be the same The data type has to be the same

Join Tables NoA B KeyC KeyA B C JOIN In this case we have a one to many join; here the key is not unique

u Relational Database: an example: property lot info One-to-one relationship Parcel ID Street addresszoning 1115 Maple St.Residential Brooks AveCommercial Windam Ct.Residential 4 OwnerParcel IDoccupation J. Smith13lawyer R. Jones11dentist T. Flores12Real estate developer

u Relational database: one to many relationship One-to-many relationship Parcel ID Street addresszoning 1115 Maple St.Residential Brooks AveCommercial Windam Ct.Residential 4 OwnerParcel IDoccupation J. Smith13lawyer R. Jones11dentist J. McCann12financier T. Flores12Real estate developer In this case, several people co-own the same lot, so no longer one lot, one person

Assuming each owner owned several parcels, we would structure the database differently One-to-many relationship Parcel IDStreet addresszoning 1115 Maple St.Residential Brooks AveCommercial Windam Ct.Residential 4 Owneroccupation# properties owned J. Smithlawyer2 R. Jonesdentist5 J. McCannfinancier2 T. FloresReal estate developer 3 Properties owned by T. Flores OwnerParcel IDDate of transaction Flores Flores Flores Note: this table includes data pertinent only to Flores’ ownership of these properties