A method for generating ancient county-level administrative boundary maps

By identifying and spatially landing historical villages, and combining DEM data, a high-precision border map of ancient county-level political districts is generated, which solves the problem of low accuracy of ancient county-level political district boundary maps in the existing technology and supports wider applications.

CN115934877BActive Publication Date: 2024-11-05TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310008022.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-04
Publication Date
2024-11-05
Estimated Expiration
2043-01-04

AI Technical Summary

Technical Problem

The existing technology is difficult to generate high-precision border maps of ancient county-level political districts, resulting in limited application of ancient geography maps in urban planning and historical geography research.

Method used

By obtaining the map of historical villages, identifying the boundary villages and performing spatial placement on the sky map, combining neighborhood analysis and digital elevation model DEM data, a high-precision boundary map of ancient county-level political districts is generated.

Benefits of technology

The high-precision generation of ancient county-level political district boundary maps based on ancient tutor maps has been achieved, the accuracy of ancient political district boundaries has been improved, and the wider application of digital display of historical space has been supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115934877B_ABST
    Figure CN115934877B_ABST
Patent Text Reader

Abstract

The present application discloses a method for generating an ancient county-level administrative boundary map, including: obtaining a geographic map; identifying border villages according to the relative positions of historical villages; spatially positioning the border villages on the world map; determining the missed border villages in response to user input and spatially positioning them; merging the border villages of the target county and the surrounding counties of the target county to obtain a border village location map; performing neighborhood analysis on the border villages on the border village location map to generate Thiessen polygons; classifying and merging Thiessen polygons according to counties to generate the initial boundary of the target county; determining the low-granularity mountainous area section according to the slope and granularity of the initial boundary; generating a watershed based on the open source digital elevation model DEM data; correcting the boundary of the low-granularity mountainous area section according to the watershed to obtain an ancient county-level administrative boundary map. According to the embodiment of the present application, a high-precision ancient county-level administrative boundary map can be determined based on an ancient geographic map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information technology, and in particular, relates to a method for generating an ancient county-level administrative boundary map. Background Art

[0002] Administrative boundaries are the basic data for current quantitative historical research such as urban planning and historical geography. They are one of the key data for the digital display of regional historical spaces and have broad application prospects in virtual exhibitions, digital games, and digital knowledge dissemination.

[0003] Ancient Geography Figure 1 Generally, maps are drawn based on administrative units at a certain level. Due to limited conditions, ancient maps can only reflect the location of key points, and there is no strict relative position relationship between key points, so it is difficult to directly apply related applications based on ancient maps.

[0004] In the related technology, only the approximate boundaries of ancient political regions can be determined based on ancient maps, and the problem of low accuracy still exists. Summary of the invention

[0005] The embodiment of the present application provides a method for generating an ancient county-level administrative boundary map, which can determine a high-precision ancient county-level administrative boundary map based on ancient geographical maps.

[0006] The present application embodiment provides a method for generating an ancient county-level administrative boundary map, including:

[0007] S1, obtain a geographical map containing historical villages;

[0008] S2, identifying the border villages in the map according to the relative positions of the historical villages;

[0009] S3, spatially locating the border villages on a world map;

[0010] S4, in response to user input, determining the missing border villages, and spatially locating the missing border villages;

[0011] S5, merging the border villages of the target county and the counties surrounding the target county to obtain a border village location map;

[0012] S6, performing neighborhood analysis according to the border villages on the border village location map to generate Thiessen polygons;

[0013] S7, classifying and merging the Thiessen polygons according to counties to generate an initial boundary of the target county;

[0014] S8, determining a low-granularity mountainous area section in the initial boundary according to the slope and granularity of the initial boundary;

[0015] S9, generates watershed based on open source digital elevation model DEM data;

[0016] S10, correcting the boundary of the low-granularity mountainous area according to the watershed to obtain an ancient county-level administrative boundary map of the target county.

[0017] In a possible implementation, the S1 includes:

