Copyright © 2006 by Maribeth H. Price 6-1 Chapter 6 Queries.

Slides:



Advertisements
Similar presentations
5-1 5 Tour of ArcMap and ArcCatalog ArcGIS for Assessors 1.
Advertisements

Concepts of Maintaining Your Data Simple Ways to Edit Your Data By Lorne Woods.
NSF DUE ; Chérie Aukland. NSF DUE ; GeoTEd Partners.
Download Tiger Streets for a county. GO TO:
Data Storage and Processing GIS Topics and Applications.
Return to Outline Copyright © 2009 by Maribeth H. Price 6-1 Chapter 6 Spatial Joins.
Selecting Features Francisco Olivera, Ph.D., P.E. Department of Civil Engineering Texas A&M University.
AFOPro Spatial At this point the spatial data should be ready for use with the AFOPro Spatial Tool. This tutorial shows the user how to use AFOPro Spatial.
Lab 10: Spatial Queries You have been asked to determine what census tract that each parcel Property is contained. How will you find the tract number for.
Querying a View ArcView_module_4 May 13, 9:00 AM.
Intro. To GIS Lecture 6 Spatial Analysis April 8th, 2013
Drawing forecast charts. Open NeLant basic map area.
@ 2007 Austin Troy. Geoprocessing Introduction to GIS Geoprocessing is the processing of geographic information. Perform spatial analysis and modeling.
GIS Data Models Components of a GIS Map Common Data Models.
Editing Basics (in ArcGIS 9.2) By Alma Vargas. Levels of Desktop ArcGIS Arc View Version that most clients will use The version that this session will.
Chapter 2 Querying a Database
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.
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.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Microsoft Access Intro Class 5 Working with Queries.
Introduction to ArcGIS for Environmental Scientists Module 2 – Fundamentals Chapter 7 – Queries.
Village of Downers Grove Information Services Department ArcGIS 9.2 Update.
Exploring ArcToolbox Presented by: Isaac Johnson.
Copyright © 2006 by Maribeth H. Price 2-1 Chapter 2 Working with ArcMap.
Copyright © 2006 by Maribeth H. Price 8-1 Chapter 8 Geoprocessing.
1 / 23 © 2006, Universal Tax Systems, Inc. All Rights Reserved. Working with Tax Returns Objectives –In this chapter you will learn how to: Get Started.
Copyright © 2006 by Maribeth H. Price 7-1 Lesson 7 Spatial Joins.
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
Lecture 2: Data Exploration Jianfei Chen School of Geographical Sciences GuangZhou University GunagZhou, China
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.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Copyright © 2006 by Maribeth H. Price 5-1 Chapter 5 Working with Tables.
Return to Outline Copyright © 2011 by Maribeth H. Price 3-1 Labeling and annotation.
Queries Select by Attribute Select by Location. What is a Query? A query extracts information from a data table for further use –Once extracted you can:
Query and Reasoning. Types of Queries Most GIS queries will select spatial features Query by Attribute (Select by Attribute) –Structured Query Language.
Using the AccuGlobe Software with the IndianaMap Using the AccuGlobe Software.
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
School of Geography FACULTY OF ENVIRONMENT Querying with ArcGIS.
Return to Outline Copyright © 2009 by Maribeth H. Price 4-1 Chapter 4 Attribute Data.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
Selecting features in ArcMap
Lecture 7 Basic GIS Analysis Operations
Return to Outline Copyright © 2009 by Maribeth H. Price 5-1 Chapter 5 Queries.
Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin.
Chapter 6. Attribute Data & Tables. Table terminology Title Field Records Each field is specifically defined and established before any data can be entered.
城市空间信息技术 第十章 数据探查 胡嘉骢 不动产学院 博士 副教授 城市规划系主任 手机 : ( ) QQ:
Access Test Questions Test Date: 05/05/16. Chapter 1 (Lynda.com) Question 1 An access database uses five main components (database objects). Which is.
Chapter 8- Queries What are queries? Extract certain records from a map or table Records meet certain criteria –Aspatial queries All parcels with value.
CHAPTER 10 DATA EXPLORATION 10.1 Data Exploration Box 10.1 Data Visualization Descriptive Statistics Box 10.2 Descriptive Statistics Graphs.
Chapter 5 Queries.
Lab 1 Introduction to ArcGIS Feb 17, 2016
Getting Started with GIS Analysis Module 6
Chapter 4 Attribute Data.
Mastering ArcGIS Attribute Data (Continued)
Hazards Planning and Risk Management INTRODUCTION TO ARCGIS
Hazards Planning and Risk Management INTRODUCTION TO ARCGIS
Attribute Extraction.
Spatial Data Processing
Preliminaries: -- vector, raster, shapefiles, feature classes.
Location and Attribute Queries
Selecting and Querying Features
Geospatial Database Create Geodatabase Practical Session
Mastering ArcGIS Chapter 7 Queries.
Vector Geoprocessing.
Querying your geodata. Tools to improve your search for knowledge.
Drawing OSA charts. Once Synops have been downloaded and ingested.
Grauer and Barber Series Microsoft Access Chapter One
Presentation transcript:

Copyright © 2006 by Maribeth H. Price 6-1 Chapter 6 Queries

Copyright © 2006 by Maribeth H. Price 6-2 Outline Understanding queries and how they are used Knowing how to select features interactively using a variety of methods Selecting features using SQL queries on their attributes Selecting features based on their spatial location with respect to other features Using Definition Queries to create subsets of data layers

