Spatial Database Souhad Daraghma.

Slides:



Advertisements
Similar presentations
Introduction to Spatial Databases
Advertisements

Spatial Databases Reading: None. Dept. of Computing Science, University of Aberdeen2 In this lecture you will learn the need for spatial databases some.
GEOGRAPHIC INFORMATION SYSTEMS PRESENTATION 1
The Role of Error Map and attribute data errors are the data producer's responsibility, GIS user must understand error. Accuracy and precision of map and.
Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
Object Relational Model Spatial Queries. Query Model Spatial Layer Data Table where coordinates are stored Primary Filter Spatial Index Index retrieves.
Kien A. Hua Division of Computer Science University of Central Florida.
Spatial Database Systems Tyler Reainthong CSE 7330 Fall 2009.
1 Enviromatics Spatial database systems Spatial database systems Вонр. проф. д-р Александар Маркоски Технички факултет – Битола 2008 год.
GI Systems and Science January 30, Points to Cover  Recap of what we covered so far  A concept of database Database Management System (DBMS) 
Spatial Database Systems
Geodatabases by Shawn J. Dorsch Spatial Databases Part 2.
Geographical Database
Spatial Information Systems (SIS) COMP Spatial relations.
Spatial Information Systems (SIS) Spatial data modelling
Spatial databases: Introduction Geog 495: GIS database design.
Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
Prepared by Abzamiyeva Laura Candidate of the department of KKGU named after Al-Farabi Kizilorda, Kazakstan 2012.
Benjamin Post Cole Kelleher. Encyclopedia Articles: PostGIS, C. Strobl, pp Oracle Spatial, Geometries, R. Kothuri and S. Ravada, page
Spatial data Visualization spatial data Ruslan Bobov
Intro. To GIS Lecture 4 Data: data storage, creation & editing
Selecting and Displaying Features. Why do you need to select features? Why do you need to select features? Selection methods Selection methods Select.
JTS Topology Suite JTS Topology Suite An API for Processing Linear Geometry Martin Davis, Senior Technical Architect
Spatial Data Models. What is a Data Model? What is a model? (Dictionary meaning) A set of plans (blueprint drawing) for a building A miniature representation.
Parcel Data Models for the Geodatabase
Preparing Data for Analysis and Analyzing Spatial Data/ Geoprocessing Class 11 GISG 110.
Implemented Systems Presenter: Manos Karpathiotakis Extended Semantic Web Conference 2012.
“Codd’s Rules for Spatial ORDBMS”
Chapter 1: Introduction to Spatial Databases 1.1 Overview 1.2 Application domains 1.3 Compare a SDBMS with a GIS 1.4 Categories of Users 1.5 An example.
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Spatial Query Language Group No.15 Dhruv Dhokalia Yash Khandelwal Course Relation- Chapter 11- Object and Object-Relational Databases.
GeoUML a conceptual data model for geographical data conformant to ISO TC 211 Main GeoUML constructs Alberto BelussiNovembre 2004.
IST 210 Introduction to Spatial Databases. IST 210 Evolution of acronym “GIS” Fig 1.1 Geographic Information Systems (1980s) Geographic Information Science.
Spatiotemporal Tile Indexing Scheme Oscar Pérez Cruz Polytechnic University of Puerto Rico Mentor: Dr. Ranga Raju Vatsavai Computational Sciences and Engineering.
 Trace the incremental algorithm for constructing convex data on the sample point data given below. Intermediate steps should be shown First, two steps.
