Spatial SQL: A Query and Presentation Language Max J. Egenhofer (Presenter: Yi-Shin Chen)

Slides:



Advertisements
Similar presentations
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.
Advertisements

Spatial Query Languages Standard Database Query Languages.
Center for Modeling & Simulation.  A Map is the most effective shorthand to show locations of objects with attributes, which can be physical or cultural.
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.
From portions of Chapter 8, 9, 10, &11. Real world is complex. GIS is used model reality. The GIS models then enable us to ask questions of the data by.
1 Enviromatics Spatial database systems Spatial database systems Вонр. проф. д-р Александар Маркоски Технички факултет – Битола 2008 год.
Introduction to Spatial Database System Presented by Xiaozhi Yu.
GI Systems and Science January 30, Points to Cover  Recap of what we covered so far  A concept of database Database Management System (DBMS) 
Copyright, © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query.
Automating Tasks With Macros
Introduction to Spatial Analysis
Spatial Query by Sketch 研一 張永昌. Agenda Abstract Introduction Spatial Query Spatial Query Languages Visual Spatial Query Languages Sketching.
Visual Querying By Color Perceptive Regions Alberto del Bimbo, M. Mugnaini, P. Pala, and F. Turco University of Florence, Italy Pattern Recognition, 1998.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
WFM 6202: Remote Sensing and GIS in Water Management
19 th Advanced Summer School in Regional Science An introduction to GIS using ArcGIS.
1 Spatial Databases as Models of Reality Geog 495: GIS database design Reading: NCGIA CC ’90 Unit #10.
Introduction to ArcView ArcView_module_2 May 12, 10:40 AM.
1 Chapter 5: Introduction To Form Builder. 2 Forms  Why Do We Use Form Builder?  Why Don’t We Use SQL Only?!
Attribute databases. GIS Definition Diagram Output Query Results.
Prepared by Abzamiyeva Laura Candidate of the department of KKGU named after Al-Farabi Kizilorda, Kazakstan 2012.
Number Sense, Concepts, and Operations –Standard 1: The student understands the different ways numbers are represented and used in the real world. –Standard.
Spatial Databases ENVE/CE 424/524. Definitions Database – an integrated set of data on a particular subject Spatial database - database containing geographic.
Relational Data Model, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 The Relational Model Chapter 3.
ASP.NET Programming with C# and SQL Server First Edition
Web-Enabled Decision Support Systems
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
SQL and SSQL IT4GIS Keith T. Weber, GISP GIS Director, ISU.
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
IST 210 Introduction to Spatial Databases. IST 210 Evolution of acronym “GIS” Fig 1.1 Geographic Information Systems (1980s) Geographic Information Science.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
How to Spatially Enable Your IBM Informix Database Chris Bosch.
Dr. Mohamed Osman Hegazi 1 Database Systems Concepts Database Systems Concepts Course Outlines: Introduction to Databases and DBMS. Database System Concepts.
Spatial Concepts and Data Models Reading: Shekhar & Chawla Chapter 2 November 22, 2005.
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Spatial DBMS Spatial Database Management Systems.
Query and Reasoning. Types of Queries Most GIS queries will select spatial features Query by Attribute (Select by Attribute) –Structured Query Language.
John Pickford IBM H11 Wednesday, October 4, :30. – 14:30. Platform: Informix Practical Applications of IDS Extensibility (Part 2 of 2)
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
A Quick Introduction to GIS
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
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.
L1-S1 Infinite R-DB 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
Why Is It There? Chapter 6. Review: Dueker’s (1979) Definition “a geographic information system is a special case of information systems where the database.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
COP Introduction to Database Structures
Oracle & SQL Introduction
9. Creating and Maintaining Geographic Databases
JDBC.
Appendix D: Network Model
Tools for Memory: Database Management Systems
DATABASE MANAGEMENT SYSTEM
Introduction to Database Systems
ISU-GIS Training and Research Center
Structured Query Language
Database Systems Instructor Name: Lecture-3.
Appendix D: Network Model
Presentation transcript:

Spatial SQL: A Query and Presentation Language Max J. Egenhofer (Presenter: Yi-Shin Chen)

Outline Introduction Spatial query language Guidelines for an SQL Extension Requirements for Spatial Query Languages Separating retrieval and display instructions Spatial SQL Spatial domain, operations, data definition, selecting by pointing GPL Display Mode, variables, scale, window, context, content Conclusion

Introduction The need for spatial query language Geographic Information System (GIS), Image Database, Remote Sensing Existing query languages are insufficient Only address the particular properties of lexical data Treat spatial data as integers and strings Spatial Data have additional properties Geometry Graphical presentation

Example SELECT ImageName FROM S_Images WHERE RECTANGLE( , , , ) OVERLAPS area image4/W775647N jpg image4/W775644N jpg image4/W775644N jpg image4/W775641N jpg image4/W775555N jpg image4/W775552N jpg image4/W775550N jpg image4/W775547N jpg image4/W775463N jpg image4/W775461N jpg image4/W775458N jpg image4/W775455N jpg Query Result :

