Attributes & Queries Reading Assignment: Bolstad, Ch. 8 (p. 307-346)

Slides:



Advertisements
Similar presentations
Working with Tables Class 10 GISG 110. Objectives Working with Tables Table structure Table creation and manipulation Tabular formats Connecting tables.
Advertisements

Geographic Information Systems GIS Data Models. 1. Components of Geographic Data Spatial locations Attributes Topology Time.
Geographic Information Systems
GIS for Environmental Science
From portions of Chapter 8, 9, 10, &11. Real world is complex. GIS is used model reality. The GIS models then enable us to ask questions of the data by.
Data Storage and Processing GIS Topics and Applications.
Raster Based GIS Analysis
Geodatabase basic. The geodatabase The geodatabase is a collection of geographic datasets of various types used in ArcGIS and managed in either a file.
Return to Outline Copyright © 2009 by Maribeth H. Price 6-1 Chapter 6 Spatial Joins.
Introduction to GIS Ghassan Mikati, Ph.D GIS Expert.
NR 422: GIS Review Jim Graham Fall What is GIS? Geographic Information System? Geographic Information Science? A system that provides the ability.
©2007 Austin Troy Lecture 7: Introduction to GIS 1.Queries and table operations for a single layer in ArcGIS 2.Intro to queries in Access Lecture by Austin.
©2007 Austin Troy Lecture 7: Introduction to GIS 1.Queries and table operations for a single layer in Arc GIS 2.Intro to queries in Access Lecture by Austin.
Introducing GIS Getting to Know ArcGIS Desktop. Brief History Recap  Studying the world using maps and globes  Models are now found inside computers.
NR 322: Attributes Jim Graham Fall 2010 Chapter 2.
February 15, 2006 Geog 458: Map Sources and Errors
Dr. David Liu Objectives  Understand what a GIS is  Understand how a GIS functions  Spatial data representation  GIS application.
Intro. To GIS Lecture 6 Spatial Analysis April 8th, 2013
ESRM 250 & CFR 520: Introduction to GIS © Phil Hurvitz, KEEP THIS TEXT BOX this slide includes some ESRI fonts. when you save this presentation,
Basic Spatial Analysis
Selecting and Displaying Features. Why do you need to select features? Why do you need to select features? Selection methods Selection methods Select.
GIS UPDATE? Lecture 17 Lab 8: Music Festival, Part 2 – Spatial Analysis.
Lecture 9 Managing a GIS project. GIS analysis Collect and process data to aid in decision making  Use the data to make decisions  Identify alternatives.
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.
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.
The Attribute Table! Without the attribute table, a polygon is just a polygon, a point is a point The attribute table defines what points, lines, or polygons.
Quick Lesson on Databases Relational databases are key to managing complex data You’ve been using relational databases with “Joins” and “Relates” in ArcGIS.
Basic Geographic Concepts GEOG 370 Instructor: Christine Erlien.
GIS Tutorial 1 Lecture 4 Geodatabases. Outline  Data types  Geodatabases  Data table joins  Spatial joins  Field calculator  Calculate geometry.
How do we represent the world in a GIS database?
Attributes in ArcGIS. ArcGIS Attributes FID – ESRI’s internal identifier Shape – Actual spatial data.
Chapter 8. ATTRIBUTE DATA INPUT AND MANAGEMENT
Copyright © 2006 by Maribeth H. Price 8-1 Chapter 8 Geoprocessing.
URBDP 422 Urban and Regional Geo-Spatial Analysis Lecture 2: Spatial Data Models and Structures Lab Exercise 2: Topology January 9, 2014.
Data Queries Selecting features in ArcMap Data queries  Important part of a GIS project Can be a part of your data preparation or final analysis  Data.
Quick Lesson on Databases Relational databases are key to managing complex data You’ve been using relational databases with “Joins” and “Relates” in ArcGIS.
An Overview of Statistics Section 1.1. Ch1 Larson/Farber 2 Statistics is the science of collecting, organizing, analyzing, and interpreting data in order.
Copyright © 2006 by Maribeth H. Price 5-1 Chapter 5 Working with Tables.
1 Spatial Data Models and Structure. 2 Part 1: Basic Geographic Concepts Real world -> Digital Environment –GIS data represent a simplified view of physical.
Qualitative Data: consists of attributes, labels or non-numerical entries Examples: Quantitative Data: consists of numerical measurements or counts Examples:
GIS Data Structures How do we represent the world in a GIS database?
Copyright © 2006 by Maribeth H. Price 6-1 Chapter 6 Queries.
Query and Reasoning. Types of Queries Most GIS queries will select spatial features Query by Attribute (Select by Attribute) –Structured Query Language.
NR 143 Study Overview: part 1 By Austin Troy University of Vermont Using GIS-- Introduction to GIS.
Geographic Data in GIS. Components of geographic data Three general components to geographic information Three general components to geographic information.
©2007 Austin Troy Lecture 7: Introduction to GIS 1.Queries and table operations for a single layer in Arc GIS 2.Intro to queries in Access Lecture by Austin.
Integrating Geographic Information Systems (GIS) into your Curriculum Teaching American History Meg Merrick & Heather Kaplinger Year 2 GIS Inservices.
Selecting features in ArcMap
Lecture 7 Basic GIS Analysis Operations
Definition of Spatial Analysis
Return to Outline Copyright © 2009 by Maribeth H. Price 5-1 Chapter 5 Queries.
1 Basic Geographic Concepts Real World  Digital Environment Data in a GIS represent a simplified view of physical entities or phenomena 1. Spatial location.
CENTENNIAL COLLEGE SCHOOL OF ENGINEERING & APPLIED SCIENCE VS 361 Introduction to GIS SPATIAL OPERATIONS COURSE NOTES 1.
城市空间信息技术 第十章 数据探查 胡嘉骢 不动产学院 博士 副教授 城市规划系主任 手机 : ( ) QQ:
Lesson 3 GIS Fundamentals MEASURE Evaluation PHFI Training of Trainers May 2011.
Quick Lesson on Databases
Chapter 6 Spatial Joins.
Geog. 314 Working with tables.
Chapter 5 Queries.
Vector Analysis Ming-Chun Lee.
Chapter 4 Attribute Data.
Desktop ArcGIS GIS File Types
Raster Analysis Ming-Chun Lee.
Physical Structure of GDB
Preliminaries: -- vector, raster, shapefiles, feature classes.
Data Queries Raster & Vector Data Models
Review- vector analyses
Mastering ArcGIS Chapter 7 Queries.
Presentation transcript:

Attributes & Queries Reading Assignment: Bolstad, Ch. 8 (p )

Attributes To make decisions we need information about the spatial areas in Shapefiles: –Which parcels are big enough for my house? –Which areas have more poverty for development funds? –Where environmental areas are threatened by encroaching development? –How many endangered species are in each area? –How many fish are in each stream? –Who borders the streams we need to restore? –Which areas of the most fire fuels (dead wood)?

Attributes To answer questions we need information: –Counts of species –Counts of people, animals, houses, etc. –Height of trees, buildings, etc. –Size and perimeter of areas –Length of streams, roads –Ownership of parcels These are held in attributes

Census Scope An organization making census information available Check out the variety of maps, charts, and tables they have made available from US census data. These are computed using attributes of the census data at a county level (i.e. a polygon layer of counties).

Queries and Calculations We also need to select (query) certain types of information: –People over 60 years old –Parcels over 1 acre –Areas with 1 or more endangered species And compute new values: –Number of animals per meter –Density of trees –Board feet per acre –Fish per meter

Attributes, Queries, Calculations Attributes are associated with features –In the Attribute table Queries “Select” data –Available in “Select by Attribute” –Based on Structured Query Language (SQL) Calculations available in: –Geometry calculator –Field (column) calculator

Attributes Table attached to each layer Each row tied to a feature –Point –Polyline(s) –Polygon(s) Each column (field) represents a different attribute and has: –Name –Type –Other properties

Attribute Terminology Attribute “Table” Row or Record - One per feature Column or Field Feature, Object, or Record ID

Attribute Terminology Esri borrows from four disciplines for labels for attributes Spatial DataSpreadsheetDatabaseOOP Attribute TableSpreadsheetTable- An attributeColumnFieldProperty Feature ID?Row NumberRecord IDObject ID Attributes for one feature RowRecordObject’s properties Attribute valueCellEntryProperty Value FilterSelectionQuery-

Attributes Vector Attributes (very common) Raster Attributes (when available) Examples of attributes: –Name –Population/Census numbers –Vegetation characteristics –Dates –Coordinates –Ownership –Park Type

Vector Attributes Used For: –Labels: Direct: Names of cities, states, etc. Results of “expressions”: City with it’s population –Symbology: Size city by it’s population –Selection Select cities over a certain size –Sub-setting Create a new layer with cities over 1 million

