A Global Continuous Multi-Scale Terrain Contour Simplification Method Based on the Level Set

Multi-scale spatial representation has been widely used in geographic information and online mapping systems. Terrain contour, which provides a reference for understanding and monitoring the Earth’s surface, is an important data category. For the multi-scale representation of contour lines, simplification is a fundamental step in providing different levels of detail for linear features. However, achieving a global continuous multi-scale simplification of contours remains a challenge. Therefore, based on the concept of level set, a novel contour simplification method labeled the continuous changing surface model (CCSM) was proposed in this paper. The CCSM was built by using a non-uniform rational B-spline constrained with characteristics and was then intersected with a set of horizontal planes with progressive height values. The generated intersection lines are considered continuous multi-scale simplified contours. Experiments were conducted on a 1:50,000 real contour dataset to verify the effectiveness of CCSM. Results showed that the changes in the shape of the simplified contours generated by CCSM are more natural and progressive than those generated by two other significant simplification methods. CCSM can also effectively balance local and global structures and has potential applications in obtaining a continuous multi-scale representation of terrain contours.


Introduction
Multi-scale spatial representation has a wide range of applications, such as zooming in/out, and is among the most common operators in geographic information and online mapping systems [1][2][3][4]. Rendering spatial data at different scales also improves our understanding and analysis of spatial data, thereby meeting the continuous visual needs of modern map users. As essential geomorphic elements, contour lines are among the most often used data for describing the geographic information of the Earth's surface [5][6][7]. A simplification of these contour lines provides different levels of detail for linear features, which is an effective operator for maintaining essential shapes in multi-scale terrain maps [1,8,9]. Although contour simplification methods have been investigated for a long time, studies on the continuous multi-scale representation of contour lines still face considerable limitations.
The first strategy, point set reduction, is a straightforward approach for achieving simplified polylines. The classical Douglas-Peucker (DP) algorithm [10] introduced a pre-defined threshold for selecting a set of significant vertices recursively for simplification. However, the simplified contours seem stiff and may contain self-intersection and topological conflicts when dealing with dense contours for multi-scale simplification. To improve the DP algorithm, Saalfeld et al. [12] utilized dynamic convex hull algorithms, neighborhood screening, and efficient measures of topological consistency between features to avoid potential topological conflicts. Wu et al. [14] employed convex hull computations by partitioning a polyline into a set of separable star-shaped sub-polylines and applying the DP algorithm for each sub-polyline to avoid self-intersection along the recursive refinements. Pallero et al. [15] proposed an enhanced simplification algorithm based on the DP algorithm to obtain robust results regardless of the morphology of the initial line. However, when simplifying dense contours, the above methods generate results with discontinuous deformation. Meanwhile, the essential shape features of simplified contours may shift or contain topological errors.
For the second strategy, bending simplification, Wang and Muller [18] proposed the Wang-Muller (WM) simplification algorithm to maintain the structure of simplified bends based on size, shape, and context. Zhu et al. [20] leveraged the furthest visibility principle to divide the bend area of the contour line and to maintain the main characteristics of simplified contours at the target scale without self-intersection. Ai et al. [8] presented a simplified algorithm based on Delaunay triangulation and Perkal's ε-circle rolling algorithm to preserve the essential bend of a polyline and maintain the area amid large-scale changes during the simplification process. However, these bend reduction methods for simplifying polylines focus on simplifying the local bend than the global structure continuity.
The third strategy, scale-driven simplification, has become popular in recent years. Li and Openshaw [21] proposed a "natural principle" that can be employed to the overall shape simplification of linear features to address the stiff simplified results of the DP algorithm. Bertolotto and Egenhofer [22] proposed a model that can be used to represent multiscale maps and guarantee the consistency of generalized data in the simplification process. Nöllenburg et al. [25] focused on polyline morphing at different scales and presented a dynamic programming algorithm with the corresponding linear features. Deng et al. [23] proposed an improved morphing method for two linear features at different scales based on their entire structural information. Li et al. [9] used simulated-annealing-based morphing (SABM) to implement continuous linear features generalization. Du et al. [24] proposed a progressive simplification method based on multi-bend groups that can delete bend units as little as possible. This method has advantages in area preservation during the multi-scale representation. Liu et al. [1] proposed a Fourier-based method using head/tail breaks that simplifies polylines via a Fourier approximation according to the global shape. These scale-driven simplification methods have advantages over the two aforementioned strategies (i.e., point set reduction and bending simplification). However, they lack domainspecific constraints in the scale-driven simplification process, thereby producing simplified results that do not completely follow the essential global structure of the initial line at continuous scales.
In sum, the three aforementioned simplification strategies still show limitations in continuous multi-scale representation. On the one hand, simplifications occur only through a few fixed scales. This problem makes it impossible to show data from one scale to another smoothly and ignores the actual morphological transformations of the contour line of desired scales between fixed scales. On the other hand, the local structures are overemphasized, and the global structures of linear characteristics are ignored during the simplification of continuous multiple scales, which may lead to a sudden change in the shape of the contour line ('jumps') during transformation. Given these limitations, this study proposes a novel contour simplification method to retain the global structure of linear characteristics and to implement a multi-scale deformation of contours continuously. This method is labeled the continuous changing surface model (CCSM) based on the notion of the level set method. The core idea of the level set method [26,27] is that the motion of lower-dimensional (e.g., 2D) curves can be derived from a higher dimensional (e.g., 3D) surface. Accordingly, our simplification model derives 2D simplified contours from a meticulously constructed 3D surface labeled the continuous changing surface (CCS). According to the contour features, a CCS is established between two contours and is then intersected with a set of horizontal planes with continuous height values. The generated intersection lines are considered simplified contours with continuous scales. We also compare our proposed method with two traditional significant polyline simplification methods on a real contour dataset in China to validate the effectiveness of CCSM. Results show that the shape changes of contours simplified by CCSM are natural and continuous between scales and that the CCSM maintains the global shape features much better than the other two classical significant simplification algorithms.
The major original contributions of this study are twofold. First, we propose the CCSM simplification method guided by the level set framework to derive simplified contours with continuous multi-scale transformation, thereby reducing the loss of deformed details during the continuous multi-scale simplification process. Second, we propose a new contour deformation analysis method, namely, a shape similarity-scale trend line based on the improved Fréchet distance, which provides a tool for evaluating the performance of multi-scale polyline simplification methods.
The rest of this paper is organized as follows. Section 2 elaborates on the proposed method. Section 3 describes the experiment using the contour dataset and reports the results. Section 4 discusses two key factors affecting the quality of CCSM, the arbitrary scale simplification, and the retention of topographical features. Section 5 concludes the paper.

Methodology
The CCSM methodological framework was proposed for global continuous multiscale contour simplification. The main idea of this framework is to derive 2D contours from a 3D surface by using the level set method. The 3D surface was constructed by the non-uniform rational B-spline (NURBS), a common mathematical form for representing standard analytical shapes and free-form curves/surfaces [28,29]. The built 3D surface, namely, the continuous changing surface (CCS), was used to guide the entire simplification process. The framework consists of the following main steps as shown in Figure 1: (1) Extracting characteristics. The extraction of contour characteristics aims to preserve the global morphology features of simplified contour lines. These characteristics include characteristic points, characteristic sub-polylines, and characteristic links. To define CCSM constraints, the most significant morphology feature points in the shape were extracted from the initial contour to form a target contour by using the DP algorithm. The initial and target contours were converted into NURBS curves, and the two contour lines were assigned two height values. Accordingly, the NURBS curves were segmented into characteristic sub-polylines based on the characteristic points. Characteristic links were then constructed by linking the characteristic points of these two curves in order.
(2) Building the CCS. The extracted characteristics were used to weave a wireframe (WF) that constrains the construction of the CCS. Faced with this constraint, the CCS was built by using the NURBS function.
(3) Generating global continuous multi-scale simplified contours. First, the CCS was converted into a triangle mesh (CCS-mesh), which was then intersected with a set of horizontal planes with continuous height values. The generated intersection lines served as global continuous multi-scale simplified contours.