[0018] S11, determining the target county and the surrounding counties bordering the target county according to the research time period and geographical scope;

[0019] S12, obtaining a map of historical villages including the target county and the surrounding counties.

[0020] In a possible implementation, the S2 includes:

[0021] S21, identifying border villages around the border of the map according to the relative positions of the historical villages;

[0022] S22, connecting the border villages in sequence to form a border village topological polygon;

[0023] S23: If there is a first village outside the border village topological polygon, add the first village to the border village.

[0024] In a possible implementation, S3 includes:

[0025] S31, obtaining a world map;

[0026] S32, determining the correspondence between the historical villages on the geographic map and the historical villages on the world map according to the relative positions and historical names of the historical villages on the geographic map and the relative positions and historical names of the historical villages on the world map;

[0027] S33, based on the corresponding relationship, spatially locate the border village on the world map.

[0028] In a possible implementation, the S4 includes:

[0029] S41, sequentially connecting the located border villages to generate border village polygons;

[0030] S42, determining the missing border villages and performing spatial location according to the village names and relative positions of the outer edge of the border village polygon, the inner edge of the border village topological polygon, and the information of the historical villages.

[0031] In a possible implementation, the S7 includes:

[0032] S71, classifying and merging the Thiessen polygons according to counties to generate boundary polygons;

[0033] S72, converting the boundary polygon of the target county into multiple line segments that do not overlap each other; the multiple line segments constitute the initial boundary of the target county.

[0034] In a possible implementation, the S8 includes:

[0035] S81, determining a mountainous area in the initial boundary according to the via slope;

[0036] S82, determining a low granularity segment in the initial boundary according to the granularity;

[0037] S83: Determine a low-granularity mountainous area segment in the initial boundary according to the mountainous area segment and the low-granularity segment.

[0038] In a possible implementation, the S81 includes:

[0039] When the passing slope corresponding to the line segment of the initial boundary is greater than a preset passing slope threshold, it is determined that the line segment corresponds to a mountainous area.

[0040] In a possible implementation, the S82 includes:

[0041] Determining the granularity according to an average length of two adjacent line segments of the line segment;

[0042] In a case where the granularity is greater than a preset granularity threshold, determining that the line segment corresponds to a high granularity segment;

[0043] When the granularity is less than or equal to a preset granularity threshold, it is determined that the line segment corresponds to a low granularity segment.

[0044] In a possible implementation, the S9 includes:

[0045] Load the DEM data of the geographical area in ArcMap and perform the following operations on the DEM data:

[0046] S91, using a depression filling tool to fill depressions and generate a depression filling layer;

[0047] S92, using a flow direction tool, inputting the DEM data, and generating a flow direction layer;

[0048] S93, using a flow tool, inputting the flow direction layer to generate a flow layer;

[0049] S94, using a river network classification tool, inputting the flow layer and the flow direction layer to generate a river network classification layer;

[0050] S95, using a reclassification tool to determine a first river network classification layer in the river network classification layer;

[0051] S96, using a river chain tool, inputting the first river network classification layer and the flow direction layer to generate a first river chain layer;

[0052] S97, using the watershed tool, inputting the first river chain layer and the flow direction layer to generate a first watershed layer;

[0053] S98, using a raster to polygon tool, inputting the first watershed layer to generate a second watershed layer;

[0054] S99. Use the polygon to polyline tool, input the second watershed layer, and generate the watershed.

[0055] In a possible implementation, the S10 includes:

[0056] The boundary of the low-granularity mountainous area in the initial boundary is replaced by the watershed to obtain an ancient county-level administrative boundary map.

