Intro to GIS | Summer 2012 Spatial Data Models

55
Intro to GIS | Summer 2012 Spatial Data Models

Transcript of Intro to GIS | Summer 2012 Spatial Data Models

Page 1: Intro to GIS | Summer 2012 Spatial Data Models

Intro to GIS | Summer 2012

Spatial Data Models

Page 2: Intro to GIS | Summer 2012 Spatial Data Models

DATA MODELS

Page 3: Intro to GIS | Summer 2012 Spatial Data Models

Models & Representations

Why do we need models?

• The world is infinitely complex

• A computer is finite

• A map is finite

We can create digital representations of some

limited part of the earth’s surface

There is a simplified relationship between the digital

model and the feature being represented

Page 4: Intro to GIS | Summer 2012 Spatial Data Models

Data Models

• Vector

• Raster

• Network

• TIN

Page 5: Intro to GIS | Summer 2012 Spatial Data Models

VECTOR DATA

Page 6: Intro to GIS | Summer 2012 Spatial Data Models

Vector

• Objects are defined by points, lines connecting the

points, or polygons bounded by lines

• Each point has x/y values (can also be a z component)

• Each object, or “Feature”, is a single row in the GIS

database

• “Attributes” are information associated with features;

each attribute is a column in the database

• Good way to represent Discrete objects, e.g. buildings

(“discrete” = constituting a separate, distinct entity)

Page 7: Intro to GIS | Summer 2012 Spatial Data Models

Vector Data Terminology

• points: features defined by a single x/y coordinate

• vertices: points defining a line feature

• nodes: vertices representing the start and end of a line

feature (topologic vector model)

• polyline: feature comprised of a series of straight line

segments or mathematical curves

• polygon: feature represented by a “closed” series of

polylines (a.k.a. “areas”)

Page 8: Intro to GIS | Summer 2012 Spatial Data Models

Reality

Representation

Page 9: Intro to GIS | Summer 2012 Spatial Data Models

Vector Data Formats

• shapefiles

• geodatabase (enterprise, file-based, personal)

• coverages

• CAD files (dwg, dgn, dxf)

Page 10: Intro to GIS | Summer 2012 Spatial Data Models
Page 11: Intro to GIS | Summer 2012 Spatial Data Models
Page 12: Intro to GIS | Summer 2012 Spatial Data Models
Page 13: Intro to GIS | Summer 2012 Spatial Data Models
Page 14: Intro to GIS | Summer 2012 Spatial Data Models

Types of Vector Data

• Simple

• Topological

• Object

Page 15: Intro to GIS | Summer 2012 Spatial Data Models

Simple Data Model

Page 16: Intro to GIS | Summer 2012 Spatial Data Models

Shapefiles

Collections of point,

line, or polygon

features.

They are simple vector

features.

Page 17: Intro to GIS | Summer 2012 Spatial Data Models

Shapefiles

.shp - feature geometry

.dbf - attribute table

.shx - index file

.prj – projection

.sbx and .sbn – spatial index

.ain and .aih – attribute index

Page 18: Intro to GIS | Summer 2012 Spatial Data Models

Topological Data

• Have explicit (i.e. unambiguous, defined)

spatial relationships

– Connectivity: Lines that cross or touch are

connected with each other

– Planar: Lines and polygons cannot overlap

– Contiguity: polygons that share a border

are contiguous and adjacent (i.e. don’t

overlap and are next to each other)

Page 19: Intro to GIS | Summer 2012 Spatial Data Models

Topology

Page 20: Intro to GIS | Summer 2012 Spatial Data Models

Coverages

Topological vector features

Stored in .e00 file format (aka “Interchange files” or ”Export files)

Shapefiles can be converted into coverages, but steps must be taken to “build”, or define, topology

Page 21: Intro to GIS | Summer 2012 Spatial Data Models

Object Data Model

• A collection of geographic objects and relationships

between those objects.

• An “object” feature is comprised of geometry, attributes,

and behavior.

• Properties: define the object (e.g. “bike lane”) and its

representation (point/line/polygon), can vary by scale

• Methods: define the behavior of an object (i.e., a bike

lane is 4’ wide and must be within a right-of-way)

Page 22: Intro to GIS | Summer 2012 Spatial Data Models

Vector Data Model • Advantages

– Geometry independent of data model

– Vector is “correcter” (i.e. more accurate)

– More intuitive

– Analytical capabilities

– Easy to edit

– Better cartography

– Include topology

• Disadvantages

– Complex features

– Time consuming to design

– Software dependent

Page 23: Intro to GIS | Summer 2012 Spatial Data Models

RASTER DATA

Page 24: Intro to GIS | Summer 2012 Spatial Data Models

Raster Data Model

• Contains an array of cells (a.k.a., pixels) that are

organized into columns and rows

• Each pixel is a single row in the GIS database

• Attributes are associated with each cell

• Used mostly for Continuous data, e.g. rainfall

