spatial databases: data collection spring, 2015 ki-joune li

27
Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

Upload: crystal-bruce

Post on 30-Dec-2015

218 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

Spatial Databases:Data Collection

Spring, 2015

Ki-Joune Li

Page 2: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

2

Why Data Collection?

The cheapest way to build spatial DB Get existing databases, but Check if the requirements be satisfied

Metadata: Description of Data

Data Migration vs. Interoperability

Legacy Problem Building an Information System

No more entirely new system Integration with Existing systems

Integration with existing DB

Page 3: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

3

Integration with Existing Databases

Data Migration Copy from existing DB

Procedure Survey on existing DB: Data Clearinghouse Metadata Conversion from existing databases Integration of several databases: Mismatch Problem

Existing System

Legacy System

New System

New System

New DBExisting DB Copy fromLegacy DB

Page 4: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

4

Geo-Data Clearinghouse

Geo-Data Clearinghouse Clearinghouse: financial services company that provides

clearing and settlement services for financial transactions. (in Wikipedia.com)

Collection of Geospatial Data Servers Collection of metadata Not data itself. Providing a single interface to browse metadata of several servers

Z39.50 protocol and client

Example: FGDC in USA (http://clearinghouse1.fgdc.gov/)

Page 5: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

5

Metadata for Geospatial Data: ISO 19115

• Title, and Alternative title, Originator, Abstract, and Data

• Frequency of update

• Presentation type

• Access constraint, Use constraints

• Topic category

• Bounding coordinates, and extent

• Spatial reference system, and resolution

• Supply media, and data format

• Supplier and Additional information source

• Date of update of metadata

• Sample of the dataset

• Dataset reference date, and language

• Vertical extent information

• Spatial representation type

• Lineage

• Online resource

Some items are mandatory and others are optional

Page 6: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

6

Generalization: Conversion of spatial data

Conversion from Large-Scale Spatial DB to Small-Scale Spatial DB Cartographic Aspect vs. DB Aspect

Cartographic viewpoint: To make maps more visible DB viewpoint: To reduce the size of data

Six Generalization Operators Simplification Elimination Translation (Cartographic Purpose) Aggregation Collapse Exaggeration (Cartographic Purpose)

Page 7: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

7

Simplification

Simplification (Line Simplification) Elimination of internal nodes from a polyline To minimize the loss of accuracy Example: which point to remove

Douglas-Peucker Algorithm A greedy algorithm

Page 8: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

8

Elimination

Eliminate spatial objects not satisfying given conditions Example

Eliminate *From BuildingsWhere area < 100 m2

Propagation of Elimination Elimination may destroy cardinality condition Example: What to do in this case ?

District District_Office1..1

1..1

Page 9: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

9

Aggregation

Aggregate a set of spatial objects into a large object

Definition of the boundary of aggregated object ?

Aggregation of Non-Spatial Data Example: Number of Habitants in the apartment complex Sum, Max, or Average

AB

C ApartmentComplex

Aggregation

- With Boundary - Without Boundary

Page 10: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

10

Collapse

Reduction of Dimensionality From 2-D to 1-D (from surface to line) From 2-D to 0-D (from surface to point) Very Rarely from 1-D to 0-D

Example

Computation of collapsed objects

Surface in 1/1,000 Map Line in 1/50,000 Map

Page 11: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

11

Topological Issues in Generalization

Example

How to Correct it No drop vertex if Topological Inconsistency Translation of the object with problem

Left Side

Right Side Topologically Incorrect

Page 12: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

12

Topological Issues in Generalization

Another Example

A

B

B contains AA contains B

A is equal to B at least

R(B, A) RG(B, A)

A

Collapse to pointB

What is the correct topology after the collapse ?

Page 13: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

13

Topological Issues in Generalization

Another Example

Buildings

Road

R(B, A)= Disjoint

B1 B2

B3 B4

Buildings

AggregationB

Road

AA

R(B, A)= Overlap

R(B, A) RG(B, A)

Is it correct ?

Page 14: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

14

Mismatch Problems

Mismatches Integration of several databases from different sources Adjacent Maps

Different Accuracy Different Dates of Creation

Different Maps Different Ground Control Points Different Accuracy Etc.

Page 15: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

15

Example: Topographic Map and Cadastral Map

Example

Topographic Map

Cadastral Map

Page 16: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

16

Example

Building DBA Manhole DBB Pole DBC

Find the nearest manhole or pole to Building P

Page 17: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

17

Example

Building DB Manhole DB Pole DB

Find the nearest manhole or pole to Building PA

B

Page 18: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

18

Example

Building DB Manhole DB Pole DB

Find the nearest manhole or pole to Building P

result of the query

A

B

Page 19: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

19

Example

Building DB Manhole DB Pole DB

adjust the building position

the correct answer

result of the query

A

B

Page 20: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

20

Example

Building DB Manhole DB Pole DB

Find the nearest manhole or pole to Building P

result of the query

the correct answer

Page 21: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

21

Elastic Map Transformation: Rubber Sheeting

Elastic transformation of objects in each spatial database.

Building DB

Manhole DB Pole DB

Transformed Manhole DB

Transformed Pole DB

Reference Spatial DB

or Base Map

Consistent Spatial Databases

Spatial Query

Page 22: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

22

Elastic Map Transformation by Delaunay Triangulation

Procedure

1. Select sets of Control Point Pair on MapRef and another MapA, respectively.

2. Delaunay Triangulation with Control Points on MapRef.

3. Triangular Transformation, for each Point p on MapA.

Control Points on the Reference Map

Corresponding Control Points on Other Maps

Corresponding Pair of Triangles

MapRef MapA

Page 23: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

23

Triangular Transformation

p1(x1,y2 )

p2(x2, y2 ) p3(x3, y3 )

q1(u1, v2 )

q2(u2, v2 )q3(u3, v3 )

Triangle on MapRef

q (u, v )

p (x, y )

(u,v) = (a1u1+a2u2+a3u3, a1v1+a2v2+a3v3)

where a1 = b {(y2 – y3)x + (x3 – x2)y + x2 y3 – x3 y2 }

a2 = b {(y3 – y1)x + (x1 – x3)y + x3 y1 – x1 y3 }

a3 = b {(y1 – y2)x + (x2 – x1)y + x1 y2 – x2 y1 }

b = (x1 y2 + x2 y3 + x3 y1 – (x2 y1 + x3 y2 + x1 y3 ))-1

Page 24: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

24

Elastic Map Transformation : Example

Page 25: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

25

Elastic Map Transformation : Example

Control Points

Page 26: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

26

Mismatched between Adjacent Maps

Examples

Discontinuity

Disappearance

Shift

Page 27: Spatial Databases: Data Collection Spring, 2015 Ki-Joune Li

STEMPNU

27

Edge Matching

Rules Priority on More Recent Data Respect of Pivot Objects Respect of Predefined Constraints

e.g. Building should be rectangular

Pivot Object