A settlement clustering method and device
Through the settlement clustering method based on the spatial resistance distance algorithm, combined with terrain and water system factors, the problem of insufficient consideration of terrain in the existing technology has been solved, and more accurate settlement clustering results have been achieved, reflecting the influence of mountains and rivers on ancient site selection. influence.
Patent Information
- Application Number
- CN202211656421.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-12-22
AI Technical Summary
Existing ancient site settlement clustering methods fail to effectively consider topographic factors and cannot reflect the interaction between large central sites and the obstructive effects of mountains and rivers, resulting in inaccurate clustering results.
The settlement clustering method based on the spatial resistance distance algorithm is adopted. By selecting important influencing factors such as terrain and water system, calculating their influence cost weight value, generating a resistance raster map and calculating the resistance distance between settlements, and using the resistance distance for clustering.
This method can more accurately reflect the impact of terrain on site distribution, reduce the subjectivity of category presets, and provide a clearer analysis of settlement aggregation forms and development and evolution processes.
Smart Images

Figure CN116340788B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of ancient settlement clustering, and in particular to a settlement clustering method and device. Background Art
[0002] Settlements are places where humans live and gather, and are divided into urban settlements and rural settlements. Clustering, as a method of settlement morphology research, can deeply understand and explore the settlement aggregation form and development and evolution process. The analysis of settlement morphology and its development and evolution is not only an analysis of the geographical environment, but also reflects the rise and fall of a region, as well as the social and cultural characteristics of an era. It can also better understand the development of settlements, thereby promoting and guiding urban development prediction and planning. From an archaeological perspective, the clustering and development and evolution analysis of settlements is an important way to understand and grasp the development of ancient civilizations, and an important method to guide site prediction.
[0003] At present, most of the clustering methods used for ancient site settlement clustering directly or indirectly use Euclidean distance as the clustering standard, without considering the influence of terrain factors. On the one hand, it cannot reflect the impact of the interaction between multiple large central sites on the surrounding sites; on the other hand, the Euclidean distance cannot reflect the obstructive effect of mountains and rivers. Summary of the invention
[0004] Based on the above situation of the prior art, the purpose of the embodiments of the present invention is to provide a settlement clustering method and device, which adopts constraint distance instead of Euclidean distance for clustering analysis, aiming to provide a settlement clustering method and device based on the spatial resistance distance algorithm under terrain constraints, which solves the problem that the existing clustering methods do not take the terrain into consideration enough and cannot reflect the mutual influence between settlements.
[0005] To achieve the above object, according to one aspect of the present invention, a settlement clustering method is provided, comprising:
[0006] Select multiple important influencing factors based on the vector data, basic information, terrain information and water system information of the settlements to be clustered;
[0007] Evaluate the importance of multiple important influencing factors and calculate the impact cost weight value of each important influencing factor;
[0008] Generate a resistance grid map for each important influencing factor, and generate a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor;
[0009] Calculate the resistance distance between the settlements to be clustered based on the total resistance map;
[0010] The clustering algorithm based on resistance distance is used to cluster the settlements to obtain the clustering results.
[0011] Furthermore, the importance evaluation of multiple important influencing factors and calculation of the influence cost weight value of each important influencing factor include:
[0012] Make pairwise judgments on multiple important influencing factors, and establish an importance judgment matrix based on the judgment results;
[0013] The eigenvalues and eigenvectors of the importance judgment matrix are calculated, and the influence cost weight values of each important influencing factor are obtained based on the eigenvalues and eigenvectors.
[0014] Furthermore, generating a resistance grid map for each important influencing factor and generating a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor include:
[0015] Reclassify the grid values of each important influencing factor to form a resistance grid map of each important influencing factor;
[0016] The resistance model is used to calculate the resistance distance. The value of each grid in the resistance grid map is the resistance value, and the shortest weighted distance between every two points is calculated.
[0017] A direction grid is used to record the direction of the surrounding minimum path value.
[0018] Furthermore, the calculation of the resistance distance between the settlements to be clustered based on the total resistance map includes:
[0019] Based on the total resistance grid map, the shortest resistance distance between every two points i and j is calculated according to the resistance distance formula, which is:
[0020]
[0021] Where all is the cumulative resistance distance of a neighboring unit a in the horizontal direction of j pointing to i in the total resistance grid map, costa is the resistance value of unit a in the total resistance grid map, costj is the resistance value of unit j in the total resistance grid map, and d a,j is the distance between units a and j. If a and j are adjacent nodes horizontally and vertically, then d a,j =1, if a and j are diagonally adjacent nodes, then
[0022] Furthermore, clustering the settlements to be clustered by using a clustering algorithm based on resistance distance includes:
[0023] (1) Input data set S and clustering threshold ε. The clustering threshold ε in the clustering process is defined as:
[0024] ε=θ*Dis(C1,Z2)
[0025] Where Dis(i, j) = D cost (i)―D cost (j)i,j are two different points,
[0026] Among them, C1 is the midpoint or centroid of the first category, Z2 refers to the point farthest from C1, and the range of θ is 0<θ<1;
[0027] (2) Establish Thiessen polygons based on the data set S;
[0028] (3) Combined with the terrain, the function Dis(i,j) is called to calculate the resistance distance between every two points or every two types of centroids, and the obtained resistance distance is placed in the matrix D c middle;
[0029] (4) The matrix D c Sort and select the minimum distance value. When the minimum distance min(dis) < ε, merge the two points to form a new class g. i .
[0030] (5) Calculate the new class g i . Add the coordinates of the center of mass to the matrix S;
[0031] (6) Recursively repeat steps (3)-(5) until min(dis)>ε, then stop and output the clustering results.
[0032] According to another aspect of the present invention, there is provided a settlement clustering device, comprising:
[0033] The important influencing factor selection module is used to select multiple important influencing factors based on the vector data, basic information, terrain information and water system information of the settlements to be clustered;
[0034] The influence cost weight value calculation module is used to evaluate the importance of multiple important influencing factors and calculate the influence cost weight value of each important influencing factor;
[0035] A total resistance map generation module is used to generate a resistance grid map for each important influencing factor, and generate a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor;
[0036] The resistance distance calculation module is used to calculate the resistance distance between the settlements to be clustered based on the total resistance map;
[0037] The clustering module is used to cluster the settlements to be clustered using a resistance distance-based clustering algorithm to obtain clustering results.
[0038] Furthermore, the influence cost weight value calculation module evaluates the importance of multiple important influence factors and calculates the influence cost weight value of each important influence factor, including:
[0039] Make pairwise judgments on multiple important influencing factors, and establish an importance judgment matrix based on the judgment results;
[0040] The eigenvalues and eigenvectors of the importance judgment matrix are calculated, and the influence cost weight values of each important influencing factor are obtained based on the eigenvalues and eigenvectors.
[0041] Furthermore, the total resistance map generation module generates a resistance grid map for each important influencing factor, and generates a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor, including:
[0042] Reclassify the grid values of each important influencing factor to form a resistance grid map of each important influencing factor;
[0043] The resistance model is used to calculate the resistance distance. The value of each grid in the resistance grid map is the resistance value, and the shortest weighted distance between every two points is calculated.
[0044] A direction grid is used to record the direction of the surrounding minimum path value.
[0045] Furthermore, the resistance distance calculation module calculates the resistance distance between the settlements to be clustered based on the total resistance map, including:
[0046] Based on the total resistance grid map, the shortest resistance distance between every two points i and j is calculated according to the resistance distance formula, which is:
[0047]
[0048] Where all is the cumulative resistance distance of a neighboring unit a in the horizontal direction of j pointing to i in the total resistance grid map, costa is the resistance value of unit a in the total resistance grid map, costj is the resistance value of unit j in the total resistance grid map, and d a,j is the distance between units a and j. If a and j are adjacent nodes horizontally and vertically, then d a,j =1, if a and j are diagonally adjacent nodes, then Furthermore, the clustering module uses a resistance distance-based clustering algorithm to cluster the clustered settlements, including:
[0049] (1) Input data set S and clustering threshold ε. The clustering threshold ε in the clustering process is defined as:
[0050] ε=θ*Dis(C1,Z2) where C1 is the midpoint or centroid of the first class, Z2 is the point farthest from C1, and the range of θ is 0<θ<1;
[0051] (2) Establish Thiessen polygons based on the data set S;
[0052] (3) Combined with the terrain, the function Dis(i,j) is called to calculate the resistance distance between every two points or every two types of centroids, and the obtained resistance distance is placed in the matrix D c middle;
[0053] (4) The matrix D c Sort and select the minimum distance value. When the minimum distance min(dis) < ε, merge the two points to form a new class g. i .
[0054] (5) Calculate the new class g i . Add the coordinates of the center of mass to the matrix S;
[0055] (6) Recursively repeat steps (3)-(5) until min(dis)>ε, then stop and output the clustering results.
[0056] In summary, the embodiment of the present invention provides a settlement clustering method and device, the method comprising: selecting multiple important influencing factors according to the vector data and basic information of the settlement to be clustered; evaluating the importance of multiple important influencing factors, and calculating the influence cost weight value of each important influencing factor; generating a resistance grid map for each important influencing factor, and generating a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor; calculating the resistance distance between the settlements to be clustered based on the total resistance map; clustering the settlements to be clustered using a clustering algorithm based on resistance distance to obtain a clustering result. The technical solution of the embodiment of the present invention has the following beneficial technical effects:
[0057] (1) The technical solution of the embodiment of the present invention takes the important factors affecting the distribution of sites, such as landforms and water systems, as well as slope, elevation, terrain undulation and river width, as important influencing factors, and establishes and calculates the weights of each important influencing factor through the hierarchical analysis method, so as to be able to well combine the terrain information and reflect the impact of the terrain on the surrounding sites, which is conducive to more clearly reflecting and exploring the aggregation form of settlements and the development and evolution process.
[0058] (2) The technical solution of the embodiment of the present invention performs clustering based on the spatial resistance distance constrained by terrain, reflecting the influence of factors such as mountains and rivers on the site selection of ancient ruins, and can well divide discrete settlements, reducing the subjectivity in the category presetting process. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 is a flow chart of a settlement clustering method provided by an embodiment of the present invention;
[0060] Figure 2 is a schematic diagram of the total resistance diagram
[0061] Figure 3 It is a schematic diagram of the resistance distance calculation method;
[0062] Figure 4 This is a classification result diagram of the ancient settlement ruins of the Longshan period in the above specific example obtained by using the clustering method of the embodiment of the present invention;
[0063] Figure 5 is a schematic diagram comparing the resistance distance and the Euclidean distance, where Figure 5 (a) is a schematic diagram of Euclidean distance. Figure 5 (b) is a schematic diagram of the resistance distance;
[0064] Figure 6 It is a schematic diagram of the clustering process provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0066] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of the present invention should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in one or more embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and other similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and other similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
[0067] The technical solution of the present invention is described in detail below with reference to the accompanying drawings. Figure 1 is a flow chart of a settlement clustering method 100 provided in an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0068] S102, select multiple important influencing factors according to the vector data, basic information, terrain information and water system information of the settlements to be clustered. For example, for the settlements to be clustered as ancient ruins settlements, select variables that have a high degree of influence and independent significance that affect the distribution of ancient settlement sites: including but not limited to the elevation information, slope information, terrain undulation and river width and other geomorphic information of the area where the ancient ruins settlements are located as important influencing factors. Take a specific example to illustrate, obtain the vector data of the ancient settlement sites to be clustered, the basic information of the ancient settlement sites, terrain information, and water system information, and select important influencing factors. The basic information of the ancient settlements includes the number of ancient settlement sites and the period of the ancient settlement sites; the Linfen area with rich ancient settlement sites is selected, and the period of the ancient settlement sites is the Longshan period, and a total of 215 ancient settlement sites are selected. The terrain information includes the DEM data information around the ancient settlement sites, and the elevation, slope, valley line, ridge line, and terrain undulation information of the settlement sites are extracted. The water system information includes the names and widths of rivers around the ancient settlement sites. The main water systems around are Fenhe River, Huihe River, Qingshui River, Qinhe River, and Ehe River. Based on the distribution characteristics of the settlement sites in the previous study area, elevation, slope, terrain undulation and river width were selected as important influencing factors. Among them, the slope reflects the steepness of the surface unit; the terrain undulation is a macroscopic indicator that describes the terrain characteristics of a region, describing the relative height within the region; the width of the river refers to the width of the river surface. The ancients lived along the river for easy access to water, and the river was their main route when traveling. Surface water is one of the external forces for the formation of landforms, and the occurrence of floods threatens human survival. The river had a great impact on the ancients, so it was selected as one of the indicators.
[0069] S104: Evaluate the importance of multiple important influencing factors and calculate the influence cost weight value of each important influencing factor. In this step of the present embodiment, the Analytic Hierarchy Process (AHP), i.e., the multi-objective decision-making method, is used to evaluate the importance of each important influencing factor and calculate the influence cost weight value of each factor. This can be achieved by the following steps:
[0070] S1042. Multiple important influencing factors are judged in pairs, and an importance judgment matrix is established based on the judgment results. This step constructs a multi-level structural model to hierarchically classify the nature and objectives of the problem, so that each factor of the seemingly complex problem can be simply quantified, and the influencing factors are judged in pairs to establish an importance matrix between the influencing factors. The relative importance of the factors is judged by comparing every two important influencing factors, and the comparison results are represented by numbers 1-9, 1 means that the two factors are equally important, 9 means extremely important, and the importance increases gradually from 1-9, and the reciprocal is used to represent the opposite importance level. According to the specific examples given above, when elevation, slope, terrain undulation and river width are selected as important influencing factors, the importance judgment matrix of each factor is shown in Table 1:
[0071] Table 1 Importance judgment matrix of each factor
[0072]
[0073] S1044. Calculate the eigenvalues and eigenvectors of the importance judgment matrix, and obtain the influence cost weight values of each important influencing factor based on the eigenvalues and eigenvectors. Based on the importance judgment matrix obtained in the previous step, calculate the influence cost weight values of each important influencing factor. According to the specific examples given above, based on the importance matrix listed in Table 1, the influence cost weight value table of each important influencing factor is shown in Table 2:
[0074] Table 2 Influence cost weight values of important influencing factors
[0075]
[0076] In order to evaluate the consistency of the matrix, the consistency index (CI) can also be introduced, such as the following formula:
[0077]
[0078] Among them, u is the number of important influencing factors, and λ is the eigenvector of the matrix. After calculation, the maximum eigenvalue of the matrix is 4.0686. The closer it is to the number of influencing factors 4, the higher the consistency of the judgment matrix. The CI value is 0.0228. The smaller the value, the higher the consistency of the matrix.
[0079] S106, generating a resistance grid map for each important influencing factor such as elevation, slope, terrain undulation, and river width, and generating a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor.
[0080] S1062. Reclassify the grid values of the raster map of each important influencing factor to form a resistance raster map of each factor. The raster map may include a digital elevation model raster map, terrain relief (raster map), slope (raster map) and river width (raster map). Among them, for each pixel in the digital elevation model raster map of terrain relief (raster map), an 11*11 area is taken, and the maximum elevation in the area is subtracted from the minimum elevation. The obtained value is assigned to the pixel, and all pixel values are calculated to obtain a raster map. The slope (raster map) can be obtained by performing a slope analysis on the digital elevation model, and the river width (raster map) can be generated by extracting elements such as rivers and water systems to generate a raster map. For multiple important influencing factors, weighted calculation is performed according to the influence cost weight value w calculated in the previous step to obtain the total resistance grid map of the settlement area to be clustered. The total resistance grid map = 0.474*elevation (grid map) + 0.334*slope (grid map) + 0.139*terrain undulation (grid map) + 0.053*river width (grid map).
[0081] S108. Calculate the resistance distances between the settlements to be clustered based on the total resistance map generated in step S106. Figure 2 A schematic diagram of the total resistance map is shown in , where darker colors indicate greater resistance values, and lighter colors indicate smaller resistance values. The resistance distance is the shortest weighted distance (accumulated travel cost) for each pixel to the nearest source location, and is expressed in cost units, not geographic units. Figure 3 The schematic diagram of the resistance distance calculation method is shown in Figure 3 The schematic diagram shown in the figure calculates the resistance distance between the settlements to be clustered based on the total resistance map, including the following steps:
[0082] Based on the total resistance grid map, the shortest resistance distance between every two points i and j is calculated according to the resistance distance formula. Figure 2 and Figure 3 ,Will Figure 2 The total resistance diagram is magnified as follows Figure 3 The grid map style shown in is composed of a pixel grid, and the resistance distance is calculated based on the total resistance grid map.
[0083] The resistance distance formula is:
[0084]
[0085] Where all is the cumulative resistance distance of a neighboring unit a in the horizontal direction of j pointing to i in the total resistance grid map, costa is the resistance value of unit a in the total resistance grid map, costj is the resistance value of unit j in the total resistance grid map, and d a,j is the distance between units a and j. If a and j are adjacent nodes horizontally and vertically, then d a,j=1, if a and j are diagonally adjacent nodes, then
[0086] When calculating the next direction of travel from the starting point, select the surrounding 8 neighborhoods for calculation. You can start from point i, select the surrounding 8 neighborhoods to calculate the resistance value, select point b with the smallest resistance path, record the cumulative resistance value and travel direction, and calculate the cumulative resistance value until the end point j.
[0087] According to the specific examples given above, the grid map of four factors, elevation, slope, terrain relief and river width, is used to reclassify the grid values of each factor. Then, a weighted calculation is performed to obtain the total resistance grid image of the entire study area. The resistance model is used to calculate the resistance distance. The value of each grid in the resistance grid image is the resistance value. The shortest weighted distance (also known as the cumulative travel cost) between each two points is calculated. The resistance distance between each two points is recorded in a matrix to form a resistance distance matrix.
[0088] S110, cluster the settlements to be clustered using a clustering algorithm based on resistance distance to obtain a clustering result. Generate Thiessen polygons from the data set, set a threshold according to the calculated resistance distance, and the clustering process is as follows: Figure 6 As shown in the figure, the points with the shortest resistance distance between points are divided into one class, and the resistance distance between groups is recalculated for the new class group until the threshold requirement is met. Different clustering results can be obtained by setting different thresholds. Specifically, you can follow the steps below:
[0089] S1102, input data set S and clustering threshold ε. The clustering threshold ε in the clustering process is defined as:
[0090] ε=θ*Dis(C1,Z2)
[0091] Among them, C1 is the midpoint or centroid of the first category, Z2 refers to the point farthest from C1, and the range of θ is 0<θ<1.
[0092] S1104, establishing Thiessen polygons according to the data set S;
[0093] S1106, calling function Dis(i,j) in combination with the terrain to calculate the resistance distance between every two points (or two classes), and putting the obtained resistance distance in matrix D C In this matrix D C Used to calculate the resistance distance (cost distance) between every two points and recorded in matrix form.
[0094] S1108, matrix D C Sort and select the minimum distance value. When the minimum distance min(dis) < ε, merge the two points (or two matrices) to form a new class g. i .
[0095] S1110, calculate new class g i . Add the coordinates of the centroid to the data set matrix S, and mark the merged data in S (the marked data will not be used as the data for the next calculation);
[0096] S1112. Recursively loop steps S1106-S1110 until min(dis)>ε, then stop.
[0097] In the specific implementation, by setting the parameters, setting θ to 1 / 2, the threshold ε to 150,000, and performing clustering according to the above steps, the clustering results of the ancient settlement site based on resistance distance are obtained. Figure 4 The figure shows the classification result of the ancient settlement site of the Longshan period in the above specific example obtained by using the clustering method of an embodiment of the present invention. Figure 4 The midpoint represents the ancient settlements of the Longshan period. The points in different areas are used to distinguish different categories after clustering. The points in the six areas in the figure indicate that the clustering results are six categories. The solid lines separating the various areas are the dividing lines displayed after the classification is performed according to the method of the embodiment of the present invention. After clustering, the ancient settlements in the central Fenhe River Basin are divided into two settlement groups in the north and south; a settlement group centered on the Qin River is formed in the east; the west is divided into three settlement groups, the northwest is less affected by the water system to form a small settlement group, the west-central part is mainly a settlement group centered on the Xinshui River, and the southwest is affected by the Yellow River and its tributaries and divided into one settlement group. From the above results, it can be seen that the settlement clustering method based on the spatial resistance distance algorithm under terrain constraints can well reflect the terrain characteristics.
[0098] An embodiment of the present invention further provides a settlement clustering device, comprising:
[0099] The important influencing factor selection module is used to select multiple important influencing factors based on the vector data, basic information, terrain information and water system information of the settlements to be clustered;
[0100] The influence cost weight value calculation module is used to evaluate the importance of multiple important influencing factors and calculate the influence cost weight value of each important influencing factor;
[0101] A total resistance map generation module is used to generate a resistance grid map for each important influencing factor, and generate a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor;
[0102] The resistance distance calculation module is used to calculate the resistance distance between the settlements to be clustered based on the total resistance map;
[0103] The clustering module is used to cluster the settlements to be clustered using a resistance distance-based clustering algorithm to obtain clustering results.
[0104] The specific implementation process of each module in the settlement clustering device of this embodiment of the present invention is the same as the steps of the settlement clustering method in the above-mentioned embodiment of the present invention, and its repeated description will be omitted here.
[0105] Figure 5 A schematic diagram comparing the resistance distance and the Euclidean distance is shown in Figure 5 In (a), the Euclidean distance from point A to point D is the line connecting points A and D, without considering the barrier of Taiyue Mountain. Figure 5 In (b), the distance from point A to point D seems to be shorter than Figure 5 (a) is a long way, but this path is a path from the foot of the mountain to bypass Taiyue Mountain, which is 2566.6 meters above sea level, so it is relatively easy to walk. Figure 5 The route in (b) is more labor-saving and more in line with the actual travel situation. Therefore, the settlement clustering method based on resistance distance provided by the embodiment of the present invention is more in line with the needs of practical applications than the clustering method based on Euclidean distance in the prior art.
[0106] In summary, the embodiment of the present invention relates to a settlement clustering method and device, which includes: selecting multiple important influencing factors according to the vector data and basic information of the settlement to be clustered; evaluating the importance of multiple important influencing factors, and calculating the influence cost weight value of each important influencing factor; generating a resistance grid map for each important influencing factor, and generating a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor; calculating the resistance distance between the settlements to be clustered based on the total resistance map; clustering the settlements to be clustered using a clustering algorithm based on resistance distance to obtain a clustering result. The technical solution of the embodiment of the present invention takes the important factors affecting the distribution of the ruins, such as landforms and water systems, as well as slope, elevation, terrain undulation and river width as important influencing factors, and establishes and calculates the weights of each important influencing factor through the hierarchical analysis method, so as to be able to combine the terrain information well, reflect the influence of the terrain on the surrounding ruins, and facilitate a clearer reflection and exploration of the settlement aggregation form and development evolution process. The technical solution of the embodiment of the present invention performs clustering based on the spatial resistance distance constrained by terrain, reflecting the influence of factors such as mountains and rivers on the site selection of ancient ruins, and can well divide discrete settlements, reducing the subjectivity in the category pre-setting process.
[0107] It should be understood that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the present invention (including claims) is limited to these examples; under the idea of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of one or more embodiments of the present invention as described above, which are not provided in detail for the sake of simplicity. The above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the scope of protection of the present invention. In addition, the claims attached to the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the attached claims, or the equivalent forms of such scope and boundaries.
Claims
1. A settlement clustering method, characterized in that: include: Select multiple important influencing factors based on the vector data, basic information, terrain information and water system information of the settlements to be clustered; Evaluate the importance of multiple important influencing factors and calculate the impact cost weight value of each important influencing factor; Generate a resistance grid map for each important influencing factor, and generate a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor; Calculate the resistance distance between settlements to be clustered based on the total resistance map, including: Based on the total resistance grid map, the shortest resistance distance between every two points i and j is calculated according to the resistance distance formula, which is: Where all is the cumulative resistance distance of a neighboring unit a in the horizontal direction of j pointing to i in the total resistance grid map, costa is the resistance value of unit a in the total resistance grid map, costj is the resistance value of unit j in the total resistance grid map, and d a,j is the distance between units a and j. If a and j are adjacent nodes horizontally and vertically, then d a,j =1, if a and j are diagonally adjacent nodes, then The clustering algorithm based on resistance distance is used to cluster the settlements to obtain the clustering results.
2. The method according to claim 1, characterized in that The importance evaluation of multiple important influencing factors and calculation of the influence cost weight value of each important influencing factor include: Make pairwise judgments on multiple important influencing factors, and establish an importance judgment matrix based on the judgment results; The eigenvalues and eigenvectors of the importance judgment matrix are calculated, and the influence cost weight values of each important influencing factor are obtained based on the eigenvalues and eigenvectors.
3. The method according to claim 2, characterized in that The generating of a resistance grid map for each important influencing factor and generating a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor include: Reclassify the grid values of each important influencing factor to form a resistance grid map of each important influencing factor; The resistance model is used to calculate the resistance distance. The value of each grid in the resistance grid map is the resistance value, and the shortest weighted distance between every two points is calculated. A direction grid is used to record the direction of the surrounding minimum path value.
4. The method according to claim 3, characterized in that The clustering algorithm based on resistance distance is used to cluster the clustered settlements, including: (1) Input data set S and clustering threshold ε. The clustering threshold ε in the clustering process is defined as: ε=θ*Dis(C1,Z2) Among them, C1 is the midpoint or centroid of the first category, Z2 refers to the point farthest from C1, and the range of θ is 0<θ<1; (2) Establish Thiessen polygons based on the data set S; (3) Combined with the terrain, the function Dis(i, j) is called to calculate the resistance distance between each two points, and the obtained resistance distance is placed in the matrix D c middle; (4) The matrix D c Sort and select the minimum distance value. When the minimum distance min(dis) < ε, merge the two points to form a new class g. i· ; (5) Calculate the new class g i· The centroid of , add the coordinates of the centroid to the data set S; (6) Recursively repeat steps (3)-(5) until min(dis)>ε, then stop and output the clustering results.
5. A settlement clustering device, characterized in that: include: The important influencing factor selection module is used to select multiple important influencing factors based on the vector data, basic information, terrain information and water system information of the settlements to be clustered; The influence cost weight value calculation module is used to evaluate the importance of multiple important influencing factors and calculate the influence cost weight value of each important influencing factor; A total resistance map generation module is used to generate a resistance grid map for each important influencing factor, and generate a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor; The resistance distance calculation module is used to calculate the resistance distance between the settlements to be clustered based on the total resistance map, including: Based on the total resistance grid map, the shortest resistance distance between every two points i and j is calculated according to the resistance distance formula, which is: Where all is the cumulative resistance distance of a neighboring unit a in the horizontal direction of j pointing to i in the total resistance grid map, costa is the resistance value of unit a in the total resistance grid map, costj is the resistance value of unit j in the total resistance grid map, and d a,j is the distance between units a and j. If a and j are adjacent nodes horizontally and vertically, then d a,j =1, if a and j are diagonally adjacent nodes, then The clustering module is used to cluster the settlements to be clustered using a resistance distance-based clustering algorithm to obtain clustering results.
6. The device according to claim 5, characterized in that The influence cost weight value calculation module evaluates the importance of multiple important influence factors and calculates the influence cost weight value of each important influence factor, including: Make pairwise judgments on multiple important influencing factors, and establish an importance judgment matrix based on the judgment results; The eigenvalues and eigenvectors of the importance judgment matrix are calculated, and the influence cost weight values of each important influencing factor are obtained based on the eigenvalues and eigenvectors.
7. The device according to claim 6, characterized in that The total resistance map generation module generates a resistance grid map for each important influencing factor, and generates a total resistance map based on the resistance grid maps of the multiple important influencing factors and the influence cost weight value of each important influencing factor, including: Reclassify the grid values of each important influencing factor to form a resistance grid map of each important influencing factor; The resistance model is used to calculate the resistance distance. The value of each grid in the resistance grid map is the resistance value, and the shortest weighted distance between every two points is calculated. A direction grid is used to record the direction of the surrounding minimum path value.
8. The device according to claim 7, characterized in that The clustering module uses a resistance distance-based clustering algorithm to cluster the clustered settlements, including: (1) Input data set S and clustering threshold ε. The clustering threshold ε in the clustering process is defined as: ε=θ*Dis(C1,Z2) Among them, C1 is the midpoint or centroid of the first category, Z2 refers to the point farthest from C1, and the range of θ is 0<θ<1; (2) Establish Thiessen polygons based on the data set S; (3) Combined with the terrain, the function Dis(i, j) is called to calculate the resistance distance between each two points, and the obtained resistance distance is placed in the matrix D c middle; (4) The matrix D c Sort and select the minimum distance value. When the minimum distance min(dis) < ε, merge the two points to form a new class g. i· ; (5) Calculate the new class g i· The centroid of , add the coordinates of the centroid to the data set S; (6) Recursively repeat steps (3)-(5) until min(dis)>ε, then stop and output the clustering results.