[0057] The method for generating the ancient county-level administrative boundary map of the embodiment of the present application, according to the relative position of the historical village, identifies the border villages in the map, and places the border villages and the missed border villages on the world map. In order to improve the accuracy of the final generated ancient county-level administrative boundary map, the border villages of the target county and the surrounding counties of the target county are subjected to neighborhood analysis, and Thiessen polygons are generated. The Thiessen polygons are classified and merged according to the county to generate the initial boundary of the target county. And on this basis, the initial boundary is corrected by combining the initial boundary via slope, granularity and open source digital elevation model DEM data to obtain a more accurate ancient county-level administrative boundary map. Finally, it is realized to determine the ancient county-level administrative boundary map with high accuracy based on the ancient map. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0059] Figure 1 It is a flowchart of a method for generating an ancient county-level administrative division boundary map provided in an embodiment of the present application;

[0060] Figure 2is a schematic diagram of the border villages of the target county provided in the embodiment of the present application;

[0061] Figure 3 It is a map of the location of border villages of the target county provided in the embodiment of the present application;

[0062] Figure 4 It is the supplemented boundary village location map of the target county provided in the embodiment of the present application;

[0063] Figure 5 It is a map of the location of border villages between the target county and surrounding counties provided in the embodiment of the present application;

[0064] Figure 6 is a schematic diagram of Thiessen polygons provided in an embodiment of the present application;

[0065] Figure 7 is an initial boundary map of the target county provided in the embodiment of the present application;

[0066] Figure 8 is a boundary classification diagram of a target county provided in an embodiment of the present application;

[0067] Fig. 9 is a schematic diagram of a watershed provided in an embodiment of the present application;

[0068] Fig.10 It is the ancient county-level administrative boundary map of the target county provided in the embodiment of the present application. DETAILED DESCRIPTION

[0069] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are intended only to explain the present application, rather than to limit the present application. For the sake of simplicity, this embodiment has only one target county, but the present application is applicable to the case of multiple target counties. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating examples of the present application.

[0070] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0071] For a long time, the lack of high-precision ancient county-level administrative boundary maps has made it difficult to use ancient maps in the digital display of regional historical spaces.

[0072] Based on this, the inventor marked the border villages in each county based on ancient maps, and obtained a border village location map based on the location of the target county and surrounding counties. Through merging, neighborhood analysis, classification and other operations, a more accurate ancient county-level administrative boundary map was obtained.

[0073] In order to facilitate the understanding of this application, the following terms are explained.

[0074] A map is a piece of paper that depicts the state of the earth's surface.

[0075] Watershed, a mountain range that separates two bodies of water. Usually a ridge or a high area of ​​land. A high ridge or section between two basins or river basins.

[0076] Tiandi Map, a geographic information service, includes multiple layers such as image basemap and image annotation.

[0077] Digital Elevation Model (DEM) is a physical ground model that represents ground elevation in the form of a set of ordered numerical arrays. It is a branch of Digital Terrain Model (DTM), and other terrain characteristic values ​​can be derived from it. It is generally believed that DTM describes the spatial distribution of linear and nonlinear combinations of various geomorphic factors including elevation, such as slope, aspect, slope change rate, etc. Among them, DEM is a zero-order simple single-item digital geomorphic model. Other geomorphic characteristics such as slope, aspect and slope change rate can be derived on the basis of DEM.

[0078] Neighborhood analysis is a window analysis. Its basic idea is to expand a certain range around the grid pixel to be calculated, and then perform function operations based on the values ​​of these extended grid pixels and the central pixel or only the extended pixels, that is, the value of the analysis window, to obtain the new value of the pixel to be calculated. Neighborhood analysis can be used to simulate the spread of forest fires, the diffusion of factory pollutants, etc.

[0079] Thiessen polygons are composed of a set of continuous polygons consisting of perpendicular bisectors of straight lines connecting two adjacent points.

[0080] In order to solve the problems of the prior art, an embodiment of the present application provides a method for generating an ancient county-level administrative boundary map.

[0081] Figure 1 is a flow chart of a method for generating an ancient county-level administrative division boundary map provided in an embodiment of the present application, such as Figure 1 As shown, the method for generating an ancient county-level administrative boundary map provided in an embodiment of the present application includes the following steps: S1 to S10.