• Can also represent discrete data

Page 25: Intro to GIS | Summer 2012 Spatial Data Models
Page 26: Intro to GIS | Summer 2012 Spatial Data Models
Page 27: Intro to GIS | Summer 2012 Spatial Data Models
Page 28: Intro to GIS | Summer 2012 Spatial Data Models
Page 29: Intro to GIS | Summer 2012 Spatial Data Models

Examples of Raster Data

• ESRI Grid

• ESRI Geodatabase (file-based, enterprise)

• ERDAS Imagine (.img)

• MrSID (.sid)

• Other image formats (.tif, .jpg)

Page 30: Intro to GIS | Summer 2012 Spatial Data Models
Page 31: Intro to GIS | Summer 2012 Spatial Data Models
Page 32: Intro to GIS | Summer 2012 Spatial Data Models
Page 33: Intro to GIS | Summer 2012 Spatial Data Models

Raster Data Model

• Advantages

– Simple data structure

– Large # of common, software-independent

formats

– Faster processing times

• Disadvantages

– Large datasets

– Cartographic limitations

– Limited analytical capability

Page 34: Intro to GIS | Summer 2012 Spatial Data Models

NETWORK DATA

Page 35: Intro to GIS | Summer 2012 Spatial Data Models

Network Data Model

• A system of points and lines defining how flows move

through a network, e.g. streams or highways

• Linear Referencing: features are stored as distances

along a network (such a feature is aka an event)

Page 36: Intro to GIS | Summer 2012 Spatial Data Models
Page 37: Intro to GIS | Summer 2012 Spatial Data Models

TIN DATA

Page 38: Intro to GIS | Summer 2012 Spatial Data Models

TIN Data Model

• Triangulated Irregular Network

• Created from a series of points with x/y/z coordinates (3D)

• Points are connected by lines to form triangles

• Used to represent continuous surfaces, e.g. elevation

• Best used when the density of data points varies

(i.e. irregular spacing of data points)

Page 39: Intro to GIS | Summer 2012 Spatial Data Models
Page 40: Intro to GIS | Summer 2012 Spatial Data Models

DATA SOURCES

Page 41: Intro to GIS | Summer 2012 Spatial Data Models

Where to find spatial data

• Directly from federal agencies

• Directly from state agencies

• Directly from local governments (sporadic)

• Directly from non-profits

• Clearinghouses (central locations for distributing GIS data)

• Geolibraries

• Commercial sites

• www.christinafriedle.com/data-links.html

Page 42: Intro to GIS | Summer 2012 Spatial Data Models

Interactive Maps: Portland TriMet

ride.trimet.org

Page 43: Intro to GIS | Summer 2012 Spatial Data Models

maps.massgis.state.ma.us/map_ol/oliver.php

Interactive Maps: OLIVER – MassGIS’s online mapping tool

Page 45: Intro to GIS | Summer 2012 Spatial Data Models

www.stateofthesalmon.org/resources/maps/

Static (Paper) Maps: State of the Salmon

Page 46: Intro to GIS | Summer 2012 Spatial Data Models

www.civicapps.org/datasets

GIS Datasets: City of Portland CivicApps

Page 47: Intro to GIS | Summer 2012 Spatial Data Models

GIS Datasets: State of the Salmon

www.stateofthesalmon.org/resources/sosdb.php

Page 48: Intro to GIS | Summer 2012 Spatial Data Models

Non-Spatial Data: Nation Master

www.nationmaster.com

Page 49: Intro to GIS | Summer 2012 Spatial Data Models

Non-Spatial Data: US Census Bureau

Page 50: Intro to GIS | Summer 2012 Spatial Data Models

METADATA data about data

Page 51: Intro to GIS | Summer 2012 Spatial Data Models

What’s in your GIS data?

• Nutrition labels are required on

packaged food – they tell you everything

you need to know to make an informed

decision about whether or not you’d like

to consume the food

• Metadata tells you whether the GIS data

is junk food, or a healthy nutritious snack

• Nutrition labels do not tell you how to

prepare the food – Likewise, metadata

does not tell you how to use the GIS data

Page 52: Intro to GIS | Summer 2012 Spatial Data Models

What can Metadata tell me?

• Name of dataset

• Spatial extent

• Coordinate system

• Attribute descriptions

• How and When the dataset was created

• Who to contact for further information

Page 53: Intro to GIS | Summer 2012 Spatial Data Models

Metadata – Summary Display

Page 54: Intro to GIS | Summer 2012 Spatial Data Models

Metadata – Detailed Display

Page 55: Intro to GIS | Summer 2012 Spatial Data Models

Accessing Metadata

• ArcCatalog: “Description” tab

How to change style of displayed metadata?

Customize > Options > Metadata > Metadata Style

• ArcMap: Open ArcCatalog window, right-click on

layer name, select “Item Description…”

• README.txt file that often arrives with

downloaded GIS data