Introduction to Spatial Databases

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

WFM 6202: Remote Sensing and GIS in Water Management
GEOGRAPHIC INFORMATION SYSTEMS PRESENTATION 1
Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
GIS Overview. What is GIS? GIS (Geographic Information System): computer information system that can input, store, manipulate, analyze, and display geographically.
WFM 6202: Remote Sensing and GIS in Water Management © Dr. Akm Saiful IslamDr. Akm Saiful Islam WFM 6202: Remote Sensing and GIS in Water Management Akm.
GIS for Environmental Science
Introduction to Spatial Database System Presented by Xiaozhi Yu.
Data Storage and Processing GIS Topics and Applications.
Raster Based GIS Analysis
GIS: The Grand Unifying Technology. Introduction to GIS  What is GIS?  Why GIS?  Contributing Disciplines  Applications of GIS  GIS functions  Information.
Spatial Database Systems
Geodatabases by Shawn J. Dorsch Spatial Databases Part 2.
Introduction to GIS Ghassan Mikati, Ph.D GIS Expert.
Information Systems and GIS Chapter 2 Slides from James Pick, Geo-Business: GIS in the Digital Organization, John Wiley and Sons, Copyright © 2008.
Introduction to Spatial Analysis
WFM 6202: Remote Sensing and GIS in Water Management © Dr. Akm Saiful IslamDr. Akm Saiful Islam WFM 6202: Remote Sensing and GIS in Water Management Dr.
GIS 200 Introduction to GIS Buildings. Poly Streams, Line Wells, Point Roads, Line Zoning,Poly MAP SHEETS.
Geographic Information Systems
Week 7. Feature relationship and topology Oct. 17 th, 2005.
GTECH 361 Lecture 02 Introduction to ArcGIS. Today’s Objectives explore a map and get information about map features preview geographic data and metadata.
1 CIS / Introduction to Business GIS Winter 2005 Lecture 2 Dr. David Gadish.
TECNOLOGIAS DE ARMAZENAMENTO DE INFORMAÇÃO ESPACIAL.
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.
Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
GIS Introduction What is GIS?. Geographic Information Systems A database system in which the organizing principle is explicitly SPATIAL.
Advanced Database Applications Database Indexing and Data Mining CS591-G1 -- Fall 2001 George Kollios Boston University.
Basic Concepts of GIS January 29, What is GIS? “A powerful set of tools for collecting, storing, retrieving, transforming and displaying spatial.
Intro. To GIS Lecture 6 Spatial Analysis April 8th, 2013
GIS Analysis. Questions to answer Position – what is here? Condition – where are …? Trends – what has changed? Pattern – what spatial patterns exist?
Basic Spatial Analysis
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.
Introduction to Geospatial Information Management and Spatial Databases Lecture 4 1.
Spatial Databases ENVE/CE 424/524. Definitions Database – an integrated set of data on a particular subject Spatial database - database containing geographic.
Spatial Database Souhad Daraghma.
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.
GIS 1110 Designing Geodatabases. Representation Q. How will we model our real world data? A. Typically: Features Continuous Surfaces and Imagery Map Graphics.
GIS2: Geo-processing and Metadata Treg Christopher.
United Nations Regional Seminar on Census Data Dissemination and Spatial Analysis Amman, Jordan, May, 2011 Spatial Analysis & Dissemination of Census.
IST 210 Introduction to Spatial Databases. IST 210 Evolution of acronym “GIS” Fig 1.1 Geographic Information Systems (1980s) Geographic Information Science.
Geographic Information System GIS This project is implemented through the CENTRAL EUROPE Programme co-financed by the ERDF GIS Geographic Inf o rmation.
Applied Cartography and Introduction to GIS GEOG 2017 EL Lecture-2 Chapters 3 and 4.
Introduction In ArcGIS, there are three basic data structures:
Geographic Information Systems Patty McGray University of Phoenix EDTC 560 Applications of Multimedia and Web Page Design Janet Wright November 17, 2004.
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.
1 Spatial Data Models and Structure. 2 Part 1: Basic Geographic Concepts Real world -> Digital Environment –GIS data represent a simplified view of physical.
Spatial DBMS Spatial Database Management Systems.
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
GIS & Health ESPM 9: W 5-8 April 7, 2010 Instructors: Maggi Kelly Kevin Koy Mark O’Connor Geospatial Innovation Facility College of Natural Resources -
A Quick Introduction to GIS
WFM 6202: Remote Sensing and GIS in Water Management © Dr. Akm Saiful IslamDr. Akm Saiful Islam WFM 6202: Remote Sensing and GIS in Water Management Dr.
Kedar Gawande Position Paper ITK 478 Fall / 04 / 2006.
Lecture 7 Basic GIS Analysis Operations
Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin.
Which are Spatial Data? Names address NASA satellites imagery Weather and Climate Data SSN Medical Imaging NASA satellites imagery - terabytes of.
Spatial Data Models Geography is concerned with many aspects of our environment. From a GIS perspective, we can identify two aspects which are of particular.
WFM 6202: Remote Sensing and GIS in Water Management © Dr. Akm Saiful IslamDr. Akm Saiful Islam WFM 6202: Remote Sensing and GIS in Water Management Dr.
CENTENNIAL COLLEGE SCHOOL OF ENGINEERING & APPLIED SCIENCE VS 361 Introduction to GIS SPATIAL OPERATIONS COURSE NOTES 1.
Lecture 3: Spatial Data Management Dr. Taysir Hassan Abdel Hamid Associate Professor, Information Systems Dept., Faculty of Computers and Information.
UNIT 3 – MODULE 6: Data Analysis. TERMINOLOGY There are several terms that are important to know when discussing data analysis: – Entity – an individual.
Czech Technical University in Prague Faculty of Transportation Sciences Department of Transport Telematics Pavel Hrubeš Geographical Information Systems.
Overview of Mining Spatial Data
Chapter 1: Introduction to Spatial Databases 1. 1 Overview 1
Spatial Database Systems
Physical Structure of GDB
Introduction to Spatial Databases (1)
Chapter 1: Introduction to Spatial Databases 1. 1 Overview 1
Value of SDBMS Non-spatial queries: Spatial Queries:
Presentation transcript:

