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.

Slides:



Advertisements
Similar presentations
Geometric Networks in ArcGIS
Advertisements

GUS: 0262 Fundamentals of GIS
Introduction to ArcGIS Software. David Arctur, Michael Zeiler, ESRI Press, 2004 Michael Zeiler, ESRI Press, 2010 Reference Books:
Geometric Networks Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
Copyright © 2005 Bruce Kessler All Rights Reserved Ch. 2 GeoDatabase Basics Laying the foundations.
Introduction to ArcGIS Reading: “What is ArcGIS?”, ESRI Press, 2001, pp Acknowledgement: Dr Francisco Olivera developed some of the slides in this.
Geographic Information Systems
Creating and Editing Feature Data Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
Building a stream network for the 12 th Hydrologic region using ArcInfo CVEN 689 Prepared by: Héctor Olmos.
Introduction to the 176A labs and ArcGIS Acknowledgement: Slides by David Maidment, U Texas-Austin and Francisco Olivera (TAMU)
19 th Advanced Summer School in Regional Science An introduction to GIS using ArcGIS.
ArcCatalog and Geodatabases
CEE 795 Water Resources Modeling and GIS Session #2: Introduction to ArcGIS [from Dr. David Maidment, University of Texas and Dr Francisco Olivera (TAMU)
Introduction to ArcGIS Software. ESRI Online Reference Materials ArcGIS summary: pdf
Introduction to GIS Software
Esri UC 2014 | Technical Workshop | Data Alignment and Management in ArcMap Lisa Stanners, Sean Jones.
University of California , San Diego (UCSD)
Introduction To ArcCatalog ArcCatalog. ArcCatalog is a data- centric GUI tool used for managing spatial data.
Introduction to GIS Software Acknowledgement: Most of the slides in this presentation are either from Dr Francisco Olivera (TAMU) or Dr David Maidment.
NR 422: Topology Jim Graham Fall 2010 See: odatabase-topology.pdf.
Parcel Data Models for the Geodatabase
Data Structures & GeoDatabase. GeoDatabase Implemented in a relational database Comes in two flavors – Personal & Enterprise (Access & Sys. Like Oracle)
Spatial Databases ENVE/CE 424/524. Definitions Database – an integrated set of data on a particular subject Spatial database - database containing geographic.
Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.
GIS 1110 Designing Geodatabases. Representation Q. How will we model our real world data? A. Typically: Features Continuous Surfaces and Imagery Map Graphics.
GEODATABASE Lower Adirondack GIS Users Group Meeting March 2, 2005 Lower Adirondack GIS Users Group Meeting March 2, 2005.
Geodatabase – An Introduction
Faculty of Applied Engineering and Urban Planning Civil Engineering Department Geographic Information Systems Vector and Raster Data Models Lecture 3 Week.
Introduction In ArcGIS, there are three basic data structures:
Major parts of ArcGIS ArcView -Basic mapping, editing and Analysis tools ArcEditor -all of ArcView plus Adds ability to deal with topological and network.
Geodatabase Relationships & Relationship Classes GIS 458 Spring 2006 Larry Clamp.
GTECH 361 Lecture 10 Behavior and the Geodatabase.
Introduction to the Geodatabase. What is a Geodatabase? What are feature classes and feature datasets? What are domains Design a personal Geodatabase.
ArcCatalog and Geodatabases Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
CES – VCU November 2003 Geodatabases William Shuart Center for Environmental Studies Virginia Commonwealth University.
Geographical Information Systems. Software which can be used in GIS ArcGIS Desktop Map Window Quantum GIS uDig.
Introduction to ArcGIS
Introducing ArcGIS Chapter 1. Objectives  Understand the architecture of the ArcGIS program.  Become familiar with the types of data files used in ArcGIS.
GIS Data Structures How do we represent the world in a GIS database?
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
Geographic Data in GIS. Components of geographic data Three general components to geographic information Three general components to geographic information.
Creating and Editing Feature Data Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
Introduction to GIS Software Some slides in this presentation were prepared by Francisco Olivera, Texas A&M University.
Geodatabase Kyung Hee University Geography Jinmu Choi 1.
Introduction to Geodatabases
Physical Structure of GDB
Relationship Class What is a Relationship Class (3)
Advanced Editing Processes
Key Terms Attribute join Target table Join table Spatial join.
Physical Structure of GDB
Lecture 08 Creating a Geodatabase
Chapter 14 Geodatabases.
ArcGIS Topology Shapefiles, Coverages, Geodatabases
Physical Structure of GDB
Physical Structure of GDB
The GIS Database Chapter 8 – Part 1 Lecture 8.
Introduction to GIS Software
Geographic Information Systems
Geodatabase – An Introduction
ArcCatalog and Geodatabases
Feature Classes, Data File Formats in ArcGIS
Lower Adirondack GIS Users Group Meeting March 2, 2005
Introduction to ArcGIS
Automating and Validating Edits
ArcCatalog and Geodatabases
Introduction To ArcCatalog
Introduction to GIS Software
ArcCatalog and Geodatabases
The Geodatabase : An Introduction
Presentation transcript:

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 to its flexibility, organization, and functioning. It can accommodate a wide range of data types. It is not necessary to know beforehand the types of processing that will be performed on the database. BUT it is not good for storing spatial data.

