Docsity

Geographic Data Models: Spatial Position & Attributes - Prof. Bandana Kar, Study notes of Geography

Toggle sidebar
bg1
1
Data Models and Structures
What characteristics of geographic
features must we represent?
Spatial Position
Attributes
SPATIAL DATA
ATTRIBUTE DATA
C) 2006 M.E. Hodgson
Data Models and Structures
We must “generalize” our cognition of reality
when creating a digital representation.
C) 2006 M.E. Hodgson
Entity-Object Relationship
We approximate entities with objects
This approximation is biased
Terms
Entities - "things" in the real world we
represent (Rivers, buildings, soil types,
wetlands)
Objects - our representation in a data
model
Entity
Object
Data Models and Structures
1.2 , 4.7
5.8 , 3.6
8.9 , 7.2
.
.
Real World
Data Model Data
Structure
An abstraction of relevant
phenomena and
properties
phenomena that exist computer
representation
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Geographic Data Models: Spatial Position & Attributes - Prof. Bandana Kar and more Study notes Geography in PDF only on Docsity!

Data Models and Structures

What characteristics of geographic features must we represent? Spatial Position Attributes SPATIAL DATA ATTRIBUTE DATA C) 2006 M.E. Hodgson

Data Models and Structures

We must “generalize” our cognition of reality when creating a digital representation. C) 2006 M.E. Hodgson

Entity-Object Relationship

We approximate entities with objects

This approximation is biased

Terms

Entities - "things" in the real world we

represent ( Rivers, buildings, soil types,

wetlands )

Objects - our representation in a data

model

Entity Object

Data Models and Structures

1.2 , 4. 5.8 , 3. 8.9 , 7. . . Real World Data Model (^) Data Structure An abstraction of relevant phenomena and properties phenomena that exist computer representation

Model versus Structure

Data Model: The logical means of organizing data for use in an information system. Examples: Vector or Raster data model Data Structure (File Type): The logical and physical means by which a map feature or an attribute is digitally encoded. Examples: ArcGIS Shape File, ERDAS image file A B C C) 2006 M.E. Hodgson Data model typically includes at least two parts – Coordinate data - pairs or triplets of numbers that define location Attribute data - text, numbers, images, or other “non-spatial” data Spatial Data Model: objects in a spatial database and relationship among them

Object Representation

  • Most common data models define thematic layers
  • Typically, one layer for each distinct view of a theme La y er 1 La y er 2 La y er 3 Ea r t h su r f a c e e.g., soils, roads, or elevation^ surface features, or themes, layers which represent specific Geographic data are often in

Common Spatial Data Models

Points Line Area Vector Raster Points Line Area ( x,y ) X Y

Vector Data Model: Dimensionality

C) 2006 M.E. Hodgson

Type of Vector Data Models: Spaghetti

  • Early model
  • Lines with origin and

destination, inter-mediary

vertices

  • No information about inter-

sections

  • Data is unstructured
  • Ineffective and inefficient for

spatial analysis

  • Records topological characteristics
  • Topology:
    • Geometric properties that do not change with change in form e.g. adjacency, connectivity
  • Stores relational information between points, lines, and polygons
  • Enhances data representation
  • Enhances network analysis
  • Computationally expensive
  • Data has to be clean Type of Vector Data Models: Topological
  • Features in a 2-d format
  • Must include intersection nodes
  • No overlaps Type of Vector Data Models: Topological
  • Features in a 2-d format
  • No information about intersection
  • No overlaps Type of Vector Data Models: Spaghetti

Topological Data Model How Attribute is Stored?

Examples of a Flat File The GIS Attribute Data Model as a Flat File Characteristics of Fields

  • Name
  • Type
  • Scale
  • Precision
  • „Unknown‟ versus „0‟ values
  • Alias
  • Key C) 2006 M.E. Hodgson Data definition module Data entry module Data dictionary module

The Flat File

Excel ArcMap C) 2006 M.E. Hodgson

Attribute Data Model