[0082] S1, obtain a geographical map containing historical villages;

[0083] S2, identifying the border villages in the geographical map based on the relative positions of the historical villages;

[0084] S3, spatially locate the border villages on the world map;

[0085] S4, in response to user input, determining the missing border villages, and spatially locating the missing border villages;

[0086] S5, merging the border villages of the target county and its surrounding counties to obtain a border village location map;

[0087] S6, performing neighborhood analysis according to the border villages on the border village location map to generate Thiessen polygons;

[0088] S7, classify and merge the Thiessen polygons according to the county to generate the initial boundary of the target county;

[0089] S8, determining a low-grained mountainous area section in the initial boundary according to the slope and grainedness of the initial boundary;

[0090] S9, generates watershed based on open source digital elevation model DEM data;

[0091] S10, correct the boundaries of the low-granularity mountainous section according to the watershed to obtain the ancient county-level administrative boundary map of the target county.

[0092] The method for generating the ancient county-level administrative boundary map of the embodiment of the present application, according to the relative position of the historical village, identifies the border villages in the map, and places the border villages and the missed border villages on the world map. In order to improve the accuracy of the final generated ancient county-level administrative boundary map, the border villages of the target county and the surrounding counties of the target county are subjected to neighborhood analysis, and Thiessen polygons are generated. The Thiessen polygons are classified and merged according to the county to generate the initial boundary of the target county. And on this basis, the initial boundary is corrected by combining the initial boundary via slope, granularity and open source digital elevation model DEM data to obtain a more accurate ancient county-level administrative boundary map. Finally, it is realized to determine the ancient county-level administrative boundary map with high accuracy based on the ancient map.

[0093] The specific implementation of steps S1-S10 is introduced below.

[0094] In a possible implementation, S1 includes:

[0095] S11, determine the target county and the surrounding counties that border the target county based on the research time period and geographical scope;

[0096] As a possible implementation of S11, a list of county-level administrative regions is obtained according to the research time period and geographical scope, and a target county is determined according to a user's selection from the list of county-level administrative regions. The surrounding counties are determined according to the bordering relationship of the target county.

[0097] S12, obtaining a map of historical villages including the target county and surrounding counties.

[0098] As a possible implementation of S12, a geographical map is obtained from a database according to the names of the target county and the surrounding counties.

[0099] The map specifically refers to a map that includes only one county. To facilitate distinction, the map can also be renamed, for example: county name + map.

[0100] Therefore, in the process of generating the target county administrative boundary map, in addition to the geographic map of the target county, the geographic maps of the surrounding counties bordering the target county are also referred to, which can improve the accuracy of the target county administrative boundary map finally generated.

[0101] In a possible implementation, S2 includes:

[0102] S21, identifying border villages around the border of the geographical map according to the relative positions of the historical villages;

[0103] As a possible implementation of S21, based on the existing border on the map, historical villages that are relatively close to the border are identified, and historical villages that are a preset distance from the border are determined as border villages.

[0104] Among them, historical villages are all the villages on the map, and border villages are villages at a preset distance from the border.

[0105] In this application, only the village is used as the unit. In the actual processing process, it can be replaced with other administrative units according to user needs.

[0106] S22, connecting the border villages in sequence to form a border village topological polygon;

[0107] As a possible implementation of S22, any two border villages that are closest to each other are connected according to the distance between the border villages, until the border villages are connected to form a border village topological polygon.

[0108] S23, if the first village exists outside the border village topological polygon, add the first village to the border village.

[0109] As a possible implementation of S23, if the first village exists outside the border village topology polygon, the first village is added to the border village, and the border village topology polygon is re-formed, such as Figure 2 shown. Figure 2 is a schematic diagram of the border villages of the target county provided in the embodiment of the present application, Figure 2 The dots in the middle are border villages, the dotted lines are border village topological polygons, and the solid lines are the border lines of the target counties on the map.

[0110] If the first village does not exist outside the border village topology polygon, the existing border village topology polygon is maintained.