Spatial Data Spatial data has a structure that does not necessarily fit with tabular structure. To construct a spatial object requires several table joins. Spatial indexing is very different from the type of indexing used in a relational database.

Geometry PointCurve Surface LineString PolygonMultiSurface LineLinearRing MultiCurve MultiPolygonMultiLineString Composed Type Relationship SpatialReferenceSystem GeometryCollection MultiPoint Spatial Types – OGC Simple Features

File-based Data Models Coverages –Developed for workstation Arc/Info ~ 1980 –Complex structure, proprietary format –Attributes in Info tables Shapefiles –Developed for ArcView ~ 1993 –Simpler structure in public domain –Attributes in dBase (.dbf) tables Geographic coordinates and attributes are stored in separate but linked files Arc Info

Storing Data Coverages Shapefiles Maine Counties MCD Info Maine Counties.shp Counties.shx Counties.dbf MCD.shp MCDshx MCD.dbf

Coverages and Shapefiles –Coverages are stored partially in their own folder and partially in the common INFO folder. –Shapefiles are stored in three to five files (with extensions.shp,.shx,.dbf,.sbx and.sbn). –Coverages store common boundaries between polygons only once, to avoid redundancy. –Shapefiles store all the geometry of each polygon regardless of redundancy. –Coverage features are single lines or single polygons. –Shapefiles allow features to have multiple, disconnected, intersecting and overlapping components.

Geodatabase Model Stores geographic coordinates as one attribute (shape) in a relational database table Uses MS Access for “Personal Geodatabase” (single user) Uses Oracle, Sybase, Ingress or other commercial relational databases for “Enterprise Geodatabases” (many simultaneous users) Shape

There are some differences in queries between shapefiles and geodatabases –"STATE_NAME" LIKE 'Miss%' * in a geodatabase –"OWNER_NAME" LIKE '_atherine smith' ? –UPPER("LAST_NAME") = 'JONES' –UCASE ("LAST_NAME") = 'JONES' geodatabase –"POP2000" IS NULL –"POP2000" IS NOT NULL –"HOUSEHOLDS" > "MALES" * ("POP90_SQMI" + "AREA")

Geodatabase (JET Engine) Geodatabase (ORACLE) ArcCatalog / ArcMap / Custom Application GeoDataObjects SDESDE for Coverages ArcStorm MapLibrary Coverages Shapefiles Grids TINs Images Integration

Elements of a Geodatabase Feature Dataset Feature Class Relationship Class Geometric Network Annotation Class Object Class

Elements of a Geodatabase Objects, Object Classes Features, Feature Classes Feature Datasets Validation Rules, Domains Relationships, Relationship Classes Spatial References Geometric Networks

Objects and Object Classes An object is an instance of an object class All objects in an object class have the same properties and behavior An object can be related to other objects via relationships

Features Spatial object Location Attribute of type Geometry Spatial relationships Instance of a feature class