ATTRIBUTE DATA MODEL The characteristics of the features / objects in the GIS database are stored in one or more attribute data models. Typical data models include the flat file (i.e., spreadsheet) or a relational data model (e.g., logically related flat files). Flat File: a table of records or tuples (individual features) and columns (attributes of features).In DBMS / relational data model the attributes are referred to as “fields.” (^) ArcMap Example: Each row is for a single county C) 2006 M.E. Hodgson

Not Known

C) 2006 M.E. Hodgson

Field Properties and Alias

C) 2006 M.E. Hodgson

Raster Model for Imagery

C) 2006 M.E. Hodgson Brightness Values

Raster Model for Elevation

C) 2006 M.E. Hodgson

The raster data model is typically expressed as a regular subdivision of space (i.e. a tessellation) in the form of a rectangular grid with square cells. Each cell contains one value. For imagery , the value would be the reflected light from the surface. For a continuous surface such as elevation, the cell value would be the elevation observed at the center of the cell. For other surfaces such as land cover , the cell value would represent the dominant land cover occurring within the cell.

Raster Data Model

C) 2006 M.E. Hodgson

Discreet and Continuous Surface

discrete continuous Sampling Points – Continuous Variables

?

Data Representation and Cell Size

Decreasing the Cell Size by one-half causes a Four-fold increase in the storage space required

Cell Type and 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

Raster vs Vector Data Model

Characteristic Raster Vector Data structure Simple Complex Storage Quite Large (depends upon clarity of the data set) Relatively Small Coordinate conversion Difficult, slow, relies on data volume, requires sampling Simple Positional accuracy Depends on cell size Can be precise Attribute accuracy Good for continuous data Poor for continuous data Analytical ability Good for continuous data, overlays, spatial modeling. Good for network analysis, spatial query. Poor for continuous data, slower for overlays Output and display Good for images, poor for discreet features Map-like with continuous curves, poor for images Advantages and Disadvantages of Data Models C) 2006 M.E. Hodgson Raster Vector Precision in graphics No Yes Traditional cartography No Yes Data volume No Yes Topology No Yes Computation Yes No Update Yes No Continuous space Yes No Integration Yes No Continuous No Yes

Model Conversion

Raster Data Model: Example

Raster Instructions:

  • Classify each cell by the majority rule decided based on the class (i.e. the cell value is with maximum area occupied within that cell)
  • Classify into Tree Road House Do all roads, houses, and trees C) 2006 M.E. Hodgson

Vector Data Model: Example

Vector Instructions:

  • Present tree as a point
  • Present road as a line
  • Present house as a polygon
  • The matrix is only for your spatial reference Do all roads, houses, but just a few trees C) 2006 M.E. Hodgson Data Structures: ArcGIS – visual appearance of models C) 2006 M.E. Hodgson

Triangulated Irregular Network (TIN)

Typically used to represent terrain or other spot-sampled continuous variables Connect sample points in a network of triangles Why? – to preserve sample accuracy, save space connected network - TIN samples

Object Data Model Data and File Structure

Data Structure (File Type): The logical and physical means by which a map feature or an attribute is digitally encoded. 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. ASCII Representation of Characters (American Standard Coding for Information Interchange) Assign a number to each charcater 65 = A, 66 = B, 67 = C…… 97 = a, 98 = b, 99 = c …….. But 50 = 2 51 = 3 Positive Integers are easy Positive Integers – “as is”, so interpret all 8 bits for the number e.g., 8 bit unsigned integer 0 0 0 0 1 1 0 1 is the number 13, as in our previous example Negative Integers – interpret 1st^ bit as sign bit, e.g., 0 is positive, 1 is negative number, and interpret next bits as number 8 bit signed integer 1 0 0 0 1 1 0 1 is - 13

Why Should You Care?

When you want this… You get this:

Vector Data Compression: Pointers

Pointer: an address or index that connects one file location to another

  • reduce size
  • speed access
  • ease updates

Raster Data Compression

QUAD - TREE