[0111] Among them, the first village refers to the border village omitted in S22.

[0112] In this way, the border villages around the target county were determined, which facilitated the subsequent determination of the target county's boundaries based on the border villages.

[0113] In a possible implementation, S3 includes:

[0114] S31, obtaining a world map;

[0115] As a possible implementation of S31, a new GIS software ArcMap document is created, a suitable projection coordinate system is set in the data frame, and the Tiandi Map API is loaded using the WTMS service as a reference for spatial location, including two layers: image base map (img) and image annotation (cia).

[0116] S32, determining the correspondence between the historical villages on the geographic map and the historical villages on the world map according to the relative positions and historical names of the historical villages on the geographic map and the relative positions and historical names of the historical villages on the world map;

[0117] As a possible implementation of S32, a new vector layer is created, and the coordinate system is set to be consistent with the data frame, and "Text" type fields are added: "County Name" and "Historical Village Name". According to the relative position and historical name of the historical village on the map, the relative position of the historical village on the image base map of the world map and the historical name in the image annotation are referred to to determine the correspondence between the historical village on the map and the historical village on the world map.

[0118] S33, based on the corresponding relationship, the border villages are spatially located on the world map.

[0119] As a possible implementation of S33, when the historical villages on the map and the world map correspond to each other, the village point is drawn at the center of the village on the image base map, and the corresponding county name and historical village name are filled in the attribute table to complete the spatial location, such as Figure 3 shown. Figure 3 is a map of the border villages of the target county provided in the embodiment of the present application, Figure 3 The dots in the middle are the border villages that have been located in the target counties.

[0120] When the historical villages on the map and the world map do not correspond, corresponding markings will be made on the map.

[0121] Therefore, the spatial location of border villages on the world map was completed based on the correspondence between the geographical map and the historical villages on the map.

[0122] In a possible implementation, S4 includes:

[0123] S41, sequentially connecting the located border villages to generate border village polygons;

[0124] As a possible implementation of S41, the point-to-polygon tool of the ArcMap open source plug-in XTools Pro is used to connect the located border villages in sequence to form border village polygons, and the layer is named: county name + border village polygon.

[0125] S42, based on the village names and relative positions of the outer edge of the border village polygon, the inner edge of the border village topological polygon, and the information of the historical villages, determine the missing border villages and perform spatial location.

[0126] As a possible implementation of S42, the names and relative positions of the historical villages on the outer edge of the border village polygon and the inner edge of the border village topological polygon are compared, and a comprehensive judgment is made based on the information of the historical villages. If there is a corresponding relationship between the historical villages on the outer edge of the border village polygon and the inner edge of the border village topological polygon, the historical village is determined to be a missed border village, and a spatial location is performed, such as Figure 4 shown. Figure 4 This is the location map of the boundary villages of the target county after the supplement. Figure 4 The dotted lines in the figure are the border village topological polygons, the light-colored dots are the border villages that have been located, and the dark-colored dots are the missed border villages.

[0127] In one embodiment, the information of the historical village may include: the transliteration of the name of the historical village recorded in the relevant materials on the evolution of the historical village and / or a name with similar meaning.

[0128] Therefore, through the correspondence between the boundary village polygons and the historical villages of the boundary village topological polygons, the missed boundary villages can be determined and supplemented, thereby improving the accuracy of the ancient county-level administrative boundary map confirmed based on the boundary villages.

[0129] In a possible implementation, S5 includes:

[0130] After repeating steps S1-S4, the spatial location of the border villages of all target counties and surrounding counties is completed. Use the merge tool of ArcMap to merge the border villages of all target counties and surrounding counties, and retain the fields corresponding to the border villages to obtain the border village location map, as shown in the figure below: Figure 5 shown. Figure 5 is a map of the boundary villages between the target county and the surrounding counties provided in the embodiment of the present application, Figure 5 The dots in the figure are the border villages between the target county and the surrounding counties.

[0131] In a possible implementation, S6 includes:

[0132] Use ArcMap's Create Thiessen Polygons tool, input the boundary village location map, select Output All Fields, and generate Thiessen polygons, such as Figure 6 shown. Figure 6 is a schematic diagram of Thiessen polygons provided in an embodiment of the present application, Figure 6 The dots in the figure are the border villages between the target county and the surrounding counties.

[0133] In a possible implementation, S7 includes:

[0134] S71, classify and merge Thiessen polygons according to counties to generate boundary polygons;

[0135] As a possible implementation of S71, the ArcMap fusion tool is used to classify and merge the Thiessen polygons according to the county names to generate boundary polygons.

[0136] S72, converting the boundary polygon of the target county into multiple line segments that do not overlap each other;

[0137] As a possible implementation of S72, the polygon-to-polyline tool of ArcMap open source plug-in XTools Pro is used to input the boundary polygon, check the "break overlapping polygons" option, and choose to create a unique boundary line to generate the initial boundary of the target county composed of polyline segments, such as Figure 7 shown. Figure 7 is the initial boundary map of the target county provided in the embodiment of the present application, Figure 7 The dots in the figure are the boundary villages between the target county and the surrounding counties, and the broken lines are the initial boundaries between the target county and the surrounding counties.

[0138] In a possible implementation, S8 includes:

[0139] S81, determining a mountainous area in an initial boundary according to a slope;

[0140] As a possible implementation of S81, add a text type field "Terrain Features" to the attribute table of the initial boundary of the target county. Load the open source DEM data of the geographical scope in ArcMap, conduct slope analysis, and segment and assign values ​​according to the via slope. When the via slope corresponding to the line segment of the initial boundary is greater than the preset via slope threshold, determine that the line segment corresponds to the mountainous segment. When the via slope corresponding to the line segment of the initial boundary is less than or equal to the preset via slope threshold, determine that the line segment corresponds to the plain segment.

[0141] In a specific example, when the slope corresponding to the line segment of the initial boundary is greater than 15°, the line segment is determined to correspond to a mountainous section. When the slope corresponding to the line segment of the initial boundary is less than or equal to 15°, the line segment is determined to correspond to a plain section.

[0142] S82, determining a low-granularity segment in the initial boundary according to the granularity;

[0143] As a possible implementation of S82, the granularity is determined according to the average length of two adjacent line segments of the line segment. When the granularity is greater than a preset granularity threshold, it is determined that the line segment corresponds to a high granularity segment. When the granularity is less than or equal to the preset granularity threshold, it is determined that the line segment corresponds to a low granularity segment.

[0144] In one possible embodiment, ArcMap's "Split Line at Vertex" tool is used to explode the polylines in the initial boundary of the target county into line segments, generating a "Granularity Evaluation" layer, the attribute table of which includes the "FID_Initial County Administrative Boundary" and "Shape_Length" fields.

[0145] Export the attribute table to EXCEL, arrange it in ascending order according to the "FID" field, and then add two blank rows before the initial row, after the last row, and at the transition point of "FID_initial county-level administrative boundary". In the new column "Average Length", calculate the average value of each row and the values ​​of the previous and next two rows, that is, the average length of each line segment and the previous and next two line segments.

[0146] Through the layer connection tool, the above EXCEL is connected to the "Grain Size Evaluation" layer based on the "FID" field, and the classification is displayed according to the average length.

[0147] Add a text type field granularity in the attribute table of the initial boundary, refer to the overall situation of granularity evaluation, and determine that the line segment corresponds to a high granularity segment when the granularity is greater than the preset granularity threshold. If the granularity is less than or equal to the preset granularity threshold, determine that the line segment corresponds to a low granularity segment.

[0148] S83, according to the mountainous area segment and the low-granularity segment, determine the low-granularity mountainous area segment in the initial boundary, such as Figure 8 shown. Figure 8 is a boundary classification diagram of a target county provided in an embodiment of the present application, Figure 8 The broken line in the figure is the initial boundary, which corresponds to the plain section, high-grained mountain section, and low-grained mountain section from shallow to deep.

