+ All Categories
Home > Documents > Lecture 2 Introduction to GIS, Data models, Data structures.

Lecture 2 Introduction to GIS, Data models, Data structures.

Date post: 03-Jan-2016
Category:
Upload: evelyn-hodges
View: 228 times
Download: 3 times
Share this document with a friend
42
Lecture 2 Introduction to GIS, Data models, Data structures
Transcript
Page 1: Lecture 2 Introduction to GIS, Data models, Data structures.

Lecture 2

Introduction to GIS, Data models, Data structures

Page 2: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 3: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 4: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 5: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 6: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 7: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 8: Lecture 2 Introduction to GIS, Data models, Data structures.

REPRESENTATION AND DATA STRUCTURESCoordinates and Attributes

Page 9: Lecture 2 Introduction to GIS, Data models, Data structures.

Common Data Models

Page 10: Lecture 2 Introduction to GIS, Data models, Data structures.

REPRESENTATION AND

DATA STRUCTURES

•Most common data

models define thematic layers

•Typically, layers, one

layer for each distinct view of a theme

Page 11: Lecture 2 Introduction to GIS, Data models, Data structures.

Part 1: Coordinates (Cartesian)

Page 12: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 13: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 14: Lecture 2 Introduction to GIS, Data models, Data structures.

Spherical coordinate can be expressed two ways

e.g.,

44o or

44.51o

30’ 35”(DMS)

(DD)

Page 15: Lecture 2 Introduction to GIS, Data models, Data structures.

We Can Convert

Page 16: Lecture 2 Introduction to GIS, Data models, Data structures.

Three Types of Vector Features

Page 17: Lecture 2 Introduction to GIS, Data models, Data structures.

One-to-one,because of Attributes

Page 18: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 19: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 20: Lecture 2 Introduction to GIS, Data models, Data structures.

Enforced Uniformity

Page 21: Lecture 2 Introduction to GIS, Data models, Data structures.

Planar Topology – no overlaps

Page 22: Lecture 2 Introduction to GIS, Data models, Data structures.

On a blank sheet of paper, draw a

topologically correct (not necessarily

geometrically correct) rendition of the 6

coastal (name counties, if you can).

Identify all the nodes.

Create a table corresponding to the

geographic data you drew (make the

linkages clear).

Include an attribute for county area, in

square kilometers, and square miles

Page 23: Lecture 2 Introduction to GIS, Data models, Data structures.

Rasters – Fixed Cell Size, Grid Orientation

Page 24: Lecture 2 Introduction to GIS, Data models, Data structures.

Connecting data, contrast with vector

Page 25: Lecture 2 Introduction to GIS, Data models, Data structures.

Raster, one-to-one correspondence, how

many rows in the attribute table?

Page 26: Lecture 2 Introduction to GIS, Data models, Data structures.

Number of cells = 100!Raster, one-to-one correspondence, rarely used

Page 27: Lecture 2 Introduction to GIS, Data models, Data structures.

Many-to-one much more common, to tame the attribute table

Page 28: Lecture 2 Introduction to GIS, Data models, Data structures.

How can we mimic a vector one-to-one relationship between individual polygon codes and table rows, when using a raster, without keeping track of individual cells?

Page 29: Lecture 2 Introduction to GIS, Data models, Data structures.

Raster – The Mixed Pixel Problem

Landcover map – Two classes, land or water

Cell A is straightforward

What category to assignFor B, C, or D?

Page 30: Lecture 2 Introduction to GIS, Data models, Data structures.
Page 31: Lecture 2 Introduction to GIS, Data models, Data structures.

Resampling Ambiguity

Page 32: Lecture 2 Introduction to GIS, Data models, Data structures.

Changing Resolution (resampling) with Categorical

Data Assignment Method Matters!

Page 33: Lecture 2 Introduction to GIS, Data models, Data structures.

Orientation and/or Cell Size May Differ

Page 34: Lecture 2 Introduction to GIS, Data models, Data structures.

Resampling - Distance-weighted averagingcontinuous data:

bilinear interpolation

z

Page 35: Lecture 2 Introduction to GIS, Data models, Data structures.

No Decision is Final – We Can Convert

Page 36: Lecture 2 Introduction to GIS, Data models, Data structures.

Data and File Structures

Data are stored as binary numbers

Bits are 0 or 1

Bytes are 8 bits

Data (e.g., raster cells)are often references as 1 byte, two byte, etc.

Page 37: Lecture 2 Introduction to GIS, Data models, Data structures.

Cells Have a Type, Size

Type – e.g., Real, unsigned integer, signed integer, text

Size – 8 bit, 32 bit, 64 bit, long, short, character width

These control the size of the datasets, and type of data that may be stored

Mixing types, sizes, often requires some care

Page 38: Lecture 2 Introduction to GIS, Data models, Data structures.

Raster data set properties

We can store a number upTo 2 or4,293,967,296 in a cell

32

Page 39: Lecture 2 Introduction to GIS, Data models, Data structures.

Data andFile Structures

Data often have specificorganization to

•reduce size

•speed access

•ease updates

Page 40: Lecture 2 Introduction to GIS, Data models, Data structures.

Example: ESRI ShapefilesLandcover dataset, wash_lcis a cluster of files,

wash_lc.shp - containing the coordinates wash_lc.dbf - containing the attributes wash_lc.shx - containing linkages, other infowash_lc.prj - optional, containing projection information wash_lc.sbn - an optional indexing file

Thursday, August 22, 13

Page 41: Lecture 2 Introduction to GIS, Data models, Data structures.

Data and File Structures CompressionReducing size – e.g., raster run-length

coding

Page 42: Lecture 2 Introduction to GIS, Data models, Data structures.

Rasters – Discrete or Continuous

Features Can we compress either

without loss?discretecontinuous


Recommended