copyright, 1998-2012 © qiming zhou geog3600. geographical information systems geographical query

26
Copyright, 1998-2012 © Qiming Zhou # # # # # # # # # # # # # # # # # # # # TP U -b ased P op u latio n D e ns ity 0 - 12000 12000 - 35200 35200 - 59200 59200 - 102400 102400 - 193700 D is tan ce Z on e s to H o spita l 1 2 3 P o p u lation D en sity 0 - 12700 12700 - 36900 36900 - 68700 68700 - 110700 110700 - 193700 # Su rveyed H osp itals 6 0 6 12 18 24 K ilo m eters # # # # # # # # # # # # # # # # # # # # S N E W H ong K ong H ospitalC overage GEOG3600. Geographical Information Systems Geographical Query

Upload: zaria-cator

Post on 01-Apr-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Copyright, 1998-2012 © Qiming Zhou

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

TPU-based Population Density0 - 1200012000 - 3520035200 - 5920059200 - 102400102400 - 193700

Distance Zones to Hospital123

Population Density0 - 1270012700 - 3690036900 - 6870068700 - 110700110700 - 193700

# Surveyed Hospitals

6 0 6 12 18 24 Kilometers

#

###

#

#

#

#

#

#

#

##

# #

#

#

#

#

#

S

N

EW

Hong Kong Hospital Coverage

GEOG3600. Geographical Information Systems

Geographical Query

Page 2: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 2

Geographical Query

What is geographical query? Queries and reasoning Measurements

Page 3: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 3

What is geographical query? Geographical query is the most basic of

analysis operations. To answer simple questions posed by the user. No change occur in the database. No new data are produced.

The operations vary from simple to complex, well-defined queries.

Query and reasoning Measurements: simple numerical values that

describe aspects of geographical data.

Page 4: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 4

Queries and reasoning

Selective map display Spatial query Attribute query Spatial relationship query Advanced SQL query

Page 5: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 5

Selective map display Displays the locations or all objects using points and

arcs, with or without background. Attributes and entity types can be displayed by

varying colours line patterns and point symbols. Relational query

Different systems use different ways of formulating queries. Structured Query Language (SQL) is an attempt to provide a “standard” way in querying data base.

The user can select object interested and produce maps.

Selective map display

Page 6: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 6

Selective map display (1)

Page 7: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 7

Selective map display (2)

Page 8: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 8

Selective map display (3)

Page 9: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 9

Selective map display (4)

Page 10: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 10

Selective map display (5)

Page 11: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 11

Selective map display (6)

Page 12: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 12

Spatial query - point

Page 13: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 13

Spatial query - line

Page 14: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 14

Spatial query - area

Page 15: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 15

Spatial query with background

Page 16: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 16

Spatial query with ‘links’

Page 17: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 17

Attribute query

Page 18: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 18

Attribute query

Page 19: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 19

Spatial relationship query

Page 20: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 20

Extended SQL query

Page 21: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 21

Measurements

Distance and length Area Shape

Page 22: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 22

Distance and length(x1, y1)

(x2, y2) 2122

12 yyxxD

Computation of line length

The poly line representation of a smooth curve tends to be shorter.

The length of a path as travelled on Earth’s surface may be longer than its horizontal projection.

Page 23: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 23

Shape of an areaMeasure the shape of zones in terms of their proximity to a perfect circular shape

For each zone in Xmeasure the area of the zone (C)measure the perimeter of the zone (P)

C

Pconvexity

convexity

aU

CircleU = 1

54.322

2

R

R

C

Pconvexitya

circle

circlecircle

Any other shape0 < U < 1

Page 24: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 24

Continents and islandsDetermine the shape of region by analysing the number of enclosed islands and number of zones which make up the region itself. If the number of zones is greater than the number of enclosed islands, then the region is closer to the shape of “islands”. Otherwise, when the number of enclosed islands is greater than the number of zones, then the region is closer to the shape of “continents”.

Continents Islands

Page 25: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 25

The Euler numberAn area is closer to either a continent or island shape can be determined by it Euler number. The Euler number is calculated by subtract the number of islands which make up the region itself from the number of enclosed islands by that region. If the Euler number is greater than 0, the region is closer to a “continent”, while the Euler number is less than 0 then the region is closer to “islands”.

For each region in Xcount acount bU = a - b

where

a = number of enclosed islands

b = number of islands which make up the region itself

AB

For A:a = 0; b = 5; U = -5For B:a = 3; b = 1; U = 2

Page 26: Copyright, 1998-2012 © Qiming Zhou GEOG3600. Geographical Information Systems Geographical Query

Geographical Query 26

Summary

Geographical query is the most frequently used operation in GIS.

Geographical query includes spatial, attribute and spatial relationship queries.

The purpose of geographical query is to retrieve geographical information from GIS based on user-defined criteria.

Spatial measurements can be made in GIS including distance, area and shapes.