Introduction to Spatial Databases Assist. Prof. Dr. Ahmet Sayar Computer Engineering Department Advanced Database Applications Kocaeli University Spring 2013

What is a SDBMS ? A SDBMS is a software module that can work with an underlying DBMS supports spatial data models, spatial abstract data types (ADTs) and a query language from which these ADTs are callable supports spatial indexing, efficient algorithms for processing spatial operations, and domain specific rules for query optimization GIS, SPATIAL DB VE DATABASE ILISKISI NE? Gis is the principle technology motivating interest in SDBMS. A GIS provides a rich set of operations over few object and layers, whereas an SDBMS provides simpler operations on a set of objects and sets of layers. SDB sits in traditional DB.

Why Spatial Databases GIS is the principle technology motivating interest in SDBMS. GIS is not the only area using SDBMS Many important application domains have spatial data and queries. Some Examples Insurance Risk Manager: Which homes are most likely to be affected in the next great flood on the Brisbane river? Molecular Biologist: Is the topology of the amino acid biosynthesis gene in the genome found in any other sequence feature map in the database ? Medical Doctor: Based on this patient's MRI, have we treated somebody with a similar condition ?

What is a Spatial Database? A spatial database is a database system (DBMS) that is optimized to store and query basic spatial objects : Point: a house, a moving car, a city Line/Polyline: river, cable, road Polygon: a county, forest, lake, city And some more – see the nest slide

Spatial Object Types in OGIS Data Model Each rectangle shows a distinct spatial object type 2-dim geometry Collection of islands Collection of oil wells

Spatial Data Examples Examples of non-spatial data Names, phone numbers, email addresses of people Examples of Spatial data NASA satellites imagery - terabytes of data per day Weather and Climate Data Rivers, Farms, ecological impact Medical Imaging Exercise: Identify spatial and non-spatial data items in A phone book A cookbook with recipes

Spatial and Non-Spatial Queries List the names of all bookstore with more than ten thousand titles. List the names of ten customers, in terms of sales, in the year 2001 Where is Building 78? Which courses are meeting in GP Building? Spatial Queries: List the names of all bookstores with ten miles of Minneapolis List all customers who live in Tennessee and its adjoining states Which buildings are adjacent to the lake? Which building is adjacent to a lake? A majority of the DBMS in existence today are either incapable of managing spatial data or are not user-friendly when doing so.

Spatial Query Example -1 Spatial query language Spatial data types, e.g. point, linestring, polygon, … Spatial operations, e.g. overlap, distance, nearest neighbor, … Callable from a query language (e.g. SQL3) of underlying DBMS SELECT S.name FROM Senator S WHERE S.district.Area() > 300 Standards SQL3 (a.k.a. SQL 1999) is a standard for query languages OGC is a standard for spatial data types and operators Both standards enjoy wide support in industry Spatial query mantigina uyarlamak icin su anki SQL (SQL2) extend edilmeli. Bu genel istek standart bodyler tarafindan ele alindi ve SQL3 diye sql:1999 yeni bir yapi gelistirildi. SQL3 provides support for ADTs and other data structures. It gives the freedom to customize their implementations.

