Documente Academic
Documente Profesional
Documente Cultură
Abstract— In geographical information system, geographical redundancy. When geographical curves show large
curves expressed by curve will become a trend. In this paper, deflection, higher Bezier cubic accepted by graphic system
based on the study of features of the tension spline and Bezier could not adjust the shape of curves and meet the need of
curve, it is proposed for geographical curve a new method and geographical curves, especially in complex statistical
corresponding computing formula. In the method, we first fit evaluation (e.g. area, length), it is lead to be trouble in
the geographical curve by the tension spline, and the tension calculation and cannot be adapted to spatial analysis of
spline is divided by characteristic points, which finally is fitted geodatas.
by cubic Bezier curve piece by piece to a complete Bezier With the extensive application of geographic information
curve. Experiments show the different between fitted cubic
data and standardization development of graphic system, it is
Bezier curve and tension spline is small. The geographical
an inevitable trend that geographic curves express by curves.
curves expressed by the method express effectively the
geographical features, especially large deflection geographical It increasingly becomes the issues of concern that how to
curves, and are convenient for editing and meet the needs of express geographical curves better and can meet the
standardized metafile.
requirements of graphics system. In this paper, aimed at the
problem that geographic curves can be expressed by curves
Keywords: Geographical curves,Tension Spline,Bezier curves, better, combined the features of tension spline and Bezier
fitting curves, it is put forward that firstly tension spline fit
geographic curves, and then Cubic Bezier curves fit the
tension spline. We try to make the final fitted curves express
I. INTRODUCTION
the features of geographic curves and meet the requirements
In map and spatial data, there are various types of of graphics system.
geographical curves, such as boundaries, roads, contours,
hydrographic nets and so on, most of which show the II. TENSION SPLINE AND CUBIC BEZIER CURVE
features of graph in large deflection and continuous turns.
From the development initial period to the computer of A. Tension Spline
today, in geographical information system, geographical
curves has not been expressed by a standardized curves, Tension spline function is one of the functions used to
most of the expression is in the way of lines. The concrete describe the spline curve(shown in fig.1).The main feature of
measures of which fist make theoretical curve (e.g., the which is that bringing the tension coefficient σ into the
tension spline, parabola) fit geographical curves, and then common triple-tense spline function. When σ→0, the tension
linearize the fitting curves to express geographical curves. In spline function is equal to triple-tense spline functions; When
this category there are many approaches in first fitting σ→ ∞,the tense spline function retrograde to subsection
geographical curves: The spline under tension was linear functions, that is to say ,the adjacent nodes is linked
introduced in an attempt to imitate cubic splines but avoid using straight lines. We can choose appropriate tension
the spurious critical points they induce [1]. Based On the coefficient σ to change the degree of tightness of the curves,
absorption of the advantages of virtue oblique parabola and so that the trend of the curves is more rational and artistic.
the tension spline, the Tangent Erased Cape Method was
proposed [2]. A method of curve fitting with Bezier cubics Pn
has been applied to many digital images with good results
P1 Pn-1
[3]. The optimization of five spot smoothing and cubic spline
Hermite could meet the different demand in comprehensive P2
P3
mapping [5].
In general, the above approaches meet the need of
geographical curves, but these fitting curves do not meet the
demand of standardized graphic system, and are not accepted Figure 1. Tense spline curve
by standardized graphic system. With the development of the
computer technology, the graphic data in GIS will tend to be As shown in fig.1, Tension spline is made up of a series
standard increasingly.Fitting curves with lines have of feature points P1 ( x1 , y1 ), P1 ( x2 , y2 )," Pn( xn , yn ) , its parameter
shortcomings in concerning scales, editing, and heavy function is [10] :
22
Stagnation points and inflection points are obtained by According to the endpoint interpolation of Bezier curve,
equation according to the formula 1as follows: we can get the following equation:
Q2 Mq = L
Q1
About x to be listed:
Figure 3. Bezier curve fitting
Mx = Lx ;
When P1 ( x1 , y1 ) and P2 ( x2 , y2 ) are got. We can fit the Pij Pij +1
using cubic Bezier curve. Similarly,we can obtain the two About y to be listed:
control points on every segment of tension spline, and then
fit every segment using Bezier curve. Because the second My = Ly .
derivatives of the curve on the connection points are equal,
the Bezier curve that be connected is smooth. Analysis to the a,b are the first derivatives of start and end points, and
curve, we can get the conclusion : The curve has the they are the known values, the coordinates of the control
continuity of C2. points can be gotten by cashed method. We can fit the cubic
Supposed there are n section points on tension spline Bezier curve by all the coordinates of the control points
segment Pij Pij+1 , and it is divided into n-1 segments. As shown solved.
in fig.4: We can connect the cubic Bezier curve segments to form
a whole cubic Bezier curve, the shape of which is controlled
P0 ( x 0,y 0) by tense spline, so that it can satisfy the requirements of the
(P i ) Pn ( x n,y n) large interference curves, and not relay on the selection of
( P i+1) the coordinate system, it is good for the curve editor.
IV. COMPUTATION AND ANALYSIS FOR AN EXAMPLE
With n points of a contour line, we can generate a tension
q1
spline, and divide it into (n-1) parts. Taking a random part li
q2 qn for example, first we divide it into three parts averagely, as
q3 q n-1 shown in Fig 4.Next we can get the responding first and
Figure 4. Fitting the tense spline segments second derivative from formula (1). Putting points Pi,Pi+1
and points Ki+2,Ki+3 into formula (9) can get the control
points corresponding to line li1,and then the fitting cubic
23
Bezier curve Bil can be obtained. By this mean, fit line li2、li3 [4] Zhang Shi-qiang, “An Algorithm for Spline Interpolation Curve with
with cubic Bezier curve, connect each part to form a cubic the Shortest Perpendicular Distance”. Surveying and Mapping
Science, Vol. 3, 1997,pp.33-37.
Bezier curve. In this way we can get a whole Cubic Bezier
[5] Zhao Bo-tan,Jun Zhong, “A Research on Linear Elements Smoothing
curve fitting a tension spline. The other n-2 lines can be in the MapInfo System”. Bulletin of Surveying and Mapping,Vol.3,
fitted by the way. With different tension coefficients σ, we 2005,pp.25-27.
compare tension spline with cubic Bezier curve when length [6] Hu De-peng,Huang Xiao-ping,Ren Nian-hai, “Based on irregular
of li1 is 20cm , following shown in Table 1: triangulation (TIN) of isoline tracking algorithm and smooth contour
of the algorithm”. The Computer Science and Technology, Vol.3,
2006, pp.46-48.
[7] Tang Xi-rong,Wang Jia-ye,Peng Qun-sheng,Wang guo-
zhao,”Computer graphics tutorial”, Science press, Beijing . 2001.
[8] Wang Zhong,Liu Hao-wu,Chai He-jun, “Automatic generation of
contours in raster graphics ” . Journal of Hydraulic Engineering
.Vol.4, 2001, pp.53-56.
Figure 5. The fitting of contours [9] Sun Gui-ru etc, “Investigation on the Algorithm of making and filling
isoclines”. Journal of Tianjin University, Vol.33, 2000, pp. 816-818.
[10] Liu Yue,Liang Qi-zhang, “Special Mapping Automation”. Surveying
TABLE I. THE COMPARISON OF TENSION SPLINE AND CUBIC BEZIER and Mapping press, Beijing. 1981.
CURVE [11] Jame R.Juncaitis and John L.Jumkins: Mathematical Techniques for
Tension Automated Cartography,AD-758300,1973.
htention hBezier Δh (cm) Δh /L
coefficients (cm) (cm) [12] Farin G., “ Curves and Surfaces Computer Aided Geometric
σ =0.1 0.495 0.503 -0.008 -0.0002 Design”. Computer Science and Scientific Computation, Academic
σ =0.2 0.998 1.009 -0.011 -0.0006 Press, Inc., New York, NY.1993.
σ =0.3 1.497 1.512 -0.015 -0.0005
σ =0.4 2.001 2.015 -0.014 -0.0003
σ =0.5 0.097 0.101 -0.004 -0.0004
σ =0.6 0.347 0.351 -0.004 -0.0006
24