Professional Documents
Culture Documents
LECTURE 2
Two Data Models in GIS (How data is represented & stored in a computer)
1. VECTOR MODEL - Uses points, lines, and polygons to represent geographic
phenomena - Each location is recorded as (x,y) coordinate - Every object is
represented uniquely using a systematic coordinate system (usually Cartesian)
2. RASTER MODEL - Uses grid cells of n rows x m columns - Each cell holds an
attribute value of its position.
Purpose Of Data Model - To allow geographic feature in the real-world locations to be
digitally represented and stored in a database so that they can be abstractly presented in
map form and can also be worked with and manipulated to address some problems.
VECTOR DATA MODEL
- Geographic entities encoded using the vector data model are called features.
- Treats geographic space as populated by discrete objects, which have identifiable
boundaries or spatial extent.
- Each object in the real-world is represented as either point, line, or polygon
features.
- Useful for representing discrete objects such as roads, buildings, rivers, boundaries,
etc.
THE SHAPEFILE OF VECTOR DATA MODEL
DBF – database file (attribute table)
PRJ – projection file *
SBN – a spatial index of the features (optimizes spatial queries) **
SBX – a spatial index of the features (speeds uploading times) **
SHP – geometry file (location and shape)
SHX – shape index format
SHX.XML – geospatial metadata in XML format **
RASTER DATA MODEL
- Treats geographic space as populated by one or more spatial phenomena, which
vary continuously over space and having no obvious boundaries.
- Uses an array of rectangular cells /pixels/grids to represent real-world objects.
- Each cell is defined by a coordinate location and an attribute that identify the
feature. Similar features are assigned equal attribute values.
- The cell’s linear dimensions define the spatial resolution.
- Best used to represent geographic features that are continuous over a large area (eg.
soil type, vegetation, etc.)
- Examples: Elevation, Air Temperature, Land ownership, Ice thickness, Timber
Volume or Biomass, Population density.
RASTER FILE FORMATS
BMP (bitmaps) – used by graphics in Microsoft Windows applications, no compression.
DIB (Device Independent Bitmaps)
GIF (Graphical Interchange Format) – widely used for images to be used on the World Wide
Web.
TIFF (Tagged Image File Format) – non-proprietary, system-independent.
JPEG (Joint Photographic Experts Group) – primarily for storage of photographic images and
for the World Wide Web
GeoTIFF – extension of the TIFF format that contains georeferencing information.
PNG (Portable Network Graphics) – patent-free; intended to replace the GIF format.
PCX – supported by many image scanners.
MrSID (Multi-resolution Seamless Image Database)
GRID – proprietary format used by ESRI in ArcInfo and ArcView GIS
GEOSPATIAL DATA MODELS
- Formal means of representing spatially referenced information
- Simplified view of physical entities
- A conceptualization of reality
4 LEVELS OF MODELING (CONCEPTUALIZATION/ ABSTRACTION)
1. Real World - in all its complex glory
2. Conceptual Model - your understanding of it
3. Logical Model - possible computer realization (software independent) to database
design
4. Physical Model - actual digital structure (software implementation)
CONSIDERATIONS IN CHOOSING BETWEEN RASTER AND VECTOR
- source and type of data.
- intended use of data.
- analytical procedures to be used.
RASTER VS. VECTOR: ADVANTAGES
Raster Advantages
- Simple data structure
- Simple overlay operations
- High spatial variability is efficiently represented.
- Satellite & other formats already in this format Vector Advantages
- Vector representation is more compact.
- Provides efficient encoding of topology, i.e. better for network operations.
- Better suited to produce maps with crisp line-work.
Raster Disadvantages
- Raster data are less compact – big file size.
- Topological relationships difficult to represent.
- Poorer graphical output (step-like effect / blocky appearance) Vector
Disadvantages.
- More complex structure than a simple raster.
- Overlay operations are more difficult to implement.
- Representing high spatial variability is inefficient.
- Handling image data is not possible (satellites & photos)
LABORATORY: Familiarization with QGIS and Spatial Data
Menu Bar - There are twelve (12) default menus found in this portion of the interface.
Explore each menu and you can access different tools through drop-down selections.
Toolbars - There are several toolbars displayed on the interface and can be found below the
Menu Bar and beside the Table of Contents window. These toolbars contain icons with their
corresponding functions. These are equivalent icons of the functions under each menu.
Hover the mouse cursor and inspect the names of the icons. You can drag these toolbars
anywhere by clicking on the left most part (the space with vertical dotted lines). A white
crosshair will appear prompting you to drag the toolbar.
Layers Panel - The Layers Panel serves as Table of Contents (TOC) window that contains
your datasets that are loaded into QGIS.
Data Frame and Status Bar - This part of the interface contains the data frame properties of
your input data such as coordinate system, scale, and rotation values. The rendering or
displaying option for your data is also included in this portion.
Map View - This is the large window that displays the input data. You can view and select
layers/features in this window if the layers are enabled in the Layers Panel.
Zooming tools - The zoom tools are useful for focusing and looking at the spatial aspect of
your geographic data. Inspect the different Zoom tools.
The 19 properties included are the following:
Information, Source, Symbology, Labels, Diagram, 3D view, Source Fields, Attributes Form
Joins, Auxiliary Storage, Actions, Display, Rendering, Variables, Metadata, Dependencies,
Legend, QGIS Server, and Digitizing.