Esri UC 2015 | Demo Theater | Leveraging Relationship Classes in the Geodatabase Colin Zwicker.

Slides:



Advertisements
Similar presentations
Types of geodatabases File geodatabases—Stored as folders in a file system. Each dataset is held as a file that can scale up to 1 TB in size. The file.
Advertisements

Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.
ArcGIS Geodatabase Miles Logsdon Spatial Information Technologies, UW Garry Trudeau - Doonesbury.
Methodology Logical Database Design for the Relational Model
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
Concepts of Database Management Sixth Edition
FIS 431/631 Financial Information Systems: Analysis and Design ERD & Normalization Joe Callaghan Oakland University Department of Accounting & Finance.
CS424 PK, FK, FD Normalization Primary and Foreign Keys Primary and foreign keys are the most basic components on which relational theory is based. Primary.
Esri International User Conference | San Diego, CA Demo Theater | Using Spatial Data in ArcGIS with Query Layers Brent Pierce Thursday, July 14 th.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Esri UC 2014 | Technical Workshop | Data Alignment and Management in ArcMap Lisa Stanners, Sean Jones.
University of California , San Diego (UCSD)
ArcGIS Workflow Manager An Introduction
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Primary & Foreign Keys. PK & FK 1.Primary key is required 2.The PK must be unique 3.If the primary key from one table is related to a field in another.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
GEODATABASE Lower Adirondack GIS Users Group Meeting March 2, 2005 Lower Adirondack GIS Users Group Meeting March 2, 2005.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Concepts of Database Management, Fifth Edition Chapter 4: The Relational Model 3: Advanced Topics.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
Geodatabase – An Introduction
Threats Database V4 Model Geodatabase Relation Class Creation and Data Population June 25, 2007 Marlene McKinnon, GIS Specialist.
Geodatabase Relationships & Relationship Classes GIS 458 Spring 2006 Larry Clamp.
GTECH 361 Lecture 10 Behavior and the Geodatabase.
CSCI 3140 Module 3 – Logical Database Design for the Relational Model Theodore Chiasson Dalhousie University.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
L9 – The GIS Database Part 2. Relational Databases The relational database model was defined by E.F. Codd. This is the most common database design due.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
In this session, you will learn to: Map an ER diagram to a table Objectives.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Migrating Data into the Parcel Fabric in ArcMap
Copyright © 2006 by Maribeth H. Price 13-1 Chapter 13 Working with Geodatabases.
Data Alignment and Management in ArcMap
Geodatabase Kyung Hee University Geography Jinmu Choi 1.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Introduction to Geodatabases
Physical Structure of GDB
Getting started with Accurately Storing Data
Relationship Class What is a Relationship Class (3)
Logical Database Design and the Rational Model
Migrating Data to the Parcel Fabric Solution
Tables & Relationships
Business System Development
Chapter 4: Logical Database Design and the Relational Model
Chapter 4: Part B Logical Database Design and the Relational Model
Physical Structure of GDB
CIS 155 Table Relationship
Physical Structure of GDB
Physical Structure of GDB
CIS 207 The Relational Database Model
Normalization Referential Integrity
Geodatabase – An Introduction
Constraints.
Lower Adirondack GIS Users Group Meeting March 2, 2005
Geometric Network Toolset
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Automating and Validating Edits
Entities Things about which you need to store data. One entity for each different thing. At least two attributes At least two occurrences Not a property.
ArcCatalog and Geodatabases
Esri Roads and Highways: Data Loading
Guide to Modeling Keys to E-R diagrams.
Microsoft Access Validation Rules, Table Relationships And
Network Analysis using Python
Guide to Modeling Keys to E-R diagrams.
Instructor Materials Chapter 5: Ensuring Integrity
ArcCatalog and Geodatabases
Geodatabase Best Practices
The Geodatabase : An Introduction
Esri Roads and Highways An Introduction
Presentation transcript:

Esri UC 2015 | Demo Theater | Leveraging Relationship Classes in the Geodatabase Colin Zwicker

