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.

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

1 DATA STRUCTURES USED IN SPATIAL DATA MINING. 2 What is Spatial data ? broadly be defined as data which covers multidimensional points, lines, rectangles,
POSTGRESQL DUNGEON WITH TABLE INHERITANCE AND CONSTRAINTS Edel Sherratt.
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.
Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
7/03Spatial Data Mining G Dong (WSU) & H. Liu (ASU) 1 6. Spatial Mining Spatial Data and Structures Images Spatial Mining Algorithms.
Jan. 2014Dr. Yangjun Chen ACS Outline Spatial Databases -Theme -Map -Geographic objects -Modeling geographic data Temporal Databases - Transaction.
Spatial Database Systems Tyler Reainthong CSE 7330 Fall 2009.
Indexing and Range Queries in Spatio-Temporal Databases
Spring 2003Data Mining by H. Liu, ASU1 6. Spatial Mining Spatial Data and Structures Images Spatial Mining Algorithms.
Spatial Mining.
2-dimensional indexing structure
Geodatabases by Shawn J. Dorsch Spatial Databases Part 2.
Spatial Information Systems (SIS) COMP Spatial queries and operations.
Spatio-Temporal Databases
Temporal Databases. Outline Spatial Databases Indexing, Query processing Temporal Databases Spatio-temporal ….
HED 460 Geographic Information Systems Cartographers Geographers Business managers Marketing strategists Financial analysts Professional planners.
Spatio-Temporal Databases. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases …..
Time Chapter 10 © Worboys and Duckham (2004)
Graphics Output Primitives Pixel Addressing and Fill Area Dr. M. Al-Mulhem Feb. 1, 2008.
GTECH 361 Lecture 02 Introduction to ArcGIS. Today’s Objectives explore a map and get information about map features preview geographic data and metadata.
Creating Database Tables © Abdou Illia MIS Spring /21/2015.
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.
1 CIS / Introduction to Business GIS Winter 2005 Lecture 2 Dr. David Gadish.
R-Trees 2-dimensional indexing structure. R-trees 2-dimensional version of the B-tree: B-tree of maximum degree 8; degree between 3 and 8 Internal nodes.
Structured Query Language. Brief History Developed in early 1970 for relational data model: –Structured English Query Language (SEQUEL) –Implemented with.
Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
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.
Basic Spatial Analysis
The POSTGRES Next - Generation Database Management System Michael Stonebraker Greg Kemnitz Presented by: Nirav S. Sheth.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
PostgreSQL and relational databases As well as assignment 4…
Spatial Database Souhad Daraghma.
Spatial Data Management Chapter 28. Types of Spatial Data Point Data –Points in a multidimensional space E.g., Raster data such as satellite imagery,
Spatial Query Language Group No.15 Dhruv Dhokalia Yash Khandelwal Course Relation- Chapter 11- Object and Object-Relational Databases.
Database A collection of related data. Database Applications Banking: all transactions Airlines: reservations, schedules Universities: registration, grades.
1 1 ISyE 6203 Radical Tools Intro To GIS: MapPoint John H. Vande Vate Spring 2012.
Geographic Information System GIS This project is implemented through the CENTRAL EUROPE Programme co-financed by the ERDF GIS Geographic Inf o rmation.
Spatiotemporal Tile Indexing Scheme Oscar Pérez Cruz Polytechnic University of Puerto Rico Mentor: Dr. Ranga Raju Vatsavai Computational Sciences and Engineering.
PostgreSQL and relational databases As well as assignment 4…
8. Geographic Data Modeling. Outline Definitions Data models / modeling GIS data models – Topology.
Chapter 4 Introduction to MySQL. MySQL “the world’s most popular open-source database application” “commonly used with PHP”
1 Spatial Data Models and Structure. 2 Part 1: Basic Geographic Concepts Real world -> Digital Environment –GIS data represent a simplified view of physical.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Prepared by The Smartpath Information Systems
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Spatial DBMS Spatial Database Management Systems.
Nhóm thực hiện: nhóm 1 Nguyễn Ngọc Trường Trần Minh Khang Bùi Quốc Huy Nguyễn Ngọc Linh Nguyễn Thành Phương Trần.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
CS 338The Relational Model2-1 The Relational Model Lecture Topics Overview of SQL Underlying relational model Relational database structure SQL DDL and.
A Quick Introduction to GIS
Spatial Database 2/5/2011 Reference – Ramakrishna Gerhke and Silbershatz.
Geographic Data in GIS. Components of geographic data Three general components to geographic information Three general components to geographic information.
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
1 CS 430 Database Theory Winter 2005 Lecture 10: Introduction to SQL.
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
1 MySQL and SQL. 2 Topics  Introducing Relational Databases  Terminology  Managing Databases MySQL and SQL.
Databases Introduction - concepts. Concepts of Relational Databases.
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.
Getting started with Accurately Storing Data
Geog. 314 Working with tables.
CompSci 280 S Introduction to Software Development
Fundamentals of DBMS Notes-1.
Strategies for Spatial Joins
Managing Tables, Data Integrity, Constraints by Adrienne Watt
Spatial Database Systems
Modeling geographic data Temporal Databases
Spatial and temporal data management
Chapter 4 Introduction to MySQL.
SQL (Structured Query Language)
Presentation transcript:

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 Lamb, 1810

