topic 5: raster and vector data models - brandon...

20
10/8/2014 1 Geography 38/42:286 GIS 1 Geography 38/42:286 GIS 1 Topic 5: Raster and Vector Data Models Chapters 3 & 4: Chang (Chapter 4: DeMers) 1 The Nature of Geographic Data The Nature of Geographic Data Most features or phenomena occur as either: discrete entities (objects/PLPs) continuously varying phenomena (fields/CS) some could go either way 2 GIS Data Representation GIS Data Representation How PLPs and CS are stored Two primary GIS data models Raster Vector 3

Upload: nguyenlien

Post on 17-Mar-2018

274 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

1

Geography 38/42:286GIS 1

Geography 38/42:286GIS 1

Topic 5:Raster and Vector Data Models

Chapters 3 & 4: Chang(Chapter 4: DeMers)

1

The Nature of Geographic DataThe Nature of Geographic Data Most features or phenomena occur as either:

discrete entities (objects/PLPs)

continuously varying phenomena (fields/CS)

some could go either way

2

GIS Data RepresentationGIS Data RepresentationHow PLPs and CS are stored

Two primary GIS data models

Raster

Vector

3

Page 2: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

2

Data Structures and Data ModelsData Structures and Data Models “Raster” and “Vector” refer to a particular data model

A data structure refers to a particular implementation of either the raster or vector model

4

TopologyTopology The spatial relationships between things

An important distinction between data models and data structures

Can be stored or calculated “on the fly”

5

Raster – Vector Data ModelsRaster – Vector Data Models Numerous differences in terms of:

accuracystoragefunctionalityefficiencytopologyrepresentation of PLPs vs CS

6

Page 3: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

3

Database ModelsDatabase ModelsAlso differences in how attribute data are stored

7

Raster Data ModelRaster Data ModelStudy area divided up into a regular array of

discrete grid cells of uniform shape and size

8

Raster Representation of PLPsRaster Representation of PLPs

9

Page 4: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

4

Thematic vs. DiscreteThematic vs. Discrete Thematic rasters - discrete representations

Continuous rasters - continuous representations

10

Sources of Raster DataSources of Raster DataCommon raster data sources include:

Imagery (satellite, aerial photography)Classified imageryDEMs, DSMs, DTMs, etc.Scanned products (e.g. maps)Interpolated or generated “surfaces"

11

Accuracy of Raster DataAccuracy of Raster DataDetermined by grid cell size

Referred to as resolutionUser defined

Sensor design

12

Page 5: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

5

Projecting Raster DataProjecting Raster DataGrid cells represent same location on the ground

Georeferencing aligns raster layer to real world coordinate system

13

14

Advantages of Raster ModelAdvantages of Raster Model Advantages:

Easy to understand

Mathematical operations

Representing continuous phenomena

15

Page 6: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

6

Disadvantages of Raster ModelDisadvantages of Raster Model Disadvantages:

Representing discrete phenomena

Data redundancy

No topology (for discrete data)

Spatial accuracy

16

Raster Data StructuresRaster Data Structures Method by which raster model is implemented in a

particular GIS software application

Typically, user is unaware of how data structure works

17

Cell by Cell

18

Page 7: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

7

Run Length Encoding8,8,10,4,1,2,0,20,3,1,3,0,20,2,1,5,0,10,2,1,5,0,10,2,1,5,0,10,1,1,6,0,10,1,1,6,0,10,8

19

Block Codes

1,1,2,4,6,2,7,24,1,1,525,1,3,3

20

Chain Codes0=N, 1=E, 2=S, 3=W

1,5,11,1,2,2,1,1,2,4,3,5,0,1,1,1,0,31,1,0,1,1,1,0,1

21

Page 8: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

8

0

1 2

30

1 2

30

1 2

3

Quad Tree

22

Mr SID

23

Vector Data Model

24

Page 9: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

9

