introdução to geoinformatics: geometries. vector model lines: fundamental spatial data model lines...

51
Introdução to Geoinformatics: Geometries

Upload: macie-bushnell

Post on 01-Apr-2015

222 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Introdução to Geoinformatics: Geometries

Page 2: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector Model

Lines: fundamental spatial data model

• Lines start and end at nodes• line #1 goes from node #2 to node #1

• Vertices determine shape of line• Nodes and vertices are stored as coordinate pairs

node

node

vertex

vertex

vertex

vertex

Page 3: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector Model

• Polygon #2 is bounded by lines 1 & 2• Line 2 has polygon 1 on left and polygon 2 on right

Polygons : fundamental spatial data model

Page 4: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector Model

• less complex data model• polygons do not share bounding lines

Shapefile polygon spatial data model

Page 5: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector geometries

Page 6: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector geometries

Polygons

Arcs and nodes

Page 7: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector geometries

Points

Island

Page 8: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector geometries

fonte: Universidade de Melbourne

Page 9: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector geometries: the OGC model

fonte: John Elgy

Page 10: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Para que serve um polígono?

Setores censitários em São José dos Campos

Page 11: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vectors and table

Duality between entre location and atributes

Lots

geoid owner cadastral ID

22 Guimarães Caetés 768

address

22250186

23 Bevilácqua São João 456 110427

24 Ribeiro Caetés 790 271055

23

Page 12: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Duality Location - Attributes

Praia Praia BravaBrava

Praia de Praia de BoiçucangaBoiçucanga

Exemplo de Unidade Territorial Básica - UTB

Page 13: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Vector and raster geometries

Raster

Vector

fonte: Mohamed Yagoub

Page 14: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Raster geometry

célula

Extent

Resolution

source: Mohamed Yagoub

Page 15: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Raster geometries (cell spaces)

Regular space partitions

Many attributes per cell

Page 16: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Cell space

Page 17: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

2500 m 2.500 m e 500 m

Cellular Data Base Resolution

Page 18: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Rasters or vectors?

source: Mohamed Yagoub

Page 19: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Raster geometry

fonte: Mohamed Yagoub

Page 20: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

The mixed cell problem

fonte: Mohamed Yagoub

Page 21: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Cells or vectors?

Page 22: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Cells or vector?

Page 23: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Cells or vectors? (RADAM x SRTM)

Page 24: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Cells or vectors? (RADAM x LANDSAT)

Page 25: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Raster or vectors?

“Boundaries drawn in thematic maps (such as soil, vegetation, and geology) are rarely accurate. Drawing them as thin lines often does not adequately represent their character. We should not worry so much about the exact locations and elegant graphical representations.” (P. A. Burrough)

Page 26: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

isolines TIN

2,5 D geometries

Page 27: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

2,5 D geometries

Grey-coloured relief

Shaded relief

Page 28: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

2,5D geometries

Regular grid

Page 29: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

2,5 D geometries

TIN (triangular irregular networks)

Page 30: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Conversion btw geometries

Page 31: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Point in Polygon = O(n)

Geometrical operations

Page 32: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Line in Polygon = O(n•m)

Geometrical operations

Page 33: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Topological relationships

Page 34: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Topological relationships

Disjoint

Point/Point

Line/Line

Polygon/Polygon

Page 35: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Topological relationships

Touches

Point/Line

Point/Polygon

Line/Line

Line/Polygon

Polygon/Polygon

Page 36: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Topological relationships

Crosses

Point/Line

Point/Polygon

Line/Line

Line/Polygon

Page 37: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Topological relationships

Overlap

Point/Point

Line/Line

Polygon/Polygon

Page 38: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Topological relationships

Within/contains

Point/Point

Point/Line

Point/Polygon

Line/Line

Line/Polygon

Polygon/Polygon

Page 39: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Topological relationships

Equals

Point/Point

Line/Line

Polygon/Polygon

Page 40: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Interior: A◦

Exterior: A-

Boundary: ∂A

Topological relations

Page 41: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Topological Concepts

Interior, boundary, exterior Let A be an object in a “Universe” U.

A

U Green is A interior

Red is boundary of A

Blue –(Green + Red) isA exterior

)( oA

)( A

)( A

Page 42: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

4-intersections

disjoint contains inside equal

meet covers coveredBy overlap

Page 43: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

OpenGIS: 9-intersection dimension-extended topological operations

Relation

disjoint meet overlap equal

9-intersection

model

111

100

100

111

110

100

111

111

111

100

010

001

)()()(

)()()(

)()()(

BABABA

BABABA

BABABA

o

o

oooo

Page 44: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

44

Example

Consider two polygons A - POLYGON ((10 10, 15

0, 25 0, 30 10, 25 20, 15 20, 10 10))

B - POLYGON ((20 10, 30 0, 40 10, 30 20, 20 10))

Page 45: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

45

I(B) B(B) E(B)

I(A)

B(A)

E(A)

9-Intersection Matrix of example geometries

Page 46: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

Specifying topological operations in 9-Intersection Model

Question: Can this model specify topological operation between a polygonand a curve?

Page 47: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

9-Intersection Model

Page 48: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to
Page 49: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

49

DE-9IM: dimensionally extended 9 intersection model

Page 50: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

50

I(B) B(B) E(B)

I(A)

B(A)

E(A)

9-Intersection Matrix of example geometries

Page 51: Introdução to Geoinformatics: Geometries. Vector Model Lines: fundamental spatial data model Lines start and end at nodes line #1 goes from node #2 to

51

DE-9IM for the example geometries

I(B) B(B) E(B)

I(A) 2 1 2

B(A) 1 0 1

E(A) 2 1 2