A method, device, electronic device and storage medium for correcting place name data
By using pre-built whitelist and blacklist databases to automatically filter and correct place name data, it solves the problems of large manual interpretation errors and low efficiency in place name review, and achieves efficient and accurate place name data inspection.
Patent Information
- Application Number
- CN202111294827.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-11-03
AI Technical Summary
At this stage, the review of place names in terrain data requires a large amount of manual interpretation, resulting in large errors, low efficiency, the inability to cope with the sudden increase in data, and the inability to ensure correction accuracy.
Through the pre-built whitelist database and blacklist database, the marked data of the place names to be inspected is extracted, problematic place names and missing place names are screened out, and automatic correction and addition are performed to form a target map.
Automatic inspection of place name data is realized, improving inspection efficiency and accuracy, reducing audit pressure, and ensuring high accuracy and efficiency.
Smart Images

Figure CN113918674B
Abstract
Description
Technical Field
[0001] The present application relates to the field of geographic information technology, and in particular to a method, device, electronic device and storage medium for correcting place name data. Background Art
[0002] Place names on maps are tasked with the task of "map language", that is, introducing the corresponding map content to readers. At the same time, their attribution has the political significance of declaring sovereignty and territorial integrity. Whether it is an administrative place name or a natural place name, whether its text mark and position representation are reasonable is related to the dignity and territorial integrity of the nation. The public version of surveying and mapping results (topography) covers administrative place names and natural place name data across the country, and the content is relatively rich. Reviewing important place names in the public version of topography data is an important task.
[0003] At present, the review of place names in terrain data requires a lot of manual interpretation. According to the maps and lists formed by standard place names and coordinates, manual comparison and review of data is performed to determine the accuracy of the names and the relative position of their positioning points, so as to meet the requirements of the public version of place name data. However, the manual review method has large errors, which can easily lead to misjudgments, and manual work cannot guarantee the accuracy of the correction of problematic place name data. In addition, manual review also has the problems of low review efficiency, long response time, and inability to cope with the sudden increase in review data. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a method, device, electronic device and storage medium for correcting place name data. By using the place name data in the pre-constructed whitelist database and blacklist database, automatic error correction and correction of the place names to be checked can be achieved, thereby appropriately alleviating the current audit pressure and improving the review efficiency.
[0005] The present application provides a method for correcting place name data, the correction method comprising:
[0006] Extracting marking data of at least one place name to be inspected in the area to be inspected in the map to be inspected;
[0007] Based on the first geographic coordinate range of the area to be inspected, extracting the marking data of the first place name within the first geographic coordinate range from a pre-constructed blacklist database, and extracting the marking data of the second place name within the first geographic coordinate range from a pre-constructed whitelist database; the blacklist database stores the marking data of the place names that cannot be publicly displayed on the map, and the whitelist database stores the marking data of the place names that must be publicly displayed on the map;
[0008] Based on the tag data of the place name to be checked and the tag data of the first place name, filtering out the place names to be checked that have tag data different from the first place name from the place names to be checked to form candidate place names;
[0009] Using the marked data of the candidate place name and the marked data of the second place name to perform data comparison to determine problematic place names and missing place names;
[0010] Based on the marking data of the second place names, data correction processing is performed on the problematic place names in the map to be checked, and data addition processing is performed on the missing place names to obtain a target map.
[0011] Optionally, the tag data includes name data and location data.
[0012] Optionally, the area to be inspected in the map to be inspected is determined by the following steps:
[0013] Obtaining the longitude span and latitude span of the examination area corresponding to the area indicated by the map to be inspected, and determining the second geographic coordinate range of the examination area;
[0014] The inspection area is determined as the area to be inspected in the inspection map, and the second geographical coordinate range of the inspection area is determined as the first geographical coordinate range of the area to be inspected.
[0015] Optionally, the step of filtering out place names to be checked that have different label data from the place names to be checked based on the label data of the place names to be checked and the label data of the first place names to form candidate place names includes:
[0016] Respectively comparing the name data and the position data in the place name to be checked with the name data and the position data in the first place name to obtain a name comparison result between the place name to be checked and the first place name and a position comparison result between the place name to be checked and the first place name;
[0017] A place name to be checked for which both the name comparison result between the place name to be checked and the first place name and the position comparison result between the place name to be checked and the first place name are inconsistent is determined as a candidate place name.
[0018] Optionally, the using the marked data of the candidate place name and the marked data of the second place name to perform data comparison to determine problematic place names and missing place names includes:
[0019] Respectively comparing the name data and location data of the candidate place name with the name data and location data of the second place name to obtain a name comparison result between the candidate place name and the second place name and a location comparison result between the candidate place name and the second place name;
[0020] Based on the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name, the problematic place name is determined from the candidate place names, and the missing place name is determined from the second place name.
[0021] Optionally, the determining of problematic place names from the candidate place names and determining of missing place names from the second place names based on a name comparison result between the candidate place names and the second place names and a position comparison result between the candidate place names and the second place names includes:
[0022] Determine the candidate place name, if the name comparison result between the candidate place name and the second place name is inconsistent or the position comparison result between the candidate place name and the second place name is inconsistent, as a problematic place name;
[0023] The second place name for which both the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name are inconsistent is determined as a missing place name.
[0024] Optionally, based on the marking data of the second place names, performing data correction processing on problematic place names in the map to be checked and performing data addition processing on missing place names to obtain a target map includes:
[0025] Correcting the name data or location data of the problematic place name in the map to be checked according to the marking data of the second place name to obtain an initial target map;
[0026] The marking data of the missing place name is determined based on the marking data of the second place name, and the marking data of the missing place name is added to the corresponding position in the initial target map to obtain the target map.
[0027] The present application also provides a device for correcting place name data, the device comprising:
[0028] A first extraction module is used to extract the marking data of at least one place name to be inspected in the area to be inspected in the map to be inspected;
[0029] A second extraction module is used to extract, based on the first geographic coordinate range of the area to be inspected, the marking data of the first place name located within the first geographic coordinate range from a pre-constructed blacklist database, and to extract the marking data of the second place name located within the first geographic coordinate range from a pre-constructed whitelist database; the blacklist database stores the marking data of the place names that cannot be publicly displayed on the map, and the whitelist database stores the marking data of the place names that must be publicly displayed on the map;
[0030] A screening module, for screening out, from the place names to be checked, place names whose marking data are different from those of the first place names, based on the marking data of the place names to be checked and the marking data of the first place names, to form candidate place names;
[0031] A comparison module, used to compare the marked data of the candidate place name with the marked data of the second place name to determine problematic place names and missing place names;
[0032] The correction module is used to perform data correction processing on the problematic place names in the map to be checked and data addition processing on the missing place names based on the marking data of the second place names, so as to obtain a target map.
[0033] Optionally, the tag data includes name data and location data.
[0034] The correction device further includes a module for determining an area to be inspected, and the module for determining an area to be inspected is used to:
[0035] Obtaining the longitude span and latitude span of the examination area corresponding to the area indicated by the map to be inspected, and determining the second geographic coordinate range of the examination area;
[0036] The inspection area is determined as the area to be inspected in the inspection map, and the second geographical coordinate range of the inspection area is determined as the first geographical coordinate range of the area to be inspected.
[0037] Optionally, when the screening module is used to screen out the place names to be checked that are different from the mark data of the first place name from the place names to be checked based on the mark data of the place names to be checked and the mark data of the first place name to form candidate place names, the screening module is used to:
[0038] Respectively comparing the name data and the position data in the place name to be checked with the name data and the position data in the first place name to obtain a name comparison result between the place name to be checked and the first place name and a position comparison result between the place name to be checked and the first place name;
[0039] A place name to be checked for which both the name comparison result between the place name to be checked and the first place name and the position comparison result between the place name to be checked and the first place name are inconsistent is determined as a candidate place name.
[0040] Optionally, when the comparison module is used to compare the labeled data of the candidate place name and the labeled data of the second place name to determine the problematic place name and the missing place name, the comparison module is used to:
[0041] Respectively comparing the name data and location data of the candidate place name with the name data and location data of the second place name to obtain a name comparison result between the candidate place name and the second place name and a location comparison result between the candidate place name and the second place name;
[0042] Based on the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name, the problematic place name is determined from the candidate place names, and the missing place name is determined from the second place name.
[0043] Optionally, when the comparison module is used to determine problematic place names from the candidate place names and missing place names from the second place names based on a name comparison result between the candidate place names and the second place names and a position comparison result between the candidate place names and the second place names, the comparison module is used to:
[0044] Determine the candidate place name, if the name comparison result between the candidate place name and the second place name is inconsistent or the position comparison result between the candidate place name and the second place name is inconsistent, as a problematic place name;
[0045] The second place name for which both the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name are inconsistent is determined as a missing place name.
[0046] Optionally, when the correction module is used to perform data correction processing on problematic place names in the map to be checked and data addition processing on missing place names based on the marking data of the second place names to obtain a target map, the correction module is used to:
[0047] Correcting the name data or location data of the problematic place name in the map to be checked according to the marking data of the second place name to obtain an initial target map;
[0048] The marking data of the missing place name is determined based on the marking data of the second place name, and the marking data of the missing place name is added to the corresponding position in the initial target map to obtain the target map.
[0049] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for correcting place name data as described above are performed.
[0050] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for correcting place name data as described above are executed.
[0051] The embodiments of the present application provide a method, device, electronic device and storage medium for correcting place name data, which extracts the marking data of at least one place name to be checked in the area to be checked in the map to be checked; based on the first geographic coordinate range of the area to be checked, extracts the marking data of the first place name located in the first geographic coordinate range from a pre-constructed blacklist database, and extracts the marking data of the second place name located in the first geographic coordinate range from a pre-constructed whitelist database; the blacklist database stores the marking data of place names that cannot be publicized in the map, and the whitelist database stores the marking data of place names that must be publicized in the map; based on the marking data of the place name to be checked and the marking data of the first place name, selects the place names to be checked that are different from the marking data of the first place name from the place names to be checked to form candidate place names; uses the marking data of the candidate place names and the marking data of the second place names to perform data comparison to determine the problem place names and the missing place names; based on the marking data of the second place names, performs data correction processing on the problem place names in the map to be checked and performs data addition processing on the missing place names to obtain the target map.
[0052] In this way, the present application filters out the non-public place names in the map to be inspected through the marking data of place names stored in the constructed blacklist database, screens out the problematic place names and missing place names in the map to be inspected through the marking data of place names stored in the whitelist database, and corrects and adds the problematic place names and missing place names through the marking data of the corresponding place names in the whitelist database, so as to obtain the target map. In this way, the present application can realize automatic inspection of the representation of important place names in the public version of terrain data, and the present method can also effectively improve the inspection efficiency and accuracy, and completely defeat manual review in terms of high accuracy, high efficiency and durability.
[0053] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1A flowchart of a method for correcting place name data provided in an embodiment of the present application;
[0056] Figure 2 One of the structural schematic diagrams of a device for correcting place name data provided in an embodiment of the present application;
[0057] Figure 3 A second structural diagram of a device for correcting place name data provided in an embodiment of the present application;
[0058] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0060] Research has found that at this stage, the review of place names in terrain data requires a lot of manual interpretation. Based on the map formed by standard place names and coordinates, the data is manually compared and reviewed to determine the accuracy of the names and the relative position of their positioning points, so as to meet the requirements of the public version of place name data. However, the manual review method has large errors, which can easily lead to misjudgments, and manual work cannot guarantee the accuracy of the correction of problematic place name data. In addition, manual review also has problems such as low review efficiency, long response time, and inability to cope with the sudden increase in review data.
[0061] Based on this, an embodiment of the present application provides a method for correcting place name data. Through the place name data in the pre-constructed whitelist database and blacklist database, automatic error correction and correction of the place names to be checked can be achieved, thereby appropriately alleviating the current audit pressure and improving audit efficiency.
[0062] See also Figure 1 , Figure 1 This is a flow chart of a method for correcting place name data provided by an embodiment of the present application. Figure 1 As shown in , the method for correcting place name data provided by the embodiment of the present application includes:
[0063] S101, extracting marking data of at least one place name to be inspected in the area to be inspected in the map to be inspected.
[0064] In this step, the electronic data of the map to be inspected is first obtained, and then according to the review needs, the marking data of at least one place name contained in the area to be reviewed in the map to be inspected is extracted, and the extracted marking data of the place name is used as the marking data of the place name to be inspected.
[0065] Here, the map to be checked is a map that needs to be checked for errors or omissions in the name, location and other information, and the map to be checked can be a paper map or an electronic map. When the map to be checked is a paper map, the corresponding electronic data needs to be provided for review when it is submitted for review.
[0066] Among them, the area to be inspected is the key focus area in the map to be inspected during the map review, which can be determined based on the review documents of the relevant departments.
[0067] The extracted place names to be checked include natural place names and administrative place names. At least one place name to be checked can be extracted from the area to be checked, and the corresponding label data of each place name to be checked are extracted. For example, natural place names can include names of islands, mountains and rivers, and administrative place names can include names of administrative regions, administrative locations, etc.
[0068] Optionally, the inspection area of the inspection map is determined by the following steps: obtaining the longitude span and latitude span of the inspection area corresponding to the area indicated by the inspection map, and determining the second geographic coordinate range of the inspection area; determining the inspection area as the inspection area in the inspection map, and determining the second geographic coordinate range of the inspection area as the first geographic coordinate range of the inspection area.
[0069] In this step, the area to be inspected of the map to be inspected can be determined specifically through the following steps: first, according to the electronic data of the map to be inspected, the geographical scope corresponding to the map to be inspected is determined; according to the map inspection requirements specified in the inspection rules, the inspection area corresponding to the known area of the map to be inspected is determined; then, the minimum longitude value, the minimum latitude value, the maximum longitude value and the maximum latitude value of the inspection area are obtained, thereby obtaining the longitude span range and the latitude span range of the inspection area; according to the obtained longitude span range and the latitude span range of the inspection area, the geographical coordinate range of the inspection area corresponding to the map to be inspected, that is, the second geographical coordinate range, is determined; finally, the determined inspection area is determined as the area to be inspected in the map to be inspected, and the second geographical coordinate range of the inspection area is determined as the first geographical coordinate range of the area to be inspected.
[0070] Here, there may be multiple review areas specified in the review rules, and there may be one or more review areas in the map to be reviewed. In addition, sometimes there may be no review area in the map to be reviewed. In this case, manual review can be performed, or the review area can be expanded to ensure that each map to be reviewed has a corresponding review area, so that automatic review can be performed.
[0071] For example, if the map to be inspected is a map of all of China, and the inspection area specified in the inspection rules can be a certain area within the geographical scope of China, then the longitude span and latitude span of the inspection area of the map to be inspected are obtained, and the longitude span range and latitude span range of multiple inspection areas are obtained, so as to determine the geographic coordinate range of each inspection area corresponding to the map to be inspected, and then determine that there are multiple inspection areas of the map to be inspected, and the geographic coordinate range of the inspection area is also multiple. If the map to be inspected is a map of a province of key concern, then there may be only one inspection area at this time.
[0072] Here, the review rules may include the provisions of the "Regulations on the Representation of Public Map Content" and the "Regulations on Map Review Management". It may also include the provisions of the "Regulations on Map Management" and the provisions of the documents on important place names in maps published by relevant international departments, etc. Here, important place names refer to place names with political significance involving territorial integrity.
[0073] Here, the review area specified in the review rules can also be determined in the following way: first, the key place names that need to be reviewed are determined according to the review rules, that is, the important place names mentioned above, and then the location data of these place names, that is, the longitude and latitude coordinates, are obtained, and then the minimum longitude coordinate, the minimum latitude coordinate, the maximum longitude coordinate and the maximum latitude coordinate are determined based on the obtained longitude and latitude coordinates of the place names, so that the review area can be determined based on the determined minimum longitude coordinate, minimum latitude coordinate, maximum longitude coordinate and maximum latitude coordinate. Here, the maximum and minimum longitude and latitude coordinates can be obtained according to the region. For example, the review area of the northeast region can be determined based on the location data of the place names in the key focus place names that belong to the northeast region of China, and the review area of the southern region can be determined based on the location data of the place names in the key focus place names that belong to the southern region of China.
[0074] Optionally, the tag data includes name data and location data.
[0075] Here, the name data is the text mark data of the place name to be checked, and the location data is generally the latitude and longitude information of the place name to be checked.
[0076] S102. Based on the first geographic coordinate range of the area to be inspected, extract the marking data of the first place name within the first geographic coordinate range from a pre-constructed blacklist database, and extract the marking data of the second place name within the first geographic coordinate range from a pre-constructed whitelist database; the blacklist database stores the marking data of place names that cannot be publicly displayed on the map, and the whitelist database stores the marking data of place names that must be publicly displayed on the map.
[0077] In this step, first, the geographical coordinate range of the area to be inspected of the map to be inspected, that is, the first geographical coordinate range, is determined, and then, based on the location data of the place names stored in a pre-constructed blacklist database, the place names whose location data are stored in the first geographical coordinate range are extracted from the pre-constructed blacklist data as the first place names, and the name data and location data of the first place names are extracted at the same time; then, based on the location data of the place names stored in a pre-constructed whitelist database, the place names whose location data are stored in the first geographical coordinate range are extracted from the pre-constructed whitelist data as the second place names, and the name data and location data of the second place names are extracted at the same time.
[0078] Here, the blacklist database stores place names that cannot be publicly displayed on maps, such as national defense, military facilities, military units, undisclosed airports (including civil and civil-military airports) and agencies, units, and islands that cannot be disclosed, as well as the marking data of the corresponding place names; the whitelist database stores place names that involve territorial sovereignty and integrity and must be publicized on maps, as well as the marking data of the corresponding place names.
[0079] There may be multiple extracted first place names, and there may be multiple extracted second place names. There are also multiple corresponding marking data of the first place names, and there are also multiple marking data of the second place names.
[0080] In addition, a whitelist database can be constructed through the following steps: first, based on the map review documents issued by relevant departments, determine the essential place names in the map that need to be reviewed during the map review; then, based on the standard map data file that records the essential place names, determine the correct text description information (name data) and correct geographical location information (location data: longitude and latitude data) of the essential place names; for each place name, associate the name data of the place name with the location data, determine the tag data of each place name, and then store all the place name data in the database to form a whitelist database.
[0081] In addition, a blacklist database can be constructed through the following steps: first, based on the map review documents issued by the relevant departments, determine the place names that cannot appear in the map that needs to be reviewed during the map review (i.e., the place names that cannot be made public); then, based on the standard map data file that records the place names that cannot appear, determine the correct text description information (name data) and correct geographical location information (location data: longitude and latitude data) of the place names that cannot be made public, and for each place name, associate the name data of the place name with the location data, determine the tag data of each place name, and then store all the place name data in the database to form a blacklist database.
[0082] In addition, the place names and place name marking data stored in the whitelist database and blacklist database can be added and updated based on the relevant published documents. The database administrator can check the completeness and accuracy of the database construction data, check the attribute markings of the newly added standard data, etc., and form a standard whitelist database and blacklist database after updating.
[0083] S103 . Based on the mark data of the place name to be checked and the mark data of the first place name, select the place names to be checked that are different from the mark data of the first place name from the place names to be checked to form candidate place names.
[0084] In this step, data comparison is performed using the marking data of the place name to be checked and the marking data of the first place name extracted from the blacklist database, and the place names to be checked that are different from the marking data of the first place name are extracted to form candidate place names. At the same time, the marking data of the candidate place names can also be confirmed based on the marking data of the place names to be checked.
[0085] Here, the extracted candidate place names may include multiple ones; wherein different means that both the name data and the location data are different.
[0086] Optionally, based on the marking data of the place name to be checked and the marking data of the first place name, place names to be checked that have different marking data from the first place name are screened out from the place names to be checked to form candidate place names, including: respectively comparing the name data and the position data in the place name to be checked with the name data and the position data in the first place name to obtain a name comparison result between the place name to be checked and the first place name and a position comparison result between the place name to be checked and the first place name; determining the place name to be checked whose name comparison result with the first place name and the position comparison result with the first place name are inconsistent as a candidate place name.
[0087] In this step, the candidate place names are screened out by the marking data of the place name to be checked and the marking data of the first place name, including the following steps: first, for each place name to be checked, the name data and position data of the place name to be checked are determined, and for each first place name, the name data and position data of the first place name are determined; then, for each place name to be checked, the name data of the place name data to be checked is compared one by one with the name data of each first place name data to obtain the name comparison result of the place name to be checked and each first place name, and the position data of the place name data to be checked is compared one by one with the position data of each first place name data to obtain the position comparison result of the place name to be checked and the first place name. Finally, the place name to be checked whose name comparison result with the first place name is inconsistent and whose position comparison result with the first place name is also inconsistent is determined as a candidate place name.
[0088] In addition, in this step, the place names to be checked that have at least one identical item in the name comparison result and the position comparison result with the first place name can be deleted, so that the remaining place names to be checked are candidate place names. Here, there can be multiple candidate data.
[0089] In addition, the marking data of the place name to be checked is compared with the marking data of the first place name in the blacklist database to screen out candidate place names in order to detect whether there are place names and place name marking data that are explicitly stipulated by relevant departments not to appear in the public version of terrain data in the place name data to be checked in the area to be checked of the map to be checked. In addition, the place name data that cannot be made public can be deleted directly, and the deletion mark and deletion reason mark are output to the client at the same time, so that the client's reviewer can also verify through the deletion mark and deletion reason to prevent accidental deletion and wrong deletion.
[0090] S104: Use the marked data of the candidate place names and the marked data of the second place names to perform data comparison to determine problematic place names and missing place names.
[0091] In this step, for each candidate place name screened out, the marking data of the candidate place name and the marking data of each second place name extracted from the whitelist database are used to perform data comparison to determine the problem place names and missing place names. At the same time, the marking data of the problem place names can be determined based on the marking data of the candidate place names, and the marking data of the missing place names can be determined through the marking data of the second place names.
[0092] Optionally, the method of using the marker data of the candidate place name and the marker data of the second place name to perform data comparison to determine problematic place names and missing place names includes: respectively comparing the name data and location data of the candidate place name with the name data and location data of the second place name to obtain a name comparison result between the candidate place name and the second place name and a location comparison result between the candidate place name and the second place name; based on the name comparison result between the candidate place name and the second place name and the location comparison result between the candidate place name and the second place name, determining problematic place names from the candidate place names and determining missing place names from the second place names.
[0093] In this step, problem place names and missing place names are determined by the label data of the candidate place names and the label data of the second place names, including the following steps: first, for each candidate place name, the name data and position data of the candidate place name are determined, and for each second place name, the name data and position data of the second place name are determined; then, for each candidate place name, the name data of the candidate place name and the name data of each second place name data are used to perform data comparison to obtain the name comparison result of the candidate place name and each second place name, and the position data of the candidate place name and the position data of each second place name data are used to perform data comparison to obtain the position comparison result of the candidate place name and each second place name. Finally, based on the determined name comparison result and position comparison result of each candidate place name and each second place name, the problem place names can be determined from the candidate place names, and the missing place names can be determined from the second place names. At the same time, the label data of the problem place names can also be determined based on the label data of the candidate place names, and the label data of the missing place names can be determined based on the label data of the second place names.
[0094] Optionally, the method of determining problem place names from the candidate place names and missing place names from the second place names based on a name comparison result between the candidate place name and the second place name and a position comparison result between the candidate place name and the second place name includes: determining a candidate place name as a problem place name if the name comparison result between the candidate place name and the second place name is inconsistent or the position comparison result between the candidate place name and the second place name is inconsistent; determining the second place name as a missing place name if both the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name are inconsistent.
[0095] In this step, the problem place names and missing place names are determined specifically through the following steps: First, by comparing the name data and the position data, the name comparison result between the candidate place name and the second place name, and the position comparison result between the candidate place name and the second place name are obtained, that is, the name comparison result between each candidate place name and each second place name and the position comparison result between each candidate place name and each second place name are obtained. Then, from the perspective of the candidate place name, the candidate place name whose name comparison result is consistent with the second place name, but the position comparison result between the candidate place name and the second place name is inconsistent is determined as a problem place name, and the candidate place name whose position comparison result is consistent with the second place name, but the name comparison result between the candidate place name and the second place name is inconsistent is determined as a problem place name. Then, from the perspective of the second place name, the second place name whose name comparison result between the candidate place name and the second place name is inconsistent, and whose position comparison result between the candidate place name and the second place name is also inconsistent is determined as a missing place name.
[0096] Here, the marking data of the candidate place name is compared with the marking data of the second place name in the whitelist database to screen out problematic place names and missing place names in order to detect whether there are place names that involve territorial integrity and are explicitly stipulated by relevant departments to appear in the public version of the terrain data, as well as place names whose marking data are incorrectly marked or missing.
[0097] In addition, in the present application, qualified place names and problematic place names can also be determined. The specific means is, starting from the perspective of candidate place names, determining as qualified place names those candidate place names whose name comparison results are consistent with those of the second place names, and whose position comparison results are also consistent with those of the second place names; determining as problematic place names those candidate place names whose position comparison results are inconsistent with those of the second place names, and whose name comparison results are also inconsistent with those of the second place names.
[0098] S105. Based on the marking data of the second place names, correct the problematic place names in the map to be checked and add the missing place names to obtain a target map.
[0099] In this step, after the problem place names and missing place names are determined, the corresponding erroneous data items in the problem place names in the map to be checked are corrected according to the standard and accurate marking data recorded in the second place name data. For the missing place name data in the map to be checked, the marking data of the missing place names is used to add data to the corresponding positions in the map to be checked, thereby obtaining the target map.
[0100] Optionally, based on the marking data of the second place names, data correction processing is performed on the problematic place names in the map to be checked and data addition processing is performed on the missing place names to obtain a target map, including: correcting the name data or location data of the problematic place names in the map to be checked according to the marking data of the second place names to obtain an initial target map; determining the marking data of the missing place names based on the marking data of the second place names, and adding the marking data of the missing place names to corresponding positions in the initial target map to obtain a target map.
[0101] In this step, the marking data of the second place name is used to correct the problem place names in the map to be checked and to add the missing place names to obtain the target map, including the following steps: first, for the erroneous data items of the determined problem place names, according to the name data or location data recorded in the corresponding marking data of the second place names, the erroneous name data or erroneous location data of the problem place names are corrected to obtain qualified place names and the marking data of the qualified place names, and are added to the corresponding positions in the map to be checked to obtain the initial target map; then, for the determined missing place names, according to the name data and location data recorded in the marking data of the second place names, the name data and location data of the missing place names are determined, and the name data and location data of the determined missing place names are added to the corresponding positions of the initial target map to obtain the target map.
[0102] Here, when adding missing place names in the map to be checked, the missing place names can be added to the corresponding positions of the initial target map according to the determined location data, and the name data can be added at the same time, so that the target map is obtained.
[0103] Here, before obtaining the target map, all the problematic place names determined above in the map to be detected and the marking data of the problematic place names may be deleted from the map to be detected.
[0104] In this way, by correcting problematic place names, adding missing place names and deleting problematic place names, the final target map can fully and correctly represent the geographical features of our country.
[0105] In addition, for the correction of problematic place names, the addition of missing place names, and the deletion of problematic place names, the corresponding modification traces can be retained in the map to be inspected, and the modification marks and reasons for the modification can be output to the client, so that the client's reviewers can also check through the modification marks and reasons for the modification to prevent accidental and wrong modifications.
[0106] In this way, this application uses the marking data of place names stored in the constructed blacklist database to filter out the non-public place names in the map to be inspected, and uses the marking data of place names stored in the whitelist database to screen out the problematic place names and missing place names in the map to be inspected, and uses the marking data of the corresponding place names in the whitelist database to correct and add the problematic place names and missing place names, so as to obtain the target map. In this way, this application can realize automatic inspection of the representation of important place names in the public version of terrain data, and this method can also effectively improve the inspection efficiency and accuracy, and completely defeat manual review in terms of high accuracy, high efficiency and durability, thereby providing technical support for ensuring that the representation of place names on the map is in line with my country's political stance.
[0107] See also Figure 2 , Figure 3 , Figure 2 This is one of the structural schematic diagrams of a device for correcting place name data provided in an embodiment of the present application. Figure 3 This is a second structural diagram of a device for correcting place name data provided in an embodiment of the present application. Figure 2 As shown in , the correction device 200 includes:
[0108] The first extraction module 210 is used to extract the marking data of at least one place name to be inspected in the area to be inspected in the map to be inspected;
[0109] A second extraction module 220 is used to extract, based on the first geographic coordinate range of the area to be inspected, the marking data of the first place name located within the first geographic coordinate range from a pre-constructed blacklist database, and to extract the marking data of the second place name located within the first geographic coordinate range from a pre-constructed whitelist database; the blacklist database stores the marking data of the place names that cannot be publicly displayed on the map, and the whitelist database stores the marking data of the place names that must be publicly displayed on the map;
[0110] A screening module 230, configured to screen out, from the place names to be checked, place names whose tag data are different from those of the first place name, based on the tag data of the place names to be checked and the tag data of the first place name, to form candidate place names;
[0111] A comparison module 240, configured to perform data comparison using the label data of the candidate place name and the label data of the second place name to determine problematic place names and missing place names;
[0112] The correction module 250 is used to perform data correction processing on the problematic place names in the map to be checked and data addition processing on the missing place names based on the marking data of the second place names, so as to obtain a target map.
[0113] Optionally, the tag data includes name data and location data.
[0114] Further, such as Figure 3 As shown, the correction device 200 further includes a to-be-inspected area determination module 260, and the to-be-inspected area determination module 260 is used to:
[0115] Obtaining the longitude span and latitude span of the examination area corresponding to the area indicated by the map to be inspected, and determining the second geographic coordinate range of the examination area;
[0116] The inspection area is determined as the area to be inspected in the inspection map, and the second geographical coordinate range of the inspection area is determined as the first geographical coordinate range of the area to be inspected.
[0117] Optionally, when the screening module 230 is used to screen out the place names to be checked that are different from the mark data of the first place name from the place names to be checked based on the mark data of the place names to be checked and the mark data of the first place name to form candidate place names, the screening module 230 is used to:
[0118] Respectively comparing the name data and the position data in the place name to be checked with the name data and the position data in the first place name to obtain a name comparison result between the place name to be checked and the first place name and a position comparison result between the place name to be checked and the first place name;
[0119] A place name to be checked for which both the name comparison result between the place name to be checked and the first place name and the position comparison result between the place name to be checked and the first place name are inconsistent is determined as a candidate place name.
[0120] Optionally, when the comparison module 240 is used to compare the labeled data of the candidate place name and the labeled data of the second place name to determine the problematic place name and the missing place name, the comparison module 240 is used to:
[0121] Respectively comparing the name data and location data of the candidate place name with the name data and location data of the second place name to obtain a name comparison result between the candidate place name and the second place name and a location comparison result between the candidate place name and the second place name;
[0122] Based on the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name, the problematic place name is determined from the candidate place names, and the missing place name is determined from the second place name.
[0123] Optionally, when the comparison module 240 is used to determine the problem place names from the candidate place names and the missing place names from the second place names based on the name comparison result between the candidate place names and the second place names and the position comparison result between the candidate place names and the second place names, the comparison module 240 is used to:
[0124] Determine the candidate place name, if the name comparison result between the candidate place name and the second place name is inconsistent or the position comparison result between the candidate place name and the second place name is inconsistent, as a problematic place name;
[0125] The second place name for which both the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name are inconsistent is determined as a missing place name.
[0126] Optionally, when the correction module 250 is used to perform data correction processing on problematic place names in the to-be-checked map and data addition processing on missing place names based on the marking data of the second place names to obtain a target map, the correction module 250 is used to:
[0127] Correcting the name data or location data of the problematic place name in the map to be checked according to the marking data of the second place name to obtain an initial target map;
[0128] The marking data of the missing place name is determined based on the marking data of the second place name, and the marking data of the missing place name is added to the corresponding position in the initial target map to obtain the target map.
[0129] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .
[0130] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The steps of the method for correcting place name data in the method embodiment shown, and the specific implementation method can be found in the method embodiment, which will not be repeated here.
[0131] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of the method for correcting place name data in the method embodiment shown, and the specific implementation method can be found in the method embodiment, which will not be repeated here.
[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0133] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0136] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0137] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for correcting place name data, characterized in that: The correction method includes: Extracting marking data of at least one place name to be inspected in the area to be inspected in the map to be inspected; Based on the first geographic coordinate range of the area to be inspected, extracting the marking data of the first place name within the first geographic coordinate range from a pre-constructed blacklist database, and extracting the marking data of the second place name within the first geographic coordinate range from a pre-constructed whitelist database; the blacklist database stores the marking data of the place names that cannot be publicly displayed on the map, and the whitelist database stores the marking data of the place names that must be publicly displayed on the map; Based on the tag data of the place name to be checked and the tag data of the first place name, filtering out the place names to be checked that have tag data different from the first place name from the place names to be checked to form candidate place names; Using the marked data of the candidate place name and the marked data of the second place name to perform data comparison to determine problematic place names and missing place names; Based on the marking data of the second place names, data correction processing is performed on the problematic place names in the map to be checked, and data addition processing is performed on the missing place names to obtain a target map.
2. The correction method according to claim 1, characterized in that: The tag data includes name data and location data.
3. The correction method according to claim 1, characterized in that: The area to be inspected in the inspection map is determined by the following steps: Obtaining the longitude span and latitude span of the examination area corresponding to the area indicated by the map to be inspected, and determining the second geographic coordinate range of the examination area; The inspection area is determined as the area to be inspected in the inspection map, and the second geographical coordinate range of the inspection area is determined as the first geographical coordinate range of the area to be inspected.
4. The correction method according to claim 2, characterized in that: The step of selecting, based on the mark data of the place name to be checked and the mark data of the first place name, place names to be checked that are different from the mark data of the first place name from the place names to be checked to form candidate place names includes: Respectively comparing the name data and the position data in the place name to be checked with the name data and the position data in the first place name to obtain a name comparison result between the place name to be checked and the first place name and a position comparison result between the place name to be checked and the first place name; A place name to be checked for which both the name comparison result between the place name to be checked and the first place name and the position comparison result between the place name to be checked and the first place name are inconsistent is determined as a candidate place name.
5. The correction method according to claim 2, characterized in that: The step of comparing the marked data of the candidate place name with the marked data of the second place name to determine problematic place names and missing place names includes: Respectively comparing the name data and location data of the candidate place name with the name data and location data of the second place name to obtain a name comparison result between the candidate place name and the second place name and a location comparison result between the candidate place name and the second place name; Based on the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name, the problematic place name is determined from the candidate place names, and the missing place name is determined from the second place name.
6. The correction method according to claim 5, characterized in that: The determining of problematic place names from the candidate place names and missing place names from the second place names based on the name comparison result between the candidate place names and the second place names and the position comparison result between the candidate place names and the second place names includes: Determine the candidate place name, if the name comparison result between the candidate place name and the second place name is inconsistent or the position comparison result between the candidate place name and the second place name is inconsistent, as a problematic place name; The second place name for which both the name comparison result between the candidate place name and the second place name and the position comparison result between the candidate place name and the second place name are inconsistent is determined as a missing place name.
7. The correction method according to claim 2, characterized in that: The method of performing data correction processing on problematic place names in the map to be checked and data addition processing on missing place names based on the marking data of the second place names to obtain a target map includes: Correcting the name data or location data of the problematic place name in the map to be checked according to the marking data of the second place name to obtain an initial target map; The marking data of the missing place name is determined based on the marking data of the second place name, and the marking data of the missing place name is added to the corresponding position in the initial target map to obtain the target map.
8. A device for correcting place name data, characterized in that: The correction device comprises: A first extraction module is used to extract the marking data of at least one place name to be inspected in the area to be inspected in the map to be inspected; A second extraction module is used to extract, based on the first geographic coordinate range of the area to be inspected, the marking data of the first place name located within the first geographic coordinate range from a pre-constructed blacklist database, and to extract the marking data of the second place name located within the first geographic coordinate range from a pre-constructed whitelist database; the blacklist database stores the marking data of the place names that cannot be publicly displayed on the map, and the whitelist database stores the marking data of the place names that must be publicly displayed on the map; A screening module, for screening out, from the place names to be checked, place names whose marking data are different from those of the first place names, based on the marking data of the place names to be checked and the marking data of the first place names, to form candidate place names; A comparison module, used to compare the marked data of the candidate place name with the marked data of the second place name to determine problematic place names and missing place names; The correction module is used to perform data correction processing on the problematic place names in the map to be checked and data addition processing on the missing place names based on the marking data of the second place names, so as to obtain a target map.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the method for correcting place name data as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for correcting place name data as claimed in any one of claims 1 to 7 are executed.
