220 likes | 234 Views
Explore Extreme Point Data Models, Parametric Models, Geometric Transformations, and Queries for spatiotemporal databases. Learn about spatial and temporal extents, modeling intervals, functions of time, and geometric transformations.
E N D
13. Spatiotemporal Databases • Extreme Point Data Models • Parametric Extreme Point Data Models • Geometric Transformation Data Models • Queries
Spatiotemporal objects - have spatial and temporal extents Spatial extent- the set of points in space that belong to an object Temporal extent- the set of time instances when an object exists
13.1 Extreme Point Data Models Extreme points– the endpoints of intervals and the corner vertices of polygonal or polyhedral objects Examples: extreme points data models include: Rectangle data model and Worboys’ data model
Extreme Point Data Models Rectangles data model --- for each object Spatial extent : a set of rectangles. Temporal extent: a set of time intervals.
Rectangles Data Model Archaeological Site (Figure 13.1)
Worboys’ Data Model --- for each object Spatial extent: a set of triangles, represented by corner vertices Temporal extent: a set of time intervals, represented by From and To endpoints
Worboys’ Data Model Park (Figure 13.2)
13.2 Parametric Extreme Point Data Models Extend the extreme point data models by specifying the extreme points as linear, polynomial, or periodic functions of time Examples:parametric rectangles and parametric 2-spaghetti data models
Parametric Rectangles Data Model --- for each object Spatial extent: a set of intervals, whose endpoints are represented by functions of time (time t is the only parameter) Temporal extent: a time interval, whose endpoints are represented by From and To constants
The Parametric 2-Spaghetti Data Model--- for each object Spatial Extent: set of triangles, whose corner vertices represented as functions of time Temporal Extent: A constant time interval Example: Net
13.2.1 Periodic Parametric Data Models Periodic Parametric Rectangles Data Model --- Spatial Extent: a set of triangles, whose corner vertices are represented as periodic functions of time Temporal Extent: Periodic intervals
12:00 am 3:00 am 4- Parking Lot 3- 5:00 am 2- 1- 1 2 3
13.3 Geometric Transformation Data Models • Generalize geometric transformations by using a time parameter. • Types of geometric transformations: scaling, translation, linear, affine.
13.3 Geometric Transformation Data Models Geometric Transformation -- bijection of d-dimensional space into itself. Example: Affine Motion: x’ = Ax + B Linear Motion: x’ = Ax Scaling: x’ = Ax where A is diagonal Translation: x’ = x + B Identity: x’ = x
Geometric Transformation Data Model ---defines each spatiotemporal object as some spatial object together with a continuous transformation that produces an image of the spatial object for every time instant
13.4 Queries Querying Parametric Extreme Point Databases --- allow only the constraints of the type x=c, x<=c, or x>= c. Example: Find where and when will it snow given Clouds(X, Y, T, humidity) Region(X, Y, T, temperature) (SELECT x, y, t FROM Clouds WHERE humidity >= 80) INTERSECT (SELECT x, y, t FROM Region WHERE temperature <= 32)
Example: Window(id, x, y, t) -- open windows on a computer screen, where id is the identifier, x, y spatial points of the window, and t is the time when it is active. Which windows are completely hidden by other windows? Seen(i) :- Window(i, x, y, t), not Window(i2, x, y, t2), t2 > t. Hidden(i) :- Window(i, x, y, t), not Seen(i).