Presentation is loading. Please wait.

Presentation is loading. Please wait.

GIS (Geographic Information System) And DB2 Spatial Extender n Khiem Pham n CSCI 397-16C n Instructor: Professor Renner.

Similar presentations


Presentation on theme: "GIS (Geographic Information System) And DB2 Spatial Extender n Khiem Pham n CSCI 397-16C n Instructor: Professor Renner."— Presentation transcript:

1 GIS (Geographic Information System) And DB2 Spatial Extender n Khiem Pham n CSCI 397-16C n Instructor: Professor Renner

2 Introduction to GIS n What is GIS? n 1) Spatial data n 2) Projection and Coordinate System n 3) Data Format and Storage n 4) Data Retrieval n 5) Precision and Accuracy n 6) Applications

3 Spatial Data n What is spatial data? Information about objects, location, distance in space…. Geographic data: road maps, grocery store location…. n 2 Spatial data models 1) Vector Model 2) Raster Model

4 Projection and Coordinate System n Projection - Definition: convert world coordinate to 2D Cartesian coordinate. - Methods: project earth surface onto cylindrical surfaces or conical surfaces. n Coordinate System - Longitude and Latitude. - 2D Cartesian coordinate system.

5 Other Points of Concern n Data Format n Data Storage n Data Retrieval n Precision and Accuracy * Application requirements * Depends on physical storage * Depends on the data model

6 Applications n Yahoo Map n www.MapQuest.com n www.zip2.com * Getting a map * Driving direction * Military use

7 DB2 Spatial Extender n Introduction n Architecture n Example: Using DB2 Spatial Extender n Spatial Index

8 DB2 Spatial Extender: Introduction n An extension of DB2 DataJoiner to support spatial data. n Components of DB2 Spatial Extender: 1) A set of spatial data type 2) A set of spatial operations and predicates 3) A set of spatial index data types

9 DB2 Spatial Extender : Architecture DataJoiner with Spatial Extender Spatial Data Engine(SDE) Client Apps SDE API ODBC API TCP/IP The components of a complete spatial system

10 DB2 Spatial Extender: Example n CREATE TABLE CUSTOMERS (CID INT, ADDR VARCHAR(40), …, LOC POINT) n CREATE TABLE STORES (SID INT, ADDR VARCHAR(40), …, LOC POINT, ZONE POLYGON) n SELECT CID, LOC FROM CUSTOMERS WHERE WITHIN(LOC, :POLYGON) = 1 n SELECT CID, LOC FROM CUSTOMERS WHERE WITHIN(LOC, :CIRCLE1) = 1 OR WITHIN(LOC, :CIRCLE2) = 1 n SELECT C.CID, C.LOC FROM CUSTOMERS C, STORE S WHERE CONTAINS (S.LOC, C.LOC) = 1

11 DB2 Spatial Extender : Spatial Index n B+ tree index is not enough n Index using grids: 2 dimensional arrays of cells Store the intersections of object with the grids, If object has more than 4 intersections, then go to higher grid level. Example: CREATE INDEX CUSindex ON CUSTOMERS (LOC) USING SPATIAL_INDEX (1000e0, 100e0, 10e0)

12 Summary n GIS is a specialized system to deal with spatial data. Supports a wide range of application. n DB2 spatial extender: powerful database extension to support spatial data and GIS system.

13 References n Websites: 1) http://ads.ahds.ac.uk/project/goodguides/gis 2) http://www-4.ibm.com/software/data/datajoiner/spatial.html 3) http://www-4.ibm.com/software/data/db2 4) http://www-4.ibm.com/software/data/pubs/papers/spatial 5) http://www.usgs.gov/research/gis/title.htmlhttp://ads.ahds.ac.uk/project/goodguides/gishttp://www-4.ibm.com/software/data/datajoiner/spatial.htmlhttp://www-4.ibm.com/software/data/db2http://www-4.ibm.com/software/data/pubs/papers/spatialhttp://www.usgs.gov/research/gis/title.html n Writings & Books: 1) DB2 Spatial Extender: Administration Guide and Reference (Version 2 Release1 Modification 1 – July 1998), Copyright IBM Corporation 1998. 2) DB2 DataJoiner for Windows NT Systems: Planning, Installation, and Configuration Guide (Version 2 Release 1 Modification 1 – July 1998), Copyright IBM Corporation 1998. 3) Aldenderfer, M. and Maschner, H.D.G: Anthropology, Space, and Geographic Information Systems. New York: Oxford University Press. n Software Package & Tutorials: IBM DB2 DataJoiner 2.11 (DB2 DataJoiner, Spatial Extender Trial Version, ESRI Spatial Data Engine, ArcView Road Map, U.S. Map data, World Map data). Copyright IBM Corporation 1998.


Download ppt "GIS (Geographic Information System) And DB2 Spatial Extender n Khiem Pham n CSCI 397-16C n Instructor: Professor Renner."

Similar presentations


Ads by Google