Vector Data SourcesVector Data SourcesCommon vector data sources include:

NTDB data (National Topographic Database)MLI data (1:20k roads, hydrology, etc.)Tiger Data (U.S. Cesus)GPS or Total Station survey dataDigitized data

25

Vector Data ModelVector Data ModelAdvantages:

Representation of discrete objects

No data redundancy

Spatial accuracy

Topology

26

Vector Data ModelVector Data ModelDisadvantages:

Mathematical analysis

Not suitable for continuously distributed data

27

Page 10: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

10

Vector Data ModelsVector Data ModelsNon-topological

Topological

28

Vector Data ModelsVector Data ModelsToday there are two basic data models

Georelational Vector Data Model– Arc/Info coverages & ArcView shapefiles

Object-based Vector Data Model– ArcGIS geodatabases

29

40

Figure 3.2Based on the georelational data model, an ArcInfo coverage has two components: graphic files for spatial data and INFO files for attribute data. The label connects the two components.

GeorelationalData Model

30

Page 11: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

11

31

32

33

Page 12: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

12

34

Georelational Data ModelGeorelational Data ModelArcView shapefiles

Non-topological vector data model

Topology on the fly

Advantages

35

Object-based ModelObject-based ModelBased on object oriented programming theory

Objects:represent features

have defined properties and methods

can be organized into classes

36

Page 13: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

13

Geodatabase ModelGeodatabase Model Geospatial features represented using objects

Features have properties and methods

Features and attributes stored in single file/database

37

Binary field storing feature geometry

38

Soil Conservation Projects

Shoal Lake Study Area

RM Boundaries

Streams

Soil Type

39

Page 14: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

14

40

ArcGIS Geodatabase StructureArcGIS Geodatabase StructureAdvantages

Validation rules– Topology Rules– Attribute Domains– Relationship Rules– Connectivity Rules– Custom Rules

41

Raster – Vector ConversionRaster – Vector ConversionRasterization

Vectorization

42

Page 15: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

15

43

Why Convert?Why Convert?Rasterize

statistical or algebraic operations

Vectoriseextract thematic information from classified RS

imagery ( roads, rivers, land cover classes)scanned maps (ArcScan)

44

Why Integrate?Why Integrate?As an image background

Image hotlinks

To subset and classify imagery

Still seldom used in analysis together

45

Page 16: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

16

RasterizationRasterization specify output grid cell sizeattribute to be used as cell valuegrid cell size v. important

½ min. dimension of smallest feature inevitable distortion

46

ExamplesExamples Straight line rasterization Bresenham’s Line Algorithm

47

Polygon RasterisationPolygon RasterisationHow are boundary pixels handled?

Central Point

Dominant Unit

Ranked List

48

Page 17: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

17

Central Point

Dominant Unit

49

Scan Line CoherenceScan Line CoherenceCommon polygon rasterisation algorithm

Fill grid cells b/w boundary cells

50

VectorisationVectorisation V. imp for feature extraction

Scanned map products

RS imagery second largest source of geospatial data

51

Page 18: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

18

52

Scanning MapsScanning Maps Considerations:

Colour depth

Resolution

53

VectorizationVectorizationFor classified RS images

Reclassification

For scanned mapsImage preprocessingThresholdingBilevel images

54

Page 19: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

19

55

VectorizationVectorizationEditing/pre-processing boolean image

Remove gaps

Noise

Line thinning

56

57

Page 20: Topic 5: Raster and Vector Data Models - Brandon Universitypeople.brandonu.ca/wiseman/files/Topic-5-Raster-and-Vector-Data-… · Topic 5: Raster and Vector Data Models ... Vector

10/8/2014

20

VectorisationVectorisationVectorization of boolean image

Node detectionCleaning

Build topology

58

Midterm Exam to Here

THURSDAY, OCTOBER 30TH

Midterm Exam to Here

THURSDAY, OCTOBER 30TH

59