Unit IV Notes Rs & Gis
Unit IV Notes Rs & Gis
G.BHOGAYYA NAIDU
Associate Professor, VBIT, HYD
Syllabus:
Vector Data Model: Representation of simple features- Topology and its importance; coverage
and its data structure, Shape file; Data models for composite features Object Based Vector Data
Model; Classes and their Relationship; The geobase data model; Geometric representation of
Spatial Feature and data structure, Topology rules.
_______________________________________________________________________
Figure No:1. Spatial relationships between two regions derived from the topological
invariants of intersections of boundary and interior
Topology, as it relates to spatial data, consists of three elements: adjacency, containment
and connectivity. Adjacency and containment describe the geometric relationships that
exist between area features. Containment is an extension of adjacency that describes area
features which may be wholly contained within another area feature. These three
topological relationships will ensure that:
✓ No node or line segment is duplicated;
✓ Line segments and nodes can be referenced to more than one polygon;
✓ All polygons have unique identifiers; and
✓ Island and hole polygons can be adequately represented
1. Connectivity
Connectivity is a geometric property used to describe the linkages between line features,
like road network. Connectivity allows you to identify a route to the airport, connect
streams to rivers, or follow a path from the water treatment plant to a house. This is the
basis for many network tracing and path finding operations. In the arc-node data
structure, arcs connect to each other at nodes and have both a from-node (i.e., starting
node) indicating where the arc begins and a to-node (i.e., ending node) indicating where
the arc ends. This is called arc-node topology. Arc-node topology is supported through an
arc-node list. The list identifies the fromand to-nodes for each arc. Connected arcs are
determined by searching through the list for common node numbers. In Figure No 3, arcs
1, 2, and 3 all intersect because they share node 11. It is possible to travel along arc 1 and
turn onto arc 3 because they share a common node (11), but it is not possible to turn
directly from arc 1 onto arc 5 because they do not share a common node. Connectivity
answers which line segments are connected?” for network analysis.
2. Area definition/ containment:
Containment is an extension of the adjacency that describes area features which
may be wholly contained within another area feature. For instance, an island defines an
inner boundary (or hole) of a polygon. The lake actually has two boundaries: one that
defines its outer edge and the island that defines its inner edge. In the terminology of the
vector model, an island defines an inner boundary (or hole) of a polygon. The arc-node
structure represents polygons as an ordered list of arcs rather than a closed loop of x, y
coordinates. The arc-node structure represents polygons as an ordered list of arcs rather
than a closed loop of (x, y) coordinates – known as polygon-arc topology.
In Figure No 4, polygon F is made up of arcs 8, 9, 10, and 7 (the 0 before the 7 indicates
that this arc creates an island in the polygon). Each arc appears in two polygons (in the
illustration below, arc 6 appears in the list for polygons B and C). Since the polygon is
simply the list of arcs defining its boundary, arc coordinates are stored only once, thereby
reducing the amount of data and ensuring that the boundaries of adjacent polygons do not
overlap. Containment answers, “Which spatial features are contained within which?” and
used for selection or geocoding
3. Contiguity or adjacency:
Contiguity is the topological concept that allows the vector data model to
determine adjacency of features share a boundary. This is the basis for many neighbor
and overlay operations. Areas can be described as being adjacent when they share a
common boundary. The from-node and the to-node define an arc. Arcs have direction and
left and right sides so the polygons on its left and right sides can be determined. In Figure
No 5, polygon B is on the left of arc 6, and polygon C is on the right. Thus, polygons B
and C are adjacent. Notice that the label for polygon A is outside the boundary of the
area. This polygon is called the external, or universe, polygon and represents the world
outside the study area. The universe polygon ensures that each arc always has a left and
right side. Adjacency answers “Which polygons are adjacent to which?” and used in
spatial analysis of areal data
Rules of topological consistency:
Feature Rules
Type
Polygon must not overlap, must not have gaps, must not overlap with, must be covered by feature class
of, must cover each other, must be covered by, boundary must be covered by, area boundary
must be covered by boundary of, and contains point
Line must not overlap, must not intersect, must not have dangles, must not have pseudo-nodes,
must not intersect or touch interior, must not overlap with, must be covered by feature class
of, must be covered by boundary of, endpoint must be covered by, must not self overlap, must
not self intersect, and must be single part
Point must be covered by boundary of, must be properly inside polygons, must be covered by
endpoint of, and must be covered by line
Topology is a set of rules that models the relationships between neighbouring points,
lines, and polygons to determine how they share geometry. There are five rules of
topological consistency:
✓ Rule 1: Every arc must be bounded by two ‗nodes ‘, namely it begins and end node
✓ Rule 2: Every arc border two ‗polygons ‘, namely its ‗left ‘and ‗right ‘polygons
✓ Rule 3: Every polygon has a closed boundary consisting of an alternating (and cyclic)
sequence of nodes and arcs.
✓ Rule 4: Around every node exists an alternating (and cyclic) sequence of arcs and
polygons. ✓ Rule 5: -Arcs only intersect at their (bounding) nodes.
______________________________________________________________________
COMMON TOPOLOGICAL ERRORS IN GIS AND DETECTION:
Topological information permits an automatic verification of data consistency and
detects such errors as incomplete closing polygons during the encoding process. In the
case of polygon features, open or unclosed polygons, which occur when an arc does not
completely loop back upon itself; and unlabelled polygons, which occur when an area
does not contain any attribute information, violate polygon-arc topology rules. Another
topological error is sliver polygons, which are small, long and narrow polygons resulting
from the overlay operation of polygons with a common but separately digitized
boundary. The shared boundary of the two polygons does not meet exactly. In the case of
line features, the common error types are undershot and overshoot of lines (see Figure
No.7).
_______________________________________________________________________
TOPOLOGY IN A GEODATABASE:
The vector data model in ARC/INFO supports the topological concepts of
connectivity, area definition and contiguity. Every topology in the geodatabase is
associated with a set of topology rules. Topology rules can be defined for the features
within a feature class or alternatively for features between two feature classes. When a
topology is validated, the rules are tested. ArcGIS topology begins with the definition of
parameters to be included through a wizard in ArcCatalog. ArcGIS topologies have the
following characteristics:
They exist within feature datasets
✓ All participating feature classes have the same spatial reference.
✓ There can be multiple topologies within a data set.
✓ Feature classes can only participate in one topology.
✓ Feature classes cannot participate in both a topology and a geometric network.
✓ A topology can contain multiple point, line, and polygon feature classes.
The ArcGIS Geodatabase topology can be employed to:
1. Mange shared geometry, for example adjacent polygons share edges
2. Define and enforce data integrity rules (no gaps in between polygons)
3. Support topological relationships queries
4. Support sophisticated editing tools
5. Construct features from unstructured geometries
Spatial relationships express specifically how features share coincident geometry along
with the rules for the behavior of their spatial representations. For example, some
common spatial relationships and rules include the following:
✓ Parcels cannot overlap. Adjacent parcels have shared boundaries.
✓ Stream lines cannot overlap and must connect to one another at their endpoints.
✓ Adjacent counties have shared edges. Counties must completely cover and nest within
states. ✓ Adjacent Census Blocks have shared edges. Census Blocks must not overlap,
and Census Blocks must completely cover and nest within Block Groups.
✓ Road centrelines must connect at their endpoints.
✓ Road centrelines and Census Blocks share coincident geometry (edges and nodes).
Each of these situations defines a potential case for using topology rules to maintain data
integrity.
__________________________________________________________________
TIGER DATABASE:
Topologically Integrated Geographic Encoding and Referencing, or TIGER,
or TIGER/Line is a digital database developed by the United States Census Bureau to
map land topography, define their locations and their proximity to roads, buildings,
rivers, and lakes. Enumerated topographic features are integrated into the Census
Bureau's database and used in sample surveys and censuses. TIGER provides a
standardized method of measuring topography and its relation to infrastructure. Its
purpose is fulfilled in creating an automated mapping resource with which census tracts
can be measured without error.
TIGER was first employed during the 1990 census to support and automate the Bureau's
process of taking the Decennial Census. Since then, TIGER has been used to survey land
coverage of the United States and all of its territories, produce maps for a variety of
programs and uses, and assign addresses to individual land tracts formed along natural
and infrastructural borders.
All aspects of TIGER, including the data model, data structure, user interface, software
applications, and map creation process, were developed in-house by Census Bureau staff,
along with help from the USGS. Hydrography, railroads, and other features were scanned
or digitized from USGS topographic maps (1:1,00,000 scale), and combined with updated
addressing data from DIME and topology added. The process was automated with use
of batch processing, though staff manually digitized from 1:24,000 scale annotated USGS
maps to make updates to the TIGER data
_______________________________________________________________________
The shape file is a standard non topological data format used in ESRI products.
Although the shape file ‘treats as a point as a pair of x- and y- coordinates, a line as a
series of points and a polygon as a serious of lines, no files describe the spatial
relationships between these geometric objects. The workspace containing shape files may
also contain dBASE tables, which can store additional attributes that can be joined to a
shape file's features.
Shape file polygons actually have duplicate arcs for the shared boundaries and can
overlap one another. Basic files .shp file stores the feature geometry, & .shx file maintain
the spatial index of the feature geometry.
Non-topological data such as shapefile have two main advances. First, They can display
more rapidly on the computer monitor than topology-based data. This advantage is
particularly important for people who use, rather than produce, GIS data. Second, They
are non-proprietary and interoperable, meaning that they can be used across different
software packages (e.g. MapInfo can use shape file and Arc GIS can use MapInfo
interchange Format files). Gis users have pushed for interoperability since the early
1990s. The pushed result in the establishment of Open GIS Consertium, Inc,. a non-
profit, international, voluntary consensus standards organization in 1994. Interoporability
has been a primary mission of Open GIS Consortium, Inc. from the start. The
introduction of nontopological data in the early 1990s was perhaps a response to the call
for interoperability.
Shapefiles can converted to coverage, and vice versa. The conversion from a shapefile to
a coverage requires the building of topological relationships and the removal of duplicate
arcs. The conversion from coverage to a shape file is simpler. But if a coverage has
topological errors - such as lines not joined perfectly – the error can lead to problems missing
features in the shape file. Fig 3.9a shows a coverage has error in the joining. After the
coverage is converted to a shapefile fig 3.9b serves as an example of the importance of
topology in maintaining data integrity.
______________________________________________________________________
REGIONS:
A region is defined as a geographic area with similar characteristic's. The concept
of region is well established in such disciplines as geography, landscape ecology
and forestry. Uniform regions can apply to a variety of physical and cultural
phenomena including land forms, natural vegetation, forest files, ethnic groups,
and religions. The concept of regions has also been incorporated into the structure
of hierarchical regions, a structure that divides the ESRI’s surface into
progressively smaller regions of increasingly uniform characteristics. Well-known
examples of hierarchical regions are cencus units, hydrological units, and
ecological units.
A data model for regions must be able to handle two spatial characteristics: A
region may have spatially joint or disjoint areas, and regions can overlap or cover
the same area.
ROUTES:
A route is a linear feature such as a highway, a bike path, or a stream but, unlike other
linear features, a route has a measurement system that allows linear measures to be used
on a projected coordinate system. Transportation agencies normally use linear measures
from known points such as the beginning of a highway, a milepost or a road intersection
to locate accidents, bridges, and pavement conditions along roads. Natural resource
agencies also use linear measures record water quantity data and fishery conditions along
streams. These linear attributes, called events, must be associated with routes so that they
can be displayed and analyzed with other spatial features.
The coverage model stores routes as subclasses in line coverage in the same way as
region sub-classes in polygon coverage. A route subclass is a collection os sections. A
section refers directly to lines in a line coverage and positions along lines. Because lines
are made of a series of x-y- coordinates based on a coordinate system. This means that a
section is also measured in coordinates and its length can be derived from its reference
lines. Fig 3.16 shows a route in a thick shaded line, which is built on line coverage. The
route has three sections, and the section table relates them to the arcs in the coverage.
The shape file data format allows measured polylines to be used as route. A
measured poly-line is a set of lines that store x- and y- coordinates as well as a measure
(m) value. The m value provides the linear measures for plotting events long lines.
Compared to the route subclass, the measured poly-line has a much simpler data
structure.
Routes are useful for a variety of applications. A public transit agency can build
different bus routes on the same street network. A state transportation department can use
different routes for different classes of highways such as interstate, U.S, and state. And
although the term route may not be most appropriate, a mapping agency can include
different types of political boundaries (ex- state and country boundaries) in different route
subclasses, mainly for the purpose of data distribution.
______________________________________________________________________
Classes:
A class is a set of objects with similar attributes. Unless objects are organized into some
hierarchical structures, the management of properties and methods in a GIS can become
difficult, if not impossible. Operationally, a class defines the properties and methods of
objects that are members of the class. Ex- a class called feature can cover point, line and
polygon feature objects. The feature class defines the same properties (ex- shape and
extent) and the same methods (ex- delete) for all the three types of objects.
Since early in the adoption of object-oriented technology in GIS, the literature has
proposed the principles of generalization and specialization for the grouping and
differentiation of objects.
Relation Ship B/W Classes:
Class relationship include association, aggregation, composition, type inheritance, and
instantiation
Introduction
Association, Aggregation, and Composition are terms that represent relationships among objects.
They are very basic stuff of Object Oriented Programming.
Association:
Association is a relationship among the objects. Association is "*a*" relationship among objects.
In Association, the relationship among the objects determines what an object instance can cause
another to perform an action on its behalf. We can also say that an association defines the
multiplicity among the objects. We can define a one-to-one, one-to-many, many-to-one and
many-to-many relationship among objects. Association is a more general term to define a
relationship among objects. Association means that an object "uses" another object.
For example Managers and Employees, multiple employees may be associated with a single
manager and a single employee may be associated with multiple managers.
Aggregation:
For example, departments and employees, a department has many employees but a single
employee is not associated with multiple departments.
Here, the lives of both objects are independent of each other. That means that in this Association
(Aggregation) the object has their own life cycle. Employees may exist without a department.
Here, department can be called an owner object and the employee can be called a child object.
The owner and child objects cannot belong to a different parent object.
Composition:
For example, the company and company location, a single company has multiple locations. If we
delete the company then all the company locations are automatically deleted. The company
location does not have their independent life cycle, it depends on the company object's life
(parent object).
UML representation of the example above (relation between Company and Company Location):
Here, the lives of both objects are not independent. The life of the company location object can
be determined by the life of the company object. The company object is responsible for creating
and destroying company location objects.
Relationship among Association, Aggregation, and Composition
Aggregation and Composition are a special type of Association. Composition is again a special
type of Aggregation. We can define Aggregation and Composition as "has a" relationships.
Composition is more restrictive or more specific. In Composition, composed objects cannot exist
without the other object. This type of restriction does not exist in Aggregations. In Aggregation,
the existence of a composed object is optional. In Aggregation, the child object can exist beyond
the life cycle of its parent whereas in Composition the child object cannot exist beyond the life
cycle of its parent.
Aggregation Composition
Aggregation is a special type of
Composition is a special type of Aggregation.
Association.
All objects have their own life In Composition, the child object does not have their own life
cycle. cycle and it depends on the parent's life cycle.
A parent class is not responsible
The parent class is responsible for creating or destroying the
for creating or destroying the
child class.
child class.
Composition can be described as a "Has-a" relationship as well
Aggregation can be described as
as a "Part of" relationship, but here the difference is the length
a "Has-a" relationship.
of the relationship among the objects.
Aggregation is a weak
Composition is a strong Association.
Association.
Aggregation means one object is
Composition means one object is contained in another object.
the owner of another object.
The direction of a relation is a requirement in both Composition and Aggregation. The direction
specifies which object contains the other one.
Both have a single direction of association.
Both have a single owner.
Type Inheritance: The relationship between super class and a subclass. A subclass is a member
of super class and inherits the properties and methods of the super class
Instantiation: An object of a class can be created from an object of another class.
Conclusion
These three terms are more important in the object oriented world. They denote or represent the
relations among objects. If you are confused or unable to decide whether a specific relation best
describes an Association, Aggregation or Composition then it can be decribed as an Association.
_________________________________________________________________
2-B) Contour / Isoline Model: Contour is an imagery line of constant elevation on the
ground surface. The corresponding line on a map is called a contour line, a line on a map
that joins places of the same elevation above sea level. Contour Interval, Horizontal
equivalent
2-C) Lattice Model: Lattice is similar to point model. Lattice is a representation of
surface using an array of equally spaced sample points (mesh-points) that are represented
to a common origin and have a constant sampling distance in the x and y directions.
2-D) TIN Model: TIN or Triangulated irregular network stores GIS data for 3D surface
model. In vector GIS, a TIN used to create a DTM from either regular or irregular height
data. The TIN method joins the height observations together with straight lines to create a
non-overlapping mosaic of irregular triangles. The basic unit is a triangle. A triangle
consists of three lines connecting three nodes. The triangle is represented by a sequence
of three nodes. Each of the triangles is identified with the coordinates of the three points
forming it. The surfaces of individual triangles provide area, gradient (slope), and
orientation.
Advantages and Disadvantages of RASTER and VECTOR:
IMPORTANTQUESTIONS:
1. Explain in detail about the representation of simple features of a vector data model?
2. Discuss the importance of topology in GIS?
3. Explain about data models for composite features?
4. Explain about the data model ‘TIN’ for representation of composite features?
5. Explain about Object based data model?
6. Define a class? State the relationship between classes along with examples?
7. Discuss the advantages of geo-data base data model?
8. Write a note on topology rules of geo-data base data model and list out there
applications?
9. Explain about Coverage Data Structure with examples of point, line, and polygon
data structures?
10. What is vector data model? Explain about spaghetti Model with neat diagram and its
coordinates of various features?
11. Explain about shape file in GIS?