Types of Attributes Qualitative –Nominal: No order, types Quantitative –Ordinal: Ordered set of classifications –Interval: Values along arbitrary scale –Ratio: Values along non-arbitrary scale –Cyclic: Values repeat

Types of Attributes (examples) Qualitative –Nominal: Land Cover Type Quantitative –Ordinal: Fire danger low, medium, high –Interval: Temperature –Ratio: Population Density (floating point) Number of People / Area –Cyclic: Directions (0 to 360 degrees)

Examples of Attributes Names Taxonomic Identification: –Scientific Names, common names, codes (NRCS codes) Organism characteristics Population values Distance, Area Dates Collector’s names Coordinates

Structured Query Language (SQL) Comes from the database industry “INSERT”, “DELETE”, and “SELECT” rows in tables Very rich syntax Portions of “SELECT” grammar used heavily in ArcGIS: –Selecting attributes –Raster calculator –Geodatabases

Select by Attributes SELECT * FROM TableName WHERE: –“WHERE Clause” or Filters Available from the Attribute Table

Attributes in ArcGIS

Filter Examples WHERE: –FID = 1 –“Area” < –“Area” <= –“Name” = ‘Crater Lake’ (case dependent) –“Name” LIKE ‘Crater Lake’ (ignores case) Notice: –Fields have double quotes –String values have single quotes

SQL Comparisons Equals: = Greater than: > Less than: < Greater than or equal: >= Less than or equal: <= Not equal: <> Like: case independent string comparison with wild cards (%)

Boolean Values True = T = 1 False = F = 0

Boolean Operators ABA AND BA OR BNOT ANOT B TTTTFF TFFTFT FTFTTF FFFFTT

More Complex Filter Examples WHERE: –“Name” LIKE ‘Hawaii’ AND Area < –“Species” LIKE ‘Ponderosa’ AND DBH > 1

Select by Location Proximal Topological –Identical –Adjacent –Within –Share segment

Table Queries: The selection of a subset of features that meet some criteria. “Area” > 20.0“Landuse” = ‘Urban’ AND “Municip” = ‘City’ Expression: A sequence of operands and operators constructed according to the syntactic rules of a symbolic language (SQL)

Boolean Operators: Used to combine expressions 1)And 2)Or 3)Not 4)Xor “AREA” > AND “IMPR” = 0 “RAINFALL” 35 NOT ("STATE_NAME" = ‘Colorado’) [RAINFALL] > 20 XOR [SoilType] = ‘X’ Order matters: (A AND B) OR C is not the same as A AND (B OR C) And – Must meet both criteria Or – Can meet either criteria

Boolean Operators: Used to combine expressions 1)And 2)Or 3)Not 4)Xor “AREA” > AND “IMPR” = 0 “RAINFALL” 35 NOT ("STATE_NAME" = ‘Colorado’) [RAINFALL] > 20 XOR [SoilType] = ‘X’ Order matters: (A AND B) OR C is not the same as A AND (B OR C) OperatorDescription < less than > greater than <= less than or equal to >= greater than or equal to = Equal to <> not equal to Comparison Operators: Used to compare values

Two ways to combine tables: Joins Used for 1-to-1 relationships, or many-to-1 relationships between attribute table and external table. Relates Used for 1-to-many relationships, many-to-many relationships between attribute table and external table.

Table Join: Combines two tables based on the value of a field that can be found in both tables (a “common field”). Parcel-IDOwner 2John Smith 5Bruce Martin 6Anne Davis 1Steve Arnold 8Rick James Parcel-IDAcres Parcel-IDAcresOwner 22John Smith 51.5Bruce Martin 66Anne Davis 13Steve Arnold 81.6Rick James Table A Table B

Joins and Relates  Join A Join lets you join data from an external table to your attribute table based on the value of a field that can be found in both tables.

+ Attribute table External Tabular File (immigration) External Tabular File (immigration) Example of 1:1 relationship

Results of Join Operation

Example of Many-to-1 relationship Join

Example of 1-to-many relationship Relate

Joins and Relates  Relate

Options  Related Tables

Example of 1-to-many relationship Relate

Summarize Creates a new table containing one record for each unique value occurring in a selected field along with statistics summarizing the data in any of the other fields. Group together All records that have the same State name. Get summary stats on the values in the rain field.

Summarize Find combined (total) area for each “covertype” Summarize Quantitative By Qualitative!