Attribute data management Attribute data management
Dr. Ragab Khalil
Department of Landscape Architecture Faculty of Environmental Design King AbdulAziz University Room 103
LA561 Computer Applications in LA LA561 Computer Applications in LA
(GIS)(GIS)Dr. Ragab Khalil KAAU - FED – LA561: GIS 2/45
Overview Overview
•
Using ArcMap tables•
Querying tables•
Table relationships•
Graphs from tablesOverview Overview
•
Using ArcMap tables•
Querying tables•
Table relationships•
Graphs from tablesDr. Ragab Khalil KAAU - FED – LA561: GIS 4/45
What are attribute data?
What are attribute data?
• Positional data are the ‘where things are’.
• Attribute data are the ‘what things are’ .
Dr. Ragab Khalil KAAU - FED – LA561: GIS 5/45
Introduction Introduction
•
Tables are just as important as coordinate data in a GIS•
Tables are used to hold attribute data, and attributes control the “what” in a GIS•
Tables can be used to hold data that are not explicitly spatial in nature (related data, e.g., forest stand properties, sample data)•
Tables are the source of all statistics, summaries, classifications, legends, and graphs in the GISIntroduction Introduction
•
Tables are a graphical representation of tabular data•
Tables have their own GUI, and their own set of operations•
Tables in ArcMap can come from a variety of sources•
Multiple tables can be linked or joined based onDr. Ragab Khalil KAAU - FED – LA561: GIS 7/45
Using ArcMap tables:
Using ArcMap tables: Overview Overview
•
Creating tables from existing sources•
Creating a new table•
Adding fields to tables•
Adding records to tables•
Editing values in table records•
Calculating fieldsDr. Ragab Khalil KAAU - FED – LA561: GIS 8/45
•
Tables can be created from existing sourcesdBase files
• ASCII files
(tab or comma delimited)
• INFO files
• ODBC connections
• OLE DB(Object Linking and Embedding, Database)
Creating tables from existing Creating tables from existing sources
sources
• Tabular data can be obtained from ODBC
databases (e.g., Oracle, Access)
Creating tables from ODBC Creating tables from ODBC connections
connections
Dr. Ragab Khalil KAAU - FED – LA561: GIS 10/45
Creating a new table Creating a new table
•
New (dBase) tables can be created from scratch•
Creates a new file on disk•
New table is emptyDr. Ragab Khalil KAAU - FED – LA561: GIS 11/45
Adding fields to tables Adding fields to tables
•
Each field must be defined at add timeAdding records to tables Adding records to tables
•
Records in stand-alonetables are added•
New records have null values for all fields new recordDr. Ragab Khalil KAAU - FED – LA561: GIS 13/45
Calculating fields Calculating fields
•
Record values can be altered based on expressions•
Expressions can use other fields•
Acts on selected set of recordsDr. Ragab Khalil KAAU - FED – LA561: GIS 14/45
Overview Overview
•
Using ArcMap tables•
Querying tables•
Table relationships•
Graphs from tablesQuerying tables:
Querying tables: Overview Overview
•
Making queries•
Sorting records•
Displaying selected sets•
Modifying selected sets•
Basic descriptive statistics•
Table summariesDr. Ragab Khalil KAAU - FED – LA561: GIS 16/45
Making queries Making queries
•
Selects records from tables/features from layersDr. Ragab Khalil KAAU - FED – LA561: GIS 17/45
Promoting records Promoting records
•
Displaying selected recordsSorting records Sorting records
•
Sorting recordsDr. Ragab Khalil KAAU - FED – LA561: GIS 19/45
Displaying selected sets Displaying selected sets
•
Selected records from tables also select features from layersDr. Ragab Khalil KAAU - FED – LA561: GIS 20/45
Modifying selected sets Modifying selected sets
•
Existing selections can be broadened or narrowedAdditional query criteria
Basic descriptive statistics Basic descriptive statistics
•
Basic descriptive statistics can be generated for a fieldwill describe selected set (or all records if there is no active selection)
Dr. Ragab Khalil KAAU - FED – LA561: GIS 22/45
Table summaries Table summaries
•
Summarizing tablesCreates a new table
Summarizes values in numeric fields
One output record per unique value in the field of interest
Different summary statistics available
Dr. Ragab Khalil KAAU - FED – LA561: GIS 23/45
Table summaries Table summaries
Overview Overview
•
Using ArcMap tables•
Querying tables•
Table relationships•
Graphs from tablesDr. Ragab Khalil KAAU - FED – LA561: GIS 25/45
Table relationships:
Table relationships: Overview Overview
•
Record relationships among tables•
Joining tables•
Linking tablesDr. Ragab Khalil KAAU - FED – LA561: GIS 26/45
Record relationships among tables Record relationships among tables
•One-to-one relationship
every record in Table A (Destination table) has a matching value in Table B (Source table)
Table B Table A
Record relationships among tables Record relationships among tables
•
Many-to-one relationshipMany records in Table A have a match with only 1 record in Table B
Table B Table A
Dr. Ragab Khalil KAAU - FED – LA561: GIS 28/45
Record relationships Record relationships among tables
among tables
•
One-to-many relationshipOnly 1 record in Table B has a match with many records in Table B
Table B Table A
Dr. Ragab Khalil KAAU - FED – LA561: GIS 29/45
Joining tables Joining tables
•
Creates a virtual join (does not alter data sources)Used for:
one-to-one many-to-one
Linking tables Linking tables
•
Does not join, but allows simultaneous selectionsUsed for:
one-to-many
Dr. Ragab Khalil KAAU - FED – LA561: GIS 31/45
Linking tables Linking tables
•
Does not join, but allows simultaneous selectionsUsed for:
one-to-many
Dr. Ragab Khalil KAAU - FED – LA561: GIS 32/45
Overview Overview
•
Using ArcMap tables•
Querying tables•
Table relationships•
Graphs from tablesGraphs from tables:
Graphs from tables: Overview Overview
•
What are graphs?•
Creating graphs from tables•
Graph elements•
Graph types•
Graph legends•
Axis properties•
Axis increments and grid linesDr. Ragab Khalil KAAU - FED – LA561: GIS 34/45
What are graphs?
What are graphs?
•
Graphical representation of tabular data numbers are difficult to interpretgraphs are easy to interpret
Dr. Ragab Khalil KAAU - FED – LA561: GIS 35/45
What are graphs?
What are graphs?
• Graphs are dynamically linked to tables
Creating graphs from tables
Creating graphs from tables
Dr. Ragab Khalil KAAU - FED – LA561: GIS 37/45
Advanced properties of tables Advanced properties of tables
Dr. Ragab Khalil KAAU - FED – LA561: GIS 38/45
Graph elements Graph elements
Graph types Graph types
•
A number of different types of graphs existDr. Ragab Khalil KAAU - FED – LA561: GIS 40/45
Axis properties Axis properties
•
X and Y axes have various propertiesDr. Ragab Khalil KAAU - FED – LA561: GIS 41/45
Axis increments and grid lines Axis increments and grid lines
•
Increments and grid lines can be formatted in different waysAxis increments and grid lines Axis increments and grid lines
•
Maximum value can be specifiedDr. Ragab Khalil KAAU - FED – LA561: GIS 43/45
Displaying multiple fields Displaying multiple fields
•
Multiple fields can be displayed in the graphDr. Ragab Khalil KAAU - FED – LA561: GIS 44/45
Summary Summary
•
Using ArcMap tables•
Querying tables•
Table relationships•
Graphs from tablesNext week Next week
•
Midterm Exam•
15 points•
Time 60 minutes•
Covers all lectures•
Written & lab