Академический Документы
Профессиональный Документы
Культура Документы
1 GIS Databases
A database is a shared collection of data with secure controlled access Data are stored independently of their applications A GIS database contains geographic data
A DBMS is a collection of software programs that facilitates the efficient and effective storage and access of data
A GIS DBMS
Conceptual data model - user's perception of the real world Logical data model - a formal description of the data model Physical data model - physical storage of the data (e.g., format, order, path)
Conceptual Model
Increasing Abstraction
Logical Model
Computeroriented
Physical Model
Logical Model
Physical Model
Database Schema Diagrams And lists
Data Models
3 Database Functions
3 Database Functions
Database Functions
Hierarchical data model Network data model Relational data model Object-oriented data model
The database consists of several two dimensional tables A row is a record and a column is a field
4 can (3) Characteristics Every field be used as a key in a search A cross file search can be done by join, as long as at least one filed is common to both files A link table can be created with needed attributes, without actually taking storage space
Advantages - Flexible, no structure restrictions for search - Easy to understand - Less data redundancy
Objects
Attributes Operations
Inheritance - Data and functions are organized in a hierarchy - Objects inherit characteristics and functions of their ancestor objects
Animals
A head and a body, feed
4 (4) Object-Oriented Data Model Encapsulation - Data and functions are combined in one object
Data Model
Advantages - Easy for modeling and the representation is close to human perception - Reduce the complexity of software development
Disadvantages
Uses an enriched set of graphic element types on top of the three basic types of points, lines, and polygons
features geometry
components
SpatialReferenceSystem
Point
Curve
Surface
GeometryCollection
LineString
Polygon
MultiSurface
MultiCurve
MultiPoint
Line
LinearRing
MultiPolygon
MultiLineString
Object-Relational Databases
Readings
Chapter 3
Object-oriented (OODBMS) - Based on OO concept to store state and of GIS objects in databases - Provide OO query tools - Commercially not successful
behavior
Object-Relational (ORDBMS) - Extend RDMS to handle GIS objects - Current Geographic Databases are ORDBMS
Over 95% of data in DBMS is in RDBMS DB2; SQL Server, Access; Oracle; Informix
A relational database comprises tables, a twodimensional row, column structure. Each single table stores an object class.
Rows contain objects Columns contain object properties or attributes Data stored in intersection of row and column is value
Conceptual model Human-oriented, conceptual description of the main types of objects and processes relevant to a problem domain e.g. objects/fields Logical model Implementation oriented, but implementationindependent representation of reality; Often in the form of diagrams and lists e.g. Raster/vector Physical model The actual application in a GIS; describe the exact files or database tables E.g. A shapefile is composed of a .shp file for geometry, .dbf for attributes
Feature
Feature has state, behavior, and relationships with other objects and features
State: geometry and other attributes Behavior: default values, attribute domains, subtypes, split/merge policy, relationship rules, topology rules, connectivity rules Relationships: thematic relationships and topology
Object class
An object class is a regular database table in a geodatabase. A collection of features with the same type of geometry An object class with a geometry, each row is a feature.
Feature class