Top Banner
Intro to GIS | Summer 2012 Attribute Tables – Part 1
30

Intro to GIS | Summer 2012 Attribute Tables – Part 1

Jan 02, 2016

Download

Documents

Marcia Wade

Intro to GIS | Summer 2012 Attribute Tables – Part 1. DATABASES. Why do we care about Databases?. Integrated sets of data Focused on a particular area and subject Form the basis of GIS analysis and decision-making - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Intro to GIS | Summer 2012Attribute Tables – Part 1

Page 2: Intro to GIS | Summer 2012 Attribute Tables – Part 1

DATABASES

Page 3: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Why do we care about Databases?

• Integrated sets of data

• Focused on a particular area and subject

• Form the basis of GIS analysis and decision-making

• Must be well-structured in order for us to best access the information stored in them

Page 4: Intro to GIS | Summer 2012 Attribute Tables – Part 1

How are Databases Managed?

• Database Management System (DBMS) = system or software program(s) that enables you to store, modify and extract information from a database

Page 5: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Relational Database (RDBMS)

• Supports the representation of data as a set of tables that are related to each other

• Each table = a list of records containing attributes about features

• Tied together by a “Attribute Key” = an attribute field common to both tables

Page 6: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Record: a row in a database; represents one feature (a.k.a. “tuple”)Attribute: a column in a database; contains attribute values (a.k.a. “field”)

Table Data Structure

Page 7: Intro to GIS | Summer 2012 Attribute Tables – Part 1
Page 8: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Which attribute field is the Attribute Key in this case?

Page 9: Intro to GIS | Summer 2012 Attribute Tables – Part 1
Page 10: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Object (ODBMS) & Object-Relational (ORDBMS) Databases

• ODBMS = Supports the representation of data as objects having attributes, methods and behavior e.g. ArcGIS geodatabases

• Designed to address the weaknesses of RDBMS such as: Geometry and attribute data are stored in separate

databases

Poor performance for many types of geographic query

• Geographic extensions to standard RDBMS can provide similar functionality (ORDBMS)

Page 11: Intro to GIS | Summer 2012 Attribute Tables – Part 1

GEOGRAPHIC (SPATIAL) DATABASES

Page 12: Intro to GIS | Summer 2012 Attribute Tables – Part 1

What is a Geographic (Spatial) Database?

Contains one or more tables with a geographic component (a “shape” attribute)

Common example: an ESRI Geodatabase

Page 13: Intro to GIS | Summer 2012 Attribute Tables – Part 1

ESRI Geodatabase

Features have:

• Shapes

• Attributes

• Spatial Reference

• Relationships

Features can be:

• Constrained (domains)

• Validated by rules

• Modeled with complex behavior

Page 14: Intro to GIS | Summer 2012 Attribute Tables – Part 1

ESRI Geodatabase

Page 15: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Types of Geodatabases

Personal

• Single-user

• Microsoft Access

• Up to 2 GB storage

File

• Single-user

• File folder structure

• Up to 1 TB storage

ArcSDE

• Multi-User, supports versioning

• Oracle, Microsoft SQL Server, IBM DB2, IBM Informix, PostgreSQL

• Storage limit based on DBMS type

ESRI Comparison of Geodatabases

Page 16: Intro to GIS | Summer 2012 Attribute Tables – Part 1

“Default” Geodatabase

• A setting in ArcGIS

• Helps with data management

• Allows you to:

Store all datasets in one convenient location, or

Set a database for each project

Page 17: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Setting the Default Geodatabase - ArcMap

Page 18: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Change location of Default Geodatabase

Page 19: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Setting the Default Geodatabase – ArcCatalog

Page 20: Intro to GIS | Summer 2012 Attribute Tables – Part 1

QUERYING GIS DATA

Page 21: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Getting Information from GIS data

• Query = to question or inquire about a feature(s) shown on a map (and by extension, in a GIS dataset)

• Output is a selected set of records

• Two approaches:

Attribute queries

Spatial queries

Page 22: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Attribute Queries

• Selects features based on non-spatial information in an attribute table e.g. Which counties in the US have > 100,000

people?

• “Select By Attributes” tool in ArcMap

• SQL (structured query language) used to write query

Page 23: Intro to GIS | Summer 2012 Attribute Tables – Part 1
Page 24: Intro to GIS | Summer 2012 Attribute Tables – Part 1
Page 25: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Spatial Queries

• Selects features based on location or spatial relationship between data layers e.g. Which Oregon counties have an interstate

highway passing through them?

• “Select Layer by Location” tool in ArcMap Target layer = base layer; contains features you want

selected

Filter layer = comparison layer

• What kind of spatial relationships are possible between points, lines and polygons?

Page 26: Intro to GIS | Summer 2012 Attribute Tables – Part 1
Page 27: Intro to GIS | Summer 2012 Attribute Tables – Part 1
Page 28: Intro to GIS | Summer 2012 Attribute Tables – Part 1

“Add XY Data” tool

Page 29: Intro to GIS | Summer 2012 Attribute Tables – Part 1

Bakery list – Excel file

Page 30: Intro to GIS | Summer 2012 Attribute Tables – Part 1

New Point Layer for Bakery Locations