Geographical Data Modeling UML and Data Modeling Elements

  • Slides: 47
Download presentation
Geographical Data Modeling UML and Data Modeling Elements Examples from the Marine Data Model

Geographical Data Modeling UML and Data Modeling Elements Examples from the Marine Data Model and Arc. Hydro (Thanks to Dawn Wright) Longley et al. , ch. 8

Models for GIS representation of reality --> model GIS itself is based on a

Models for GIS representation of reality --> model GIS itself is based on a model of complexity and used to model complexity Not a full representation of reality: even at 1: 1 data model = limited representation of reality l l a discretization or partitioning of space finite, discrete nature of computing devices

Data Model Representation of information about a form or a process E. g. a

Data Model Representation of information about a form or a process E. g. a weather map with isotherms FIELD … “grid” OBJECT … “isoline” A good model allows us to infer process FIELD or OBJECT … “geo-relational”

3 Data Models geo-relational coverage (object view; from classic Arc. Info polys) geo-relational shapefile

3 Data Models geo-relational coverage (object view; from classic Arc. Info polys) geo-relational shapefile (object view; from Arc. View) geodatabase (object-oriented; new in Arc. GIS 8, 9 etc. )

Object Oriented GIS (p. 191) Object: a self-contained package of information describing an entity

Object Oriented GIS (p. 191) Object: a self-contained package of information describing an entity Collection of objects – class Objects can have behavior – encapsulation Inheritance – reusable objects Polymorphism-objects can have their own implementation for application-e. g. create, draw, delete

Georelational Data Model: “Classic” Arc. Info and Arc. View command line interface Unix, NT,

Georelational Data Model: “Classic” Arc. Info and Arc. View command line interface Unix, NT, Windows Arc. View as interface A B

Arc. Info Coverage as a Data Structure Image courtesy of Louisville/Jefferson County Information Consortium,

Arc. Info Coverage as a Data Structure Image courtesy of Louisville/Jefferson County Information Consortium, Kentucky

Data Structure Not tied to process at all Concerned simply with what can be

Data Structure Not tied to process at all Concerned simply with what can be computed and what can’t Way in which the data model is represented in the GIS DEM for grid or layer model (e. g. array) l contour for isoline model l TIN for Delaunay triangulation model l coverages, shapefiles for geo-relational l geodatabase for OO geodatabase l

Arc. GIS 9 Icons yellow coverage green shapefile gray geodatabase

Arc. GIS 9 Icons yellow coverage green shapefile gray geodatabase

Geodatabase Features and attributes as objects Relationships among features encoded Validation or editing rules,

Geodatabase Features and attributes as objects Relationships among features encoded Validation or editing rules, behaviors “Container” for l l l MS-Office Vector, raster, tabular data Relationships Topology

Relationships for a feature

Relationships for a feature

Arc. GIS Data Models support. esri. com/datamodels. cfm

Arc. GIS Data Models support. esri. com/datamodels. cfm

Arc. Marine dusk. geo. orst. edu/djl/arcgis

Arc. Marine dusk. geo. orst. edu/djl/arcgis

Data Modeling for Spatial Analysis What is spatial analysis? l "a set of methods

Data Modeling for Spatial Analysis What is spatial analysis? l "a set of methods whose results change when the locations of the objects being analyzed change" Methods for working with spatial data l l l to detect patterns, anomalies to find answers to questions to test or confirm theories l l deductive reasoning-general to specific to generate new theories and generalizations l inductive reasoning-specific to general

What is Spatial Analysis (cont. ) Methods for adding value to data in doing

What is Spatial Analysis (cont. ) Methods for adding value to data in doing scientific research l in trying to convince others l A collaboration between human and machine How do we set up the framework for spatial analysis? l Data model to data structure

A Georelational to a Geodatabase Model Coverage and shapefile data structures l homogenous collections

A Georelational to a Geodatabase Model Coverage and shapefile data structures l homogenous collections of points, lines, and polygons with generic, 1 - and 2 -dimensional "behavior" as operations Can’t distinguish behaviors l Point for a marker buoy, same as point for observation “smart features” in a geodatabase l lighthouse must be on land, marine mammal siting must be in ocean l Objects can “self-police”

Purpose of Arc. Hydro, Arc. Marine etc. Basic template for implementing GIS projects l

Purpose of Arc. Hydro, Arc. Marine etc. Basic template for implementing GIS projects l input, formatting, geoprocessing, creating maps, performing analyses Basic framework for writing program code and maintaining applications l development of tools for the community Promote networking and data sharing through established standards l common model=interoperability

“Generic” Marine Data Model User Group Data Model Project Data Model User Group Data

“Generic” Marine Data Model User Group Data Model Project Data Model User Group Data Model Inheritance Arc. Marine Design Strategy Project Data Model

Geodatabase Concepts ESRI's data object-oriented data model l objects, features, behaviors Geodatabase l l

Geodatabase Concepts ESRI's data object-oriented data model l objects, features, behaviors Geodatabase l l collection of feature data sets, rasters, TINs all data in relational tables behavior is coupled with features through rules (object-orientation) Supports model-builder for processes Feature data set l l l contains feature classes defines topological role of features has a coordinate system

Geodatabase Concepts ( cont. ) Feature class stored in a relational table l special

Geodatabase Concepts ( cont. ) Feature class stored in a relational table l special field for geometric shape l geometric data incorporated into the database l l Point, multipoint, segment, path, ring, polyline, polygon

