Unit-2 Gis
Unit-2 Gis
GEOGRAPHIC
INFORMATIO
N SYSTEM
IIIYear CSE
V Sem
UNIT-II SPATIAL DATA MODELS
2
1. Database Structures
2. Relational, Object Oriented
3. ER diagram
4. Spatial data models
5. Raster Data Structures 1.6 History of GIS
6. Raster Data Compression
Entity
Record, row,
tuple
A specific
instance of the
entity
Foreign Key
Primary Foreign Key
Key
A foreign key is an attribute that is a
key of one or more relations other than
the one in which it appears
2.3 ER diagram
🞇 An Entity–relationship model (ER model) describes
the structure of a database with the help of a
diagram, which is known as Entity Relationship
Diagram (ER Diagram).
🞇 An ER model is a design or blueprint of a
database that can later be implemented as a
database.
🞇 ER Model is best used for the conceptual design
of a database.
🞇 The main components of E-R model are:
2.3 ER diagram
🞇 Relationship − The logical association among
entities is called relationship.
🞇 Relationships are mapped with entities in various
ways.
🞇 Mapping cardinalities define the number of
association between two entities.
🞇 The following are the Mapping cardinalities - one
to one, one to many, many to one & many to
many.
2.3 ER diagram
🞇 Comparison with Object model of spatial
information
🞇 Entities are collections of attributes are like
objects
🞇 However ER model does not permit general
user defined operations
🞇 Relationships are not directly supported in
Object model
🞇 but may be simulated via operations
2.3 ER diagram
🞇 Exercise: Identify type of cardinality
constraint for following:
🞇 Many facilities belong to a forest. Each facility belong to
one forest.
🞇 A manager manages 1 forest. Each forest has 1
manager.
🞇 A river supplies water to many facilities. A facility gets
water from many rivers.
2.3 ER diagram
Fig 2.4
•Exercise:
•List the entities, attributes, relationships in this ER diagram
•Identify cardinality constraint for each relationship.
•How many roads “Accesses” a “Forest_stand”? (one or many)
MZCET/CSE/OCE552 GIS/Unit I/IIIYr/V Sem/Unit II/TLP 2.3
2.3 ER diagram
• Mapping ER to Relational
•Highlights of translation rules
2.3 ER diagram
• Pictograms
• Label spatial entities along with their spatial data types
• Allows inference of spatial relationships and constraints
• Reduces clutter in ER diagram and relational schema
2.3 ER diagram
Cell Value
🞇 A floating-point raster requires more computer
memory than an integer raster.
🞇 First, an integer raster has a value attribute table
for access to its cell values, whereas a floating
point raster usually does not because of its
potentially large number of cell values.
🞇 Second, individual cell values can be used to
MZCET/CSE/OCE552 GIS/Unit I/III Yr/V Sem/Unit II/TLP
9
Cell Size
🞇 The cell size of a raster refers to the size of the
area represented by a single cell.
🞇 If a raster has a cell size of 100 square meters,
it means each side of its cell is 10 meters in length.
🞇 The raster is typically called a 10-meter raster.
🞇 The cell size determines the spatial resolution of
a raster.
MZCET/CSE/OCE552 GIS/Unit I/III Yr/V Sem/Unit II/TLP
10
Cell Depth
🞇 For example, an 8-bit raster can store 256 (28)
possible values while a 16-bit (216) raster can
store 65,536 possible values.
2.5.1Cell-by-Cell Encoding
🞇 The cell-by-cell encoding method provides the simplest raster
data struc ture.
🞇 A raster is stored as a matrix, and its cell values are written into
a file by row and column
🞇 Functioning at the cell level, this method is an ideal choice if
the cell values of a raster change continuously.
2.5.1Cell-by-Cell Encoding
🞇 Therefore, if an image has seven bands, the data
set has seven consecutive files, one file per band.
🞇 ThereforeMZCET/CSE/OCE552
the file consists ofI/III
GIS/Unit row Yr/V1, bandII/TLP
Sem/Unit 1; row 1,
19
🞇 The string of (02, 032) and others for the other three
level-1 quadrants completes the coding of the
twodimensional feature.
and a polygon.
🞇 example, arc be has the starting node b and the end node
e, and has face 10 on the right and face 11 on the left.
Stack
A stack consists of an ordered set of spatially overlapping grids
(layers) treated as a single entity for multivariate analysis.
A stack has the following characteristics:
A set of layers with each layer corresponding to a grid
A map extent,
A cell size
A data type
A projection
No Data in a grid
TINs
TINs
The inputs to a TIN include point, line, and polygon
features.
TINs
A finished TIN comprises three types of geometric
objects:
polygons (triangles), points (nodes), and lines
(edges).
MZCET/CSE/OCE552 GIS/Unit
I/III Yr/V Sem/Unit II/TLP 2.7,
2.8
153
OGC Memberships
Strategic Membership
Principle Membership
Technical Membership
Associate Membership
Data Accuracy:
This can be termed as between the actual attributes value and
coded attribute value.
Data Consistency:
Data consistency can be termed as the absence of conflicts in a
particular database.