spatial databases as models of reality -...

30
presented by: Tim Haithcoat University of Missouri Columbia Compiled with assistance from: Timothy L. Nyerges University of Washington Spatial Databases as Models of Reality

Upload: others

Post on 20-Mar-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

presented by:

Tim HaithcoatUniversity of Missouri

Columbia

Compiled with assistance from:

Timothy L. NyergesUniversity of Washington

SpatialDatabases asModels of Reality

Page 2: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

2

Introduction

The real world is too complex for ourimmediate and direct understanding

We create “models” of reality that are intendedto have some similarity with selected aspects ofthe real world

Databases are created from these “models” as afundamental step in coming to know the natureand status of that reality

Page 3: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

3

Definition

Spatial Database: a collection of spatiallyreferenced data that acts as a model of reality– A database is a model of reality in the sense that the

database represents a selected set or approximation ofphenomena

– These selected phenomena are deemed important enough torepresent in digital form

– The digital representation might be for some past, present orfuture time period (or contain some combination of severaltime periods in an organized fashion)

Page 4: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

4

StandardsMany of the definitions in this presentationhave been standardized by the proposed USNational Digital Cartographic Standard(DCDSTF, 1998)– These standards have been developed to provide a

nationally uniform means for portraying andexchanging digital cartographic data

– These cartographic standards will form part of alarger standard being developed for the digitalrepresentation of all earth science information

Page 5: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

5

Database Content & an Organization’s MissionORGANIZATION MANDATES

Organizations have mandates to perform certain tasksthat carry out their missions– Mandates are the reasons they exist as organizations

Organizations have different needs for data dependingon their mandates and the activities required to carryout these mandates– Mandates often help identify & define entities of interest,

requiring a certain view of the world– What might seem at first glance to be the same data need in

two different organizations can actually be quite differentwhen looked at in more detail

• example: wildlife and forestry departments both needinfo on vegetation, but the detail needed is different

Page 6: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

6

Database Content & an Organization’s MissionDATABASE CONTENTS

Example: TransportationHighway data from the different points of view:

We would expect transportation’s need for highway data to bemore detailed than would the natural resource organization’s

A transportation organization’smain interest is in identifyinghighways used by the public.(The database might also be

used to store detailed highwaycondition and maintenance

information.)

A natural resourceorganization mightonly need logging

roads and theconnecting access to

state highways.

Page 7: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

7

Database Content & an Organization’s MissionDATABASE CONTENTS

Example: WetlandsWetland data from the different points of view:

A taxing authoritymight define a wetlandto be a “wasteland” and

of very little value tosociety. (That

description mightrequire only theboundary of the

“wasteland” in thedatabase.)

An ecological organizationmight define wetlands as a

natural resource to bepreserved and restrictedfrom developed. (That

perspective might requireconsiderable detail fordescribing the area’sbiology & physical

resources.)

Page 8: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

8

Database Content & an Organization’s MissionDATABASE DESIGN

In each organization only certain phenomenaare important enough to collect and represent ina database– The data collection process involves a sampling of

geographic reality to determine the status of thatreality(whether past, present or future)

Identifying the phenomena and then choosingan appropriate data representation for them ispart of a process called database design.

Page 9: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

9

Fundamental Database Elements

Elements of reality modeled in a GIS databasehave two identities:– Entity: the element in reality

– Object: the element as it is represented in the database

A third identity that is important in cartographicapplications is the symbol that is used to depictthe object/entity as a feature on a map or othergraphic display

• These definitions are based on those defined by the DCDSTF, 1998

Page 10: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

10

EntityA phenomenon of interest in reality that is notfurther subdivided into phenomena of the samekind– Example: a city could be considered an entity and

subdivided into component parts, but these partswould NOT be called cities,they would be districts,neighborhoods or the like

– Example: a forest could be subdivided into smallerforests

Page 11: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

11

ObjectA digital representation of all or part of an entity

The method of digital representation of aphenomenon varies according to scale, purposeand other factors– Example: a city could be represented geographically

as a point if the area under consideration werecontinental in scale

– the same city could be geographically represented asan area if dealing with a geographic database for astate or a county

Page 12: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

12

Entity TypesSimilar phenomena to be stored in a databaseare identified as entity types

An entity type is any grouping of similarphenomena that should eventually getrepresented and stored in a uniform way (i.e.,roads, rivers, elevations, vegetation)– Provides convenient conceptual framework for

describing phenomena at a general level

– Organizational perspective influences thisinterpretation to a large degree

Page 13: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

13

Entity Types ~ Continued

Precise definitions should be generated for eachentity type– Helps with identifying overlapping categories of

information

– Aids in clarifying the content of the database– The US National Standard for Digital Cartographic Data,

Vol. 2, includes a large number of definitions for entity types.

Examples:

Page 14: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

14

Entity Types ~ Continued

First step in database design: Selection anddefinition of entity types to be included– This is guided by the organization’s mandate and

purpose of the database

– This framework can be as important as the actualdatabase because it guides the development

