1 / 10

Spatial Query Language

Spatial Query Language. Course Relation- Chapter 11- Object and Object-Relational Databases. Group No.15 Dhruv Dhokalia Yash Khandelwal. MOTIVATION. Databases required for data type rich applications such as: - Spatial Databases ( eg . Google Maps)

mandy
Download Presentation

Spatial Query Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Spatial Query Language Course Relation- Chapter 11- Object and Object-Relational Databases Group No.15 DhruvDhokalia YashKhandelwal

  2. 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

  3. RDBMS Data types Char Int Date Number Varchar ODBMS Data types Point LineString Polygon MultiPoint S E M A N T I C GA P

  4. Spatial Data Types

  5. OGIS- Open Geographic Information System

  6. 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);

  7. 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”;

  8. 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;

  9. References • Spatial Databases- A TOUR By ShashiShekhar; Sanjay Chawla • Fundamentals of Database Systems By Elmasri & Navathe; 6th Edition • About 3-D Printing http://www.3ders.org/3d-printing-basics.html • Latest on 3-D printing http://www.cnn.com/2013/11/08/tech/innovation/3d-printed-metal-gun/index.html?hpt=te_r1

  10. THANK YOU

More Related