Copyright © 2006 by Maribeth H. Price 6-3 What are queries? Extract certain records from a map or table Records meet certain criteria –Aspatial queries All parcels with value greater than $100,000. –Spatial queries All parcels that lie completely within the flood plain

Copyright © 2006 by Maribeth H. Price 6-4 Selected features Highlighted in table Highlighted in map States for which POP2000>2 million

Copyright © 2006 by Maribeth H. Price 6-5 Types of Queries Interactive selection –Choose features by pointing to them on the screen Select By Attribute –Select features based on attribute criteria Select By Location –Select features based on their spatial relationships

Copyright © 2006 by Maribeth H. Price 6-6 Interactive Selection Select Features tool Click on feature to select Hold down shift key to select more than one feature Draw a rectangle that passes through features to be selected.

Copyright © 2006 by Maribeth H. Price 6-7 Selectable Layers States selectable All layers selectable

Copyright © 2006 by Maribeth H. Price 6-8 Selection options

Copyright © 2006 by Maribeth H. Price 6-9 Clear Selection On toolbar From table options menu From main menu

Copyright © 2006 by Maribeth H. Price 6-10 The Selection tab Right-click entry for context menu You can also make layers selectable here by checking them This one clears features only for this layer

Copyright © 2006 by Maribeth H. Price 6-11 Selection logic No selection –All features exported No selected features –No features exported Selected features –Only selected features exported Example: Exporting features to a new shapefile

Copyright © 2006 by Maribeth H. Price 6-12 Two ways to select features Selecting by Attribute –Queries based on one or more fields in the table Find all wells with chloride concentration > 100ppm Selecting by Location –Queries based on the relationship of features to another layer Find all wells that lie inside industrial parcels

Copyright © 2006 by Maribeth H. Price 6-13 Select By Attribute Some Valid Queries SELECT *FROM cities WHERE "POP1990" >= SELECT *FROM counties WHERE “BEEFCOW_92” < “BEEFCOW_87” SELECT *FROM parcels WHERE “LU- CODE” = 42 AND “VALUE” > SELECT *FROM rentals WHERE “RENT” > 700 AND “RENT” < 1500 Note: Shapefile tables use quotes for field names; geodatabase tables use brackets

Copyright © 2006 by Maribeth H. Price 6-14 The Like Operator “NAME” LIKE ‘%(D)%’ –Finds all of the (D) Democrats % is wildcard Ignores Don or Danforth “NAME” LIKE ‘%New %’ –Would find New Hampshire and New York, but not Newcastle or Kennewick

Copyright © 2006 by Maribeth H. Price 6-15 Boolean expressions A AND B A XOR BA NOT B A OR B A B 0 1 Blue circles represent areas where condition holds (True) = 1

Copyright © 2006 by Maribeth H. Price 6-16 AND vs OR “Land-use” = ‘RES’ AND “Land-use” = ‘COM’ “Land-use” = ‘RES’ OR “Land-use” = ‘COM’ “Pop2000” ≥ 5000 OR “Pop2000” < 9000 “Pop2000” ≥ 5000 AND “Pop2000” < 9000 Wrong Right Remember—you test each feature separately

Copyright © 2006 by Maribeth H. Price 6-17 Multiple conditions Use parentheses to enforce order of evaluation (“LU” = ‘RES’ or “LU” = ‘COM’) and “Value” > “LU” = ‘RES’ or (“LU” = ‘COM’ and “Value” > ) $75,000 $125,000 $75,000 $125,000 $75,000 $125,000 $75,000 $125,000 RESCOM

Copyright © 2006 by Maribeth H. Price 6-18 Select By Location Select counties that completely contain state capitals Select counties that are within 200 miles of Denver

Copyright © 2006 by Maribeth H. Price 6-19 Select By Location Select counties that intersect rivers Select rivers that intersect Texas

Copyright © 2006 by Maribeth H. Price 6-20 Select By Location Select cities that are within 20 miles of an interstate highway Select cities that are completely within counties named Washington

Copyright © 2006 by Maribeth H. Price 6-21 Selecting by location

Copyright © 2006 by Maribeth H. Price 6-22 Intersect

Copyright © 2006 by Maribeth H. Price 6-23 Within distance of

Copyright © 2006 by Maribeth H. Price 6-24 Using a selected set

Copyright © 2006 by Maribeth H. Price 6-25 Within the same layer

Copyright © 2006 by Maribeth H. Price 6-26 Selection methods Available for all three types of selection

Copyright © 2006 by Maribeth H. Price 6-27 Applying selection methods Create new selection: hearts = yellow Add to current selection: hearts = red Add to current selection: hearts = blue Remove from selection: hearts = red Select from selection: hearts = blue Select from selection: hearts = orange

Copyright © 2006 by Maribeth H. Price 6-28 Select from current Cities within 50mi of earthquakes Having > 500,000 people

Copyright © 2006 by Maribeth H. Price 6-29 Creating layers Common operation following a query Creates a layer file

Copyright © 2006 by Maribeth H. Price 6-30 Creating layers

Copyright © 2006 by Maribeth H. Price 6-31 Exporting selections Creates new shapefile

Copyright © 2006 by Maribeth H. Price 6-32 Definition Queries Redefine a layer to include a subset of the actual features Only selected features appear on map and in table Has no effect on data stored on disk Temporarily treats a layer as being smaller than it actually is Does not require an additional data set to be stored.

Copyright © 2006 by Maribeth H. Price 6-33