41
1 Spatial Data Models and Spatial Data Models and Structure Structure

Spatial Data Models and Structure

  • Upload
    takara

  • View
    45

  • Download
    5

Embed Size (px)

DESCRIPTION

Spatial Data Models and Structure. Part 1: Basic Geographic Concepts. Real world -> Digital Environment GIS data represent a simplified view of physical phenomena These data contain: Locational Information Non-spatial attributes. Symbolization. - PowerPoint PPT Presentation

Citation preview

Page 1: Spatial Data Models and Structure

11

Spatial Data Models and Spatial Data Models and StructureStructure

Page 2: Spatial Data Models and Structure

22

Part 1: Basic Geographic Part 1: Basic Geographic ConceptsConcepts

• Real world -> Digital Environment– GIS data represent a simplified view of

physical phenomena

• These data contain:– Locational Information– Non-spatial attributes

Page 3: Spatial Data Models and Structure

33

SymbolizationSymbolization

• In a GIS, we represent real world phenomena in a digital format

Page 4: Spatial Data Models and Structure

44

VocabularyVocabulary

• Real-World Entities or Phenomena• Data Objects• Cartographic Objects

Page 5: Spatial Data Models and Structure

55

TerminologyTerminology

• Entities or Phenomenon -- real world features to be represented in a database

Page 6: Spatial Data Models and Structure

66

TerminologyTerminology

• Data Objects -- digital representations of entities or phenomena

Pasture

Road

House

Page 7: Spatial Data Models and Structure

77

TerminologyTerminology• Cartographic Objects -- real-world entities as depicted on maps

Page 8: Spatial Data Models and Structure

88

Real World Real World Data Objects Data Objects

• Attributes– Information about object (e.g., characteristics)

• Location/Spatial information– Coordinates– May contain elevation information

• Time– When collected/created– Why? Objects may have different attributes over

time

Page 9: Spatial Data Models and Structure

99

Real World Real World Cartographic Cartographic ObjectsObjects

• Real world objects differ in:– Size– Shape– Color– Pattern

• These differences affect how these objects are represented on maps

• Where possible the cartographic objects (i.e., map symbols) can relate to the entities they are representing (e.g., water = blue)

Page 10: Spatial Data Models and Structure

1010

TopologyTopology

• The spatial relationships between data objects

Page 11: Spatial Data Models and Structure

1111

Conceptualizing TopologyConceptualizing Topology

• Primary– Adjacency– Connectivity– Containment

• Secondary– Direction– Proximity (distance)

Page 12: Spatial Data Models and Structure

1212

AdjacencyAdjacency

SpringfieldSpringfield

ShelbyvilleShelbyville

Page 13: Spatial Data Models and Structure

1313

ConnectivityConnectivity

These roads are connected at the black points.

Page 14: Spatial Data Models and Structure

1414

ContainmentContainment

Moe’sMoe’s

Kwik-E-MartKwik-E-Mart

NuclearNuclearPlantPlant

SpringfieldSpringfield

Page 15: Spatial Data Models and Structure

1515

DirectionDirection

Moe’s is Northeast of Moe’s is Northeast of the Kwik-E-Martthe Kwik-E-Mart

The nuclear plant is The nuclear plant is Southeast of the Kwik-E-Southeast of the Kwik-E-MartMart

Moe’sMoe’s

Kwik-E-MartKwik-E-Mart

NuclearNuclearPlantPlant

Page 16: Spatial Data Models and Structure

1616

ProximityProximity

Homer lives near NedHomer lives near Ned

Homer lives far from Homer lives far from GrampaGrampa

Page 17: Spatial Data Models and Structure

1717

Complex Case: OverlapComplex Case: Overlap

SpringfieldSpringfield

Blue Lake

Page 18: Spatial Data Models and Structure

1818

• Entities in the real world are represented as one of the following in a GIS:– Raster data

• Pixels in an array

– Vector data• Points• Lines• Areas (or polygons)

Part 2: GIS Data ModelsPart 2: GIS Data Models

Key concept!

Page 19: Spatial Data Models and Structure

1919

• “The continuous field view represents the real world as a finite number of variables, each one defined at every possible position. “

• “The discrete object view represents the geographic world as objects with well-defined boundaries in otherwise empty space. “

Continuous & DiscreteContinuous & Discrete

Page 20: Spatial Data Models and Structure

2020

Continuous & DiscreteContinuous & Discrete

• Some data types may be presented as either discrete or continuous– Example

• Population at a point (discrete) • Population density surface for an area

(continuous)

Page 21: Spatial Data Models and Structure

2121

Continuous & Continuous & Discrete Discrete

• Continuous – Data values distributed across a surface

w/out interruption – Key words: What varies and how smooth? – Examples: elevation, temperature

• Discrete– with well-defined boundaries in otherwise

empty space– Examples

• Points: Town, power pole• Lines: Highway, stream• Areas: U.S. Counties, national parks

Page 22: Spatial Data Models and Structure

2222

Continuous or Discrete?Continuous or Discrete?

www.regional.org.au/au/asa/2003/i/6/walcott.htm

Page 23: Spatial Data Models and Structure

2323

Continuous & DiscreteContinuous & Discrete

• In computer databases – Raster data models represent

continuous data– Vector data model are used for discrete

objects

Page 24: Spatial Data Models and Structure

2424

Cell (x,y)

The raster data model represents the Earth’s surface as a two-dimensional array of grid cells, with each cell having an associated value:

1 2 3 5 8

4 6 8 3 9

3 5 3 3 1

7 5 4 3 9

2 2 4 5 2

Cell value

Cell size = resolution

columns

row