Feature Classes Same type of geometry Same type of spatial reference system Store spatial objects (features )

Feature Datasets Container Same spatial reference Analogous to a coverage

Object and Feature Behavior End users and data modelers can : Instantiate classes with predefined behavior Control the default value and acceptable values for any attribute in a class (domains) Partition the objects in a class into like groups (subtypes) Control the general and network relationships in which an object can participate Rule based, no programming required

Controlling and Specifying Object Behavior Custom Objects Subtype Specification Domains and Validation Rules Connectivity Rules Feature Type Selection Relationships

Validation Rules Attribute domains Connectivity rules Relationship rules... are stored in the Geodatabase Custom rules... are code based

Validation Rules The editor in ArcMap provides tools to test object validity Rules are evaluated, under user control, during object editing : –Create a new selection showing all invalid objects within a specified area –Restrict the current selection to invalid objects only

Domains A named set of acceptable values for a field Types of domains –Range –Coded values Can be shared across multiple object classes

Domains Split policies –Default value –Duplicate –Geometry ratio Merge policies –Default value –Sum values –Weighted average

Relationships Association between two objects The Geodatabase maintains the referential integrity of relationships when objects are deleted Related objects can message each other eg. move, rotate

Pole Attachments Composite relationship: pole to transformer Select a pole and move it …the transformer follows

Geometric Networks Models a network relationship between a set of feature classes Each feature class has a topological role in the network (junction or edge) A network may have multiple feature classes in the same topological role

Geometric Networks Lateral Service Main Feed Valve Feature Classes Geometric Network

Geometric Networks A geometric network and its feature classes must all belong to the same feature dataset

Feature Datasets and Geometric Networks Water FD = Feature Dataset GN = Geometric Network FC = FeatureClass OC = Object Class J = Junction E = Edge FD GN FC J JEEE Service Valve Main Lateral Feed

Network Model A geometric network has an associated logical network Network features are associated with logical network elements

Geometry and Connectivity Geometric network contains features and geometry Logical network contains elements and connectivity Connectivity established via geometric coincidence

Network Analysis Connectivity tracing Cycle detection Establishment of flow directions Upstream and downstream tracing Isolation tracing Trouble call tracing

Designing a Geodatabase Multiple Approaches Possible The ‘Build Using Existing Data’ approach The ‘Define in ArcCatalog’ approach The ‘Define Using CASE and UML’ approach

‘Build Using Existing Data’ Approach Use ArcCatalog and ArcToolbox to load coverages and shapefiles Use ArcCatalog to refine and extend loaded feature classes –build network topology –add domains and rules

‘Define in ArcCatalog’ Approach Use ArcCatalog to define new empty object classes. Define validation rules. Use the object editor and object loaders (in ArcMap) to populate your feature classes.

‘Define Using UML / Case Tools’ Approach Use UML to define your domain object model, based on the generic Geodatabase object model. Use a UML Case Tool - eg. Visio, Rational Rose to specify the UML model. Supports the systematic design of large systems

Versionioning Named state of the database Multiple coexisting versions Differ in row state

Versioning Default version A user can work with any version Default: As Built User1User1 User2User2 User3User3 Version: Plan 1 User4User4 User5User5 Version: Design 1 User6User6 Version: Design 2 Electric Net

Multi User Editing Versioned Geodatabase Modify any version Only see your own changes Temporary child version When the Edit Session is saved the temporary version is posted

Direct Multi User Editing Editor A Editor B Editor C

Conflict Resolution Conflicting feature(s) Conflicting field Versions Conflicting FeatureClass Conflicts are automatically detected Options to resolve conflict

Indexed Files Indexing of a table speeds up data retrieval. The primary index is based on the key. Secondary indices may be created on other fields that are frequently accessed. –If primary key is ID number, you may want to build a secondary index on name.

Types of Spatial Indices Space Driven Indexes –e.g. quadtree Data Driven Indexes –e.g. R-Tree

Grid Index (multi-level)

Point and Region Quadtrees

Regular Grid Spatial Indexing

R-tree