Beruflich Dokumente
Kultur Dokumente
Lecture 3:
Part 1. Understanding Spatial
Data Structures
Part 2. An introduction to the
Vector data model
Raster
• Spatial features modeled with grids, or pixels
• Cartesian grid whose cell size is constant
• Grids identified by row and column number
• Grid cells are usually square in shape
• Area of each cell defines the resolution
• Raster files store only one attribute, in the form of a “z” value, or
grid code.
• Consider the contrary….
Introduction to GIS
Vector
• Vector layers either represent:
– Points (no dimensions)
– Lines, or “arcs” (1 dimension) or
– Areas, or “polygons” (2 or 3 dimensions)
• Points are used to define lines and lines are used
to scribe polygons
• Each point line or polygon is a “feature,” with its
own record and its own attributes
Introduction to GIS
The disadvantage of vector to raster is that boundaries can be imprecise because of cell shape
•
Each time you convert, you introduce more error too
•
Introduction to GIS
Tossups
• In many cases, though, the choice between
raster and vector may not be so clear.
• Often it depends on the application
• The following are some examples where you
could go either way:
Introduction to GIS
Soil
• Soil type: Vector
– Soil types are meant to represent discrete and
homogeneous areas and are qualitative. There is no
“slight gradation” between soil types like with pH
• Soil pH: raster
– pH is numeric, not categorical, and that number may vary
slightly within a single soil type polygon
– If pH were turned into categories, like High, Medium and
Low, vector might be better
Introduction to GIS
Rivers
• Most people think of a river as a discretely bounded
entity, hence vector
• What about where the river size fluctuates seasonally,
e.g. desert rivers?
• Or where the location of the river bed changes slowly
and gradually over the years
• Or where the river becomes delta, and the distinction
between “river” and “swamp” becomes fuzzy?
• Or where the river has a certain probability of flowing
or being dry at any given location and time
Introduction to GIS
Rivers
• Depends on the type of analysis being done
• With vector can do network modeling of stream and
river system, but only in the arcs
– Vector stream model can take advantage of topologically
enabled analysis tools
• With raster, can do surface flow modeling
– More realistic, because when it rains water flows
everywhere, not just in channels, shows accumulation
– Think of every piece of land as mini stream channel
Introduction to GIS
Vegetation Mapping
• Vector works well for modeling vegetation stand type
where categories are broad, e.g. mixed conifer,
deciduous hardwood
• Raster works better where there is micro-locational
heterogeneity in species distribution
• Raster also works better for representing ecotones, or
edges between two stands
• The more specific and variable the classification, the
more likely the raster approach will be needed
Introduction to GIS
Intro to Vector
• Recall that there are three basic “feature” or
“object” types in the vector data type:
– Point
– Arc
– Polyons
• In general a given layer holds a given feature
type (e.g. “roads” is a line layer, “counties” is
a polygon layer, “weather stations” is point)
Introduction to GIS
Intro to Vector
• A point layer only consists of a bunch of (x,y)
coordiantes
• In a line (arc) layer, points define lines
• In a polygon layer, lines define areas
• Hence each level of vector features builds on
the last
Introduction to GIS
Intro to Vector
• Each point has a unique location
• 2 points define a line segment
• One or several line segments define an arc
• The endpoints of an arc are “nodes
• The angle points are “vertices” (sing. Vertex)
• The feature is the arc, not the line
• Two arcs meet at the nodes
Introduction to GIS
Intro to Vector
• Several arcs can scribe a polygon
• Polygons are closed regions whose boundaries
are made up of line segments connected at
many angles.
• Polygons generally define an area of
homogenous phenomena (e.g. forest stand,
building, zip code, lake)
• These phenomena can be described by one or
more stored attributes
Introduction to GIS
Vector Representation:lines
•Ring: this is a series of line segments (a string)
that close upon each other
•It is NOT a polygon!!
Vector Representation:lines
•A polygon is encoded
differently, because the
computer “knows” that the
areas within those arcs
“belongs” to that polygon,
while it does not with a ring
Introduction to GIS
Vector: Topology
• Topology: spatial relationships between objects are
encoded; the spatial location of each point, line and
polygon is defined in relation to every other point, line and
polygon
• Topology allows for behaviors of objects in relation to
other objects to be defined
• Topology allows for powerful analysis tools and can
significantly reduce error and increase quality
• Vector files in ARC INFO are topologically encoded. Arc
GIS 8.3 geodatabases will be as well. Currently
geodatabases are partially topological
Introduction to GIS
slivers
overshoots
dangles
Vector Topology
• A topological structure helps ensure these problems
don’t happen because it allows for enforcing of user-
defined spatial rules
• ArcGIS 8.3 (coming soon) will include new tools for
defining and validating topology rules
• Topology can also be used for defining spatial rules
between layers to minimize errors and ensure logical
consistency between them
Introduction to GIS
Spaghetti Data
•Generally have loose ends, nodes not “snapped,”
polygons don’t fully close, etc
•Polygons defined by coordinates of circumscribing
points, so common boundaries between two polygons
are often registered twice.
•Generally come from CAD files or digitizing
•They often look fine to the user, but are useless from
the standpoint of spatial analysis
•This approach is memory inefficient
Can “clean” these data, using user-defined tolerances