Top Banner
Spatial Databases - Representation Spring, 2015 Ki-Joune Li
17

Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

Jan 18, 2016

Download

Documents

Barnaby Rose
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

Spatial Databases- Representation

Spring, 2015

Ki-Joune Li

Page 2: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

2

Spatial Databases

Entity-Based Databases vs. Field-Based Databases Entity-Based Databases

Set of Spatial Objects Non-Spatial Attributes for each object

Field-Based Databases No clear boundary of an object No non-spatial attributes

Page 3: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

3

Entity-Based Spatial Databases

Feature: Meaningful Spatial Entity Example

Building: a meaningful entity Edge: a spatial piece

Each feature has Geometry OID Non-spatial Attributes

Spatial Database Set of Features Set of Relationships between Features

Representation of Geometry Raster Model Vector Model Constrained Representation

Page 4: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

4

Representation of Geometry: Raster Model

Raster Model A geometric object: set of pixels or tessels (mosaics) A value is assigned to each pixel

Example

Pros and Cons

Pollution Area

Non-Pollution Area

Pros Cons

1. Simple

2. Easy to Collect

Example: Satellite Image

1. Huge

2. Difficult to manipulate Example: Rotation, Zooming

Page 5: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

5

Irregular Tessellation

Regular Raster Model Huge Size of Data To reduce the size, Irregular Tessellation

Irregular Tessellation Irregular Size Irregular Shape

Irregular Size K-D tree Quadtree

Region Quadtree Point Quadtree

Page 6: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

6

K-D tree

Partitioning of a space bipartition X-axis and Y-axis alternatively x1

y1

x11 x12

x1

y1

x11

x12

y12

y12

< >

Page 7: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

7

Quadtree

Extension of KD-tree: KD-tree: binary split Quadtree 4-way equi-split instead Quadrant

Page 8: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

8

Point Quadtree

A variation of quadtree Center of division is given by (x,y) More flexible than region quadtree

Analysis by quadtree Area computation Difference

p1

p2 p3

p1p2

p3

Page 9: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

9

Linear Quadtree

Linearization of Quadtree Transformation of 2-D space to 1-D space By Space Filling Curve

Peano key is assigned to each quadrant

N-order Hilbert Column-wise

6

13

11

Page 10: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

10

Linear Quadtree

N-order Peano Key Bit Interleaving Method

1. Binary representation of coordinates (10,01)

2. Bit-Interleaving x = 1 0 y = 0 1

Peano key = 1 0 0 1 = 9

00 01 10 11

00

01

10

11

Page 11: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

11

Linear Quadtree

Each Quadrant Represented by (kpeano, size)

Size:

Object is represented by a set of pairs (k,s)

2n split

Size 2

Size 0

Size 1

Page 12: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

12

Vector Model

Geometric object is represented by its Coordinates (x,y), or (x,y,z)

Geometric type Point (x,y) Line (x1,y1,x2,y2) or (p1, p2) Polyline (x,y)* or p* Polygon: Closed polyline

Page 13: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

13

Example: OGC Simple Feature Geometry

Page 14: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

14

Database Schema for Vector Model

By Relational Data Model Point and Line: No problem Polyline, Polygon

1st Normal Form of relational model Atomic type only Set type is not allowed Polyline: ordered set of points

Geo-relational model: Based on Winged-Edge Topology

By Object-Oriented Data Model or OR Model Provide Set type Provide Polygon, Polyline Type

Page 15: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

15

Winged Edge Representation

Example

Page 16: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

16

Winged Edge Representation: Topology

Point Topology Face Topology

Line Topology

Point # Start Line # Start Line #Face #

Line # Starting Point #

Ending Point #

LeftLine #

RightLine #

LeftFace #

RightFace #

Left Line

Right LineStart Point

End Point

Page 17: Spatial Databases - Representation Spring, 2015 Ki-Joune Li.

STEMPNU

17

Winged Edge Representation: Geometry

Line Geometry Table

Line # Starting Point Intermediate Points Ending Point

Why Line-Oriented Representation ?