1lecture 21 l2 –data models ch. 2, pp 25-53. 22 phenomena/entities that exist in the real world an...
TRANSCRIPT
22
1.2 , 4 .75 .8 , 3 .68 .9 , 7 .2..
Real W or ldDat a M odel Dat a
S t r uct ur e
Phenomena/entities that exist in the realworld
An abstraction, relevant phenomena and properties
Computer Representation
Machine Code
10011101
00110110
10110100
3
Data Model
• The spatial data model provides a formal means of representing and manipulating spatially-referenced information.
Lecture 2 3
4
http://webhelp.esri.com/arcgisserver/9.3/java/index.htm#geodatabases/an_over-776141322.htm
Thematic Layers• A logical
separation of data according to theme.
• Each layer reflects a particular use or characteristic.
• Overlays.
4Lecture 2
5
Coordinates
• Coordinates are used to define the location and extent of our geographic object.
• Coordinates are either (x,y) or (x,y,z).
• Polygon [(8,10), (14,5), (5,15), (1, 8), (3,12), (8,10)]
Lecture 2 5
6
Coordinate Data
• Latitude & Longitude– Origin (intersection of
the Equator and Greenwich meridian)
• Spherical Coordinates– Deg., min., sec. (DMS)– Decimal degrees (DD)
Lecture 2 6
7
Conversion
Lecture 2 7
368.5833
3600
57
60
4868
360060
SECMIN
DEGDD
Convert: 68o 48’ 57” to decimal degrees:
8
Types of Attribute Data• Attribute data record the non-spatial characteristics of an
entity.• Attributes have values
– Observed – Measured
Lecture 2 8
Llbean.com
9
Measurement of Attributes
• Physical scientists define measurement as the comparison of an object to a standard object.
• They define two types of measurements– Extensive/Fundamental Properties (feet)– Derived – by combining extensive properties
(feet/second)
Lecture 2 9
10
Stevens’ Levels of Measurement
• Social scientists weren’t satisfied with this classification
• Stanley Stevens (1946) proposed a framework for measurement types based upon “levels of measurement”.
• He defined measurement as being the assignment of classes or scores to phenomena according to a set of rules.
Lecture 2 10
11
Stevens’ Levels of Measurement
• There are four basic levels according to Stevens: – Nominal – provides descriptive information.– Ordinal – implies a rank order.– Interval – implies order and difference in
magnitude.– Ratio - implies order and difference in
magnitude and has an absolute 0.
Lecture 2 11
12
Ordinal
• Ordinal Measurement sorts objects in an order or ranked category.
• For example, the order of finish in a race, someone gets first place, second place, third place, and so on.
• Each object gets categorized based on its position relative to others, ordinal would not measure when, but where in relation to others.
Lecture 2
13
Ordinal
• You can do comparisons:– If A>B and B>C then the correct increasing
order is C, B, A; i.e., establish order
• You can establish equality between two orders.
Lecture 2
14
Interval
• Interval Measurement puts the object on a number line, so instead of just knowing where, someone finished in relation to others, would also know when, they finished.
• But, the number line does not have a zero value, the number line starts arbitrarily.
• It would be like writing the times of finish by just looking at a watch, and noting the time they came in. You would know how long between each runner, but not how long the race took over all.
Lecture 2
16
Ratio
• Ratio Measurement adds the how long, the number line gets a zero value.
• So you would know how long and when, and where each runner comes in.
Lecture 2
17
Ratio
• Operations:– Count– Equality– Order– Addition and Subtraction– Multiplication and Division– Higher order operations
Lecture 2
18
Additional Levels of Measurement
• Nicholas Chrisman includes several more in his textbook "Exploring Geographic Information Systems."
• I will add those here:– Absolute scales – scales bounded on both ends like
probability– Cyclical measures – angular measure– Counts are misfits. They are not continuous, but
otherwise behave as a ratio scale– Graded membership in categories – Fuzzy set theory;
i.e., not all membership within a class must be equal.
Lecture 2
21
Vector & Raster
• Vector is better at representing discrete features.
• Raster is better at representing continuous features
• A project may contain both vector and raster layers.
• Spatial operations can only be performed on one type of layer.
Lecture 2 21
22
Vector & Raster (cont’d)
• The best data model for a given layer depends upon the operations, the experience and the views of the user.
• No decision is final, as one can be converted to the other.
Lecture 2 22
23
Other Data Models
23
Vector Data Raster Data
Non-topological Topological
Simple DataHigher-level Data
TIN Regions Dynamic Segmentation
Spatial Data
Lecture 2
25
Polygon Inclusions
• Areas in polygons that are part of the polygon, but different from the rest of the polygon: e.g. Islands in a lake.
• Solutions:– Create separate polygons for each inclusion.– Create an attribute column for coding
inclusions.
Lecture 2
26
Vector TopologyTopology – geometric properties that to not change with shape: Adjacency, Connectivity, Containment
27
Topology in the object data model is a set of rules and software tools to define spatial relationships an behaviors, such as:– Polygons must not overlap within a dataset.– Lines must not overlap themselves within a
data set.
Topology
Lecture 2
28
PointsPoint ID X Y 1 32.7 45.6 2 76.3 19.5 3 22.7 15.8etc…..
1 2
3 4
Organization
Lines6
9
1
239
AB
C Line Begin End ID Point Point A 6 9 B 9 1 C 239 1etc…..
Polygons
13
22
41954
11
12
52
53
PolygonID Lines
A 11, 12, 52, 53, 54
B 52, 53, 9, 41, 22, 13
Three Types of Vector Features
Lecture 2
29
Advantages of Topology
• Maintain correct data spatial relationship (Find errors)
• Efficient data storage (quickly process large data sets)
• Facilitate spatial analysis (Network analysis, Adjacent area analysis, overlay analysis
Lecture 2
30
Encoding Topological Primitives
Polygon Bounding Arcs
A (e,f,g,i,j) (h) (k)
B (a,b,c,-i)
C (-c,d,-j)
D (-k)
Lecture 2
33
Raster Coordinates
• Coordinate of upper (lower) left corner.
• Cell size (Width, Height) – usually square
• (Row, Column)
33
http://www.codeproject.com/Articles/44389/Build-a-Desktop-GIS-Application-Using-MapWinGIS
35
Raster – The Storage Space/Resolution Tradeoff
Decreasing the Cell Size by one-halfcauses aFour-fold increase in the storage space required
Lecture 2
37
Raster – The Mixed Pixel Problem
Landcover map –Two classes, land or water
Cell A is straightforward
What category to assignFor B, C, or D?
Lecture 2
41
Raster vs. Vector
• Most current GIS packages have both raster and vector capabilities.
• A project may use both spatial data models, but they cannot be combined for analysis.
• They are usually better adapted for handling one over the other.
• There are advantages and disadvantages to each.
Lecture 2
42
Raster vs Vector
Characteristics Positional Precision
Attribute Precision
Analytical Capabilities Data Structures
Storage Requirements Coordinate conversion Network Analyses
Output Quality
Can be Precise
Defined by cell size
Poor for continuous data
Good for continuous data
Good for spatial query, adjacency, area, shape analyses. Poor for continuous data. Most analyses limited to intersections. Slower overlays.
Spatial query more difficult, good for local neighborhoods, continuous variable modeling. Rapid overlays.
Often complex
Often quite simple
Relatively small
Often quite large
Usually well-supported
Often difficult, slow
Easily handled
Often difficult
Very good, map like
Fair to poor - aliasing
Vector Raster
Lecture 2
44
Triangulated Irregular Networks
• TINs
• Typically used to represent elevations.
• Require x,y & z coordinates.
• A TIN forms a connected network of triangles (Delaunay triangles)
Lecture 2
47
TIN – Triangle Formation
TIN triangles defined such that
•Three points on a circle•Circles are empty – they don’t contain another point
These are convergent circles
48
Digital Elevation Models
• DEM is point based with elevation at center of a cell.
• Each file contains– Elevation, – Header: units, min/max elev, proj, accuracy
• Four types– 7.5 minute DEM (30 or 10 meter)– 30 minute DEM (60 meter)– 1 degree DEM (100 meter)– Alaska DEMs
Lecture 2
50
Figure 3.31 Examples of true 3D data structuresSources: (a) Rockware Inc., with permission; (b) Centre for Advanced Spatial Analysis (CASA), University College London, with permission
Modeling in the Third Dimension
Lecture 2
52
Modeling the Fourth Dimension
Four temporal attributes:
1. Generation time
2. Duration time
3. Temporal significance
4. Temporal scale
Lecture 2