sRaster Data ModelRaster Data Model

Page 25: Spatial Data Models and Structure

2525

Raster data exampleRaster data example

Elevation data: each cell contains a number representing the elevation of that cell.

Page 26: Spatial Data Models and Structure

2626

Part 3: The vector data model

Page 27: Spatial Data Models and Structure

2727

Vector Data ObjectsVector Data Objects

Geographic building blocks

• Points

– 0 dimensional

• Lines

– 1 dimensional

• Polygons

– 2 dimensional

Page 28: Spatial Data Models and Structure

2828

Spatial ObjectsSpatial Objects• Data objects in the vector data model can be:

– A point can represent:• Tree, airport, a city, street intersection, a movie theater, a

benchmark

– A line is a data object, made up of a connected sequence of points. It can represent:

• Roads, rivers, regional boundaries, fences, hedgerows, power lines

– A polygon is an enclosed area. Examples:• A census tract, Saunders building, boundary of Chapel Hill, a

lake, a watershed, a city

Page 29: Spatial Data Models and Structure

2929

Object example: oak tree

Page 30: Spatial Data Models and Structure

3030

Thought question:Thought question:

How are you going to represent the California OAK tree in digital format?

A point? A polygon? Or a pixel?It will depend on:- Scale of observation- Purpose of your research- The type of data you have access to in the

GIS

Page 31: Spatial Data Models and Structure

3131

– When do you want to represent Chapel Hill as a polygon object instead of a point object?

– When do you want to represent a river as a polygon instead of a line?

Thought questions:Thought questions:

Page 32: Spatial Data Models and Structure

3232

point line polygon(area)

(x,y)

(x,y)

(x,y)(x,y) (x,y)

(x,y)

(x,y)

(x,y)(x,y)

(x,y)

The vector data objects

• The vector data model represents geographic features similar to the way maps do– A point: recorded by a pair of (x,y)

coordinates.– A line: recorded by joining more than one

point, – A polygon: recorded by a joining multiple

points that enclose an area

(x,y)

Page 33: Spatial Data Models and Structure

3333

Vector Data Storage in Computers: Points

Points Data Storage

+1+2 +3

+4

Point ID Coordinates

1 1, 12 4, 23 6, 2 4 2, 4

0

Page 34: Spatial Data Models and Structure

3434

(x1,y1)

(x2,y2)

(x3,y3)

Line # Coordinates ① (x1, y1) (x2,y2)

② (x2,y2) (x3,y3)

Note: In GIS, this is considered a line (a connected set of individual lines).

Vector Data Storage in Computers: Lines(Sometimes called arcs)

Page 35: Spatial Data Models and Structure

3535

(x1,y1)

(x2,y2)

(x3,y3)

(x4,y4)

(x6,y6)

(x5,y5)

① ②

Polygon # Coordinates ① (x1,y1) (x2,y2) (x3,y3) (x4,y4)

② (x3,y3) (x4,y4) (x5,y5) (x6,y6)

Vector Data Storage in Computers: Polygons

Page 36: Spatial Data Models and Structure

3636

The Arc-Node Data Structure

The arc-node structure allows efficient data storage for vector dataBenefit:

How does it work?It stores data so that nodes construct arcs, and arcs construct polygons

Nodes define the two endpoints of an arc. They may or may not connect two or more arcs.

An arc is the line segment between two nodes. The points between two nodesdefining the shape of an arc are called vertices. Nodes and vertices are represented as x, y coordinates.

Page 37: Spatial Data Models and Structure

3737

1

65

2

4

3

①②③

Arc: , , ① ② ③ Nodes: 2, 5Vertices: 1, 6 for arc ① 3, 4 for arc ②

Arc # Start Node Vertices End Node

1 2 1,6 52 2 3,4 53 2 5

Polygon arc listA , ① ③B , ② ③

A B

Points1 x1,y12 x2,y23 x3,y34 x4,y45 x5,y56 x6,y6

The Arc-Node Data Structure

Page 38: Spatial Data Models and Structure

3838

Topology defines spatial relationships. The arc-node data structure supports three major topological concepts:

Connectivity: Arcs connect to each other at nodesArea definition: Arcs that connect to surround an area define a polygonContiguity: Arcs have direction and left and right sides

Arc-Node Data Structure: enables topology definitionenables topology definition

Page 39: Spatial Data Models and Structure

3939

Topology: Connectivity

10 11 12

13 14

15

① ②

Arc From-Node To-Node1 10 112 11 123 11 134 13 155 13 14

Arc-node list

Connected arcs are determined by searching through the list for common node numbers.

Because of the common node 11, arcs 1, 2, and 3 all intersect. The computer can determine that it is possible to travel along arc 1 and turn onto arc 3. But it is not possible to turn directly from arc 1 to arc 5.

Page 40: Spatial Data Models and Structure

4040

Topology: Area Definition

BC

D

E

1

2

3

4

5

67

8

9

Polygon Arc List B 1,5,8,4 C 2,6,9,5 D 6,3,4,7 E 9,7,8

Polygon-Arc Topology

Polygons are simply the list of arcs defining its boundary, arc coordinates are stored only once, therefore, reducing the amount of data and ensuring that the boundaries of adjacent polygons don’t overlap

Page 41: Spatial Data Models and Structure

4141

Topology: Contiguity

Two geographic features which share a boundary are called adjacent. Contiguity is the topological concept which allows the vector data model to determine adjacency.

An ArcFrom-Node To-Node

Direction

left

right

BC

D

E

1

2

3

4

5

67

8

9

Arc Left Right Polygon Polygon5 C B9 E C10 ? ? 1 ? ?