[0149] In a possible implementation, S9 includes:

[0150] Load the DEM data of the region in ArcMap and perform the following operations on the DEM data:

[0151] S91, using a depression filling tool to fill depressions and generate a depression filling layer;

[0152] S92. Use the flow direction tool, input DEM data, and generate a flow direction layer;

[0153] S93. Use the flow tool to input the flow direction layer and generate the flow layer;

[0154] S94. Use the river network classification tool to input the flow layer and flow direction layer to generate the river network classification layer;

[0155] S95. Use the reclassification tool to determine the first river network classification layer in the river network classification layer;

[0156] S96. Use the river chain tool to input the first river network classification layer and the flow direction layer to generate the first river chain layer;

[0157] S97. Use the watershed tool to input the first river chain layer and the flow direction layer to generate the first watershed layer;

[0158] S98. Use the raster to polygon tool to input the first watershed layer and generate the second watershed layer;

[0159] S99. Use the Polygon to Polyline tool to input the second watershed layer and generate the watershed. Fig. 9 shown. Fig. 9 It is a schematic diagram of a watershed provided in an embodiment of the present application, wherein the thin broken line is the watershed and the thick broken line is the initial boundary.

[0160] In a possible implementation, S10 includes:

[0161] Replace the low-granularity mountainous area in the initial boundary with the watershed to obtain the ancient county-level administrative boundary map, such as Fig.10 shown. Fig.10 It is the ancient county-level administrative boundary map of the target county provided in the embodiment of the present application, combined with Fig.10 It can be seen that the boundary of the low-granularity mountainous area has been replaced by the watershed.

[0162] The method for generating the ancient county-level administrative boundary map of the embodiment of the present application, according to the relative position of the historical village, identifies the border villages in the map, and places the border villages and the missed border villages on the world map. In order to improve the accuracy of the final generated ancient county-level administrative boundary map, the border villages of the target county and the surrounding counties of the target county are subjected to neighborhood analysis, and Thiessen polygons are generated. The Thiessen polygons are classified and merged according to the county to generate the initial boundary of the target county. And on this basis, the initial boundary is corrected by combining the initial boundary via slope, granularity and open source digital elevation model DEM data to obtain a more accurate ancient county-level administrative boundary map. Finally, it is realized to determine the ancient county-level administrative boundary map with high accuracy based on the ancient map.

[0163] It should be clear that the present application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of simplicity, a detailed description of the known methods is omitted here, and this embodiment has only one target county. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown. After understanding the spirit of the present application, those skilled in the art can make various changes, modifications and additions, or change the order between the steps, which is applicable to the case of multiple target counties.

[0164] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0165] The present application is described above with reference to the flowchart and / or block diagram of the method according to the embodiment of the present application.It should be understood that each square block in the flowchart and / or block diagram and the combination of each square block in the flowchart and / or block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed via the processor of a computer or other programmable data processing device enable the realization of the function / action specified in one or more square blocks of the flowchart and / or block diagram.Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square block in the block diagram and / or flowchart and the combination of the square blocks in the block diagram and / or flowchart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0166] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for generating an ancient county-level administrative boundary map, characterized in that: include: S1, obtain a geographical map containing historical villages; S2, identifying the border villages in the map according to the relative positions of the historical villages; S3, spatially locating the border villages on a world map; S4, in response to user input, determining the missing border villages, and spatially locating the missing border villages; S5, merging the border villages of the target county and the counties surrounding the target county to obtain a border village location map; S6, performing neighborhood analysis according to the border villages on the border village location map to generate Thiessen polygons; S7, classifying and merging the Thiessen polygons according to counties to generate an initial boundary of the target county; S8, determining a low-granularity mountainous area section in the initial boundary according to the slope and granularity of the initial boundary; S9, generates watershed based on open source digital elevation model DEM data; S10, correcting the boundary of the low-granularity mountainous area according to the watershed to obtain an ancient county-level administrative boundary map of the target county.