Extracting Characteristics
Linear features are considered basic elements in maps and suitable featu need to be retained during multi-scale transformation [23]. Therefore, when const the CCS, the optimum extraction of morphology characteristics and the const characteristics are critical to obtain the final global continuous multi-scale simpli sults. The characteristics of CCS include characteristic points, chara sub-polylines, and characteristic links.
(1) Characteristic points. The boundary of the CCS needs to be constructed w initial contour 0 and the target contour . 0 represents the initial contour large scale, whereas represents the target contour with a small scale. These tw tours served as boundaries for building the CCS.
(2) Characteristic sub-polylines. 0 and were resampled via equidistan pling to ensure that they have the same number of points. To maintain the morp shape of the contour line, the number of resampling points should exceed the nu characteristic points extracted from the initial contour. All resampling points we sidered characteristic points. Then, two NURBS curves ( ′ 0 and ′ ) were define the characteristic points from 0 and , respectively. It is worth notin 0 and ′ 0 are highly similar in shape and size, as are n and ′ n . Meanwhile, the B curve was built based on the control points ( = 0,1, … , ), which are the chara points of 0 or , where represents the number of characteristic points of 0

Extracting Characteristics
Linear features are considered basic elements in maps and suitable features that need to be retained during multi-scale transformation [23]. Therefore, when constructing the CCS, the optimum extraction of morphology characteristics and the constraint of characteristics are critical to obtain the final global continuous multi-scale simplified results. The characteristics of CCS include characteristic points, characteristic sub-polylines, and characteristic links.
(1) Characteristic points. The boundary of the CCS needs to be constructed with the initial contour L 0 and the target contour L n . L 0 represents the initial contour with a large scale, whereas L n represents the target contour with a small scale. These two contours served as boundaries for building the CCS.
(2) Characteristic sub-polylines. L 0 and L n were resampled via equidistant sampling to ensure that they have the same number of points. To maintain the morphology shape of the contour line, the number of resampling points should exceed the number of characteristic points extracted from the initial contour. All resampling points were considered characteristic points. Then, two NURBS curves (L 0 and L n ) were defined using the characteristic points from L 0 and L n , respectively. It is worth noting that L 0 and L 0 are highly similar in shape and size, as are L n and L n . Meanwhile, the B-spline curve was built based on the control points P i (i = 0, 1, . . . , m), which are the characteristic points of L 0 or L n , where m represents the number of characteristic points of L 0 or L n . Generally, the NURBS curve (p(u)) is defined over the knot U = {u 0 , u 1 , . . . , u m } vector as Equation (1).
where N i,k (u) is the B-spline base function of order k (where k is set to 3), which is represented as Equation (2).
Accordingly, the characteristic sub-polylines of L 0 and L n were obtained based on these characteristic points.
(3) Characteristic links. The direct lines in a sequence linked the characteristic points. These links represent the correspondence relationship between the characteristic points of L 0 and L n , and are thereby labeled characteristic links.
In sum, as shown in Figure 2, the characteristic points, characteristic sub-polylines, and characteristic links were used as feature constraints that are inherited from the initial and target contours to constrain the global continuous multi-scale simplification process. To build the CCS in the 3D space, Z min and Z max were assigned the bottom and top height values of CCS. Z min and Z max correspond to the height values of L 0 and L n , respectively. Accordingly, the characteristic points, characteristic sub-polylines, and characteristic links on L 0 and L n also inherit the height values Z min and Z max .
Accordingly, the characteristic sub-polylines of ′ 0 and ′ were obtained based on these characteristic points.
(3) Characteristic links. The direct lines in a sequence linked the characteristic points. These links represent the correspondence relationship between the characteristic points of ′ 0 and ′ , and are thereby labeled characteristic links.
In sum, as shown in Figure 2, the characteristic points, characteristic sub-polylines, and characteristic links were used as feature constraints that are inherited from the initial and target contours to constrain the global continuous multi-scale simplification process. To build the CCS in the 3D space, and were assigned the bottom and top height values of CCS. and correspond to the height values of ′ 0 and ′ , respectively. Accordingly, the characteristic points, characteristic sub-polylines, and characteristic links on ′ 0 and ′ also inherit the height values and .

Level Set Method
Osher and Sethian proposed the level set method [26], whose main idea is to raise some computations in lower dimensions to a higher one and consider the N-dimensional description as a level of N+1 dimensions, which is an effective implicit representation of curves and surfaces [26,27]. In other words, the motion of lower-dimensional (e.g., 2D) curves can be derived from a higher-dimensional (e.g., 3D) surface, thereby allowing the derivation of 2D simplified contours from the 3D surface. The implicit function is essential in guiding the motion of curves on the surface. Based on the notion of the level set method, the NURBS function was selected in this study as an implicit function to generate CCS.

Level Set Method
Osher and Sethian proposed the level set method [26], whose main idea is to raise some computations in lower dimensions to a higher one and consider the N-dimensional description as a level of N+1 dimensions, which is an effective implicit representation of curves and surfaces [26,27]. In other words, the motion of lower-dimensional (e.g., 2D) curves can be derived from a higher-dimensional (e.g., 3D) surface, thereby allowing the derivation of 2D simplified contours from the 3D surface. The implicit function is essential in guiding the motion of curves on the surface. Based on the notion of the level set method, the NURBS function was selected in this study as an implicit function to generate CCS.

