Abstract
With the rapid development of high-precision road network maps, low-precision road network maps (basic data unrelated to hardware) will need to be directly produced for traditional navigation software from high-precision maps. To do so, large amounts of vector data representing road networks must be simplified and spatial directional similarity in road networks must be maintained while reducing precision. In this study, an elite strategy genetic algorithm based on the grid model is applied to spatial directional adjustment in road networks for producing road network maps for traditional navigation. Firstly, semantic features and critical vertices are extracted from the road network with high precision. Secondly, some high-precision vertices are eliminated under constraints of the digital navigation map. During this process, the local shape maintenance of the road is considered, and the destruction of the spatial topological relationships is avoided. Thirdly, a genetic algorithm for minimizing the total changes in road azimuths at nodes of road networks is developed to maintain spatial directional relationships while reducing precision. Experimental results and visualization effects on the test data of different cities show that this method is suitable for generating road network maps for traditional navigation software from high-precision ones.
1. Introduction
Research on line simplification is valuable in the fields of computer graphics and cartography because over 80% of the elements on maps are lines [1]. The classic Douglas–Peucker (DP) algorithm [2] is essentially a process of recursively extracting valid points; the algorithm considers local as well as global features when selecting points. In the Opheim simplification algorithm [3,4], the maximum and minimum distance constraints determine the search area, thereby eliminating the intermediate original points, except the first and last points, in the search area. Visvalingam and Whyatt [5] firstly proposed an algorithm using the area as a simplified indicator. The area formed by each intermediate original point and its two adjacency efficient points is calculated. Then, the intermediate original point with the smallest effective area can be removed to ensure that the shape of the simplified line changes minimally. However, these basic algorithms do not consider the spatial topological relationship during simplification. On this basis, these algorithms have been improved. Based on the original DP algorithm, Saalfeld [6] detected and removed existing topological conflicts by dynamically updating the convex hull data structure. Like the original road, the simplified line can still maintain the correct topological relationship with the adjacent spatial objects. Pallero [7] improved the DP algorithm and proposed a robust line simplification algorithm that effectively preserves the topological relationship of the simplified polyline and is more efficient than the original DP algorithm. Tienaah et al. [8] developed a contextual model based on the DP algorithm. This model incrementally rewinds to the original polyline with relevant characteristic vertices to maintain a consistent simplification. Considering the spatial knowledge related to lines, Guo et al. [9] proposed a progressive line simplification algorithm to avoid the self-intersection of generalized lines. Park and Yu [10] proposed a methodology for segmenting lines and simplifying each section with a more appropriate simplification algorithm than any other analyzed algorithms, producing fewer positional errors based on angle and length.
Compared with removing a non-characteristic point or keeping a characteristic point at a time, the other simplification algorithms reduce the complexity of the line structure based on the preservation of the original line structure [11]. Such a reduction is achieved by removing some points, thereby creating the best-simplified line of the original line. The most representative is the constrained Delaunay triangle model for line simplification [12,13,14,15]. Considering the coastline shape and the constraints of specific areas, Ai et al. [16] proposed an algorithm that uses the curved structure of multi-branched trees to simplify coastline. In this manner, the original shape of the coastline was preserved and topological consistency was maintained. Ai et al. [17] simulated Perkal’s ε-circle rolling algorithm [18], and proposed the envelope structure of a line based on the Delaunay triangulation, which is used to compare different connections in the envelope region. The Li–Openshaw simplification algorithm [19] can produce line simplification results similar to manually generalized results based on the natural principle of objective generalization. In addition, the algorithm can be used in raster, vector, and raster–vector modes.
With the development of automatic vehicle driving technology and the improvement in map data collection methods, many high-precision road network maps for automatic driving are being continuously collected and applied, which has become one of the hot issues in research. However, the precision of road network maps for indispensable traditional navigation software provided to automobile manufacturers is relatively low. The longitude and latitude representing the high-precision location of a point retain map data up to the seventh place after the decimal, whereas the longitude and latitude in the map data for traditional navigation software only retains up to the fifth place after the decimal. For example, (15.1234567°, 16.1234567°) represents the location of a planar point, where 15.1234567° is the longitude, and 16.1234567° is the latitude. The value 15.1234567° is a number with seven decimal places. When reducing road data precision, (15.1234567°, 16.1234567°) must be rounded up to five decimal places, e.g., (15.12346°, 16.12346°). In actual applications, the road network maps with five-digit precision already meet the accuracy requirements of conventional navigation map data. Obtaining low-precision map data for conventional navigation maps is time consuming and expensive. Once the road network data with high-precision in a certain area are collected, it should be directly converted into road network maps with five-digit precision required by the conventional navigation software via cartographic generalization to avoid repeatedly surveying and mapping the road network data in the same area. This process of road network generalization involves the conversion of data precision in road network maps and has certain production requirements, such as the distance between vertices on roads, the direction of roads, the spatial directional relationship among roads connecting with the node, and the spatial topological relationship of the road network. Therefore, the abovementioned line simplification algorithms cannot be directly applied to this road network generalization. Few studies have focused on extracting road networks with five-digit precision from those with seven-digit precision. Therefore, a complete algorithm needs to be implemented, especially the optimal adjustment of the spatial directional relationship between roads at road network nodes.
Compared with original high-precision roads, the shape of five-digit-precision roads may change considerably when the precision representing the coordinates of a road vertex is reduced (Figure 1). For example, after the precision is directly reduced, the point A’ is located at position 3, whereas the azimuth deviation caused by position 2 is smaller. Thus, we focused on two problems: the simplification of roads, the maintenance of the spatial directional relationship between roads, and especially how to minimize the spatial directional change of roads after reducing accuracy. The effective area, vertical distance, buffer radius, etc., are common metrics in independent point algorithms [20], local processing routines [21,22,23,24], or global routines [25,26,27] for line simplification. As a classic line simplification algorithm, the Opheim algorithm can express the distance constraint between vertices in road networks. However, it does not consider other constraints such as turning angles of a road; therefore, for the road simplification, the Opheim algorithm must be improved.
Figure 1.
Roads with different precision.
When the data precision of roads is lowered from seven to five digits, the spatial directional relationship of simplified roads must be adjusted in accordance with the navigation requirements of road networks because the reduction in data precision causes changes in the spatial directional relationship among roads. The similarity evaluation method is based on the calculation of similarity among directional relationship matrices, as proposed by Goyal and Egenhofer [28]. It is based on the main direction distance calculation of the conceptual neighborhood graph, which is conducive to the evaluation of scene similarity. Considering direction relationships between two objects at different levels of detail, Goyal and Egenhofer [29] extended the model of the direction–relation matrix and studied the models of spatial directional relationship for arbitrary pairs of points in map generalization. Tang et al. [30,31] studied the measurement of graphical similarity among linear roads, and proposed a measuring model for linear spatial data similar based on the integration of the distance view and the feature set view, which are the views used for similarity cognition. With the developed theory of complex spatial scenes, other models for the description of the spatial scene and their similarity measures were proposed [32,33]. Yan et al. [34] focused on quantitative expressions of the features of spatial similarity relations in map spaces. Lewis and Egenhofer [35] developed a model for spatial scene description using sequences of detailed spatial intersections and object containment, capturing the connections between complex spatial objects. Buttenfield [36] presented an algorithm that maintains geometric and topological characteristics while progressively transmitting vector coordinates. However, these studies did not consider the precision reduction during road network simplification. Guo et al. [37] proposed an algorithm for the adjustment of the spatial direction relationship at the nodes of road networks only considering the local optimal solution. In this research, we applied an intelligent algorithm to find the global optimal solution in the process of adjusting the spatial direction relationship between roads at the nodes of the road network.
When the data precision is five digits, mathematically, all points on the road must be at the intersection of square grids with one length unit, so the grid model is used in this approach. We used both the improved Opheim algorithm and the spatial directional relationship maintenance of road networks to produce low-precision road network maps that meet the production requirements and visual effects. We especially focused on the change in road shape and the spatial directional relationship at nodes. The following contributions are provided by this work:
(1) An improved Opheim algorithm combined with the local shape maintenance of roads.
(2) In the process of both road simplification and adjustment of the spatial directional relationship, the consistency maintenance of topological relationships is considered to avoid topological errors.
(3) If a node is directly connected to any point that is not one of the other nodes, this node is called a general node (Figure 2). When road data precision is reduced, the spatial directional relationship among road segments connected at every general node is adjusted optimally; the change in the spatial directional relationship at every general node is the smallest after reducing precision.
Figure 2.
The main steps of our method.
(4) If two or more nodes are directly connected, these nodes are called special nodes (Figure 2). The genetic algorithm is applied with the elite strategy (e–GA) to the adjustment of the spatial directional relationship at special nodes, which helps to intelligently find the global optimal solution. The total variation in the spatial directions of road segments connected at a subgroup of special nodes can be as small as possible after the precision of road data in road network generalization is reduced.
The main steps of our method involve two workflows for road data handling (Figure 2). The first one is road simplification while maintaining the spatial direction relationship of the roads connected to the vertices, which includes the constraints in Section 2, the method for extracting road topographical features in Section 3 and the improved Opheim algorithm in Section 4. The second workflow is the maintenance of the spatial directional relationship of a subgroup of the road network connected with special nodes or a general node, which is described in Section 5. We analyze the results of the experiments in Section 6, and provide our conclusions in Section 7.
3. Extraction of Topographical Features on a Road Section
3.1. Extraction of 3D Terrain Feature
Slope describes the topographical feature, which is important information in navigation for a 3D road. The positive and negative signs of the slope reflect uphill and downhill, respectively. Thresholds α1 and α2 are given (α1 < α2), where α1 represents the upper limit of the slope of the flat road, and α2 represents the lower limit of the steep slope. Slopei,1 is the slope of road segment , and Slopei,2 is the slope of road segment . If and only if |Slopei,1| ≤ α1 and |Slopei,2| ≤ α1, then a partial flat road at Pi exists; otherwise, slope variation occurs.
The slope variation at vertex Pi can be expressed by ΔSlopei, where ΔSlopei = |Slopei,1 − Slopei,2|, which is related to the two road segments associated with Pi. Given threshold β when ΔSlopei > β, the slope variation at Pi is large and Pi is defined as a critical terrain point. The six types of critical terrain points (types ①–⑥) on a road are shown in Figure 8. Axis y represents the elevation (z) of vertices on a road and axis x represents the length (x) of the road section from a vertex to the node along the road. Origin O is a node of the road. The corresponding identification methods of the critical terrain points proposed in this study are shown in Equation (4).
Figure 8.
Height changes along a road topographic feature.
3.2. Extraction of a Long, Straight and Flat Road
For road network maps, long, straight, and flat road sections provide important semantic information. The length threshold of a long, straight, and flat line is defined as γ, and a strip with a small width μ [23] is used to extract it from the polyline, as shown in Figure 9. Initial point Pj is at the center of the strip. The initial direction of the strip is parallel to the road segment composed of the initial point and its next point. The strip shifts over along the initial direction until the strip is just away from the polyline. Point set {Pj, Pj + 1, …, Pj + m}, which the strip has passed, forms a straight line. If the length L of the straight line is larger than γ, then the two endpoints of this road section from Pj to Pj + m are marked as critical topographical points for a long, straight, and flat road section. Pj + m is the next initial point of the remaining polyline on the road, and the same process is repeated until the strip passes the end of the polyline. Finally, all long, straight, and flat road sections are extracted.
Figure 9.
Extraction of a long, straight and flat road section.
4. Road Simplification
4.1. Opheim Algorithm
As shown in Figure 10, the Opheim algorithm defines the search region with the greater width μ as the strip in Figure 9, as well as a minimum and maximum distance constraint. All vertices in the search area whose radius is the minimum distance are eliminated. Except for the last vertex (P3 in Figure 10 left) within the search area whose radius is the maximum distance, other vertices in this search area are also eliminated. Then, this undeleted vertex (P3 in Figure 10, right) is the center of the next search area, and the vertex P5 in Figure 10 right can be found. The search area is moved along the original line until another endpoint of this line is selected.
Figure 10.
The Opheim algorithm for polyline simplification.
4.2. Improved Opheim Algorithm
The elimination of vertices on a long, straight, and flat road is simple and should not destroy the topological relationship. When a long, straight, and flat road section is searched, the two endpoints of this road section should not be eliminated. The vertices between the two endpoints are usually eliminated, but some vertices between these endpoints must be retained in accordance with navigational requirements; the distance between two retained sequential vertices should be larger than a threshold defined by the road network map model. In this study, the Opheim line simplification algorithm [3] was used to eliminate the vertices between two endpoints of a long, straight, and flat road section.
The elimination of vertices on curved roads is similar to that on straight roads; however, it is more complicated because all critical points and various possible situations must be considered. The minimum distance constraint threshold is ε; the search area is determined with the initial point as the center of the circle and the distance constraint threshold ε as the radius. Before vertex elimination, important critical vertices and nodes in the road network for navigation should not be eliminated. The attribute value Ranki of every point in road topographical feature points is defined as Ranki = 1. Other vertices’ Ranki = 0. In the process of vertex elimination, if the elimination of vertex Pi causes topological conflicts, then Ranki = 2. The judgment method of topological conflicts was described in Section 2.
We suppose a road R = {P0, P1, …, Pi, …, Pm − 1}, where m represents the number of vertices. Let Pi−1 be the initial point. The length of is represented as Di,1, and the length of is represented as Di,2. Each vertex Pi on the road has an attribute Removei, which is used to indicate whether the vertex will be eliminated. Removei = 0 means vertex Pi will neither be eliminated nor marked as a problem point. Removei = 1 means vertex Pi will be eliminated. Removei = 2 means vertex Pi will not be eliminated but marked as a problem point to be handled further because the elimination of vertex Pi causes a topological conflict. Given the angle threshold θ, if the absolute value of turning angle Ti at vertex Pi is smaller than the threshold θ, then vertex Pi should be eliminated. The algorithm of determining whether vertex Pi should be eliminated is illustrated in Figure 11, and the pseudocode is given as Algorithm 1.
| Algorithm 1: Vertex elimination marker (R, i) |
| Input: A road R with m vertices (P0, …, Pi, …, Pm − 1) and a minimum distance tolerance ε |
| Output: point Pi with attribution value Remove /* Removei */ |
| 1. if Di,1 < ε (Figure 11a) |
| 2. then if Ranki = 0 |
| 3. then call TopologicalConflict (Ranki) |
| 4. if Ranki = 2 |
| 5. then Removei ← 2 |
| 6. else Removei ← 1 |
| 7. else (Figure 11b) |
| 8. if Di,2 ≥ ε (Figure 11c) |
| 9. then Removei ← 0 |
| 10. else (Figure 11d) |
| 11. if Di + 1,2 ≥ ε (Figure 11e) |
| 12. then if |Ti| <= |Ti + 1| (Figure 11g) |
| 13. then call TopologicalConflict (Ranki) |
| 14. if Ranki = 2 |
| 15. then Removei ← 2 |
| 16. else Removei ← 1 |
| 17. else (Figure 11f) |
| 18. if |Ti| < θ or |Ti| <= |Ti + 1| (Figure 11i,j) |
| 19. then call TopologicalConflict (Ranki) |
| 20. if Ranki = 2 |
| 21. then Removei ← 2 |
| 22. else Removei ← 1 |
| 23. end if |
| 24. return Removei |
Figure 11.
Vertex elimination on a curved road. (a) Di,1 < ε; (b) Di,1 ≥ ε; (c) Di,1 ≥ ε and Di,2 ≥ ε; (d) Di,1 ≥ ε and Di,2 < ε; (e) Di,1 ≥ ε, Di,2 < ε and Di + 1,2 ≥ ε; (f) Di,1 ≥ ε, Di,2 < ε and Di + 1,2 < ε; (g) |Ti| <= |Ti + 1| based on (e); (h) |Ti| > |Ti + 1| based on (e); (i) |Ti| < θ based on (f); (j) |Ti| <= |Ti + 1| based on (f); (k) |Ti| > |Ti + 1| based on (f).
After handling road data according to Algorithm 1, the vertices marked as problem points on this road should be handled iteratively based on the same constraints until no problem points exist on the road or problem points cannot be eliminated. Then, we handled all roads using Algorithm 1. The improved Opheim algorithm proposed in this paper emphasizes that in the one-by-one process of vertex elimination, the results of each processing step should try to destroy the spatial relationship as much as possible. If the spatial relationship is damaged, the problems must be located, and these points should be dealt with iteratively until they cannot be handled or have been handled.
4.3. Local Shape Maintenance While Reducing Precision
As the precision of road network data is lowered, the road shape should change, as shown in Figure 1. In the grid model, each point with seven-digit precision is converted into one with five-digit precision, which has four optional positions. The change in the turning angle at point Pi is used in this study to describe the change in road shape. The spatial direction similarity SimilarityPi at point Pi represents the local shape similarity. The angle threshold θ was given, and the absolute value of turning angle Ti at vertex Pi within the threshold θ represents a straight line. The road directions at vertex Pi have two other possibilities: if Ti > θ, then turn left; if Ti < −θ, then turn right.
Local shape maintenance should meet the following two conditions: (1) the change in direction is small and (2) the position is optimal. An optimal position means that selecting the position of its four optional positions of vertex Pi can make the local shape the most similar to the original shape, which maximizes the value of SimilarityPi. As shown in Figure 4b, the optimal location of Pi − 1 is supposed to have been selected. The optimal location of vertex Pi is related not only to vertex Pi − 1 but also to vertex Pi + 1. The selection process of its optimal location is as follows:
(1) The impossible position of vertex Pi is removed in accordance with SimilarityPi − 1 under five-digit precision. Firstly, the positions with five-digit precision can satisfy the precision constraint and cannot cause the topological error. Secondly, SimilarityPi − 1 can be used to exclude particularly poor locations based on navigational constraints.
(2) The optimal position of vertex Pi is selected on the basis of SimilarityPi. After precision is reduced, 16 possible connection situations theoretically exist for vertices Pi and Pi + 1. After eliminating impossible positions with five-digit precision, the position with the smallest SimilarityPi in the possible positions with five-digit precision of vertex Pi is selected as optimal.
Theoretically, during the local shape maintenance of the road, when topological errors occur in all optional positions of a vertex, the position that makes the adjusted road closest to the original road shape will be selected, and topological errors will be marked in the result. After road shape maintenance, road vertices that do not satisfy the constraints under the five-digit precision should be eliminated. The detailed method was described in Section 4.1.
5. Maintenance of Spatial Directional Relationship at Nodes
5.1. Adjustment of Spatial Directional Relationship at a General Node
If a node is connected with a straight road, then this node is not a general node and is referred to as a special node here. This straight road only consists of two nodes. Thus, the general node is only adjacent to vertices. The situations of spatial directional relationship maintenance at a general node are shown in Figure 12. The function of representing the best situation in the process of spatial relationship maintenance at any general node is:
Figure 12.
Connection situations of a general node: (a) two excluded connection situations; (b) optimal connection situation.
The algorithm is described as follows:
(1) When the precision is lowered, all possible connection situations between node Vm and its adjacent vertices are considered, and the azimuth deviations of each connection situation (τ) are calculated.
(2) The connection situations that are inconsistent with the original topological relationship and the connection situations in which the azimuth changes are greater than the given threshold η1 are excluded, as shown in Figure 12a.
(3) The remaining connection situations are compared with one another in accordance with SimilarityVm(τ). As depicted in Figure 12b, we choose the optimal situation under five-digit precision.
In this process, if topological errors occur in all adjustment schemes, the optimal scheme selected from them will also cause topological errors, and topological errors will be marked in the result.
5.2. Adjustment of Spatial Directional Relationship at Special Nodes
5.2.1. Difference between Two Types of Adjustments
In Figure 13a, nodes V1, V2, V3, and V4 are special nodes. On the basis of Equation (5), if the spatial directional relationship at node V1 is adjusted first, the result of the partial region is as shown in Figure 13b. If the spatial directional relationship at V2 is adjusted first, the result of the partial region is as shown in Figure 13c. The special nodes directly affect one another. The results of spatial directional maintenance are not only related to the threshold but also close to the processing order of special nodes. For the local subgroups of road networks directly formed by special nodes and their adjacency vertices, the results of spatial directional adjustment may not minimize the overall change in the spatial directional relationship. To solve this problem, we focused on road segments connected with special nodes in the local subgroups of road networks and constructed an intelligent algorithm to achieve the optimal combination while reducing the precision of the road network.
Figure 13.
Maintenance of the spatial directional relationship at special nodes. The blue line represents the original road and the orange line represents the road with five-digit precision. (a) Original data with seven-digit precision, (b) adjustment from V1 to V2, and (c) adjustment from V2 to V1.
5.2.2. Elite Strategy Genetic Algorithm for Spatial Direction Adjustment
The special nodes directly connected in a road network must be organized as a community structure for spatial directional relationship maintenance called a local subgroup. Many methods for extracting community structure [39] or generalizing road networks [40] have been studied, such as a spectral algorithm for community detection based on the characteristic matrix of the network [41] and detecting communities by compressing the description of information flows on networks [42]. We used cyclic iteration in this work, and the special nodes on directly connected road networks are continuously integrated into the same local subgroup G. The adjacency vertices of road segments associated with nodes are also added to the local subgroup G as ‘virtual nodes’ to adjust them.
When the precision of road data is lowered from seven to five digits, each node or its adjacency vertex has four alternatives. 4N optional situations exist for a subgroup of special nodes, where N is the number of nodes and their adjacency points in G. When N is relatively large, the optimal solution is impossible to find through the exhaustive method. A genetic algorithm with the elite strategy [43] was used in this study to solve the problem. Elite strategy means if the fitness of an individual in the past populations is larger than that of every individual in the current population, this string is preserved in the current generation. On this basis, we add a fixed-capacity elite retention library to retain the best individuals up to the current generation. The problem is abstracted to determine the arrangement and combination of certain items satisfying the constraints. The elite strategy can ensure that the optimal individual is not destroyed. Intelligent algorithms are widely used in map generalization [44,45,46,47]. The process for the spatial directional relationship adjustment of local subgroups of a road network based on the genetic algorithm with elite strategy (e-GA) is described as:
(1) Gene coding: Each node or its adjacency vertex in the local subgroups of road network G is abstracted as a gene, and all the genes contained constitute a chromosome or an individual, as shown in Figure 6. In the inheritance process, all individuals of each generation form a population. From seven- to five-digit precision, each node or its adjacency vertex has four optional locations. For convenience, real coding is used to directly encode gene phenotypes. The number of nodes in the local subgroups of a road network and their adjacency vertices is assumed as N, and the solution space can be modeled as a chromosome containing N genes as
where S represents the solution space, i is the number of genes, and Ci is a series of alleles located on the ith gene.
(2) Adaptability evaluation. The fitness function is the basis for evaluating the quality of the results. This function is important for maintaining the spatial directional relationship. The calculation method was shown in Equation (2). The greater the fitness, the better the maintenance effect of the spatial directional relationship. The optimal solution must satisfy the maximum fitness and constraint. The constraint is
(3) Genetic manipulation refers to selection, crossover, and variation. Holland’s roulette wheel selection [48] is the classic genetic selection operator. In this process, the better the individuals selected for mating, the greater the probability excellent genes will be inherited. For a population with number N, Group = {S0, S2, …, SN − 1 }. The fitness value of an individual is f(Si). The probability Pi selected is
A crossover operation is used to exchange some genes between two individuals with a certain probability to ensure the robustness of the population. The roulette algorithm was used in this study to randomly select two individuals. According to the gene size, let k1 and k2 be two random cross points, and k1 and k2 range from 0 to N − 1. Chromosomes are divided into three loci, and a sequence of gene fragments is exchanged on the basis of the crossover probability Pc (0 < Pc < 1). The crossing process of two individuals for a subgroup of special nodes is depicted in Figure 14.
Figure 14.
Gene crossover process.
The mutation operation guarantees the diversity of the population and belongs to a small-probability event. Multiple single-point mutations were used in this study to select individuals from roulette selection and crossover for random variation. The number of mutations is n (0 ≤ n ≤ N), and each time, the mutation is based on mutation probability Pm. Multiple mutations can maintain individual differences in the population and prevent premature convergence of the program.
(4) Elite strategy. Individuals with a high fitness value in the current population are kept in the elite library with number K. If their fitness value is no better than in the next generation, then individuals retained in the elite library are directly copied to the next generation and the corresponding number of the worst individuals in the next generation is replaced. The individuals in the next generation are sorted in descending order in accordance with the fitness value, and the former K individuals with large fitness values are used to update the elite retention library. When the iteration stops, the best retained individuals are approximated to the global optimal solution. Under the elite retention strategy, the genetic algorithm can converge to the global optimal solution of the problem with probability 1.
(5) Optimal solution judgment. In this study, the e-GA determines whether the cycle terminates by judging the convergence degree of the population, which is based on the change in the fitness value of the individuals retained in the elite retention library in each generation. The maximum generation is set to avoid searching for an approximate solution after the pre-accepted solution is obtained. The criteria for whether the population converges are as follows:
a. Among K best individuals in the elite retention library, the one with the smallest fitness value is better than the best individual among those in the next t generation.
b. The maximum generation is reached.
For the final K best individuals, the individuals with the smallest distance change are selected as the optimal solution from the individuals with minimal difference in fitness values. The calculation of distance change ΔD(j) is shown in Equation (9). The nodes and their adjacency vertices in the local subgroups of road network G are adjusted on the basis of the optimal scheme. In this process, the optimal scheme may cause topological errors. However, these topological errors will be marked in the result:
where i is the ith node or the adjacency vertex in G, j is its position, and ΔD is the sum of distance changes of the nodes and their adjacency vertices in G. Di is the position of the ith node or the adjacency vertex in G under seven-digit precision and D’i is the position of the ith node or the adjacency vertex in G under five-digit precision.
6. Experimental Results and Analysis
6.1. Experiments Design and Study Area
The proposed algorithm was implemented in C#, and the software developed for it can produce a road network map with five-digit precision from one with seven-digit precision. The seven-digit road network data (Advanced Driving Assistance System (ADAS) in specific formats) of a region in Chongqing, China, which was provided by NavInfo Co., Ltd. (Beijing, China), which included 53,525 roads, 106,537 endpoints, 8619 intersection points, and 118,327 vertices, were selected as experimental data. The study area is shown in Figure 15.
Given the requirements of road network data with five-digit precision, the distance constraint of vertex elimination was 2 m. The compression rate is related to the density of points in the original roads. The distance constraint ε in this experiment was set to 5 m to display the simplification details. When recognizing long straight lines, the bandwidth μ of the strip was 0.1 m, the length threshold γ of the long straight line was 100 m, and the change threshold of turning angle was 5° in the process of local shape maintenance. In the process of maintaining the spatial directional relationship of special nodes, the change threshold η1 of the azimuth of each road segment associated with special nodes was set to 3°. The parameters and threshold setting of the genetic algorithm are shown in Table 1. In Figure 15, the region in box 1 is shown in Figure 16, and the region in box 2 is shown in Figure 17. These values are not fixed but are deemed relatively reasonable for this experiment.
Table 1.
The parameters and threshold setting of the genetic algorithm.
Figure 16.
Simplified results of different algorithms. Comparison of (a) the DP algorithm and the improved Opheim algorithm; (b) the VW algorithm and the improved Opheim algorithm; (c) the Opheim algorithm and the improved Opheim algorithm.
Figure 17.
Simplified results of different algorithms: (a) improved Opheim; (b) DP; (c) VW, and (d) Opheim algorithms.
6.2. Result Analysis
The improved Opheim algorithm proposed in this study was compared with the classical DP, Visvalingam–Whyatt (VW), and Opheim algorithms. The data compression rates of the four simplification methods were similar, facilitating comparison of the simplification effect. The vertical distance threshold was set to 0.5 m in the DP algorithm, the area threshold was set to 4 m2 in the VW algorithm, and the minimum distance constraint was set to 5 m in the Opheim algorithm. The simplified results after maintenance are shown in Figure 16. From the visual effect of the simplified line, the distance among points best met the distance constraint and showed a good approximation of the original road. Compared with our algorithm, the DP algorithm produced a better compression result for straight, long, and flat road sections, and the compression effect of the curved roads was not ideal. Especially for curved roads with large bends and dense points, the distance constraint was difficult to meet.
The regions outlined by the black dotted lines in Figure 16b show the simplified version using the DP and the proposed algorithms with five-digit precision. A considerable difference was found in whether the local road shape was maintained. The results showed that the simplified result of our algorithm is was better than that of the DP algorithm.
The simplified result of the VW algorithm is shown in Figure 16c. A few points do not satisfy the distance constraint. The road shape under five-digit precision changed more compared with the original shape, as shown in the dotted box, because road shape maintenance was disregarded.
The Opheim algorithm is similar to the current algorithm, but it does not consider the changes in turning angle and road shape. As a result, the road shape considerably changed after reducing precision. The simplification result was also not as good as that of the proposed algorithm.
Figure 17 shows four simplified results for a ring road in region 2 in Figure 15. Except for the improved Opheim algorithm proposed in this study, the DP, VW, and Opheim algorithms were unable to maintain the spatial topological consistent with the original road. The topological errors are presented in the dotted box in Figure 17. The result of the improved Opheim algorithm, shown in Figure 17a, implied that eliminating point P will lose topological consistency after simplification. Accordingly, point P was preserved and marked as a problem point. Vertex elimination under high precision guarantees results without self-intersections, regardless of the morphology of the input line and the tolerance value. In contrast, the DP, VW, and Opheim algorithms eliminated important characteristic points and violated the positional precision constraint. Figure 17b–d depict that some intersection points on the road are eliminated. The improved Opheim algorithm retained the intersection points and other feature points while satisfying the distance constraint. Another advantage of the proposed method shown in Figure 17 is that it can meet the distance requirement of road data compression better than the other methods, which do not consider the distance among reserved points.
Figure 18 is a result of maintaining the spatial directional relationship of the road network associated with the special nodes in Figure 13 by using e-GA. This result of the intelligent algorithm is generally optimal. This method keeps the morphological characteristics and displacement precision of the road network. In Figure 18, the overall azimuth deviation is the smallest, and the similarity is the highest.
Figure 18.
Maintenance of spatial directional relationship at special nodes using e-GA. The blue line represents the original road and the orange line represents the road with five-digit precision. V1 and V2 are nodes.
To better demonstrate the performance of our method, experimental results based on the data from Chengdu (61,641 roads), Guangzhou (71,326 roads), and Shanghai (43,571 roads) in China were compared and analyzed. Table 2 presents the comparisons of the four groups of experiments. Similarly, the compression rates of these four sets of experiments were comparable. The assessment results of the modified Hausdorff distance (MHD) [49] between the original and the simplified roads are shown in Table 2, which shows a higher shape similarity degree with our proposed method than the other three methods. Table 3 shows the changes of the azimuth angles with and without adjustment of the spatial directional relationship. Table 4 describes the changes in the turning angles with and without adjustment of the spatial directional relationship. Our method was the key to extracting road network maps with five-digit precision from those with seven-digit precision.
Table 2.
The average Hausdorff distance statistics of different methods.
Table 3.
The average changes in the azimuth angle in the spatial directional relationship.
Table 4.
The average changes in the turning angle in the spatial directional relationship.
7. Conclusions
In this study, we innovatively proposed a method that combines the improved Opheim algorithm with the intelligent maintenance of the spatial directional relationship. Based on the grid model, this new method effectively expresses the process of transforming road network maps from seven- to five-digit precision, which involves four main steps. First, the improved Opheim algorithm under seven-digit precision deletes vertices that do not meet requirements for navigation. Second, local shape maintenance under five-digit precision is used to maintain the spatial directional relationship between the road segments connecting with the vertices. Third, the spatial directional relationship at a general node is adjusted. Finally, we explained the problems caused by the method when maintaining the spatial direction relationship between roads at special nodes, and introduced the process of solving this problem with a genetic algorithm with the elite strategy in detail. To illustrate the application of our method, we examined the road network extraction in four cities, and we proved these results to be reasonable and effective. The threshold in the experiment was set on the basis of experience. The following conclusions can be drawn from the results:
- (1)
- Compared with the DP, VW, and Opheim algorithms, the improved Opheim algorithm that considers requirements in navigation retains the characteristic points needed for navigation and is combined with the intelligent maintenance of the spatial directional relationship. The local shape of the roads is similar to the original roads after road data precision is reduced. In the Hausdorff distance statistics between the road networks with five-digit precision and the original road networks, the result of our method was close to the Opheim algorithm, and the difference was smaller than those of the other three methods. The average change of turning angles with local shape adjustment was optimized compared to the average change in turning angles without local shape adjustment. A part of the visual effects of the results was shown in Figure 16.
- (2)
- Our algorithm considers the spatial topological relationships among all features. Theoretically, in the process of maintaining the local shape of the road, when topological errors occur in all optional positions of a vertex, topological errors will be marked in the result. During the process of adjusting the spatial relationship among the roads connecting with the node, if all the schemes satisfying the user-defined constraint on spatial directional deviation cause spatial topological errors, the optimal scheme selected from them will also cause spatial topological errors.
- (3)
- The spatial directional relationships between roads at all nodes in road networks are maintained when data precision is lowered. The spatial directional relationship among road segments connected at every general node is adjusted optimally and total changes in azimuths of road segments connected at special nodes are minimized by obtaining the near-optimal solution.
However, the proposed method in this paper was used to extract road network maps (five digit) used for conventional navigation from high-precision road network maps (seven digit) instead of extracting maps with other precision levels. If it will be used to produce road network data with four-digit precision, then the grid width is expanded by 10 times, and the simplification and adjustment of a road network will be more difficult. In future research, we hope that this proposed algorithm becomes more intelligent to meet the requirements of road network generalization for navigation. Another future task is to study the iterative displacement method to address the spatial topological conflicts caused by road simplification, and to consider the buildings along roads to avoid inconsistencies between roads and buildings after reducing the precision.
Author Contributions
Methodology, Qingsheng Guo and Huihui Wang; Resources, Bin Xing, Zhijie Jia and Meng Li; Software, Huihui Wang and Jie He; Validation, Chuanqi Zhou and Yang Liu; Writing—original draft, Huihui Wang; Writing—review & editing, Qingsheng Guo. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by the National Natural Science Foundation of China under Grant 41871378.
Acknowledgments
We would like to thank all authors for contributing to this special issue and the reviewers for their constructive suggestions and criticisms that significantly improved the papers in this issue. We also want to thank Sophia Shen for her editorial support and help.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Li, Z. Algorithmic Foundation of Multi-Scale Spatial Representation; CRC Press: Boca Raton, FL, USA, 2006. [Google Scholar]
- Douglas, D.H.; Peucker, T.K. Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. Cartogr. Int. J. Geogr. Inf. 1973, 10, 112–122. [Google Scholar] [CrossRef] [Scilit]
- Opheim, H. Smoothing a digitized curve by data reduction methods. In Proceedings of the Eurographics, Munich, Germany, 9–11 September 1981; pp. 127–135. [Google Scholar]
- Opheim, H. Fast data reduction of a digitized curve. Geo-Process. 1982, 2, 33–40. [Google Scholar]
- Visvalingam, M.; Whyatt, J.D. Line generalisation by repeated elimination of points. Cartogr. J. 1993, 30, 46–51. [Google Scholar] [CrossRef]
- Saalfeld, A. Topologically consistent line simplification with the Douglas-Peucker algorithm. Comput. Geosci. Inf. Sci. 1999, 26, 7–18. [Google Scholar] [CrossRef] [Scilit]
- Pallero, J. Robust line simplification on the plane. Comput. Geosci. 2013, 61, 152–159. [Google Scholar] [CrossRef] [Scilit]
- Tienaah, T.; Stefanakis, E.; Coleman, D.J.G. Contextual Douglas-Peucker simplification. Geomatica 2015, 69, 327–338. [Google Scholar] [CrossRef] [Scilit]
- Qingsheng, G.; Brandenberger, C.; Hurni, L. A progressive line simplification algorithm. Geo-Spat. Inf. Sci. 2002, 5, 41–45. [Google Scholar] [CrossRef] [Scilit]
- Park, W.; Yu, K. Hybrid line simplification for cartographic generalization. Pattern Recognit. Lett. 2011, 32, 1267–1273. [Google Scholar] [CrossRef] [Scilit]
- Keates, J.S. Cartographic Design and Production; Longman Inc.: New York, NY, USA, 1973. [Google Scholar]
- Jones, C.B.; Ware, M. Nearest neighbor search for linear and polygonal objects with constrained trianglations. In Proceedings of the 8th International Symposium on Spatial Data Handling, Vancouver, BC, Canada, 11–15 July 1998; pp. 13–21. [Google Scholar]
- Ai, T.; Guo, R.; Liu, Y. A Binary Tree Represen tation of Curve H ierarch ical Structure in Depth. Acta Geod. Cartogr. Sin. 2001, 30, 343–348. [Google Scholar]
- Ai, T.; Liu, Y.; Chen, J. The hierarchical watershed partitioning and data simplification of river network. In Progress in Spatial Data Handling; Springer: Berlin/Heidelberg, Germany, 2006; pp. 617–632. [Google Scholar]
- Ai, T. The drainage network extraction from contour lines for contour line generalization. ISPRS J. Photogramm. Remote Sens. 2007, 62, 93–103. [Google Scholar] [CrossRef] [Scilit]
- Ai, T.; Zhou, Q.; Zhang, X.; Huang, Y.; Zhou, M. A Simplification of Ria Coastline with Geomorphologic Characteristics Preserved. Mar. Geod. 2014, 37, 167–186. [Google Scholar] [CrossRef] [Scilit]
- Ai, T.; Ke, S.; Yang, M.; Li, J. Envelope generation and simplification of polylines using Delaunay triangulation. Int. J. Geogr. Inf. Sci. 2016, 31, 297–319. [Google Scholar] [CrossRef] [Scilit]
- Perkal, J. An attempt at objective generalization. Mich. Inter.-Univ. Community Math. Geogr. Discuss. Pap. 1966, 10, 130–142. [Google Scholar]
- Li, Z.; Openshaw, S. Algorithms for automated line generalization1 based on a natural principle of objective generalization. Int. J. Geogr. Inf. Sci. 1992, 6, 373–389. [Google Scholar] [CrossRef] [Scilit]
- Shi, W.; Cheung, C. Performance Evaluation of Line Simplification Algorithms for Vector Generalization. Cartogr. J. 2006, 43, 27–44. [Google Scholar] [CrossRef] [Scilit]
- Lang, T. Rules for the robot draughtsmen. Comput. Geosci. 1969, 42, 50–51. [Google Scholar]
- Rcumann, K.; Witkam, A.P.M. Optimizing curve segmentation in computer graphics. In Proceedings of the International Computing Symposium, Davos, Switzerland, 4–7 September 1973; pp. 467–472. [Google Scholar]
- Cromley, R.G. Principal axis line simplification. Cartogr. J. 1992, 18, 1003–1011. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Z.; Saalfeld, A. Linear-time sleeve-fitting polyline simplification algorithms. In Proceedings of the AutoCarto 13, Seattle, WA, USA, 7–10 April 1997. [Google Scholar]
- McMaster, R.B.; Shea, K.S. Generalization in Digital Cartography; Association of American Geographers: Washington, DC, USA, 1992. [Google Scholar]
- De Berg, M.; van Kreveld, M.; Schirra, S. Topologically Correct Subdivision Simplification Using the Bandwidth Criterion. Cartogr. Geogr. Inf. Syst. 2013, 25, 243–257. [Google Scholar] [CrossRef] [Scilit]
- Yu, J.; Chen, G.; Zhang, X.; Chen, W.; Pu, Y. An improved Douglas-Peucker algorithm aimed at simplifying natural shoreline into direction-line. In Proceedings of the 2013 21st International Conference on Geoinformatics, Kaifeng, China, 20–22 June 2013; pp. 1–5. [Google Scholar]
- Goyal, R.K.; Egenhofer, M.J. Similarity Assessment for Cardinal Directions between Extended Spatial Objects; University of Maine: Orono, ME, USA, 2000. [Google Scholar]
- Goyal, R.K.; Egenhofer, M.J. Consistent queries over cardinal directions across different levels of detail. In Proceedings of the 11th International Workshop on Database and Expert Systems Applications, Washington, DC, USA, 10–13 September 2000; pp. 876–880. [Google Scholar]
- Tang, L.; Yang, B.; Xu, K. The Road Data Change Detection Based on Linear Shape Similarity. Geomat. Inf. Sci. Wuhan Univ. 2008, 33, 367–370. [Google Scholar]
- Tang, L.; Li, Q.; Xu, F.; Chang, X. One new method for road data shape change detection. In Proceedings of the International Symposium on Spatial Analysis, Spatial-Temporal Data Modeling, and Data Mining, Wuhan, China, 13 October 2009; p. 749209. [Google Scholar]
- Chehreghan, A.; Ali Abbaspour, R. An assessment of spatial similarity degree between polylines on multi-scale, multi-source maps. Geocarto Int. 2017, 32, 471–487. [Google Scholar] [CrossRef] [Scilit]
- Yang, B. A multi-resolution model of vector map data for rapid transmission over the Internet. Comput. Geoences 2005, 31, 569–578. [Google Scholar] [CrossRef] [Scilit]
- Yan, H.; Zhang, L.; Wang, Z.; Yang, W.; Liu, T.; Zhou, L. Quantitative Expressions of Spatial Similarity in Multi-scale Map Spaces. In Proceedings of the International Cartographic Conference, Washington, DC, USA, 2–7 July 2017; pp. 405–416. [Google Scholar]
- Lewis, J.A.; Egenhofer, M.J. Point Partitions: A Qualitative Representation for Region-Based Spatial Scenes in ℝ2. In Proceedings of the International Conference on Geographic Information Science, Montreal, QC, Canada, 27–30 September 2016. [Google Scholar]
- Buttenfield, B.P. Transmitting Vector Geospatial Data across the Internet. In Proceedings of the International Conference on Geographic Information Science, Boulder, CO, USA, 25–28 September 2002; pp. 25–28. [Google Scholar]
- Guo, Q.; Liu, Y.; Li, M.; Cheng, X.; He, J.; Wang, H.; Wei, Z. A progressive simplification method of navigation road map based on mesh model. Acta Geod. Cartogr. Sin. 2019, 48, 1357–1368. [Google Scholar] [CrossRef]
- Chai, Z.; Liang, S. A node-priority based large-scale overlapping community detection using evolutionary multi-objective optimization. Evol. Intell. 2020, 13, 59–68. [Google Scholar] [CrossRef] [Scilit]
- Rosvall, M.; Bergstrom, C.T. Maps of random walks on complex networks reveal community structure. Proc. Natl. Acad. Sci. USA 2008, 105, 1118–1123. [Google Scholar] [CrossRef] [Scilit]
- Fortunato, S. Community detection in graphs. Phys. Rep. 2010, 486, 75–174. [Google Scholar] [CrossRef] [Scilit]
- Newman, M.E. Modularity and community structure in networks. Proc. Natl. Acad. Sci. USA 2006, 103, 8577–8582. [Google Scholar] [CrossRef] [Scilit]
- Yu, W.; Zhang, Y.; Ai, T.; Guan, Q.; Chen, Z.; Li, H. Road network generalization considering traffic flow patterns. Int. J. Geogr. Inf. Sci. 2019. [Google Scholar] [CrossRef] [Scilit]
- De Jong, K.A. Analysis of the Behavior of a Class of Genetic Adaptive Systems; University of Michigan: Ann Arbor, MI, USA, 1975. [Google Scholar]
- Zoraster, S. Practical results using simulated annealing for point feature label placement. Int. J. Geogr. Inf. Sci. 1997, 24, 228–238. [Google Scholar] [CrossRef] [Scilit]
- Ware, J.M.; Jones, C.B.; Thomas, N. Automated map generalization with multiple operators: A simulated annealing approach. Int. J. Geogr. Inf. Sci. 2003, 17, 743–769. [Google Scholar] [CrossRef] [Scilit]
- Ware, J.M.; Wilson, I.D.; Ware, J.A. A knowledge based genetic algorithm approach to automating cartographic generalisation. In Applications and Innovations in Intelligent Systems X; Springer: Berlin/Heidelberg, Germany, 2003; pp. 33–49. [Google Scholar]
- Li, Z.; Yan, H.; Ai, T.; Chen, J. Automated building generalization based on urban morphology and Gestalt theory. Cartogr. Int. J. Geogr. Inf. 2004, 18, 513–534. [Google Scholar] [CrossRef] [Scilit]
- Holland, J.H. Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence; MIT Press: Cambridge, MA, USA, 1992. [Google Scholar]
- Dubuisson, M.; Jain, A.K. A modified Hausdorff distance for object matching. In Proceedings of the 12th International Conference on Pattern Recognition, Jerusalem, Israel, 9–13 October 1994; pp. 566–568. [Google Scholar]
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).



