2. The method for generating an ancient county-level administrative boundary map according to claim 1, characterized in that: Said S1 comprises: S11, determining the target county and surrounding counties bordering the target county according to the research time period and geographical scope; S12, obtaining a map of historical villages including the target county and the surrounding counties.

3. The method for generating an ancient county-level administrative boundary map according to claim 1, characterized in that: The S2 comprises: S21, identifying border villages around the border of the map according to the relative positions of the historical villages; S22, connecting the border villages in sequence to form a border village topological polygon; S23: If there is a first village outside the border village topological polygon, add the first village to the border village.

4. The method for generating an ancient county-level administrative boundary map according to claim 1, characterized in that: The S3 includes: S31, obtaining a world map; S32, determining the correspondence between the historical villages on the geographic map and the historical villages on the world map according to the relative positions and historical names of the historical villages on the geographic map and the relative positions and historical names of the historical villages on the world map; S33, based on the corresponding relationship, spatially locate the border village on the world map.

5. The method for generating an ancient county-level administrative boundary map according to claim 3 is characterized in that: The S4 comprises: S41, sequentially connecting the located border villages to generate border village polygons; S42, determining the missing border villages and performing spatial location according to the village names and relative positions of the outer edge of the border village polygon, the inner edge of the border village topological polygon, and the information of the historical villages.

6. The method for generating an ancient county-level administrative boundary map according to claim 1, characterized in that: The S7 comprises: S71, classifying and merging the Thiessen polygons according to counties to generate boundary polygons; S72, converting the boundary polygon of the target county into multiple line segments that do not overlap each other; the multiple line segments constitute the initial boundary of the target county.

7. The method for generating an ancient county-level administrative boundary map according to claim 1, characterized in that: The S8 comprises: S81, determining a mountainous area in the initial boundary according to the via slope; S82, determining a low granularity segment in the initial boundary according to the granularity; S83: Determine a low-granularity mountainous area segment in the initial boundary according to the mountainous area segment and the low-granularity segment.

8. The method for generating an ancient county-level administrative boundary map according to claim 7, characterized in that: The S81 includes: When the passing slope corresponding to the line segment of the initial boundary is greater than a preset passing slope threshold, it is determined that the line segment corresponds to a mountainous area.

9. The method for generating an ancient county-level administrative boundary map according to claim 8, characterized in that: The S82 includes: Determining the granularity according to an average length of two adjacent line segments of the line segment; In a case where the granularity is greater than a preset granularity threshold, determining that the line segment corresponds to a high granularity segment; When the granularity is less than or equal to a preset granularity threshold, it is determined that the line segment corresponds to a low granularity segment.

10. The method for generating an ancient county-level administrative boundary map according to claim 1, characterized in that: The S9 comprises: Load the DEM data of the region in ArcMap and perform the following operations on the DEM data: S91, using a depression filling tool to fill depressions and generate a depression filling layer; S92, using a flow direction tool, inputting the DEM data, and generating a flow direction layer; S93, using a flow tool, inputting the flow direction layer to generate a flow layer; S94, using a river network classification tool, inputting the flow layer and the flow direction layer to generate a river network classification layer; S95, using a reclassification tool to determine a first river network classification layer in the river network classification layer; S96, using a river chain tool, inputting the first river network classification layer and the flow direction layer to generate a first river chain layer; S97, using the watershed tool, inputting the first river chain layer and the flow direction layer to generate a first watershed layer; S98, using a raster to polygon tool, inputting the first watershed layer to generate a second watershed layer; S99. Use the polygon to polyline tool, input the second watershed layer, and generate the watershed.

11. The method for generating an ancient county-level administrative boundary map according to claim 1, characterized in that: The S10 comprises: The boundary of the low-granularity mountainous area in the initial boundary is replaced by the watershed to obtain an ancient county-level administrative boundary map.