6. Simple Features Specification Background information UML overview Simple features geometry.
8. Geographic Data Modeling. Outline Definitions Data models / modeling GIS data models – Topology.
Spatial Concepts and Data Models Reading: Shekhar & Chawla Chapter 2 November 22, 2005.
SQL access and working with ST_Geometry Functions
Tables tables are rows (across) and columns (down) common format in spreadsheets multiple tables linked together create a relational database entity equals.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
4 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved. Computer Software Chapter 4.
ISPRS Congress 2000 Multidimensional Representation of Geographic Features E. Lynn Usery Research Geographer U.S. Geological Survey.
1 Spatial Data Models and Structure. 2 Part 1: Basic Geographic Concepts Real world -> Digital Environment –GIS data represent a simplified view of physical.
1 Spatio-Temporal Predicates Martin Erwig and Markus Schneider IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING Presented by Mamadou Hassimiou Diallo.
Spatial DBMS Spatial Database Management Systems.
Database Concepts Track 3: Managing Information using Database.
Benjamin Post Cole Kelleher.  Availability  Data must maintain a specified level of availability to the users  Performance  Database requests must.
UML and Object Modeling Elements
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
Kedar Gawande Position Paper ITK 478 Fall / 04 / 2006.
Which are Spatial Data? Names address NASA satellites imagery Weather and Climate Data SSN Medical Imaging NASA satellites imagery - terabytes of.
GIS Data Models III GEOG 370 Instructor: Christine Erlien.
What is GIS? “A powerful set of tools for collecting, storing, retrieving, transforming and displaying spatial data”
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Lecture 3: Spatial Data Management Dr. Taysir Hassan Abdel Hamid Associate Professor, Information Systems Dept., Faculty of Computers and Information.
Distributed Geospatial Indexing
Physical Structure of GDB
Multimedia Database.
Spatial Database Systems
Tools for Memory: Database Management Systems
A Network Model for the Utility Domain
Spatial Database Systems
ISU-GIS Training and Research Center
JTS Topology Suite An API for Processing Linear Geometry
Geography 413/613 Lecturer: John Masich
Data Model.
The Arc-Node Data Model
Value of SDBMS Non-spatial queries: Spatial Queries:
Presentation transcript:

Spatial Database Souhad Daraghma

Definition A spatial database is a database that is optimized to store and query data related to objects in space, including points, lines and polygons. While typical databases can understand various numeric and character types of data, additional functionality needs to be added for databases to process spatial data types. These are typically called geometry or feature.

Spatial Databases Background Spatial databases provide structures for storage and analysis of spatial data Spatial data is comprised of objects in multi-dimensional space Storing spatial data in a standard database would require excessive amounts of space

Spatial Databases Background (Cont.) Queries to retrieve and analyze spatial data from a standard database would be long and cumbersome leaving a lot of room for error Spatial databases provide much more efficient storage, retrieval, and analysis of spatial data

Types of Data Stored in Spatial Databases Two-dimensional data examples Geographical Cartesian coordinates (2-D) Networks Direction

Types of Data Stored in Spatial Databases (Cont.) Three-dimensional data examples Weather Cartesian coordinates (3-D) Topological Satellite images

Spatial Databases Uses and Users Three types of uses Manage spatial data Analyze spatial data High level utilization

Spatial Databases Uses and Users (Cont.) A few examples of users Transportation agency tracking projects Insurance risk manager considering location risk profiles Doctor comparing Magnetic Resonance Images (MRIs) Emergency response determining quickest route to victim Mobile phone companies tracking phone usage

Spatial Database Management System Spatial Database Management System (SDBMS) provides the capabilities of a traditional database management system (DBMS) while allowing special storage and handling of spatial data.

Spatial Database Management System (Cont.) SDBMS: Works with an underlying DBMS Allows spatial data models and types Supports querying language specific to spatial data types Provides handling of spatial data and operations

SDBMS Three-layer Structure SDBMS works with a spatial application at the front end and a DBMS at the back end SDBMS has three layers: Interface to spatial application Core spatial functionality Interface to DBMS

SDBMS Three-layer Structure (Cont.) Spatial application Core Spatial Functionality Taxonomy Data types Operations Query language Algorithms Access methods Interface to spatial application Interface to DBMS DBMS

Spatial Query Language Number of specialized adaptations of SQL Spatial query language Temporal query language (TSQL2) Object query language (OQL) Object oriented structured query language (O2SQL)