Spatial Query Example -2 “Display all countries that border Turkiye”. This query can be implemented using the following SQL command: select c1.name as name,transform(c1.the_geom,4326) as the_geom from county c1,county c2 Where touches(c1.the_geom,c2.the_geom) And c2.name=‘Turkiye';

Result 2 Algorithms for GIS: Intersection of lines, operations on polygons, network traversal, auto-correlation, statistical operations, searching. We focus on the use of algorithms, not their design. The actual algorithms are provided as database extensions (e.g. PostGIS) or desktop GIS (e.g. OpenJump or uDig)

Spatial Query Example -3 Query: For all the rivers listed in the River table, find the counties through which they pass. SELECT r.name, r.name FROM river AS r, county AS c WHERE crosses(r.the_geom,c.the_geom)=True The spatial predicate “Cross” is used to join River and Country tables To view this we would add asbinary(R.the_geom,C.the_geom) A spatial join associates two tables based on a spatial relationship, rather than an the classic non-spatial relational attribute. A spatial join operation is used to combine two or more dataset with respect to a spatial predicate or spatial operation. Predicates can be a combination of directional, distance, and topological spatial relations (e.g. overlap, contains). In case of non-spatial join, the joining attributes must of the same type, but for spatial join they can be of different types.

Spatial Query Example -4 A spatial join associate two tables based on a spatial relationship, rather than an attribute relationship. For example the query: Summarize the provincial election results by municipality. SELECT m.name, sum(v.ndp) AS ndp, sum(v.lib) AS liberal, sum(v.gp) AS green, sum(v.upbc) AS unity, sum(v.vtotal) AS total FROM bc_voting_areas v, bc_municipality m, WHERE intersects(v.the_geom, m.the_geom) GROUP BY m.name ORDER BY m.name; Note the && speeds up the join by using PostgreSQL’s native indexing on the geometry elements. v. So we could add the following to the where clause. the_geom && m.the_geom

Spatial Query Example -5 Spatial join example SELECT S.name FROM Senator S, Business B WHERE S.district.Area() > 300 AND Within(B.location, S.district) Non-Spatial Join example SELECT S.name FROM Senator S, Business B WHERE S.soc-sec = B.soc-sec AND S.gender = ‘Female’

SDBMS vs GIS ? GIS is a software to visualize and analyze spatial data using spatial analysis functions such as Search Thematic search, search by region, (re-)classification Location analysis Buffer, corridor, overlay Terrain analysis Slope/aspect, catchment, drainage network Flow analysis Connectivity, shortest path Distribution Change detection, proximity, nearest neighbor Spatial analysis/Statistics Pattern, centrality, autocorrelation, indices of similarity, topology: hole description Measurements Distance, perimeter, shape, adjacency, direction GIS uses SDBMS to store, search, query, share large spatial data sets

SDBMS vs GIS ? SDBMS focuses on Efficient storage, querying, sharing of large spatial datasets Provides simpler set based query operations Example operations: search by region, overlay, nearest neighbor, distance, adjacency, perimeter etc. Uses spatial indices and query optimization to speedup queries over large spatial datasets. SDBMS may be used by applications other than GIS Astronomy, Genomics, Multimedia information systems, …

Components of a SDBMS Recall: a SDBMS is a software module that can work with an underlying DBMS supports spatial data models, spatial ADTs and a query language from which these ADTs are callable supports spatial indexing, algorithms for processing spatial operations, and domain specific rules for query optimization Components include spatial data model, query language, query processing, file organization and indices, query optimization, etc.

Three Layer Architecture Three-layer architecture to build a SDBMS on top of ORDBMS MMIS: Multimedia Information System CAD: Computer-aided design

SDBMS Example Consider a spatial dataset with: County boundary (dashed white line) Census block - name, area, population, boundary (dark line) Water bodies (dark polygons) Satellite Imagery (gray scale pixels) Storage in a SDBMS table: create table census_blocks ( name string, area float, population number, boundary polyline); What is the problem here? Unfortunately, such a table is not natural for a traditional relational database because polyline is not a built-in data type.

Modeling Spatial Data in Traditional DBMS A row in the table census_blocks Question: Is Polyline datatype supported in DBMS? Hint: 1. Create a collection of tables with overlapping attributes or 2. use “stored procedures”

Mapping “census_table” into a Relational Database