Geodatabase Feature Class Geometries

Geodatabase Feature Class Geometries

Modeling Process Conceptual Model Lists, flow diagrams, etc Real World Objects and relationships Logical

Modeling Process Conceptual Model Lists, flow diagrams, etc Real World Objects and relationships Logical Model Diagram in CASE Tool Physical Model Database Schema (Object state) Graphic courtesy of ESRI

Data Model Levels Humanoriented Reality Conceptual Model Logical Model Computeroriented Physical Model Increasing Abstraction

Data Model Levels Humanoriented Reality Conceptual Model Logical Model Computeroriented Physical Model Increasing Abstraction

Specific Steps in Data Modeling (1) Conceptualize the user's view of data l what

Specific Steps in Data Modeling (1) Conceptualize the user's view of data l what are the basic features needed to solve the problem? (2) Select the geographic representation l points, lines, areas, rasters, TINs (3) Define objects, features, and relationships l draw a UML diagram, specify relationships, “behaviors” (4) Match to geodatabase elements l Refine relationships, “behaviors” (5) Organize geodatabase structure, add data

( 1 ) User’s View of Data

( 1 ) User’s View of Data

( 1 ) User’s View of Data cont.

( 1 ) User’s View of Data cont.

(2) Select geographic rep.

(2) Select geographic rep.

Steps in Data Modeling (1) Conceptualize the user's view of data l what are

Steps in Data Modeling (1) Conceptualize the user's view of data l what are the basic features needed to solve the problem? (2) Select the geographic representation l points, lines, areas, rasters, TINs (3) Define objects and relationships l draw a UML diagram, specify relationships, “behaviors” (4) Match to geodatabase elements l Refine relationships, “behaviors” (5) Organize geodatabase structure, add data

Unified Modeling Language Entity-relationship diagrams Design the methodologies, diagram notations UML Not a design

Unified Modeling Language Entity-relationship diagrams Design the methodologies, diagram notations UML Not a design methodology l Just a diagrammatic notation based on methods l Endorsed by leading software and database companies l

UML ( cont. ) Diagrammatic notation = “visual language”. . . For constructing a

UML ( cont. ) Diagrammatic notation = “visual language”. . . For constructing a data model Drawings, relationships constructed in Visio (other tools available) Tools to input a drawing into Arc. GIS l input drawing to the data model

UML Notation a class is shown as a box top part contains the name

UML Notation a class is shown as a box top part contains the name of the class lower part contains the attributes methods associated with the class lines connect boxes and indicate relationships

Graphic courtesy of Maidment et al. , Arc. Hydro team

Graphic courtesy of Maidment et al. , Arc. Hydro team

UML Notation ( cont. ) Abstract class l l l specify subclasses underneath Mammals

UML Notation ( cont. ) Abstract class l l l specify subclasses underneath Mammals w/human or dog feature classes no new instances Feature Class l l Specify subtypes underneath Human, dog, cat

Objects and Features Object (real world) l l l in Arc. GIS an object

Objects and Features Object (real world) l l l in Arc. GIS an object is non-spatial it is NOT a point, line, or area it has no geographic location it has no shape attribute in its table Drainage network, ship, vehicle, … customer, lake, house, etc. Feature (spatial context) l l an object that has geographic location a point, line, area, TIN, raster

Relationships Links between classes, shown as lines One to one One to many Many

Relationships Links between classes, shown as lines One to one One to many Many to many

Relationships (cont. ) 1: 1 - solid line l one record in Class A

Relationships (cont. ) 1: 1 - solid line l one record in Class A linked to one record in Class B l l “is married to” the class of state capitals linked to the class of states 1: n - solid line with * at one end l one record in Class A linked to any number of records in Class B l l "owns" the class of states linked to the class of area codes

Relationships (cont. ) m: n - solid line with * at both ends l

Relationships (cont. ) m: n - solid line with * at both ends l any number of records in Class A linked to any number of records in Class B "has visited” l "was never married to" l the class of mountain lions linked to the class of wilderness areas l

Graphic courtesy of Maidment et al. , Arc. Hydro team

Graphic courtesy of Maidment et al. , Arc. Hydro team

Type Inheritance White triangle Class B inherits the properties (attributes, methods) of Class A

Type Inheritance White triangle Class B inherits the properties (attributes, methods) of Class A the class street inherits from the class transportation network Solid diamond the parts and the whole depend on each other

Graphic courtesy of Maidment et al. , Arc. Hydro team

Graphic courtesy of Maidment et al. , Arc. Hydro team

Steps in Data Modeling (1) Conceptualize the user's view of data l what are

Steps in Data Modeling (1) Conceptualize the user's view of data l what are the basic features needed to solve the problem? (2) Select the geographic representation l points, lines, areas, rasters, TINs (3) Define objects and relationships l draw a UML diagram, specify relationships, “behaviors” (4) Match to geodatabase elements l Refine relationships, “behaviors” (5) Organize geodatabase structure, add data

Steps in Data Modeling (1) Conceptualize the user's view of data l what are

Steps in Data Modeling (1) Conceptualize the user's view of data l what are the basic features needed to solve the problem? (2) Select the geographic representation l points, lines, areas, rasters, TINs (3) Define objects and relationships l draw a UML diagram, specify relationships, “behaviors” (4) Match to geodatabase elements l Refine relationships, “behaviors” (5) Organize geodatabase structure, add data l e. g. , Marine Data Model tutorial