Introduction -II Extending an existing language with spatial concepts Reason: spatial databases contain both spatial and non-spatial data that will be the subject of user queries SQL + Spatial Concepts = Spatial SQL

Guidelines for an SQL Extension SELECT-FROM-WHERE clause should keep Three categories of queries Exclusively about spatial properties About non-spatial properties Combine spatial and non-spatial properties Should allow the user to pose non-spatial queries appropriately SELECT-FROM-WHERE is already complex enough to use

Requirements for Spatial Query Languages GEOQLExtended SQL PSQLKGISTIGRIS Spatial ADT+++++ Graphical Presentation+++++ Result Combination+ Display of context++ Content Examination Selection by Pointing++ Display manipulation+ Legend Labels+ Selection of Map Scale+ Area of Interest+

Separating Retrieval and Display Instructions User expectations Pose several queries in a raw Only modify the graphical parameter of objects Integration of a full display description into the query language would make each user query unnecessarily complex and long Retrieval language -> Spatial SQL Presentation language -> GPL

Spatial Domain Provides a higher level abstraction of data Four spatial domains: Spatial_0, Spatial_1, Spatial_2, Spatial_3 Spatial relationships refer to spatial concepts such as topology and metric Only the specified spatial operations and relationships apply to spatial attributes

Spatial Data Definition In general, a spatial relation will have exactly one spatial attribute CREATE TABLE city (name char(100) geometry spatial_2); Spatial SQL does not prevent from defining several spatial attributes for a object CREATE TABLE ocean (name char(100) geometry spatial_2 generalized_geometry spatial_0);

Spatial Operations – part one Functions upon a spatial attribute Dimension, boundary, interior, bounding-Nodes, bounding-Edges, interior-Nodes, interior-Areas SELECT boundary (geometry) FROM city WHERE name = “Los Angeles” Deal with arithmetic operations Length, area, volume, perimeter, extreme coordinates, complement, convex hull SELECT area (geometry) FROM city WHERE name = “Los Angeles”

Spatial Operations – part two Binary spatial operations Distance, direction, angle, minimum, average Prefix formulation [ Distance(city.geometry, highway.geometry)] SELECT city.name FROM city, ocean WHERE distance (city.geometry, ocean.geometry) < 100KM Binary topologies relationships Disjoint, meet, overlap, covers, inside, contains, equal, left/right, north/south, over/under SELECT city.name FROM city, ocean WHERE city.geometry MEET ocean.geometry

Selection by Pointing Interactive communication with drawing is enabled with the PICK qualifier which allows users to formulate queries. SELECT name FROM city WHERE geometry=PICK Ambiguities in the selection may exist User will be offered the possible choices and then asked to identify the target

GPL The concept of the display environment The query result is rendered according the display description Offers instructions to SET or CANCEL a graphic specification (can be qualified with PERMANENT) SET MODE highlight With IMMEDIATELY to update the current display prior to asking the next query SET IMMEDIATELY COLOR red

Display Mode Six display mode Conventional alphanumeric display NEW: starting a new drawing ex. SET MODE new; OVERLAY: adding the result onto a existing drawing REMOVE: erasing the result from a drawing INTERSECT: determining the common objects on the display and in the query result HIGHLIGHT: emphasizing the result Non-spatial attributes in the SELECT clause will be represented as label

Visual Variables Graphic attributes can be specified for either an entire spatial relation or instances of spatial relations SET LEGEND COLOR black PATTERN dashed User can check the current setting by “looking at the legend” This part of GPL depends upon the user’s hardware

Scale and Window The scale of the graphical presentation can be described with the command SET SCALE SET SCALE n (representing a scale factor of 1:n) The window describing the area to be displayed can be described with SET WINDOW The window can be determined by two pairs of coordinates the minimal bounding rectangle from the result SET WINDOW SELECT geometry FROM road WHERE town.name = “Orono”;

Context The interpretation of graphical presentation is extremely depend on the context and environment GPL allows the user to define spatial relation with SET CONTEXT as graphical context which is during query processing merged with the actual user query SET CONTEXT FOR road.geometry SELECT building.geometry, road.name FROM road.parcel, building;

Content A needed control mechanism with which user may examine the content of a drawing The content is the logical combination of queries the result of which were combined with OVERLAY and REMOVE Content is only observable (cannot SET or MODIFY) SHOW Content

Conclusion Spatial SQL +GPL Spatial ADT+ Graphical Presentation+ Result Combination+ Display of context+ Content Examination+ Selection by Pointing+ Display manipulation+ Legend+ Labels+ Selection of Map Scale+ Area of Interest+

Appendix Conventional Spatial Database Geodetic DataBlade Module c/case_studies/datablade/geo/geoLOC.html NCR Teradata Object Relational Database (TOR) Oracle Spatial ESRI Spatial Database Engine (SDE) systems like Oracle, Microsoft SQL Server, Sybase, IBM DB2, and Informix