Introductory discussion What applications do you know of for geographic information? What future applications for geographic information can you suggest? What kind of information must be stored in the mentioned applications? What kind of processing is necessary ?

Data management developments Location-based services Time-varying data

Spatial data Managing spatially-referenced data Geographic information systems (GIS) Theme The spatial counterpart of an entity River, road, scenic lookout Map A theme represented on paper or a screen Geographic object An instance of a theme

Generic spatial data types Data typeDimensionsExample Point0Scenic lookout Line1River Region2County

Data model for political units

PostgreSQL geometric data types Geometric typeRepresentationDescription BOX ((x1,y1),(x2,y2))Rectangular box CIRCLE Circle (center and radius) LINE ((x1,y1),(x2,y2))Infinite line LSEG ((x1,y1),(x2,y2)))Finite line segment PATH [(x1,y1),…]Closed path (similar to polygon) POINT (x,y)Point in space POLYGON ((x1,y1),...)Polygon (similar to closed path)

CREATE TABLE political_unit ( unitname VARCHAR(30) NOT NULL, unitcode CHAR(2), unitpop DECIMAL(6,2), PRIMARY KEY(unitcode)); CREATE TABLE boundary ( boundid INTEGER, boundpath PATH NOT NULL, unitcode CHAR(2), PRIMARY KEY(boundid), CONSTRAINT fk_boundary_polunit FOREIGN KEY(unitcode) REFERENCES political_unit); CREATE TABLE city ( cityname VARCHAR(30), cityloc POINT NOT NULL, unitcode CHAR(2), PRIMARY KEY(unitcode,cityname), CONSTRAINT fk_city_polunit FOREIGN KEY(unitcode) REFERENCES political_unit); Create tables

INSERT INTO political_unit VALUES ('Republic of Ireland','ie', 4.1); INSERT INTO political_unit VALUES ('Northern Ireland','ni', 50.1); INSERT INTO boundary VALUES (1,'[(9,8),(9,3),(4,1),(2,2),(1,3),(3,5),(3,6),(2,6), (2,9),(5,9),(5,10),(6,11),(7,11),(7,10),(6,9),(7,8), (7,9),(8,9),(8,8),(9,8)]','ie'); INSERT INTO boundary VALUES (2,'[(7,11),(9,11),(10,9),(10,8),(8,8),(8,9),(7,9), (7,8),(6,9),(7,10),(7,11)]','ni'); INSERT INTO city VALUES ('Dublin','(9,6)','ie'); INSERT INTO city VALUES ('Cork','(5,2)','ie'); INSERT INTO city VALUES ('Limerick','(4,4)','ie'); INSERT INTO city VALUES ('Galway','(4,6)','ie'); INSERT INTO city VALUES ('Sligo','(5,8)','ie'); INSERT INTO city VALUES ('Tipperary','(5,3)','ie'); INSERT INTO city VALUES ('Belfast','(9,9)','ni'); INSERT INTO city VALUES ('Londonderry','(7,10)','ni'); Insert rows

Some PostgreSQL geometric functions FunctionReturnsDescription LENGTH(OBJECT ) double precision length of item NPOINTS(PATH) integernumber of points

Some PostgreSQL geometric operators OperatorDescription Distance between <<Left of? <^Is below? >>Is right of? >^Is above?

Length What is the length of the Republic of Ireland’s border? SELECT SUM(LENGTH((boundpath)))*37.5 AS "Border (kms)" from political_unit, boundary WHERE unitname = 'Republic of Ireland' AND political_unit.unitcode = boundary.unitcode; Border(kms)

Distance How far, as the crow flies, is it from Sligo to Dublin? SELECT (orig.cityloc dest.cityloc)*37.5 AS "Distance (kms)" FROM city orig, city dest WHERE orig.cityname = 'Sligo' AND dest.cityname = 'Dublin'; Distance (kms)

Closest What is the closest city to Limerick? SELECT dest.cityname FROM city orig, city dest WHERE orig.cityname = 'Limerick' AND orig.cityloc dest.cityloc = (SELECT MIN(orig.cityloc dest.cityloc) FROM city orig, city dest WHERE orig.cityname = 'Limerick' AND dest.cityname <> 'Limerick'); cityname Tipperary

Westernmost What is the westernmost city in Ireland? SELECT west.cityname FROM city west WHERE NOT EXISTS (SELECT * FROM city other WHERE other.cityloc<< west.cityloc); cityname Limerick Galway

Oppgaver Spørringer Avstanden fra Limerick til Tipperary Den nordligste byen i Irland Arealet av irland Avstandstabell mellom alle byene i Irland

R-tree Used to store n-dimensional data (n>=2) Minimum bounding rectangle concept A B C D E X Y DESequence set Index set ABC XY

R-tree searching A B C D E X Y Search for the object covered by the shaded region

Temporal data Data have associated time When valid When stored Different database states recorded Larger databases

Times Transaction time Timestamp applied when data are entered Valid time Time when value is valid or true

Times

Modeling temporal data

TSQL Need additional features for Data definition Constraint specification Data manipulation Querying TSQL (temporal structured query language) is designed to provide these features

Conclusions The need to maintain spatial data will increase as location-based services become more common Temporal data management will become more common so companies and customers have a complete historical record