Second step in database design: Choose anappropriate method of spatial representationfor each of the entity types

Page 15: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

15

Spatial Object Type

The digital representation of entity types in aspatial database requires the selection ofappropriate spatial object types

The National Standard for Digital CartographicDatabases specifies a basic list of spatial objectsand their characteristics

This classification is based on the followingdefinition of spatial dimensions (next slide).

Page 16: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

16

Spatial Dimensions

O-D: an object that has a position in space, but no length– A point

1-D: an object having a length– Composed of 2 or more 0-D objects– A line

2-D: an object having a length and width– Bounded by at least three 1-D line segment objects– An area

3-D: an object having a length, width, and height/depth– Bounded by at least four 2-D objects– A volume

Page 17: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

17

Basic0-DimensionalObject Types

Point

Node*

Page 18: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

18

Basic1-DimensionalObject Types

Line

Line Segment

String

Arc

Link

Direct link

Chain

* ** *

**

Page 19: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

19

Basic1-DimensionalObject Types(Continued)

Ring created fromstring(s)

Ring created fromarc(s)

Ring created fromlink(s)

Ring created fromChain(s)

**

** *

* *

* *

Page 20: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

20

Basic2-DimensionalSpatial Object

Types

Area

Interior area

Simple Polygon

Complex Polygon

Pixel

Grid Cell

Page 21: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

21

Attributes

An attribute is a characteristic of an entityselected for representation

Usually non-spatial– Though some may be related to the spatial character

of the phenomena under studyExamples: area, perimeter

Page 22: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

22

Attribute ValueThe actual value of the attribute that has beenmeasured (sampled) and stored in the database

An entity type is almost always labeled and known byattributes– Example: a road usually has a name and is identified

according to its class (i.e., alley, freeway)

Attributes values often are conceptually organized inattribute tables which list individual entities in therows and attributes in the column– Entries in each cell of the table represent the attribute value

of a specific attribute for a specific entity• Note: attribute table is not an official DCDSTF term

Page 23: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

23

Database Model

Is a conceptual description of a databasedefining entity type and associated attributes– Each entity type is represented by specific spatial

objects

Examples of database models can be groupedby application area– Example: transportation applications require

different database models than to natural resourceapplications

Page 24: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

24

Database Model ~ ContinuedAfter the database is constructed, the databasemode is a view of the database which the systemcan present to the user– Other views can be presented, but this one is likely

useful because it was important in the conceptual designExample: the system can model the data in vector formbut generate a raster for purpose of display to the user

– Need not be related directly to the way the data areactually stored in the database

Example: census zones may be defined as beingrepresented by polygons, but the program may actuallyrepresent the polygon as a series of line segments

Page 25: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

25

Spatial objects can be grouped into layers, alsocalled overlays, coverages or themes

One layer may represent a single entity type ora group of conceptually related entity types– Example: a layer may have only stream segments or

may have streams, lakes, coastline and swamps

– Options depend on the system as well as thedatabase model

– Some spatial databases have been built bycombining all entities into one layer

Layers

Page 26: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

26

Steps in Database DesignConceptual– Software and hardware independent– Describes and defines included entities– Identifies how entities will be represented in the

databasei.e., selection of spatial objects - points, lines, areas, raster cells

– Requires decisions about how real-worlddimensionality and relationships will be represented

These can be based on the processing that will be done on theseobjectsi.e., should a building be represented as an area or a point?i.e., should highway segments be explicitly linked

in the database?

Page 27: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

27

Steps in Database Design ~ Continued

Logical– Software specific but hardware independent

– Sets out the logical structure of the databaseelements, determin3ed by the database managementsystem used by the software

Physical– Both hardware and software specific

– Requires consideration of how files will bestructured for access from the disk

Page 28: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

28

Desirable Database CharacteristicsDatabase should be:

Contemporaneous: should contain informationof the same vintage for all its measured variables

As detailed as necessary for the intendedapplications– The categories of information & subcategories within

them should contain all of the data needed to analyzeor model the behavior of the resource usingconventional methods & models

Positionally accurate

Page 29: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

29

Desirable Database Characteristics ~ Continued

Database should be:

Exactly compatible with other information thatmay be overlain with it

Internally accurate, portraying the nature ofphenomena without error: requires cleardefinitions of phenomena that are included

Readily updated on a regular schedule

Accessible to whoever needs it

Page 30: Spatial Databases as Models of Reality - MSDISmsdis.missouri.edu/resources/intro_to_gis/pdf/Spatial.pdf · Spatial Databases as Models of Reality. 2 Introduction The real world is

30

Issues in Database DesignAlmost all entities of geographic reality have at least3-dimensional spatial character, but not all dimensionsmay be needed– Example: highway pavement has a depth which might

be important, but is not as important as the width,which is not as important as the length

Representation should be based on types ofmanipulations that might be undertakenMap-scale of the source document is important inconstraining the level of detail represented in adatabase– Example: on a 1:100,000 map individual houses or fields are not

visible