Spatial Query Language (Cont.) Spatial query language provides tools and structures specifically for working with spatial data SQL3 provides 2D geospatial types and functions

Spatial Query Language Operations Three types of queries: Basic operations on all data types (e.g. IsEmpty, Envelope, Boundary) Topological/set operators (e.g. Disjoint, Touch, Contains) Spatial analysis (e.g. Distance, Intersection, SymmDiff)

Spatial Data Entity Creation Form an entity to hold county names, states, populations, and geographies CREATE TABLE County( Name varchar(30), State varchar(30), Pop Integer, Shape Polygon);

Spatial Data Entity Creation (Cont.) Form an entity to hold river names, sources, lengths, and geographies CREATE TABLE River( Name varchar(30), Source varchar(30), Distance Integer, Shape LineString);

Example Spatial Query Find all the counties that border on Contra Costa county SELECT C1.Name FROM County C1, County C2 WHERE Touch(C1.Shape, C2.Shape) = 1 AND C2.Name = ‘Contra Costa’;

Example Spatial Query (Cont.) Find all the counties through which the Merced river runs SELECT C.Name, R.Name FROM County C, River R WHERE Intersect(C.Shape, R.Shape) = 1 AND R.Name = ‘Merced’;

Features of Spatial Databases Database systems use indexes to quickly look up values and the way that most databases index data is not optimal for spatial queries. Instead, spatial databases use a spatial index to speed up database operations. In addition to typical SQL queries such as SELECT statements, spatial databases can perform a wide variety of spatial operations.

Features of Spatial Databases (Cont.) - query types The following query types and many more are supported by the Open Geospatial Consortium: Spatial Measurements: Finds the distance between points, polygon area, etc.

Features of Spatial Databases (Cont.) - query types Spatial Functions: Modify existing features to create new ones, for example by providing a buffer around them, intersecting features, etc. Spatial Predicates: Allows true/false queries such as 'is there a residence located within a mile of the area we are planning to build the landfill?'

Features of Spatial Databases (Cont.) - query types Constructor Functions: Creates new features with an SQL query specifying the vertices (points of nodes) which can make up lines. If the first and last vertex of a line are identical the feature can also be of the type polygon (a closed line). Observer Functions: Queries which return specific information about a feature such as the location of the center of a circle

Types of queries - PostGIS The function names for queries differ across geodatabases. The following list contains commonly used functions built into PostGIS, a free geodatabase which is a PostgreSQL extension (the term 'geometry' refers to a point, line, box or other two or three dimensional shape):

Types of queries - PostGIS (Cont.) Distance(geometry, geometry) : number Equals(geometry, geometry) : boolean Disjoint(geometry, geometry) : boolean Intersects(geometry, geometry) : boolean Touches(geometry, geometry) : boolean Crosses(geometry, geometry) : boolean

Types of queries - PostGIS (Cont.) Overlaps(geometry, geometry) : boolean Contains(geometry, geometry) : boolean Intersects(geometry, geometry) : boolean Length(geometry) : number Area(geometry) : number Centroid(geometry) : geometry

Spatial Relations Topological Relations: containment, overlapping, etc. [Egenhofer et al. 1991] Metric Relations: distance between objects, etc. [Gold and Roos 1994] Direction Relations: north of, south of, etc. [Hernandez et al. 1990; Frank et al. 1991] A B 1 Km A B B A

Topological Relations Topological relations are defined using point-set topology concepts, such as boundary and interior.

Topological Relations (Cont.) For example: the boundary of a region consists of a set of curves that separate the region from the rest of the coordinate space The interior of a region consists of all points in the region that are not on its boundary Given this, two regions are said to be adjacent if they share part of a boundary but do not share any points in their interior

Spatial Relations Model An abstract model (or conceptual model): is a theoretical construct that represents something, with a set of variables and a set of logical and quantitative relationships between them. Models in this sense are constructed to enable reasoning within an idealized logical framework about these processes and are an important component of scientific theories.