Building the CCS Based on Characteristics
To constrain the shape change of the contour during the simplification process, the CCS was built based on characteristics. The CCS building process was divided into three steps.
Step 1. Setting characteristics in the 3D space. As described in Section 2.1, all the characteristic points, characteristic sub-polylines, and characteristic links on L 0 and L n inherit the height values from Z min and Z max .
Step 2. Building a wireframe (WF) from 3D characteristics. As shown in Figure 3, four points were sampled on each characteristic link with equal intervals to construct a third-order NURBS surface uniformly. These points were merged into the constraints of characteristics, which act together during the construction of the WF. Step 1. Setting characteristics in the 3D space. As described in Section 2.1, all the characteristic points, characteristic sub-polylines, and characteristic links on ′ 0 and ′ inherit the height values from and .
Step 2. Building a wireframe (WF) from 3D characteristics. As shown in Figure 3, four points were sampled on each characteristic link with equal intervals to construct a third-order NURBS surface uniformly. These points were merged into the constraints of characteristics, which act together during the construction of the WF. Step 3. Constructing the CCS based on the WF. By using the NURBS function, the CCS was constructed in consideration of the WF constraints as shown in Equation (3).
where (•) indicates the operator of acquiring the NURBS surface by the constraints of , which is defined as Equation (4).
where (0 ≤ ≤ , 0 ≤ ≤ ) represent the points on , represents the number of characteristic points of ′ 0 , which is the same as that of ′ , represents the number of points on characteristic links and is set to 4, represents the corresponding weight of , and ( ) and ( ) are the normalized B-spline base functions of order and , respectively (both and are set to 3, −1 ≤ ≤ +1 , −1 ≤ ≤ +1 ) and are defined over knot vectors = { 0 , 1 , … , , … , + } and = { 0 , 1 , … , , … , + }. Based on these knot vectors, the following matrix × was obtained. As shown in Equation (5).
As shown in Figure 4, a NURBS surface is constructed, which is referred to as the CCS in this study. The CCS plays a vital role in guiding the global continuous contour simplification process. Step 3. Constructing the CCS based on the WF. By using the NURBS function, the CCS was constructed in consideration of the WF constraints as shown in Equation (3).
where NURBS f unction (·) indicates the operator of acquiring the NURBS surface by the constraints of WF, which is defined as Equation (4).
where P ij (0 ≤ i ≤ n, 0 ≤ j ≤ m) represent the points on WF, n represents the number of characteristic points of L 0 , which is the same as that of L n , m represents the number of points on characteristic links and m is set to 4, ω ij represents the corresponding weight of P ij , and N ik (u) and N jl (v) are the normalized B-spline base functions of orders k and l, respectively (both k and l are set to 3, and are defined over knot vectors U = {u 0 , u 1 , . . . , u n , . . . , u n+k } and V = {v 0 , v 1 , . . . , v m , . . . , v m+k }. Based on these knot vectors, the following matrix M n×m was obtained. As shown in Equation (5).
As shown in Figure 4, a NURBS surface is constructed, which is referred to as the CCS in this study. The CCS plays a vital role in guiding the global continuous contour simplification process.

Generation of Simplified Contours
Contour lines are essential parts of a terrain model. In terrain modeling, multiple levels of contours can be modeled on the 3D surface, and each contour depicts a terraced representation of the 3D surface at an elevation level. To obtain simplified contours, the CCS was intersected with a set of horizontal planes with successive height values to generate intersection lines. These intersection lines were taken as global continuous multi-scale simplified contours with varying simplification degrees of the initial contour.
To calculate the intersection lines between CCS and a set of horizontal planes, the CCS was tessellated into a polygonal mesh (e.g., triangle or quadrangle), that is, the � , �, values of NURBS were mapped to the corresponding grid points of the polygonal mesh. The triangle mesh was used to generate a polygonal mesh due to its advantages in the rapid generation and its intersection with planes. As shown in Figure 5, the triangle mesh comprises a set of triangular faces covering CCS and was therefore labeled CCS-mesh. This mesh may become irregular due to the uneven distribution of unconstrained sample grid points. To ensure the stability and convergence of the numerical solution, a suitable mesh generation technique should be applied to construct the appropriate surface mesh and to maintain a well-defined mesh that fits well in the CCS throughout the intersection process. Based on the CCS-mesh, we built a set of equidistant horizontal planes to intersect the CCS-mesh and the intersection lines that are regarded as simplified intermediate results. As defined in Equation (6) below, the result of every horizontal plane intersecting the CCS-mesh is an intersection line ( ) . The height corresponds to each horizontal

Generation of Simplified Contours
Contour lines are essential parts of a terrain model. In terrain modeling, multiple levels of contours can be modeled on the 3D surface, and each contour depicts a terraced representation of the 3D surface at an elevation level. To obtain simplified contours, the CCS was intersected with a set of horizontal planes with successive height values to generate intersection lines. These intersection lines were taken as global continuous multi-scale simplified contours with varying simplification degrees of the initial contour.
To calculate the intersection lines between CCS and a set of horizontal planes, the CCS was tessellated into a polygonal mesh (e.g., triangle or quadrangle), that is, the u i , v j , values of NURBS were mapped to the corresponding grid points of the polygonal mesh. The triangle mesh was used to generate a polygonal mesh due to its advantages in the rapid generation and its intersection with planes. As shown in Figure 5, the triangle mesh comprises a set of triangular faces covering CCS and was therefore labeled CCS-mesh. This mesh may become irregular due to the uneven distribution of unconstrained sample grid points. To ensure the stability and convergence of the numerical solution, a suitable mesh generation technique should be applied to construct the appropriate surface mesh and to maintain a well-defined mesh that fits well in the CCS throughout the intersection process.

Generation of Simplified Contours
Contour lines are essential parts of a terrain model. In terrain modeling, multiple levels of contours can be modeled on the 3D surface, and each contour depicts a terraced representation of the 3D surface at an elevation level. To obtain simplified contours, the CCS was intersected with a set of horizontal planes with successive height values to generate intersection lines. These intersection lines were taken as global continuous multi-scale simplified contours with varying simplification degrees of the initial contour.
To calculate the intersection lines between CCS and a set of horizontal planes, the CCS was tessellated into a polygonal mesh (e.g., triangle or quadrangle), that is, the � , �, values of NURBS were mapped to the corresponding grid points of the polygonal mesh. The triangle mesh was used to generate a polygonal mesh due to its advantages in the rapid generation and its intersection with planes. As shown in Figure 5, the triangle mesh comprises a set of triangular faces covering CCS and was therefore labeled CCS-mesh. This mesh may become irregular due to the uneven distribution of unconstrained sample grid points. To ensure the stability and convergence of the numerical solution, a suitable mesh generation technique should be applied to construct the appropriate surface mesh and to maintain a well-defined mesh that fits well in the CCS throughout the intersection process. Based on the CCS-mesh, we built a set of equidistant horizontal planes to intersect the CCS-mesh and the intersection lines that are regarded as simplified intermediate results. As defined in Equation (6) below, the result of every horizontal plane intersecting the CCS-mesh is an intersection line ( ) . The height corresponds to each horizontal plane and is between the elevations of and . An intersection contour cluster Based on the CCS-mesh, we built a set of equidistant horizontal planes to intersect the CCS-mesh and the intersection lines that are regarded as simplified intermediate results.
As defined in Equation (6) below, the result of every horizontal plane intersecting the CCSmesh is an intersection line L (Zi) . The height Z i corresponds to each horizontal plane and is between the elevations of Z min and Z max . An intersection contour cluster was obtained by iterating the intersection between CCS-mesh and every horizontal plane. These intersecting lines were considered simplified contour lines. The scale corresponding to these simplified contour lines continuously varied between the scales of the initial and target contours. Figure 6 presents an example of the simplified intermediate results generated by the CCS-mesh intersecting with a set of horizontal planes. Figure 6a represents a set of equidistant horizontal planes with continuous elevation; Figure 6b shows the intersection between the CCS-mesh and planes; Figure 6c illustrates the global continuous multiscale transformation of intersection lines. Each intersection line between the CCS-mesh and a horizontal plane captured the morphology characteristics of contours at a certain height level. Therefore, this cluster of simplified contours preserves the morphology characteristics corresponding to the continuously changing scales between the initial and target contours. The location or number of horizontal planes can be determined based on the desired scale simplified results or the number of simplified contours demanded by users.
was obtained by iterating the intersection between CCS-mesh and every ho plane. These intersecting lines were considered simplified contour lines. The sc responding to these simplified contour lines continuously varied between the s the initial and target contours. Figure 6 presents an example of the simplified intermediate results generated CCS-mesh intersecting with a set of horizontal planes. Figure 6a represents a set distant horizontal planes with continuous elevation; Figure 6b shows the inte between the CCS-mesh and planes; Figure 6c illustrates the global continuous mu transformation of intersection lines. Each intersection line between the CCS-mes horizontal plane captured the morphology characteristics of contours at a certain level. Therefore, this cluster of simplified contours preserves the morphology ch istics corresponding to the continuously changing scales between the initial an contours. The location or number of horizontal planes can be determined based desired scale simplified results or the number of simplified contours demanded b

Estimation of the Scales for the Simplified Contours
As a general rule, in cartographic generalization, the shape similarity of a contour should correspond to its scale value. The contour lines with complex shapes have a large scale, whereas those lines with simple shapes have a small scale. When the topographic map was simplified from large to small scale, the shape of contour lines on the topographic map also changed from complex to simple [30]. According to Li [31], similarity is a measure that has been widely used to analyze the shape relationship of topographical objects. In this subsection, the shape similarity between the simplified and initial contours was used as an intermediary to estimate the scale of an arbitrary simplified contour.
The shape similarity between two curves is often defined based on a specific distance measure [32]. One common metric of curve similarity is the Fréchet distance, which takes the flow of two curves into account and the pairs of points whose distance contributes to the Fréchet distance sweeping continuously along the respective curves [33]. However, the uneven distribution of the points of a polyline may affect the accuracy of the distance of this polyline [34]. To deal with such an uneven distribution, we proposed an improved Fréchet distance method based on equidistant resampling points to precisely reflect the shape similarity between two contour lines [35].
First, L (Zi) represents the simplified contour corresponding to the horizontal plane with a height value of Z i . The points on the simplified contour L (Zi) were resampled via equidistant sampling, and the number of resampling points was similar to that in L 0 . The initial contour line is L 0 : [0, n] → V , where V is a metric space and n is a positive integer. The sequence (L 0 (0), L 0 (1), . . . , L 0 (n)) of the characteristic points of the characteristic sub-polylines of L 0 was denoted by δ(L 0 ). L (Zi) was defined similar to L 0 . Let , where p and q denote the number of characteristic sub-polylines on the two contour lines. Therefore, the coupling should follow the order of points in L 0 and L (Zi) . The number of points here refers to the number of characteristic points. The length L of coupling L represents the length of the longest link in L as shown in Equation (7).
Given two contour lines L 0 and L (Zi) , their improved Fréchet distance is defined as Equation (8). This distance index can provide a basis for accurately capturing the similarity of the two contour lines. δ dF L 0 , L zi = min | L |L is a coupling between L 0 and L (Zi) (8) Then, the similarity between L(Z i ) and L 0 is defined as Equation (9) based on the improved Fréchet distance.
where δ dF (L 0 , L Zi ) represents the improved Fréchet distance between contours L 0 and L Zi , and Length(L 0 ) represents the length of L 0 . Note that Sim(L 0 , L 0 ) = 1 and To reveal the correspondence between shape similarity and scale, we used an exponential regression function to fit the ideal relationship between the similarity of contours and scale [36,37]. Ideally, as the scales changed continuously from large to small, the shapes of the contour lines were transformed from complex to simple, and the similarity value gradually changed from large to small. As shown in Figure 7, the relationship between the contour scales and similarity values was fitted with an exponential regression function. The horizontal axis represents the scale, whereas the vertical axis represents the similarity value between the initial large-scale contour lines and the other small scales. As shown in ppl. Sci. 2021, 11,3855 scales. As shown in Figure 7, the trend of the relationship between the sim and scale is continuous and monotonic in the ideal case. The transitions of gradual simplification from ′ 0 to ′ were emula tersections of the CCS-mesh and the horizontal plane. To generate a simp cluster from ′ 0 to ′ , each horizontal plane was assigned the height va equal interval sequence. Given that the relationship between the scale and different scale contours can be fitted with an exponential regression functio trend is continuously monotonic, according to Equation (9) and based on t derived by values, an interpolation function ( ′ 0 , ′ , ) was formula terize the transition. is a scaling parameter with values ranging from 0 be used to bridge the continuous scales between ′ 0 and ′ by mapping ring to the scales of ′ 0 and ′ , can be linearly converted into common When is 0, the scale is the initial scale of ′ 0 , but when is 1, the scal scale of ′ . In turn, the contour cluster can be ordered by . According to tion function , the arbitrary scale of the simplified contours can be determ value and its corresponding value. In sum, each simplified contour has scale and similarity with ′ 0 . Therefore, the proposed method can achieve a simplification.

Experimental Settings and Data
The CCSM was implemented by using the Open Cascade library give structure is compatible with ISO 10303-42 guidelines. ISO 10,303 is known ard for the Exchange of Product Model Data as published by the Internatio tion for Standardization (ISO) and the Initial Graphics Exchange Specifica standard can guarantee a certain level of generality of our proposed me periment was conducted on a computer equipped with an Intel Core i5-63 The transitions of gradual simplification from L 0 to L n were emulated by the intersections of the CCS-mesh and the horizontal plane. To generate a simplified contour cluster from L 0 to L n , each horizontal plane was assigned the height value Z i in the equal interval sequence. Given that the relationship between the scale and similarity of different scale contours can be fitted with an exponential regression function and that the trend is continuously monotonic, according to Equation (9) and based on the similarities derived by Z i values, an interpolation function R s (L 0 , L n , t) was formulated to characterize the transition. t is a scaling parameter with values ranging from 0 to 1 that can be used to bridge the continuous scales between L 0 and L n by mapping Z i . By referring to the scales of L 0 and L n , t can be linearly converted into common actual scales. When t is 0, the scale is the initial scale of L 0 , but when t is 1, the scale is the target scale of L n . In turn, the contour cluster can be ordered by t. According to the interpolation function R s , the arbitrary scale of the simplified contours can be determined by the t value and its corresponding Z i value. In sum, each simplified contour has a determined scale and similarity with L 0 . Therefore, the proposed method can achieve arbitrary scale simplification.

Experimental Settings and Data
The CCSM was implemented by using the Open Cascade library given that its data structure is compatible with ISO 10303-42 guidelines. ISO 10,303 is known as the Standard for the Exchange of Product Model Data as published by the International Organization for Standardization (ISO) and the Initial Graphics Exchange Specification [38]. This standard can guarantee a certain level of generality of our proposed method. The experiment was conducted on a computer equipped with an Intel Core i5-6300U 2.40 GHz processor. As shown in Figure 8, the 1:50,000 topographic map of the northeastern part of Huimin, Chongqing, China, was downloaded from Google Earth and was used as our experimental contour dataset. Google Earth uses the Shuttle Radar Topography Mission as its digital elevation model data, which are mainly measured by NASA and the National Imagery and Mapping Agency. The digital elevation model data in China has an accuracy of 90 m [39].

Results and Analysis
To evaluate the effectiveness of our proposed method, the simplified contours gen erated by the Douglas-Peucker (DP) algorithm, Wang-Muller (WM) algorithm, and CCSM were compared. First, a visual analysis was performed to examine and verify the ability of these methods in showing the continuous multi-scale details of simplified contours. Second, the shape similarity change trend of multi-scale simplified contour generated by these methods was evaluated. Third, the retention degree of the globa structural features of simplified contours generated by these methods was compared Fourth, the change degree in position was assessed.

Results and Visual Analysis
This section compares the deformation process of the multi-scale simplified con tours produced by the aforementioned three methods under the same source and targe scale conditions. In this way, we guarantee that the simplified result generated by these methods is a transformation between the same two scales. The source contour scale wa taken as the initial scale (i.e., 1:50,000), whereas the target contour scale was taken as the target scale (i.e., 1:200,000). The target contour of the CCSM was simplified by the DP algorithm and was the same as that of the DP algorithm. To easily detect changes in the shape of the simplified contours, the three simplification methods all produced 100 sim plified contours (including the initial and target contours). Table 1 presents the parame ter settings for generating these contours. For CCSM, the number of horizontal plane was set to 100. The DP algorithm was iterated 100 times, and the reduction of the reser vation point decreased at a rate of 0.01. The WM algorithm was iterated 100 times, and the bend reduction rate was 0.01.

Parameter
Value Number of horizontal planes (CCSM method) 100 Reduction rate of points (DP algorithm) 1% Reduction rate of bends (WM algorithm) 1% Figure 9 shows the experimental results obtained by the DP algorithm, WM algo rithm, and CCSM. No. 1 denotes the initial contour and No. 100 denotes the target con tour. The intermediate simplified contours between the initial and target contours are represented by serial numbers (Nos. 2 to 99). We only show here the key shape of a few intermediate simplified results obtained by the three methods during the entire simpli

Results and Analysis
To evaluate the effectiveness of our proposed method, the simplified contours generated by the Douglas-Peucker (DP) algorithm, Wang-Muller (WM) algorithm, and CCSM were compared. First, a visual analysis was performed to examine and verify the ability of these methods in showing the continuous multi-scale details of simplified contours. Second, the shape similarity change trend of multi-scale simplified contours generated by these methods was evaluated. Third, the retention degree of the global structural features of simplified contours generated by these methods was compared. Fourth, the change degree in position was assessed.

Results and Visual Analysis
This section compares the deformation process of the multi-scale simplified contours produced by the aforementioned three methods under the same source and target scale conditions. In this way, we guarantee that the simplified result generated by these methods is a transformation between the same two scales. The source contour scale was taken as the initial scale (i.e., 1:50,000), whereas the target contour scale was taken as the target scale (i.e., 1:200,000). The target contour of the CCSM was simplified by the DP algorithm and was the same as that of the DP algorithm. To easily detect changes in the shape of the simplified contours, the three simplification methods all produced 100 simplified contours (including the initial and target contours). Table 1 presents the parameter settings for generating these contours. For CCSM, the number of horizontal planes was set to 100. The DP algorithm was iterated 100 times, and the reduction of the reservation point decreased at a rate of 0.01. The WM algorithm was iterated 100 times, and the bend reduction rate was 0.01. Table 1. Experimental parameter settings of three simplification methods for generating 100 simplified contours.

Parameter Value
Number of horizontal planes (CCSM method) 100 Reduction rate of points (DP algorithm) 1% Reduction rate of bends (WM algorithm) 1% Figure 9 shows the experimental results obtained by the DP algorithm, WM algorithm, and CCSM. No. 1 denotes the initial contour and No. 100 denotes the target contour. The intermediate simplified contours between the initial and target contours are represented by serial numbers (Nos. 2 to 99). We only show here the key shape of a few intermediate simplified results obtained by the three methods during the entire simplification process. Figure 9a shows the simplified results obtained by the DP algorithm. According to Table 1, when the DP algorithm was used for simplification, the number of points gradually decreased; ideally, the shape of the contour line should be changed accordingly. However, the shapes of the contours were almost unchanged until No. 81. Afterward, as indicated by the blue dotted rectangle, the shapes of the simplified contours changed starting from No. 85. Meanwhile, the shapes of the simplified contour line behind (Nos. 86 to 100) changed in a jump way. Figure 9b shows the simplified results obtained by the WM algorithm. According to Table 1, the bend number continuously decreased when the WM algorithm was used for simplification. The shapes continuously changed from Nos. 1 to 24. However, from Nos. 24 to 44, the shapes barely changed. From Nos. 44 to 45, the shape of the contour abruptly changed, and some key features were lost. Figure 9a,b indicate that the simplified contours generated by the DP and WM algorithms are discontinuous. Meanwhile, Figure 9c shows the simplified results obtained by the CCSM method. The ordinal number in this figure corresponds to the i value of Z i , that is, the height of the intersecting horizontal planes (described in Section 2.3.1). Unlike the findings of the DP and WM algorithms, Figure 9c shows that the simplified contours generated by CCSM are progressive and include a level of detail that varies continuously. Moreover, the local characteristics were well preserved during the transformation through a few scale ranges (Nos. 1 to 70). Above all, the shapes of the simplified contours generated by CCSM continuously changed between the initial and target contours. CCSM can also yield better continuous multi-scale simplified contours compared with the DP and WM algorithms.

Comparison of Shape Similarity Change Trend
In this subsection, the shape similarity-scale trend lines obtained by the three methods were compared. The shape of an object is an important visual feature, and the difference in shape similarity can be used to describe shape change [40,41]. To avoid contingency, all initial contours in the study area were simplified by using the above three methods. All these methods generated 100 simplified results for each initial contour. The intermediate simplified contours between the initial and target contours were also represented by a serial number. The initial contour scale was taken as the source scale (i.e., 1:50,000), and the target contour scale was taken as the target scale. To further analyze the deformation of the simplified results, the target contour was the most simplified contour line containing two points (i.e., the starting and ending points of the initial contour), whereas the target contour scale was designated as a smaller scale (e.g., 1:20,000,000) or even approaching the infinitesimal scale (1:∞). Equation (10) was used to calculate the similarity between the simplified contour and the corresponding initial contour.
Sim(L initial , L i ) = 1 − δ dF (L initial , L i )/Length(L initial ) (i = 1, 2, . . . , 100) (10) where L initial represents the initial contour, L i represents the simplified contour, and i represents the corresponding sequence number of the simplified contour. Figure 10 shows the shape similarity-scale trend line corresponding to the three simplification methods. The horizontal axis represents the sequence number (i = 1, 2, . . . , 100). The horizontal axis can also represent the scale because our setting parameters are continuously changing, and so should be the scale. The vertical axis represents the average shape similarity value of all initial contours at the corresponding sequence number i. When i = 1, the scale of the contour line is: 1:50,000; When i = 100, the scale of the contour line is: 1:20,000,000) or even approaching the infinitesimal scale (1:∞).  Figure 10 shows the shape similarity-scale trend line corresponding to the three simplification methods. The horizontal axis represents the sequence number ( = 1,2, … ,100). The horizontal axis can also represent the scale because our setting parame- Overall, the average shape similarity value decreased along with the scal three simplification methods. As shown in Figure 10, both the blue and green jumped (denoted by red rectangles), which means that the shapes of the simplif tour lines generated by the DP and WM algorithms were not continuously chan other words, as the scale gradually changed, the changes in the shape of the sim contours generated by the DP and WM algorithms were not continuous but thereby leading to the loss of some intermediate scale details. In this case, the u mand for visual continuity is left unsatisfied. By contrast, the yellow curve in Fi representing CCSM shows a monotonic and continuous trend that closely refl ideal relationship between similarity and scale at a continuous multi-scale (Figure average shape similarity gradually decreased along with the scale. Therefore, CC obtain smooth and continuous multi-scale simplified contours.

Comparison of Global Structural Feature Retention
We then compared the ability of retaining the global structural features of t plified contours generated by the DP algorithm, WM algorithm, and CCSM. To e fair comparison, the retention degree of the global structural features on the ge simplified contours was examined at the same scale level. When simplifying l ments in electronic maps, the product of the minimum visual discriminant d (usually set to 0.1 mm) and the reciprocal of the scale were utilized as simplifica rameters. If the distance between two linear elements is less than this paramet their scale is the same [42]. In this study, the improved Fréchet distance betw simplified and initial contours was used as a proxy for the scale parameter. For e when the initial contour scale was 1:50,000, the scale parameter was set to 5 m (0 50000 = 5 m). When the improved Fréchet distance between two contour lines w than 5 m, the two scales can be considered the same. According to Equation (10 calculating the similarity between an initial contour and an intermediate simplifie whose Fréchet distance was within 5 m, the minimum similarity value was a mately equal to 0.998, that is, the difference ∆s ≈ 0.002·(1 − 0.998). Therefore, 0. considered the maximum similarity value for identifying whether two simplifi tours are at the same scale.
Three simplification methods were used to simplify 20 contour lines that w Overall, the average shape similarity value decreased along with the scale for all three simplification methods. As shown in Figure 10, both the blue and green curves jumped (denoted by red rectangles), which means that the shapes of the simplified contour lines generated by the DP and WM algorithms were not continuously changing. In other words, as the scale gradually changed, the changes in the shape of the simplified contours generated by the DP and WM algorithms were not continuous but abrupt, thereby leading to the loss of some intermediate scale details. In this case, the user demand for visual continuity is left unsatisfied. By contrast, the yellow curve in Figure 10 representing CCSM shows a monotonic and continuous trend that closely reflects the ideal relationship between similarity and scale at a continuous multi-scale (Figure 7). The average shape similarity gradually decreased along with the scale. Therefore, CCSM can obtain smooth and continuous multi-scale simplified contours.

Comparison of Global Structural Feature Retention
We then compared the ability of retaining the global structural features of the simplified contours generated by the DP algorithm, WM algorithm, and CCSM. To ensure a fair comparison, the retention degree of the global structural features on the generated simplified contours was examined at the same scale level. When simplifying line elements in electronic maps, the product of the minimum visual discriminant distance (usually set to 0.1 mm) and the reciprocal of the scale were utilized as simplification parameters. If the distance between two linear elements is less than this parameter, then their scale is the same [42]. In this study, the improved Fréchet distance between the simplified and initial contours was used as a proxy for the scale parameter. For example, when the initial contour scale was 1:50,000, the scale parameter was set to 5 m (0.1 mm × 50,000 = 5 m). When the improved Fréchet distance between two contour lines was less than 5 m, the two scales can be considered the same. According to Equation (10), when calculating the similarity between an initial contour and an intermediate simplified result whose Fréchet distance was within 5 m, the minimum similarity value was approximately equal to 0.998, that is, the difference ∆s ≈ 0.002·(1 − 0.998). Therefore, 0.002 was considered the maximum similarity value for identifying whether two simplified contours are at the same scale.
Three simplification methods were used to simplify 20 contour lines that were randomly selected from the dataset (as shown in the first column of Table 2). For each initial contour line, 100 simplified contours were obtained by each method. The scale of the initial contour scale was 1:50,000. The target contour was the most simplified contour line containing two points, namely, the starting and ending points of the initial contour. The similarities between all simplified contours and their initial contours were calculated by using Equation (10). To avoid contingency in the experimental process, for each initial contour line, multiple groups of simplified contours were selected within the maximum similarity value (as shown in the second column of Table 2), and each group had three simplified contours generated by the three simplification methods. Therefore, each group had three similar values corresponding to the three methods. To ensure that the simplified results are compared at the same scale, a verification was performed as follows. First, in every group, each two of three similarity values should be subtracted from each other, and the absolute value should be obtained. Second, for each initial contour line, the absolute values of all groups were averaged (as shown in columns 3 to 5 of Table 2). Third, the maximum value of the three averages was selected and verified to check whether this value is less than 0.002. The max average absolute value (MAAV) of different initial contours was calculated as Equation (11).
where L A i represents the simplified contour generated by the A algorithm, L B i represents the simplified contour generated by the B algorithm, L initial−ID represents the initial contour, and i represents the number of groups. By using the above calculation method, the MAAV of the 20 contours was calculated and listed in Table 2. As shown in Table 2, the MAAV was within 0.002 (as shown in the last column of Table 2), thereby guaranteeing that the simplified results produced by the three methods were compared on the same scale. Linear density was used as an indicator for evaluating the ability of each method to retain global structural features [43]. This indicator was defined as Equation (12).
Linear Density (L i ) = Length(L i ) Area(Bu f f er(L i )) (12) where Length(L i ) represents the length of the simplified contour, and Area(Bu f f er(L i )) represents the value of the buffer area of the simplified contour. According to Wu [44], the standard position deviation reflects the global deviation of a simplified line from the initial line. Therefore, the standard deviation of the position was designated as the width parameter in the buffer operation. The linear densities were calculated separately for the simplified contours at the same scale in each group of the 20 initial contours. The average values of each initial contour linear density corresponding to the three methods are shown in Figure 11. According to Deng [43], a higher linear density indicates a better overall trend retention rate. As shown in Figure 11, the DP algorithm, WM algorithm, and CCSM show differences for each contour group. The linear density value obtained by CCSM was higher than that obtained by the DP algorithm, indicating that the former has a better global structure retention ability than the latter. Several contour groups of the linear densities of CCSM were significantly better than those of the WM algorithm (such as groups 6#, 8#, 13#, and 15#, etc.). Overall, CCSM is superior to the other two methods in terms of global structural feature retention.

( ( ))
where ℎ( ) represents the length of the simplified contour, and ( ( represents the value of the buffer area of the simplified contour. According to Wu [4 the standard position deviation reflects the global deviation of a simplified line from initial line. Therefore, the standard deviation of the position was designated as the wid parameter in the buffer operation. The linear densities were calculated separately for the simplified contours at same scale in each group of the 20 initial contours. The average values of each ini contour linear density corresponding to the three methods are shown in Figure 11. A cording to Deng [43], a higher linear density indicates a better overall trend retent rate. As shown in Figure 11, the DP algorithm, WM algorithm, and CCSM show diff ences for each contour group. The linear density value obtained by CCSM was high than that obtained by the DP algorithm, indicating that the former has a better glo structure retention ability than the latter. Several contour groups of the linear densities CCSM were significantly better than those of the WM algorithm (such as groups 6#, 13#, and 15#, etc.). Overall, CCSM is superior to the other two methods in terms of glo structural feature retention.

Comparison of Position Change
Generally, simplifying contour lines can trigger changes in shape, and a higher gree of simplification corresponds to a higher amount of distortion. One way of me uring the error induced by simplification is by calculating the location difference betwe the original and simplified lines. The position change of a curve mainly represents geometric accuracy of the linear features. The simplified contours generated by the th simplification methods were compared based on the mean, standard, and max diff ences of position. The change in the position of the simplified contours was calculated using the computational positional error method proposed by Elmar [45]. For each or inal point of the initial contour, the positional error was calculated as the perpendicu difference between that point and the corresponding line segment of the simplified co tour. The distance from the point 0 ( 0 , 0 ) to the corresponding line segment : + = 0 was defined as Equation (13). Applying these simplification algorithms co sistently produced low positional errors.
For the validation, we used 20 randomly generated contour lines (described in S tion 3.2.3) as experimental data. We compared three position differences, namely, standard, average, and max position differences, among the simplified results genera

Comparison of Position Change
Generally, simplifying contour lines can trigger changes in shape, and a higher degree of simplification corresponds to a higher amount of distortion. One way of measuring the error induced by simplification is by calculating the location difference between the original and simplified lines. The position change of a curve mainly represents the geometric accuracy of the linear features. The simplified contours generated by the three simplification methods were compared based on the mean, standard, and max differences of position. The change in the position of the simplified contours was calculated by using the computational positional error method proposed by Elmar [45]. For each original point of the initial contour, the positional error was calculated as the perpendicular difference between that point and the corresponding line segment of the simplified contour. The distance d from the point P 0 (x 0 , y 0 ) to the corresponding line segment l : A x + B y + C = 0 was defined as Equation (13). Applying these simplification algorithms consistently produced low positional errors.
For the validation, we used 20 randomly generated contour lines (described in Section 3.2.3) as experimental data. We compared three position differences, namely, the standard, average, and max position differences, among the simplified results generated by the three simplification methods and the initial contours at the same scale. As shown in Table 3, CCSM obtained the smallest standard positional error (208.199 m) and maximum positional error (778.478 m) among the three simplification methods, thereby suggesting that CCSM can effectively maintain the global shape characteristics of the contours better. Given that the real value of the mean positional error is susceptible to the local extremum, the mean positional error values may not stably reflect the overall displacement [44]. Table 3. Numerical evaluation of the positional errors between the initial and simplified contours obtained by the DP algorithm, WM algorithm, and CCSM at the same scale.

Method Std (m a ) Mean (m) Max (m)
The

Effect of CCS's Mesh Parameters on Similarity
To examine the effect of CCS's mesh parameters on the similarities among simplified contour lines, we used different mesh parameters for CCS's tessellation. First, as shown in Figure 12, the contour with 86 points was taken as the initial contour and was labeled C 1 . By using the DP algorithm, C 1 was simplified into a target contour labeled C 2 with only the starting and ending points of C 1 (representing the situation of extreme simplification), whereas C 1 was simplified into a target contour labeled C 35 with 35 points of C 1 (representing the situation of middle simplification).
contours better. Given that the real value of the mean positional error is susceptible to the local extremum, the mean positional error values may not stably reflect the overall displacement [44]. Table 3. Numerical evaluation of the positional errors between the initial and simplified contours obtained by the DP algorithm, WM algorithm, and CCSM at the same scale.

Effect Of CCS's Mesh Parameters On Similarity
To examine the effect of CCS's mesh parameters on the similarities among simplified contour lines, we used different mesh parameters for CCS's tessellation. First, as shown in Figure 12, the contour with 86 points was taken as the initial contour and was labeled C1. By using the DP algorithm, C1 was simplified into a target contour labeled C2 with only the starting and ending points of C1 (representing the situation of extreme simplification), whereas C1 was simplified into a target contour labeled C35 with 35 points of C1 (representing the situation of middle simplification). We then built CCS-2 by using C1 (initial contour) and C2 (target contour) and built CCS-35 by using C1 (initial contour) and C35 (target contour). Both CCS-35 and CCS-2 were established under different mesh parameters (i.e., 0.01, 0.008, 0.006, 0.004, 0.002, and 0.001). Figure 13 shows CCS-35 and CCS-2 under different mesh parameters. We then built CCS-2 by using C 1 (initial contour) and C 2 (target contour) and built CCS-35 by using C 1 (initial contour) and C 35 (target contour). Both CCS-35 and CCS-2 were established under different mesh parameters (i.e., 0.01, 0.008, 0.006, 0.004, 0.002, and 0.001). Figure 13 shows CCS-35 and CCS-2 under different mesh parameters. We obtained 100 simplified contours by intersecting 100 horizontal planes with CCS-35 and CCS-2 and then calculated the similarities between the simplified contours and C1. Figure 14a shows that when the target contour has 35 points, the trend of the similarity curve corresponding to each mesh parameter is roughly the same. Further- We obtained 100 simplified contours by intersecting 100 horizontal planes with CCS-35 and CCS-2 and then calculated the similarities between the simplified contours and C1. Figure 14a shows that when the target contour has 35 points, the trend of the similarity curve corresponding to each mesh parameter is roughly the same. Furthermore, when the mesh parameters were set to 0.001, 0.004, 0.006, and 0.008, these curves were almost similar and overlapping. When the mesh parameters were set to 0.002 and 0.01, some small local differences were observed among the curves, thereby suggesting that despite slight local differences, the curve trends of all mesh parameters were globally consistent. Figure 14b shows that when the target contour contains only the starting and ending points, the mesh parameters show similar and almost overlapping curve trends, which suggests that the similarity between the simplified and initial contours is insensitive to the mesh parameter, that is, mesh parameter does not affect the trend of similarity. We obtained 100 simplified contours by intersecting 100 horizontal planes CCS-35 and CCS-2 and then calculated the similarities between the simplified con and C1. Figure 14a shows that when the target contour has 35 points, the trend o similarity curve corresponding to each mesh parameter is roughly the same. Fu more, when the mesh parameters were set to 0.001, 0.004, 0.006, and 0.008, these c were almost similar and overlapping. When the mesh parameters were set to 0.00 0.01, some small local differences were observed among the curves, thereby sugge that despite slight local differences, the curve trends of all mesh parameters were glo consistent. Figure 14b shows that when the target contour contains only the startin ending points, the mesh parameters show similar and almost overlapping curve tr which suggests that the similarity between the simplified and initial contours is in tive to the mesh parameter, that is, mesh parameter does not affect the trend of simil Therefore, the similarity trend is generally consistent under different mesh pa eters. The mesh parameters for CCSM have a relatively stable influence on the simi assessment, especially for a wider scale range of multi-scale line simplifications. M ver, the CCSM constructed by using a specific target contour has a certain influen the similarity, but such influence can be alleviated by selecting appropriate mes rameters. Given that a smaller mesh parameter corresponds to a higher computation selecting a neutral value can balance the mesh size and quality of the solution. Therefore, the similarity trend is generally consistent under different mesh parameters. The mesh parameters for CCSM have a relatively stable influence on the similarity assessment, especially for a wider scale range of multi-scale line simplifications. Moreover, the CCSM constructed by using a specific target contour has a certain influence on the similarity, but such influence can be alleviated by selecting appropriate mesh parameters. Given that a smaller mesh parameter corresponds to a higher computation cost, selecting a neutral value can balance the mesh size and quality of the solution.

Effect of Point Number of Target Scale Contour
In CCSM, the shape change of the intermediate simplified contours is related to the initial and target contours. To verify whether the point number of the target scale contour affects the simplified results, two contours with different shapes were randomly selected from the initial contour set. Each target contour had 100, 50, 40, 30, 20, 10, and 2 points as shown in Figure 15a,b. The target contour with only two points was selected given its representativeness of extreme simplification.
In CCSM, the shape change of the intermediate simplified contours is related to the initial and target contours. To verify whether the point number of the target scale contour affects the simplified results, two contours with different shapes were randomly selected from the initial contour set. Each target contour had 100, 50, 40, 30, 20, 10, and 2 points as shown in Figure 15a,b. The target contour with only two points was selected given its representativeness of extreme simplification.  Figure 16a,b show the relationship between the similarity and scale of these two contours. The similarity here represents the similarity between the simplified and initia contours, whereas scale represents the estimated map scale of the simplified contour Figure 16 shows that the similarity gradually decreases when the number of points is relatively large and significantly decreases when the number of points reduces to 2 However, regardless of the number of points in the target contour, the trends between scale and similarity were generally very consistent and orderly and demonstrated continuous and monotonous characteristics. Moreover, the simplified contour lines gener ated by the CCSM were continuous and multi-scale. In other words, our proposed method can be applied to different points of target contours.  Figure 16a,b show the relationship between the similarity and scale of these two contours. The similarity here represents the similarity between the simplified and initial contours, whereas scale represents the estimated map scale of the simplified contour. Figure 16 shows that the similarity gradually decreases when the number of points is relatively large and significantly decreases when the number of points reduces to 2. However, regardless of the number of points in the target contour, the trends between scale and similarity were generally very consistent and orderly and demonstrated continuous and monotonous characteristics. Moreover, the simplified contour lines generated by the CCSM were continuous and multi-scale. In other words, our proposed method can be applied to different points of target contours.

Ability of Arbitrary Scale Simplification
We aim to generate a set of global continuous multi-scale simplified contours based on the initial contour. The advantage of CCSM lies in the fact that the contour lines of the

Ability of Arbitrary Scale Simplification
We aim to generate a set of global continuous multi-scale simplified contours based on the initial contour. The advantage of CCSM lies in the fact that the contour lines of the desired scale can be obtained between fixed scales. Therefore, obtaining a simplified contour with the specified scale from the initial contour is critical. Given that CCSM shows a monotonous and continuous trend between scale and similarity as discussed in Section 3.2.2, the similarity between the simplified and initial contours is considered a proxy indicator for obtaining a simplified contour with a specified scale. In other words, similarity can serve as an intermediary to obtain the simplified contour corresponding to an arbitrary desired scale.
According to Shen [35], an exponential regression function can be used to establish an empirical relationship between the similarities and scales of contours. However, such a relationship may be unfit for other types of polylines. The exponential regression function is defined in Equation (14).
where x represents the scale, f (x) represents the similarity value between two contour lines, and a, b, c, d represent coefficient values in exponential regression functions. The detailed process is described as follows. First, all contours in the study area were divided into five groups (as shown in Figure 17), and the shape and size of the contour line were used as criteria [16]. Second, one contour in each group was selected as reference data (boldface in Figure 17). Third, for the reference data in each group, the similarity values (Equation (9)) between the initial contour (1:50,000) and the contours of the three other scales (1:100,000, 1:250,000, and 1:500,000 downloaded from Google Earth) were then calculated. Table 4 shows the computation results of reference data in every group.  Table 4 shows that the exponential regression function coefficients for each group can be fitted by using the values of the known scales and the similarities of the reference contours in each group. Table 5 shows the coefficient values for each equation in these five groups.  As for CCSM, the shape similarity-scale trend is continuous and monotonous as shown in Figure 10. Therefore, the scale and similarity value of each simplified result have a one-to-one correspondence. In this case, we can generate simplified contours at any arbitrary scale by using CCSM. A simplified contour of an arbitrary scale can be obtained as follows. First, by using the exponential regression function in every group, the similarity value corresponding to the desired scale can be obtained. Second, by referring to Equation (9), the corresponding can be deduced from the similarity value. Third, the desired scale simplified contour can be selected based on the value of . This method provides a potential mechanism for achieving arbitrary scale simplification.   Table 4 shows that the exponential regression function coefficients for each group can be fitted by using the values of the known scales and the similarities of the reference contours in each group. Table 5 shows the coefficient values for each equation in these five groups. As for CCSM, the shape similarity-scale trend is continuous and monotonous as shown in Figure 10. Therefore, the scale and similarity value of each simplified result have a one-to-one correspondence. In this case, we can generate simplified contours at any arbitrary scale by using CCSM. A simplified contour of an arbitrary scale can be obtained as follows. First, by using the exponential regression function in every group, the similarity value corresponding to the desired scale can be obtained. Second, by referring to Equation (9), the corresponding Z i can be deduced from the similarity value. Third, the desired scale simplified contour can be selected based on the value of i. This method provides a potential mechanism for achieving arbitrary scale simplification. Figure 18 shows the simplified contours with four specified scales (1:100,000, 1:200,000, 1:250,000, and 1:500,000) obtained by CCSM. For most of the simplified contours, the essential shape was unchanged during the progressive change process, thereby suggesting that the overall curved shape was well maintained. Individual contours with a small size disappeared as the scale decreased because their similarity values were filtered out according to the similarity threshold based on the small scale and exponential regression function. This finding is consistent with the rule of discarding small elements in cartographic generalization [21]. Meanwhile, the images in these scales seemed similar because all bends on a single contour line were transformed together (as shown in Figure 9c). This finding also indicates that CCSM performs well in continuous and global deformation in the simplification of contours.

Topographical Feature Retention
In general, feature retention should match the degree of simplification. From a geographical perspective, the maintenance of terrain features plays an essential role in the simplification process. To verify the capability of CCSM for topographic feature retention, in this subsection, the retention of typical topographic features (e.g., valley lines and ridgelines) in continuous multi-scale simplified contours is evaluated by visual analysis methods. Figure 19 shows the valley lines and ridge lines were extracted from a contour map at a scale of 1:50,000.

Topographical Feature Retention
In general, feature retention should match the degree of simplification. From a geographical perspective, the maintenance of terrain features plays an essential role in the simplification process. To verify the capability of CCSM for topographic feature retention, in this subsection, the retention of typical topographic features (e.g., valley lines and ridgelines) in continuous multi-scale simplified contours is evaluated by visual analysis methods. Figure 19 shows the valley lines and ridge lines were extracted from a contour map at a scale of 1:50,000. graphical perspective, the maintenance of terrain features plays an essential role in the simplification process. To verify the capability of CCSM for topographic feature retention, in this subsection, the retention of typical topographic features (e.g., valley lines and ridgelines) in continuous multi-scale simplified contours is evaluated by visual analysis methods. Figure 19 shows the valley lines and ridge lines were extracted from a contour map at a scale of 1:50,000. As shown in Figure 20, with the progressive simplification of the contour line, some details of the contour lines were continuously reduced, and some ridge and valley lines gradually disappeared. The simplified terrain map only retained some key ridge and valley lines. However, the topological relationship of all simplified contours was also consistent, thereby suggesting that the key corresponding geographical features were maintained. Therefore, CCSM also performs well in maintaining the terrain features of geographical contours with complex linear features. Figure 20 also shows that even though CCSM is used for single line simplification, this method can also well maintain the group multi-scale continuous rendering of simplified contour lines. As shown in Figure 20, with the progressive simplification of the contour line, some details of the contour lines were continuously reduced, and some ridge and valley lines gradually disappeared. The simplified terrain map only retained some key ridge and valley lines. However, the topological relationship of all simplified contours was also consistent, thereby suggesting that the key corresponding geographical features were maintained. Therefore, CCSM also performs well in maintaining the terrain features of geographical contours with complex linear features. Figure 20 also shows that even though CCSM is used for single line simplification, this method can also well maintain the group multi-scale continuous rendering of simplified contour lines. In practice, the target contour is not always easy to obtain or even inexistent at the targeted scale [21]. For the former situation, a general simplification method (i.e., DP algorithm) could be employed to obtain the target contour line [46]. That is, by using the DP algorithm, the significant morphology characteristic points of 0 could be extracted and linked together to form in an orderly manner. The main topographical feature is retained in . For the later, it is an extreme case due to the principles of cartographic generalization. The starting and ending points of 0 could be directly linked to form . The main topographical feature is disappeared in . This is consistent with the inexistent status of in the targeted map.

Conclusions
This study proposed the CCSM method for contour simplification based on the NURBS surface between the initial and target contours with a feature constraint. A set of horizontal planes with equidistant height values was intersected with CCSM to obtain global continuous multi-scale simplified contours.
The CCSM method proposed in this paper can support continuous multi-scale contour simplification while maintaining the essential global structure. Compared with the classical DP and WM algorithms, CCSM can provide simplified contours with better continuity and consistency. This study also proposed a shape similarity-scale trend line based on the contour deformation analysis method that can be used to evaluate the performance of multi-scale polyline simplification methods.
Two problems still need to be studied in depth in future work. First, CCSM con- In practice, the target contour L n is not always easy to obtain or even inexistent at the targeted scale [21]. For the former situation, a general simplification method (i.e., DP algorithm) could be employed to obtain the target contour line L n [46]. That is, by using the DP algorithm, the significant morphology characteristic points of L 0 could be extracted and linked together to form L n in an orderly manner. The main topographical feature is retained in L n . For the later, it is an extreme case due to the principles of cartographic generalization. The starting and ending points of L 0 could be directly linked to form L n . The main topographical feature is disappeared in L n . This is consistent with the inexistent status of L n in the targeted map.

Conclusions
This study proposed the CCSM method for contour simplification based on the NURBS surface between the initial and target contours with a feature constraint. A set of horizontal planes with equidistant height values was intersected with CCSM to obtain global continuous multi-scale simplified contours.
The CCSM method proposed in this paper can support continuous multi-scale contour simplification while maintaining the essential global structure. Compared with the classical DP and WM algorithms, CCSM can provide simplified contours with better continuity and consistency. This study also proposed a shape similarity-scale trend line based on the contour deformation analysis method that can be used to evaluate the performance of multi-scale polyline simplification methods.
Two problems still need to be studied in depth in future work. First, CCSM consumes much time in surface construction, thereby suggesting that this method needs to be optimized further. Second, a more general form of the relationship between the contour scale and the height value of the horizontal plane for an arbitrary type contour should be explored.

Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.

Data Availability Statement:
The data and code that support the findings of this study are available in "figshare.com" with the private link https://figshare.com/s/c54a8fd8c787ef3f913a (accessed on 22 July 2019). We provided the method of the CCSM and the contour dataset. The method can be run using the software "Visual Studio 2017".