Spatial Query Language Group No.15 Dhruv Dhokalia Yash Khandelwal Course Relation- Chapter 11- Object and Object-Relational Databases.

Slides:



Advertisements
Similar presentations
Introduction to Spatial Databases
Advertisements

Chapter 4 Part C: Queries, Computations & Map Algebra.
Chapter 3:Spatial Query Languages 3
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.
Department of Geoinformation Science Technische Universität Berlin Geo-Databases: lecture 8 Management of Spatial Data Prof. Dr. Thomas H. Kolbe Institute.
Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
Spatial Query Languages Standard Database Query Languages.
Copyright © 2004 Pearson Education, Inc.. Chapter 15 Algorithms for Query Processing and Optimization.
Copyright © 2004 Pearson Education, Inc.. Chapter 9 More SQL: Assertions, Views, and Programming Techniques.
Object Relational Model Spatial Queries. Query Model Spatial Layer Data Table where coordinates are stored Primary Filter Spatial Index Index retrieves.
Object Oriented & Object Relational Databases
Spatial Database Systems
Geodatabases by Shawn J. Dorsch Spatial Databases Part 2.
Spatial Information Systems (SIS) COMP Spatial queries and operations.
Oracle8i Spatial Concepts. Concepts Geometric data types Oracle8i Spatial data model Spatial Layers Spatial query model Spatial indexing «Window» queries.
SQL/SDA: A Query Language for Supporting Spatial Data Analysis and Its Web-Based Implementation SQL/SDA: A Query Language for Supporting Spatial Data Analysis.
Oracle spatial – Creating spatial tables Object Relational Model Creating Spatial Tables.
Geographic Information Systems
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
TECNOLOGIAS DE ARMAZENAMENTO DE INFORMAÇÃO ESPACIAL.
Copyright © 2004 Pearson Education, Inc.. Chapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries.
Geographic Information Systems and Science SECOND EDITION Paul A. Longley, Michael F. Goodchild, David J. Maguire, David W. Rhind © 2005 John Wiley and.
Object Relational Model Creating Spatial Tables. Concepts Describe the schema associated with a spatial layer Explain how spatial data is stored using.
Spatial and temporal data management Nothing puzzles me more than time and space; and yet nothing troubles me less, as I never think about them Charles.
Prepared by Abzamiyeva Laura Candidate of the department of KKGU named after Al-Farabi Kizilorda, Kazakstan 2012.
Database for Location- Aware Applications Mohammad Rezaei School of Computing University of Eastern Finland
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.
“Codd’s Rules for Spatial ORDBMS”
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.
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
Database for Location- Aware Applications Mohammad Rezaei School of Computing University of Eastern Finland
IST 210 Introduction to Spatial Databases. IST 210 Evolution of acronym “GIS” Fig 1.1 Geographic Information Systems (1980s) Geographic Information Science.
V. Megalooikonomou Object-Oriented and Object-Relational DBMSs (based on notes by Silberchatz,Korth, and Sudarshan and notes by C. Faloutsos at CMU) Temple.
1 Advanced Databases (CM036): Lecture # 5 ( Object-Relational and Nested-Relational Databases) Introduction to Object-Relational features of Oracle 9i.
 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.
How to Spatially Enable Your IBM Informix Database Chris Bosch.
Spatial Concepts and Data Models Reading: Shekhar & Chawla Chapter 2 November 22, 2005.
Spatial Query Languages Standard Database Query Languages.
Chapter 3:Spatial Query Languages 3.1 Standard Database Query Languages 3.2 Relational Algebra 3.3 Basic SQL Primer 3.4 Extending SQL for Spatial Data.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Spatial Database Tips & Tricks Paul Ramsey
John Pickford IBM H11 Wednesday, October 4, :30. – 14:30. Platform: Informix Practical Applications of IDS Extensibility (Part 2 of 2)
SQL John Nowobilski. What is SQL? Structured Query Language Manages Data in Database Management Systems based on the Relational Model Developed in 1970s.
Copyright © 2004 Pearson Education, Inc.. Chapter 22 Object-Relational and Extended-Relational Systems.
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
1 Agenda Today Due: topic of your term project Quiz with two questions Spatial query language Next class.
A Quick Introduction to GIS
Spatial Database 2/5/2011 Reference – Ramakrishna Gerhke and Silbershatz.
TECH 104 – Technical Graphics Communication Introduction to Engineering Graphics Communication.
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.
CLASS WORK Main Mountains P. 591 Main rivers (p. 591) Main lakes (p. 591) Main animals Main products Main minerals volcanos Boundaries (neighbors) Flags.
Copyright © 2004 Pearson Education, Inc.. Chapter 24 Enhanced Data Models for Advanced Applications.
Lecture 3: Spatial Data Management Dr. Taysir Hassan Abdel Hamid Associate Professor, Information Systems Dept., Faculty of Computers and Information.
Lesson 3 GIS Fundamentals MEASURE Evaluation PHFI Training of Trainers May 2011.
Spatial Query Languages
GIS Analysis Queries Operations Non-spatial Spatial Vector Raster
Spatial Query Languages
Fun with SQL Server Spatial Data
Physical Structure of GDB
Understanding & Using Spatial Data Features in SQL Server
Spatial Database Systems
Fun with SQL Server Spatial Data
Spatial Database Systems
Spatial and temporal data management
Value of SDBMS Non-spatial queries: Spatial Queries:
Presentation transcript:

Spatial Query Language Group No.15 Dhruv Dhokalia Yash Khandelwal Course Relation- Chapter 11- Object and Object-Relational Databases

MOTIVATION Databases required for data type rich applications such as: - Spatial Databases (eg. Google Maps) - Designing Databases (eg. CAD/CAM, 3-D printing) These applications require: -Complex structures for storing data -New data types- for images, videos & other multimedia

RDBMS Data types Char Int Date Number Varchar ODBMS Data types Point LineString Polygon MultiPoint

Spatial Data Types

OGIS- Open Geographic Information System OPERATION TYPEOPERATION NAMEDESCRIPTION Basic functionsSpatialReference()Returns the underlined coordinate system of the geometry Boundary()Returns the boundary of the geometry Topological/Set OperatorsTouch()Returns TRUE if the boundaries of the two surfaces intersect, but the interiors DO NOT Contains()Test if the given geometry contains another geometry Cross()Returns TRUE if the interior of a surface intersects with a curve Spatial AnalysisDistance()Returns the shortest distance b/w two geometries Intersection()Returns the geometric intersection of the two geometries

Spatial Query Example CREATE TABLE Country( Name Varchar(30), Continent Varchar(30), Population Integer, GDP Number, Shape Polygon); CREATE TABLE River( Name Varchar(30), Origin Varchar(30), Length Number, Shape LineString);

Spatial Query Example(cont.) Find the names of all the countries that are neighbors of USA in the country table. SELECT C1.Name AS “neighbors of USA” FROM Country C1, C2 WHERE Touch (C1.Shape, C2.Shape)= 1 AND C2.Name= “USA”;

Spatial Query Example(cont.) List the length of all the rivers in each of the countries they pass through SELECT R.Name, C.Name, Length(intersection(R.Shape, C.Shape)) AS Length FROM River R, Country C WHERE Cross (R.Shape, C.Shape)=1;

References Spatial Databases- A TOUR By Shashi Shekhar; Sanjay Chawla Fundamentals of Database Systems By Elmasri & Navathe; 6 th Edition About 3-D Printing Latest on 3-D printing printed-metal-gun/index.html?hpt=te_r1

THANK YOU

Object Relation SQL Point CREATE TYPE Point AS OBJECT( x NUMBER, y NUMBER, MEMBER FUNCTION Distance(P2 IN Point) RETURN NUMBER, PRAGMA RESTRICT_REFERENCES(Distance, WNDS)); Eg. CREATE TABLE City( Name Varchar(30), Country Varchar(35), Shape Point ); Insert into City values(‘Minneapolis’, ‘USA’, Point(44.9, 93.26));

Object Relation SQL LineString CREATE TYPE LineType AS VARRAY(500) of Point CREATE TYPE LineString AS Object( Num_of_Points Int, Geometry LineType, Member Function Length(Self In) Return number, PRAGMA RESTRICT_REFERENCES(Length, WNDS)); CREATE TABLE River( Name Varchar(30), Origin Varchar(30), Length Number, Shape LineString); Insert into river (‘Mississippi’, ‘USA’, 6000, LineString(3,LineType(Point(1,1), Point(2,2), Point(3,4));

Object Relation SQL Polygon CREATE TYPE PolyType AS VARRAY(500) of Point CREATE TYPE Polygon AS Object( Num_of_Points Int, Geometry PolyType, Member Function Area(SELF IN) Return number, PRAGMA RESTRICT_REFERENCES(Length, WNDS)); CREATE TABLE Country( Name Varchar(30), Continent Varchar(30), Population Integer, GDP Number, Shape Polygon); Insert into Country(‘Mexico’, ‘NM’, 694.3, 69.36, Polygon(23, PolyType(Point(1,1).....Pomit(1,1)));