Professional Documents
Culture Documents
Book
(Technical Course )
written by Shunji Murai
Shunji Murai 1999.
Published by :
Japan Association of Surveyors (JAS)
1-3-4 Koishigawa, Bunkyo-ku
Tokyo 112, -JapanTelephone 3-5684-3354
Fax 3-3816-6870
Price : 20 US Dollars
Copyright for the materials is held by Shunji Murai. Permission to use these materials for any
purpose must be obtained in writing from Japan Association of Surveyors or Shunji Murai.
Permission is granted provided the source is clearly acknowledged together with the mark as
given below.
Shunji Murai 1998
CONTENTS
Technical Course
Preface
Resume of the author
Chapter 2 Interpolation
2.1 Principle of Interpolation
2.2 Curve Fitting
2.3 Surface Fitting
2.4 Least Square Method
2.5 Interpolation of Image Data
2.6 Interpolation of Image Data
Chapter 3 Digital Terrain Model (DTM)
3.1 DEM and DTM
3.2 Triangulated Irregular Network (TIN)
3.3 Generation of Contour Lines
3.4 Interpolation of Elevation fom Contours
3.5 Automated Generation of DEM
3.6 Orthoimage Generation
3.7 Extraction of Terrain Information
3.8 Shade and Shadow
Chapter 4 Spatial Analysis
4.1 What is Spatial analysis?
4.2 Query
4.3 Reclassification
4.4 Coverage Rebuilding
4.5 Overlay of Raster Data
4.6 Overlay of Vector Data
4.7 Connectivity Analysis
4.8 Shape Analysis and Measurement
3
Preface
Shunji Murai Professor and Doctor of Engineering
Institute of Industrial Science
University of Tokyo, Japan
Chair Professor, STAR Program
Asian Institute of Technology, Thailand
Recognizing that a well organized text book for education and training is a key issue for a
successful GIS. Asian Association on Remote Sensing (AARS) has established a working group
on GIS Text Book. As the General Secretary of AARS, I decided to demonstrate such a text book
myself, as a good sample that the working group members can improve upon. Otherwise it will
take much time for completing a perfect one.
"GIS Work Book" includes two volumes; Volume 1: Fundamental Course and Volume 2:
Technical Course. Fundamental Course focuses on the concept and role of GIS, data model and
structure, data input, database, hardware/software, installation of GIS, and successful GIS
applications in Japan.
On the other hand, the Volume 2: Technical Course summarizes several technicalities that
support GIS including coordinate systems, map projection, interpolation, digital terrain model
(DTM), spatial analysis, digital image processing and visualization. I feel very happy to note that
my teaching experience of over thirty years on photogrammety, DTM, remote sensing, computer
assisted cartography, GIS and global change study has been really useful in completing this
technical course. While writing this book, I realized that GIS is a multi-disciplinary science
supported by many different technologies. In this case there are so many things to learn and to
teach.
In 1996 and 1997, I published GIS Work Book- Fundamental Course and Technical Course
respectively with bi-lingal of English and Japanese. As some readers request me to publish only
English version, I reedited the two volumes into a book with only English version.
I believe that this text book with its two parts ; "fundamental course" and "technical course"
would be useful and helpful to not only students, trainees, engineers, salesmen but also to top
managers or decision makers.
I would like to thank Mr. Minoru Tsuzura, Japan Association of Surveyors for his administrative
support to make this English version possible
August,1998
Tokyo, Japan
The production of this CD-ROM was funded by National Space Development Agency of Japan
(NASDA) Remote Sensing Technology Center of Japan (RESTEC). The conversion into
electronic form was implemented by Asian Center for Research on Remote Sensing (ACRoRS)
of Asian Institute of Technology (AIT), Thailand in March 1999. The editing team members
were Professor Shunji Murai (Team Leader), Mr. Tin Aung Moe, Ms. Wandee Kijpoovadol and
Mrs. Nancy Canisius.
March, 1999
AIT, Thailand
5
International Activities :
First Vice President, International Society for Photogrammetry and Remote Sensing
(ISPRS)
1992-1996 President, International Society for Photogrammetry and Remote Sensing (ISPRS)
1981General Secretary, Asian Association on Remote Sensing (AARS)
Present
1992President, Japan Association of Remote Sensing (JARS)
Present
1979Executive Board Member, Japan Association of Surveyors (JAS)
Present
1989Editor in Chief, The Journal of Survey, Japan Association of Surveyors
Present
1997.7
Academician, International Eurasian Academy of Sciences
1994.10
Honorary Professor, Wuhan Technical University of Surveying and Mapping, China
Honorary Fellow, International Institute of Aerospace Survey and Earth Sciences
1993.4
(ITC), The Netherlands
1996-2000
Publications :
Toward Global Planning for Sustainable Use of the Earth ; Proceedings of the 8th
TOYOTA Conference, Editor, Elsevier Science, 1995
h: ellipsoid height
10
11
12
13
14
15
1-5 Distance
Distance is one of the important elements in measuring spatial objects in GIS. Several different
concepts of distance are defined as follows.
Euclidean Distance
Euclidean distance D is the defined as the distance measured along a straight line from point (x1,
y1 ) to point (x2, y2 ) in Cartesian coordinate system (see Figure 1.15 (a).
D2 = ( x1 - x2 ) + ( y1- y2 )2
Manhattan Distance
Manhattan distance D is defined as the rectilinear rout measured along parallels to X and Y axes
as shown in Figure 1.15 (b).
D = | x1 - x2| + | y1- y2|
Great Circle Distance
Great circle distance D is defined as distance along the great circle of the spherical Earth surface
from a point ( 1 1; latitude and longitude) to another point ( 2 2) as shown in Figure 1.15
(c).
where R is the radius of the Earth (R = 6370.3 km) on the assumption that
the Earth is a sphere.
Mahalanobis Distance
Mahalanobis distance D is a normalized distance in the normal distribution from the center ( )
to a point (X) in case of n dimensional normal distribution. Mahalanobis distance is used in the
maximum likelihood method for the classification of multi-spectral satellite images.
where S: variance-covariance matrix
Time Distance
Time distance is defined as the time required to move from point B to point A by using specific
transportation means.
Figure 1.15 shows major distances.
16
17
where _
: error of measurements
n : number of measurements
In GIS, errors result from the map itself, map digitizing and coordinate transformation, which
will sum up to about 0.5 mm on the map.
In digital GIS database, there is no concept of scale but resolution, expressed as pixel size
(interval or dot per inch), grid cell size or grid interval, ground resolution for satellite images and
so on.
There is a rough relationship between scale and resolution, as follows.
grid interval
where M : scale denominator
Table 1.2 shows the relationships between scale, accuracy and resolution. Height accuracy is
usually one third of the contour interval according to international standard. Most of pixel size of
the scanned raster data will be 200 ~ 400 d.p.i. (dot per inch) or 0.1 mm interval on maps.
18
Chapter 2 Interpolation
2-1 Principle of Interpolation
Interpolation is the procedure of estimating the value of properties at unsampled points or areas
using a limited number of sampled observations.
Figure 2.1 and Figure 2.2 show the principle of curve fitting and surface fitting respectively to
interpolate the value at an unsampled point using surrounding sampled points.
In case a single function of the curve or surface fitting is determined, the interpolation is called
global interpolation, and in case different functions are adopted locally and repeatedly in a small
portion of the total area, it is called local interpolation.
When curve or surface fitting is executed with all the sampled observations, the interpolation is
called exact interpolation, where as in case the fitted curve or surface does not pass through all
the sampled observations because of some expected errors, it is called approximate interpolation.
Approximate interpolation is sometimes used in spatial prediction of trend or representation of
grid cells or unit areas.
Figure 2.3 shows prediction of trend with an approximate curve interpolation and the variation
from the trend. Figure 2.4 shows an example of representation at a grid cell based on majority
rule.
19
20
The weight functions commonly used are the function of distance as follows.
21
22
- cubic interpolation : a third order polynomial is applied between two adjacent points under the
condition that the first and
second order differentials should be continuous. Such a curve is called "spline" (see Figure
2.9).
y = ax3 + bx2 + cx + d
In case, when the curve is not a single function of x as whown in Figure 2.10, an auxilliary
variable u should be introduced as follows.
Approximate Interpolation
There are three methods;
- Moving Average : a window with a range of -d to +d is set to average the observation within
the region as shown in
Figure 2.11
- B spline : a cubic curve is determined by using four adjacent observations as shown in Figure
2.12
- Curve Fitting by Least Square Method : see section 2-5
23
24
25
Bicubic Interpolation
Third order polynomial is used to fit a continuous surface using 4 x 4 = 16 adjacent points as
shown in Figure 2.14.
z is calculated using the following formula.
26
27
Coordinate Transformation
For example, when a digitizer is used to digitize map data on a paper map sheet in the digitizers
coordinate system as shown in Figure 2.17 (a), users want to transform it into map coordinate
system as shown in Figure 2.17 (b) using the four tic marks at the corner. The rotation, scale and
shift can be adjusted with only two points mathematically. But two more additional redundant
measurements are strongly recommended because of measurement errors. In such cases the least
square method is applied.
28
29
Resampled image data are computed using 4 x 4 = 16 surrounding original image data as shown
in Figure 2.19 (d).
30
)
31
32
33
34
35
36
37
38
where
, and
39
40
41
42
43
44
45
46
47
48
49
4-2 Query
Query is to retrieve the attribute data without altering the existing data according to
specifications given by the operator.
The specifications include the following three items, given usually in Standard Query Language
(SQL).
SELECT: attribute name (s)
FROM: table
WHERE: condition statement
The conditional statement is represented by the following three types of operator.
relational: >, <, =, ,
Arithmetic: +, -, x,
Boolean (logical): AND, OR, NOT, XOR (exclusive OR)
The Boolean operators are used to combine more than two conditions as shown in Figure 4.2.
The Boolean operators are based on 0 and 1; 0 if the attributes do not meet the condition and 1 if
they do as shown in Figure 4.2.
The Boolean operators are based on 0 and 1; 0 if the attribute do not meet the condition and 1 if
they do as shown in
Figure 4.3.
AND: multiply
OR: add (2 is reclassified to 1)
NOT: subtract (-1 is reclassified to 0)
XOR: (add)- (multiply)
50
51
4-3 Reclassification
Reclassification is to reassign new thematic values or codes to units of spatial feature, which will
result in merging polygons.
A set of "reclassify attributes", "dissolve the boundaries" and "merge the polygons" are used
frequently in aggregating area objects, as already shown in Figure 4.1 (b).
Reclassification is executed in the following cases.
Generalization: reassignment of existing data into smaller number of classes. Generalization
will result in a reduction of the level of detail.
Ranking: valuation of attributes based on an evaluation model or table specified by
Reselection :selection of features to be kept and removal of unselected features.
Figure 4.4 shows examples of the above three cases
52
53
54
55
56
57
58
59
Area:
where xn+1 = x1, yn+1 + y1
Perimeter:
Centroid (Center of Gravity) (see Figure 4.11)
60
61
62
63
- Histogram matching: the histograms per band and/or per sensor are calculated and the
cumulative histogram with cut-offs at
1% and 99% will be relatively adjusted to the reference histogram as shown in Figure 5.5.
- Least square method: linear function of y = ax + b is determined, where y is reference data and
x is data to be normalized.
64
65
66
67
68
69
70
71
72
73
74
where:
: mean vector of the ground truth data in class k
: Variance-covariance matrix of K class produced from the ground truth data
: determinant of Sk
For practical computation, the above likelihood is converted to the discriminant function in the
form of logarithm.
Gk (X) = In |Sk| + d2k
where : d2k =
Instead of maximum Lk (X), class k that makes Gk (X) minimum is searched for among the
classes.
The maximum likelihood classifier is popular because of its robustness and simplicity. But there
will be some errors in the results if the number of sample data is not sufficient, the distributions
of the population does not follow the Gaussian distribution and/or the classes have much overlap
in their distribution resulting in poor Separability.
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
The end
92