Esri UC 2015 | Demo Theater | Presentation Outline What is a relationship class? How to create a relationship class Navigating between related objects Editing with a relationship class Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | What is a Relationship Class? An item in the Geodatabase that stores information about a relationship between two feature classes and/or tables. Example: Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | What is a Relationship Class? An item in the Geodatabase that stores information about a relationship between two object classes. Example: ParcelToBuilding Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | What is a Relationship Class? An item in the Geodatabase that stores information about a relationship between two object classes. Example: Primary Key Foreign Key Origin Destination ParcelToBuilding Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | What is a Relationship Class? An item in the Geodatabase that stores information about a relationship between two object classes. Example: Origin Destination ParcelToBuilding Foreign Key Primary Key Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Why use a Relationship Class? Navigating - Identify related objects Editing - Facilitate editing with automatic updates - Relationship rules define and control how objects relate - Relationship rules can be enforced through Validation Versioning - Participate in versioning Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Relationship Classes vs. Relates and Joins Relationship classesOn-the-fly relatesJoins ScopeGeodatabaseCross database or data source Typical usesEnsuring data integrityEditing with low overheadLabeling, symbology Composite objectsYesNo AttributesYesNo Relationship rulesYesNo Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Relationship Classes vs. Relates and Joins Relationship classesOn-the-fly relatesJoins ScopeGeodatabaseCross database or data source Typical usesEnsuring data integrityEditing with low overheadLabeling, symbology Composite objectsYesNo AttributesYesNo Relationship rulesYesNo Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Relationship Classes vs. Relates and Joins Relationship classesOn-the-fly relatesJoins ScopeGeodatabaseCross database or data source Typical usesEnsuring data integrityEditing with low overheadLabeling, symbology Composite objectsYesNo AttributesYesNo Relationship rulesYesNo Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | How to create a Relationship Class? Catalog - Relationship Class Wizard Geoprocessing Tools - Located in the Data Management toolbox - Create Relationship Class - The same as the wizard - Table to Relationship Class - Used to create an intermediate relationship class table from an existing table Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Create a Relationship Class Navigate between related features Creation and Navigation

Esri UC 2015 | Demo Theater | Editing with a Relationship Class Behavior is dependent on the type of relationship class Simple - Objects are independent of one another - Ex. Parcels and Owners Composite - Destination objects are dependent on the related origin objects - Ex. Utility Poles and Transformers Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Editing Origin Objects with a Relationship Class SimpleComposite Delete Foreign key set to Null in objects related to deleted object Objects related to deleted object are deleted Merge Foreign key set to Null in objects related to deleted object Objects related to deleted object are deleted Split Larger part of the split maintains the relationships Move/ Rotate No effect on related objectsIf messaging is set to Forward the related objects will also move Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Editing Origin Objects with a Relationship Class SimpleComposite Delete Foreign key set to Null in objects related to deleted object Objects related to deleted object are deleted Merge Foreign key set to Null in objects related to deleted object Objects related to deleted object are deleted Split Larger part of the split maintains the relationships Move/ Rotate No effect on related objectsIf messaging is set to Forward the related objects will also move Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Editing Origin Objects with a Relationship Class SimpleComposite Delete Foreign key set to Null in objects related to deleted object Objects related to deleted object are deleted Merge Foreign key set to Null in objects related to deleted object Objects related to deleted object are deleted Split Larger part of the split maintains the relationships Move/ Rotate No effect on related objectsIf messaging is set to Forward the related objects will also move Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Relationship Class Rules Restrict how objects in the origin and destination classes can be related Set the minimum and maximum number of relatable objects Set rules based on subtypes to constrain the types of objects that can be related Validate the rules in an edit session Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Relationship Class Rule Example Utility Pole - Transformer Pole Subtypes: Wood or Steel Transformers must be related to 1 pole Wood poles can support 1 to 2 transformers Steel poles can support 1 to 3 transformers Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Editing with Relationship Classes Editing

Esri UC 2015 | Demo Theater | Relationship Classes Summary Relates two object classes that are stored in the same Geodatabase Stored in a feature dataset or as a stand alone relationship class Created in Catalog with the Relationship Class wizard or a Geoprocessing tool Navigate between related objects Enforces referential integrity Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Unsupported Recursive relationships Composite keys Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Things to consider with composite If a composite relationship class exists between two classes, no other relationship class can be created between the same two classes. An object class cannot be the destination in more then one composite relationship class. It is not recommended to use composite relationship classes with feature classes that are participating in a geometric network Leveraging Relationship Classes in the Geodatabase

Esri UC 2015 | Demo Theater | Geodatabase ArcObjects API To create a relationship class - IFeatureWorkspace.CreateRelationshipClas s - IRelationshipClassContainer.CreateRelationshipClass To get and set relationship class properties - IRelClassSchemaEdit - IRelationshipClass - IRelationshipRule - IRelationship Leveraging Relationship Classes in the Geodatabase