• Tidak ada hasil yang ditemukan

PDF GIS Lecture Six-1 - جامعة الملك عبد العزيز

N/A
N/A
Protected

Academic year: 2025

Membagikan "PDF GIS Lecture Six-1 - جامعة الملك عبد العزيز"

Copied!
17
0
0

Teks penuh

(1)

1

Lecture 06

Raster and Vector Data Models Part (1)

Points

Line Area

Vector Raster

Points

Line Area

( x,y ) Y

Common Data Models

(2)

3

• Raster uses a grid cell structure

• Vector is more like a drawn map

(3)

5

Raster Data Model

¾A raster represents a continuous surface, but for data storage and analysis, a raster is divided into rows, columns, and cells.

¾Raster data represent points by single cells, lines by sequences of neighboring

(4)

7

A continuous elevation raster with darker shades for higher elevations.

Representation of point, line, and area features:

raster format on the left and vector format on the right.

(5)

9

Raster Data Model

• A raster data model uses a grid.

• One grid cell is one unit or holds one attribute.

• Every cell has a value, even if it is “missing.”

• A cell can hold a number or an index value standing for an attribute.

• A cell has a resolution, given as the cell size in ground units.

Generic structure for a grid

(6)

11

Elements of Raster Data Model

1. Cell value. Each cell in a raster carries a value, which represents the characteristic of a spatial phenomenon at the location denoted by its row and column. The cell value can be integer or floating-point.

2. Cell size. The cell size determines the resolution of the raster data model.

3. Raster bands. A raster may have a single band or multiple bands.

4. Spatial reference. Raster data must have the spatial reference information so that they can align spatially with other data sets in a GIS.

Raster – The Mixed Pixel Problem

Land cover map – Two classes, land or water

Cell A is

straightforward What category to assign for B, C, or

(7)

13

Raster Coding

¾ In the data entry process, maps can be digitized or scanned at a selected cell size and each cell assigned a code or a value.

¾ The methods for assigning cell codes are:

1. Presence/Absence 2. Cell Center

3. Dominant Area

4. Percent Coverage (advanced method)

Presence/Absence

¾The most basic method is to record a feature if some of it occurs in the cell space.

¾The only practical way of coding point and

line features, because they don’t take up much

area of a cell.

(8)

15

Cell Center

¾ This method involves reading only the center of the cell and assigning the code accordingly.

¾ When there are multiple features in a cell area, the one in the center wins the code.

¾ This is no a good scheme for points or lines, because they don’t necessarily pass through the exact center.

Dominant Area

¾ A common method is to assign the cell code to the feature with the largest (dominant) share of the cell.

¾ This is suitable primarily for polygons,

although line features could be assigned

according to which one has the most linear

distance in a cell.

(9)

17

Types of Raster Data

1. Satellite Imagery: Imagery acquired from satellites such as Landsat and Spot.

2. Digital Elevation Models (DEMs): The representation of continuous elevation values over a topographic surface by a regular array of z-values referenced to a common datum.

3. Digital Orthophotos Quadrangles (DOQ): The scanned photographic images that have been corrected for distortions due to camera tilt,

(10)

19

Types of Raster Data (continued)

4. Bi-Level Scanned Files: The scanned images containing values of 1 and 0, they are usually scanned from paper maps.

5. Digital Raster Graphics (DRGs): The scanned images of USGS topographic maps.

6. Graphic Files: Maps, photographs, and images can be stored as raster graphic files such as TIFF (tagged image file format),

GIDF( graphics interchange format), and JPEG( joint photographic expert group).

Types of Raster Data (continued)

7. GIS Software-Specific Raster Data: GIS packages use raster data that are imported from DEMs, satellite images, scanned images, graphic files, and ASCII files or are converted from vector data.

The GIS software packages store raster

data in different formats, for example,

ArcGIS stores raster data in the ESRI

Grid format.

(11)

21

DEMs at three resolutions: 30 meters, 10 meters, and 3 meters. The 30-m and 10-m DEMs are USGS DEMs. The 3-m DEM is a derived product from LIDAR data.

(12)

23

A bi-level scanned file showing soil lines.

(13)

25

Raster Data Structures

– Raster data stored as an array of values

• Georeferencing is implicit in the structure

• Usually defined by one corner of the image and the cell size

• Attributes are defined by the cell values (no character data!)

• One attribute for each raster file

Raster Data Structure (continued)

¾Raster data structure refers to the method or format for storing raster data.

¾The three common methods for storing raster data are:

1. Cell-by-Cell Encoding 2. Run Length Encoding 3. Quad Tree

(14)

27

Cell-by-Cell Encoding

¾The cell-by-cell encoding method provides the

simplest raster data structure.

¾A raster is stored as a matrix, and its cell values are written into a file by row and column.

Run- Length Encoding (RLE)

¾The run length encoding method is a raster data structure that records the cell values by row and by group.

¾This method records the cell values in runs. Row 1, for example, has two adjacent cells in columns 5 and 6 that are gray or have the value of 1. Row 1 is therefore encoded with one run, beginning in

(15)

29

Quad Tree

¾The regional quad tree method divides a raster into a hierarchy of quadrants.

The division stops when a quadrant is made of cells of the same value (gray or white).

¾A quadrant that cannot be subdivided is called a leaf node.

¾In the diagram, the quadrants are indexed spatially: 0 for NW, 1 for SW, 2 for SE, and 3 for NE.

¾Using the spatial indexing method and the hierarchical quad tree structure, the gray cells can be coded as 02, 032, and so on.

Rasters: The Storage Space/Resolution Tradeoff

Decreasing the cell size by one-fourth causes a

(16)

31

Raster Data Compression

¾Data compression refers to the reduction of data volume.

¾A variety of techniques are available for image compression. Compression techniques can be lossless or lossy.

¾Lossless Compression: One type of data compression that allows the original image to be precisely reconstructed.

¾Lossy Compression: One type of data compression that can achieve high compression ratios but cannot reconstruct fully the original image .

Raster – Advantages and Disadvantages

• Advantages

– Simple data structure – Easy overlay

– Various kinds of spatial analysis – Uniform size and shape

– Cheaper technology

• Disadvantages

– Large amount of data – Less “pretty”

– Projection transformation is difficult

(17)

33

Referensi

Dokumen terkait

In general, 1 slice of bread, 1 cup of ready-to-eat cereal, or 1/2 cup of cooked rice, pasta, or cooked cereal can be considered as 1 ounce equivalent from the grains group.. At least

Pathology: Ibrahim Hassan Al-Zahrani Professor 1992 The Royal College of England, UK http://ihalzahrani.kau.edu.sa/ Jawda Hassan Maghrabi Associate Professor 2001 University of

Place the QIAamp spin column in a clean 1.5ml microfuge tube not provided, and discard the collection tube containing the filtrate.. Carefully open the QIAamp spin column and add

NORMED ANDBANACHSPACES Definition 1.1:[Normed Space] LetX be a linear space over the fieldF.A mappingk.k:X−→Ris said to be a norm onxif it satisfies the following conditions 1 kxk≥0