Quality inspection method for chart data
By analyzing and generating target quality inspection rules in the chart data quality inspection system, and combining logical operations to process quality inspection conditions and combination conditions, the problems of poor scalability and low update efficiency of the chart quality inspection system software are solved, and the effect of rapid update of quality inspection rules and improving quality inspection efficiency is achieved.
Patent Information
- Application Number
- CN202510149788.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-05-30
AI Technical Summary
The existing chart quality inspection methods have problems such as poor scalability and low update efficiency. Especially when the international electronic chart validity inspection standards change, the software needs to be frequently modified and recompiled, which affects the timeliness of use.
Provide a method and system for quality inspection of chart data. By obtaining the user-selected object, quality inspection rule configuration control and input quality inspection rule configuration files, analyzing and generating target quality inspection rules, using logical operations combined with quality inspection conditions and combination conditions to realize quality inspection of chart data, and supporting users to customize quality inspection rules to avoid code modification and recompilation.
It realizes the update of quality inspection rules without modifying the software code of the chart data quality inspection system, improves the update efficiency and use efficiency of the chart data quality inspection system, reduces the maintenance workload, and improves the update speed of quality inspection rules.
Smart Images

Figure CN120067088A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a quality inspection method, system, device, electronic device, and storage medium for chart data. Background Art
[0002] The quality of electronic charts is the lifeblood of electronic chart products and directly affects the safety of navigation behaviors based on electronic navigational charts (ENCs). Therefore, electronic chart quality inspection is a crucial link in the electronic chart production process and a necessary means to ensure the quality of electronic charts. There are more than 500 charts in China, and the chart update cycle is generally only about 3 months. Therefore, the charting and updating workload of charting departments is quite large, and chart quality inspection is the only way to ensure the quality of charting. Therefore, chart quality inspection also has a huge workload.
[0003] Currently, the standards adopted in chart quality inspection are generally the International Hydrographic Organization's International Electronic Chart Validation S-58 (7.0) version released in October 2022. This version of the standard has gone through multiple version changes since the release of the International Electronic Chart Validation S-58 (4.2) version in 2010. There are now more than a thousand quality inspection items, and each time a new version of the standard is released, nearly a hundred quality inspection contents are modified. The quality inspection rules of the chart production system not only have a large inventory but also need to be adjusted accordingly according to the new version content. This makes the software developed by traditional methods have a relatively large amount of modification, seriously affecting the use efficiency and update efficiency of the software.
[0004] When updating the chart quality inspection rules, on the one hand, it can only be achieved by modifying the software code of the chart system, resulting in poor scalability of the chart system software; on the other hand, after modifying the code, the software needs to be recompiled, making the update of the chart production system require the participation and maintenance of software developers, affecting the timeliness of the use of the chart production system. Therefore, in order to reduce the workload of maintaining chart quality inspection rules and improve the update efficiency of chart quality inspection rules, a quality inspection method that is easy to maintain and expand is needed to quickly update the quality inspection rules in the chart quality inspection software when the international electronic chart validation standard changes. Summary of the Invention
[0005] Embodiments of this application provide a quality inspection method, system, device, electronic device, and storage medium for chart data to solve one or more of the above technical problems.
[0006] In a first aspect, an embodiment of the present application provides a quality inspection method for chart data. The method is applied to a quality inspection system for chart data and includes: obtaining a target object to be detected, a quality inspection rule configuration control, and an input quality inspection rule configuration file selected by a user based on a quality inspection request interface, where a full - volume quality inspection rule configuration control and a receiving port for the quality inspection rule configuration file are displayed in the quality inspection request interface; determining at least one first - type quality inspection condition and combined condition selected by the user by triggering the quality inspection rule configuration control, and parsing out second - type quality inspection conditions and combined conditions from the quality inspection rule configuration file, and generating a target quality inspection rule corresponding to one or more quality inspection items obtained by logically combining the first - type quality inspection conditions and combined conditions with the second - type quality inspection conditions and combined conditions; where the quality inspection item includes at least one quality inspection condition, the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of an object - type quality inspection condition, an attribute - type quality inspection condition, a spatial - type quality inspection condition, and a data - set - type quality inspection condition; retrieving chart data containing the target object to be detected from a database or a data file, performing quality inspection on the chart data to be detected according to the target quality inspection rule, and sending the quality inspection result to an interface loading end for display, where the quality inspection result includes at least one of a quality inspection item result, a target object, an error type, and abnormal data; receiving a correction for the abnormal data in the quality inspection result.
[0007] Second aspect, an embodiment of the present application provides a quality inspection system for chart data, including: a data acquisition module, configured to acquire the object to be detected selected by the user based on the quality inspection request interface, the quality inspection rule configuration control, and the input quality inspection rule configuration file, where a full quantity quality inspection rule configuration control and a receiving port for the quality inspection rule configuration file are displayed in the quality inspection request interface; a rule generation module, configured to determine at least one first type of quality inspection condition and combined condition selected by the user by triggering the quality inspection rule configuration control, and parse out a second type of quality inspection condition and combined condition from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items combined by logical operations of the first type of quality inspection condition and combined condition and the second type of quality inspection condition and combined condition; wherein, the quality inspection item includes at least one quality inspection condition, the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of an object class quality inspection condition, an attribute class quality inspection condition, a spatial class quality inspection condition, and a data set class quality inspection condition; a data retrieval module, configured to retrieve chart data including the object to be detected from a database or a data file; a data quality inspection module, configured to perform quality inspection on the chart data to be detected according to the target quality inspection rule and send the quality inspection result to an interface loading end for display, the quality inspection result including at least one of a quality inspection item result, an object to be detected, an error type, and abnormal data; a correction receiving module, configured to receive a correction for the abnormal data in the quality inspection result.
[0008] In a third aspect, an embodiment of the present application provides a quality inspection device for chart data, including: a data acquisition module, configured to acquire a target object to be inspected, a quality inspection rule configuration control, and an input quality inspection rule configuration file selected by a user based on a quality inspection request interface, where a full - volume quality inspection rule configuration control and a receiving port for the quality inspection rule configuration file are displayed in the quality inspection request interface; a quality inspection rule determination module, configured to determine at least one first - type quality inspection condition and combined condition selected by the user by triggering the quality inspection rule configuration control, and parse out second - type quality inspection conditions and combined conditions from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items obtained by logically combining the first - type quality inspection conditions and combined conditions and the second - type quality inspection conditions and combined conditions; where the quality inspection item includes at least one quality inspection condition, and the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of an object - type quality inspection condition, an attribute - type quality inspection condition, a spatial - type quality inspection condition, and a data - set - type quality inspection condition; a quality inspection result generation module, configured to retrieve chart data including the target object to be inspected from a database or a data file, perform quality inspection on the chart data to be inspected according to the target quality inspection rule, and send the quality inspection result to an interface loading end for display, where the quality inspection result includes at least one of a quality inspection item result, a target object, an error type, and abnormal data; a correction receiving module, configured to receive a correction for the abnormal data in the quality inspection result.
[0009] In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory, where the processor implements the method according to any one of the above when executing the computer program.
[0010] In a fifth aspect, an embodiment of the present application provides a computer - readable storage medium, where a computer program is stored in the computer - readable storage medium, and the computer program implements the method according to any one of the above when executed by a processor.
[0011] According to an embodiment of the present application, first, obtain a target object to be detected, a quality inspection rule configuration control, and an input quality inspection rule configuration file selected by a user based on a quality inspection request interface. A full - volume quality inspection rule configuration control and a receiving port for the quality inspection rule configuration file are displayed in the quality inspection request interface; secondly, determine at least one first - type quality inspection condition and combined conditions selected by the user by triggering the quality inspection rule configuration control, and parse out second - type quality inspection conditions and combined conditions from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items combined by logical operations of the first - type quality inspection conditions and combined conditions and the second - type quality inspection conditions and combined conditions; wherein, the quality inspection item includes at least one quality inspection condition, the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of an object - type quality inspection condition, an attribute - type quality inspection condition, a space - type quality inspection condition, and a data - set - type quality inspection condition; thirdly, retrieve chart data including the target object to be detected from a database or a data file, perform quality inspection on the to - be - detected chart data according to the target quality inspection rule, and send the quality inspection result to an interface loading end for display. The quality inspection result includes at least one of a quality inspection item result, an object, an error type, and abnormal data; finally, receive a correction for the abnormal data in the quality inspection result. By adopting the above - mentioned solution, it is possible for the user to combine the quality inspection items selected by triggering the quality inspection rule configuration control and / or the quality inspection items in the input quality inspection rule configuration file to form a target quality inspection rule. The formed target quality inspection rule can be a quality inspection rule corresponding to the new quality inspection content after the update of the electronic chart validity inspection version, or a user - defined quality inspection rule. Thus, it is possible to update the quality inspection rule of the chart data and complete the iteration of the chart data quality inspection standard without modifying the software code of the chart data quality inspection system and without recompiling the program, thereby improving the update efficiency and usage efficiency of the quality inspection software in the chart data quality inspection system.
[0012] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above - mentioned and other purposes, features, and advantages of the present application more obvious and understandable, the following specifically gives the specific implementation manners of the present application. Brief Description of the Drawings
[0013] In the drawings, unless otherwise specified, the same reference numerals throughout the several views denote the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.
[0014] Figure 1 Shows a schematic flowchart of a quality inspection solution for chart data provided in an embodiment of the present application;
[0015] Figure 2 shows a flowchart of a quality inspection method for chart data provided in an embodiment of the present application;
[0016] Figure 3 shows a schematic flowchart of generating quality inspection items by combining quality inspection conditions and combined conditions through logical operations in a quality inspection scheme for chart data provided in an embodiment of the present application;
[0017] Figure 4 shows a schematic diagram of generating quality inspection items by combining quality inspection conditions and combined conditions through logical operations in a quality inspection scheme for chart data provided in an embodiment of the present application;
[0018] Figure 5 shows a schematic diagram of forming a quality inspection rule by combining at least two quality inspection items in a quality inspection scheme for chart data provided in an embodiment of the present application;
[0019] Figure 6 shows a structural block diagram of a quality inspection system for chart data provided in an embodiment of the present application;
[0020] Figure 7 shows a structural block diagram of a quality inspection device for chart data provided in an embodiment of the present application; and
[0021] Figure 8 shows a block diagram of an electronic device for implementing an embodiment of the present application. Detailed Description of the Embodiments
[0022] In the following, only some exemplary embodiments are briefly described. As those skilled in the art can recognize, the described embodiments can be modified in various different ways without departing from the concept or scope of the present application. Therefore, the drawings and the description are considered to be exemplary in nature and not restrictive.
[0023] To facilitate understanding of the technical solutions of the embodiments of the present application, the related technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.
[0024] In some cases, the configuration of quality inspection rules mainly uses customized templates for quality inspection. Either the software needs to be updated every time the validity verification version of the international electronic chart is updated, or the extended inspection content is limited to the extension of object attributes, lacking user-defined extension functions and the extension functions for other quality inspection types. Moreover, the coverage of quality inspection items is incomplete, making it easy to miss inspections or fail to detect problems. During the quality inspection process, after classifying the quality inspection rules, users generally can only select full-object quality inspection for a certain classification or a certain inspection item, lacking the independent selection of the object layer of the inspection object (object target) and the range selection of inspection items. In terms of the output of quality inspection results, it can generally be output to the object target level, and some can be output to the chain level, but there is currently no quality inspection system for chart data at the node level on the market, and there is a lack of hierarchical quantity statistics of error information.
[0025] Figure 1 FIG. shows a schematic flowchart of a quality inspection solution for chart data provided in an embodiment of the present application. As Figure 1 shown, users can implement this quality inspection solution for chart data through the quality inspection system of chart data. First, the object target to be detected, the quality inspection rule configuration control, and the input quality inspection rule configuration file selected by the user based on the quality inspection request interface can be obtained. The full-scale quality inspection rule configuration control and the receiving port of the quality inspection rule configuration file are displayed in the quality inspection request interface. Then, at least one first type of quality inspection condition and combined conditions selected by the user by triggering the quality inspection rule configuration control can be determined, and the second type of quality inspection condition and combined conditions can be parsed from the quality inspection rule configuration file, generating a target quality inspection rule corresponding to one or more quality inspection items combined by logical operations of the first type of quality inspection condition and combined conditions and the second type of quality inspection condition and combined conditions; wherein, the quality inspection item includes at least one quality inspection condition, the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of an object class quality inspection condition, an attribute class quality inspection condition, a spatial class quality inspection condition, and a data set class quality inspection condition. Figure 1Only the case of reading the quality inspection configuration file is shown. By parsing the quality inspection conditions and combined conditions in the quality inspection configuration file input by the user (the conditions and combined conditions between the second categories), after logical operation and combination, one or more target quality inspection rules for the object target can be generated (quality inspection rule input). Next, the chart data containing the object target to be detected can be retrieved from the database or data file, and the chart data to be detected can be quality inspected according to the target quality inspection rule (chart quality inspection), and the quality inspection result can be sent to the interface loading end for display (quality inspection result output). The quality inspection result at least includes at least one of the quality inspection item result, the object target, the error type, and the abnormal data. Among them, the data or data file can be a chart product database, a chart 000 file, etc., and the present application does not make any restrictions on this. Finally, the correction of the abnormal data in the quality inspection result can be received.
[0026] Exemplarily, as Figure 1 shown, the user can select the chart data (chart) and quality inspection items (quality inspection rule configuration control) that need to be quality inspected through the quality inspection request interface in the chart quality inspection program interface, input the quality inspection configuration file, read the information in the quality inspection configuration file and the quality inspection conditions and combined conditions in the quality inspection rule configuration control input by the user, generate a quality inspection rule (target quality inspection rule) (quality inspection rule input), and then can quality inspect the chart data in the chart 000 file or the chart product database according to the target quality inspection rule (chart quality inspection), and finally form a quality inspection result (quality inspection result output). Specifically, it can include the following steps:
[0027] 1. Quality inspection rule input. The quality inspection configuration file can be generated through the quality inspection rule (target quality inspection rule) configured by the user and stored in the system, or the quality inspection rule (target quality inspection rule) can be read through the quality inspection configuration file to quality inspect the chart data selected by the user (such as the chart data containing the object target). The user can combine and define the quality inspection items through the minimum quality inspection rules (quality inspection conditions) provided by the system interface (quality inspection request interface) to complete the configuration of the quality inspection rule. The quality inspection system for the chart data in the embodiment of the present application has built in all the quality inspection items in the s-58 quality inspection standard, comprehensively covering all the inspection contents, supporting the chart data in the chart 000 file and the chart product database, and parsing out the quality inspection conditions and combined conditions included in all the quality inspection items, and has classified the quality inspection items according to the s-58 quality inspection standard for the convenience of the user to select. The system also provides the configuration function of the quality inspection items. The user can use the quality inspection conditions prefabricated by the system (that is, the quality inspection conditions parsed according to the s-58 quality inspection standard) for function combination and create specific quality inspection rules for the quality inspection of the chart data in the specified scenario.
[0028] 2. Chart data quality inspection. The user selects the objects to be inspected (feature objects) and inspection items (inspection rule configuration controls) through the system interface (quality inspection request interface), inspects the files in the chart database or chart 000 files that contain the feature objects selected by the user, and outputs the quality inspection results. During quality inspection, the system can search for the specified inspection content in the inspection rules according to the quality inspection requirements input by the user, and inspect the quality inspection objects. For the convenience and flexibility of quality inspection, the system supports hierarchical and classified batch selection of inspection items, or separate selection of several inspection items, and supports the selection of the feature layer of the inspection object. Since the number of chart feature layers is large and the information such as feature objects, chains, and nodes contained in each feature layer is huge, generally, the access and inspection of feature information are time-consuming. However, this system reduces the data access time by reusing feature information and batch operations, and reduces the quality inspection execution time by multi-threaded parallel execution, greatly improving the quality inspection efficiency and saving the quality inspection time.
[0029] 3. Output of quality inspection results. The display of the system's quality inspection results can show all the error information of the quality inspection results in the chart data, and has statistical data for each level of error. According to the error prompt information, since the embodiment of this application resolves the inspection items to the fine-grained level of inspection conditions, the system can not only accurately locate the feature, but also locate the chain or node where the feature is incorrect, which is convenient for users to troubleshoot errors.
[0030] In addition, the quality inspection system for chart data provided in the embodiment of this application not only prefabricates all the quality inspection rules in the s-58 chart inspection standard, and since the quality inspection rules are not immutable, if there is an update to the s-58 chart inspection standard in the future, the user can also configure the rules independently, which can adapt to the changes brought about by the standard update and upgrade, and reduce the errors caused by the user's drawing habits. Therefore, this application can organize the content input by the user into new quality inspection rules and create a quality inspection rule configuration template, and store both the basic general quality inspection rules and the user-defined quality inspection rules for calling when inspecting chart data. In this way, a set of extensible quality inspection system for chart data is developed, achieving the purpose of updating the system's quality inspection rules through configuration. Furthermore, when most of the quality inspection rules in the s-58 chart inspection standard need to be modified, only the xml configuration file where the quality inspection rule is stored in the system needs to be modified to achieve the update of the quality inspection rule, solving the problems of low efficiency, poor performance, and insufficient scalability existing in traditional quality inspection methods, and having the characteristics of simplicity, speed, and high automation.
[0031] The execution entity of the embodiments of the present application can be an application program, service, instance, functional module in software form, virtual machine (VM), container, cloud server, etc., or a hardware device with data processing functions (such as a server or terminal device) or a hardware chip (such as a CPU, GPU, FPGA, NPU, AI acceleration card, or DPU), etc. The device for implementing the quality inspection of chart data can be deployed on the computing device of the application party providing the corresponding service or on the cloud computing platform providing computing power, storage, and network resources. The mode in which the cloud computing platform provides services externally can be IaaS (Infrastructure as a Service), PaaS (Platform as a Service), SaaS (Software as a Service), or DaaS (Data as a Service). Taking the platform providing SaaS (Software as a Service) as an example, the cloud computing platform can utilize its own computing resources to provide the training of the quality inspection model for chart data or the execution of the functions of the quality inspection module for chart data. The specific application architecture can be built according to service requirements. For example, the platform can provide the construction service based on the above model to the application party or individual using the platform resources, and further call the above model and implement the online or offline quality inspection function for chart data based on the quality inspection request for chart data submitted by relevant client or server devices, etc.
[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties. And the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0033] The technical solution of the present application and how the technical solution of the present application solves the foregoing technical problems will be described in detail below with specific embodiments. The several specific embodiments listed can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0034] The embodiments of the present application provide a method for quality inspection of chart data, and the method is applied to a quality inspection system for chart data, such as Figure 2 The flowchart of the method 200 for quality inspection of chart data according to an embodiment of the present application is shown. The method 200 may include:
[0035] In step S201, obtain the object to be inspected, the quality inspection rule configuration control, and the input quality inspection rule configuration file selected by the user based on the quality inspection request interface. The full - volume quality inspection rule configuration control and the receiving port of the quality inspection rule configuration file are displayed in the quality inspection request interface.
[0036] In the embodiments of the present application, the steps of inputting quality inspection rules can be divided into the following steps:
[0037] 1) According to the data model in the S - 57 standard, design attribute information such as object to be inspected, attributes, attribute values, and dataset description records, as well as spatial information such as points, chains, lines, and surfaces, to form a basic database, and store the basic data of the attribute information in the basic database according to the structure.
[0038] 2) Sort out the quality inspection items in the S - 58 standard, split them into indivisible atomic - level quality inspection conditions, and complete the development of each atomic - level quality inspection condition for reuse in the rule configuration of subsequent quality inspection items.
[0039] 3) Finally, according to the quality inspection items in the S - 58 standard, the system combines and configures the quality inspection conditions for each quality inspection item, and generates a quality inspection configuration file according to the configured content for subsequent data exchange.
[0040] Thus, through the advantages of XML configurability, a suitable extensible quality inspection function of the chart production system can be designed, which can update the quality inspection rules and complete the update of the quality inspection standard without modifying the code and recompiling the program.
[0041] In step S202, determine at least one first - type quality inspection condition and combination condition selected by the user by triggering the quality inspection rule configuration control, and parse out the second - type quality inspection condition and combination condition from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items combined by logical operation of the first - type quality inspection condition and combination condition and the second - type quality inspection condition and combination condition; wherein, the quality inspection item includes at least one quality inspection condition, the quality inspection item is composed of one or more quality inspection conditions combined by logical operation, and the quality inspection condition includes at least one of object - type quality inspection conditions, attribute - type quality inspection conditions, spatial - type quality inspection conditions, and dataset - type quality inspection conditions.
[0042] Among them, the first - type quality inspection condition can be a quality inspection condition configured by the user himself by selecting the quality inspection rule control through the quality inspection request interface; the second - type quality inspection condition can be the parsed quality inspection condition obtained by the quality inspection system through parsing the quality inspection rule configuration file input by the user. Both the first - type quality inspection condition and the second - type quality inspection condition can include object - type quality inspection conditions, attribute - type quality inspection conditions, spatial - type quality inspection conditions, and dataset - type quality inspection conditions, etc., and the present application does not make any restrictions on this.
[0043] In a possible implementation, the above quality inspection condition is an indivisible basic condition for quality inspecting the target object by using an operator for one operation.
[0044] Figure 3 The figure shows a schematic flowchart of generating a quality inspection item by combining a quality inspection condition and a combined condition through a logical operation in a quality inspection solution for chart data provided in an embodiment of the present application. As Figure 3 shown, a quality inspection item can be the smallest unit for quality inspecting an object. Each time a quality inspection test is performed, at least one quality inspection item must be completed. The node composition structure of the quality inspection item, the uses and descriptions of each node are as follows:
[0045] 1) A quality inspection item is formed by logically combining (logical operation) multiple combined conditions and multiple quality inspection conditions.
[0046] 2) A quality inspection condition is the smallest execution unit for the system to perform an inspection operation. It is an indivisible basic condition.
[0047] 3) A combined condition can be formed by logically combining multiple combined conditions and quality inspection conditions. It is a condition that can be nested and combined.
[0048] 4) The logical operations in the inspection item are generally AND, OR, and NOT. The inspection conditions can be freely combined in the inspection item. Therefore, the logical judgment and condition combination in the inspection item are extensible. If the quality inspection standard adjusts the quality inspection content, we can correspondingly adjust the logical combination and inspection conditions in the inspection item.
[0049] 5) The inspection conditions are various. Generally, they can be divided into inspection contents such as whether an attribute exists, whether the attribute value is in a dictionary, attribute value comparison, graphic type judgment, and graphic relationship judgment. Its inspection conditions also have good extensibility. Elements such as the compared attributes, attribute values, comparison operators, and graphic relationships in the conditions can be modified and adjusted to adapt to the changes in the quality inspection rules brought about by the standard changes.
[0050] In some embodiments, the quality inspection conditions for object classes at least include checking whether the object exists, whether it is a prohibited object, whether the number is empty, whether there are attributes, and whether the object numbers are repeated; the quality inspection conditions for attribute classes at least include checking whether it conforms to the format, whether it is required, whether it is repeated, whether it is disabled, whether there are self-attribute conflicts, whether there are conflicts with other objects, whether the attribute values are unique, whether the attribute values are equal to another value, whether the attribute values are less than a certain value, whether the attribute values are greater than a certain value, and whether the attribute values are within a certain range; the quality inspection conditions for spatial classes at least include whether the graphic type conforms, whether it is inconsistent with the attributes, whether the shape conforms, whether the positional relationship conforms, whether there are missing covering objects, whether the edges are repeated, whether the edges are referenced, whether the points coincide, whether the vector records are referenced multiple times, whether the node coordinates conflict, whether the node marks are correct, whether the node order is correct, and whether the inner and outer boundaries are correct; the quality inspection conditions for dataset classes at least include whether the data volume exceeds the limit, whether the document structure conforms, whether the identifier name conforms, whether the statistical quantity is correct, whether the update index is correct, whether the version number conforms, whether the data order conforms, whether the structure is repeated, whether the updated fields are inconsistent, whether the vocabulary level conforms, and whether the file directory conforms.
[0051] Correspondingly, for the quality inspection item characteristics of the S-58 standard, the quality inspection conditions are decomposed, and the following types of basic quality inspection condition programs can be designed and implemented, and user-defined configuration is supported. Figure 4 The figure shows a schematic diagram of the quality inspection items generated by combining quality inspection conditions and combined conditions through logical operations in a quality inspection scheme for chart data provided in an embodiment of the present application, as Figure 4 (Taking the attribute custom configuration as an example) shown, the user can add an attribute rule and select the layer "Charting Area (Surface)"; the rule type can be selected as "Check that the field value must be greater than a certain value"; the check field can be selected as "$SCODE"; the relevant parameters can be selected or filled in as needed; the error description can be "Check that the field value is less than the lower limit value"; the rule description can be "Select the field name in the drop-down box of the check field, fill in the lower limit value in the edit box of the relevant parameters, and check whether all the field values are greater than the lower limit value"; then the "Add" or "Close" button can be clicked to complete the configuration.
[0052] Figure 5 The figure shows a schematic diagram of a quality inspection rule formed by combining at least two quality inspection items in a quality inspection scheme for chart data provided in an embodiment of the present application. As Figure 5 Shown, the quality inspection conditions of each type are described as follows:
[0053] 1) Object class quality inspection conditions. The quality inspection conditions it contains include checking whether the object exists, whether it is a prohibited object, whether the number is empty, whether there are attributes, whether the object numbers are repeated, and other contents.
[0054] 2) Quality inspection conditions of attribute type. The quality inspection conditions it contains include checking whether the attribute value format conforms, whether it is required, whether it is repeated, whether it is disabled, whether there is a conflict with its own attributes, whether there is a conflict with other objects, whether the attribute value is unique, whether the value is equal to another value, whether the value is less than a certain value, whether the value is greater than a certain value, whether the value is within a certain range, etc.
[0055] 3) Quality inspection conditions of spatial type. The quality inspection conditions it contains include checking whether the graphic type conforms, whether it is inconsistent with the attribute, whether the shape conforms, whether the positional relationship conforms, whether the covering object is missing, whether the edges are repeated, whether the edges are referenced, whether the points coincide, whether the vector record is referenced multiple times, whether the node coordinates conflict, whether the node marks are correct, whether the node order is correct, whether the inner and outer boundaries are correct, etc.
[0056] 4) Quality inspection conditions of dataset type. The quality inspection conditions it contains include checking whether the data volume exceeds the limit, whether the document structure conforms, whether the identifier name conforms, whether the statistical quantity is correct, whether the update index is correct, whether the version number conforms, whether the data order conforms, whether the structure is repeated, whether the updated fields are inconsistent, whether the vocabulary level conforms, whether the file directory conforms, etc.
[0057] The above quality inspection condition meta-information needs to complete the interface development of the inspection content in the system. In this way, when entering the quality inspection rules in the system, these prefabricated contents can be selected to generate quality inspection conditions.
[0058] For example, Figure 5 In the "Attribute Check" in, in the rule list of the attribute check, information such as relevant layers, rule descriptions, relevant fields, relevant parameters, error descriptions, etc. can be displayed. Among them, in the relevant layers, it can be "Reefs / Applicable…", etc.; in the rule description, it can be "Check that the field value is not empty" or "The field value must be greater than a certain…" (Check that the field value must be greater than a certain value), etc.; correspondingly, the relevant fields can be "VALSOU" or "EXPSOU", etc.; the relevant parameters can display "Ture" or "3", etc.; the error description can be "The field value is not allowed to be empty" or "Check that the field value is less than the lower limit value", etc. Thus, these prefabricated contents can be selected to generate quality inspection conditions.
[0059] In step S203, the chart data containing the target object to be detected is retrieved from the database or data file, and the quality inspection of the chart data to be detected is performed according to the target quality inspection rule, and the quality inspection result is sent to the interface loading end for display. The quality inspection result includes at least one of the quality inspection item result, the target object, the error type, and the abnormal data.
[0060] In a possible implementation, before performing quality inspection on the chart data to be detected according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, the method further includes: determining the quality inspection scope of the quality inspection content in the chart data to be detected according to the target quality inspection rule, where the quality inspection scope is data set quality inspection, all feature quality inspections, or specific feature quality inspections; determining the quality inspection type for the quality inspection content in the chart data to be detected according to the target quality inspection rule, where the quality inspection type is feature object quality inspection, feature attribute quality inspection, spatial data quality inspection, or data set quality inspection; and establishing a mapping relationship between the target quality inspection rule and the quality inspection content in the chart data to be detected based on the quality inspection scope and / or the quality inspection type.
[0061] In addition to supporting the configured quality inspection rules, the system also needs to support the mapping relationship between the configured rules and the inspection objects, so as to achieve the purpose of flexible inspection on demand. The specific mapping relationship includes the following:
[0062] 1) The inspection scope of the quality inspection rule. This inspection scope is for data set inspection, all feature inspections, or specific feature inspections.
[0063] 2) The inspection type of the quality inspection rule. This inspection type indicates whether the quality inspection is for feature object inspection, feature attribute inspection, spatial data inspection, or data set inspection.
[0064] 3) The inspection content of the quality inspection rule. This content associates the previously configured quality inspection conditions with the inspection objects to form the complete inspection content of the quality inspection item.
[0065] The inspection original text of a specific inspection item in the S-58 standard is as follows:
[0066] "Check for each UWTROC feature object where VALSOU is Known AND EXPSOU is Equal to 1 (within the range of depth of the surrounding depth area) OR not Present AND VALSOU is Less than or equal to DRVAL1 OR Greater than DRVAL2 of the DEPARE feature object it is COVERED_BY." The Chinese meaning is as follows: "Check each WRECKS feature object where VALSOU is known, and EXPSOU is equal to 1 (within the depth range of the surrounding depth area) or does not exist, and VALSOU is less than or equal to DRVAL1 or greater than DRVAL2 of the DEPARE feature object it overlaps or is covered by."
[0067] According to the requirements of the quality inspection item, we configure this quality inspection item into the quality inspection rule library. The steps are as follows:
[0068] 1) Set UWTROC as the object to be inspected.
[0069] 2) Add an attribute inspection rule, select "VALSOU" as the inspection field, select "Judge whether it exists" as the inspection condition type, and fill in the parameter "true" as the comparison result. Thus, the first inspection condition has been configured.
[0070] 3) Continue to add subsequent attribute inspection rules until all the quality inspection conditions of the entire quality inspection item have been entered into the system.
[0071] 4) Logically combine the quality inspection conditions, and connect each quality inspection condition through the logical operators "AND" and "OR".
[0072] 5) According to the information in the S-58 standard, number the quality inspection item as "1722a" and classify it into the category of "Use of the Object Catalogue".
[0073] After the quality inspection rules are configured, the system can export them as files in xml format for data exchange between systems, import them into other systems to quickly build quality inspection rules, and export them to xml. Each line of nodes (except logical operators) is a quality inspection condition, and the node needs to contain parameters such as the type of inspection condition, the operation object, the operation attribute, and the operator, which are consistent with the quality inspection rules configured in the system. When the quality inspection standards are updated and upgraded and the quality inspection conditions of the quality inspection items need to be changed, the logical operators can be adjusted, the parameters in the inspection conditions can be adjusted, or new quality inspection condition nodes can be added or existing nodes can be deleted or modified to make the quality inspection rules of the quality inspection items consistent with the requirements in the standards. In addition, new inspection items can be formed by recombining the existing conditions, which greatly improves the scalability and maintainability of the system.
[0074] In a possible implementation manner, before performing quality inspection on the to-be-detected chart data according to the target quality inspection rules and sending the quality inspection results to the interface loading end for display, the method further includes: searching for the pre-configured quality inspection rules for the quality inspection content in the to-be-detected chart data before this quality inspection, and adding the pre-configured quality inspection rules to the target quality inspection rules for this time.
[0075] In some embodiments, before performing quality inspection on the to-be-detected chart data according to the target quality inspection rules and sending the quality inspection results to the interface loading end for display, the method further includes: converting the target quality inspection rules into a file in extensible markup language format for data exchange between systems.
[0076] In a possible implementation manner, the above-mentioned performing quality inspection on the to-be-detected chart data according to the target quality inspection rules includes: creating multiple quality inspection threads, splitting all quality inspection items into multiple quality inspection tasks according to the task quantity or running time of the quality inspection items, and evenly distributing the quality inspection tasks of each quality inspection thread. Specifically, the to-be-detected chart data can also be divided into multiple chart sub-data according to the quality inspection items according to at least two quality inspection items in the target quality inspection rules; then create multiple quality inspection threads, and evenly distribute the quality inspection tasks of each quality inspection thread according to the task quantity or running time of the quality inspection items.
[0077] The structure and rules of the quality inspection rules designed in the embodiments of the present application can greatly adapt to the adjustment of the quality inspection items brought about by the change of the quality inspection standards. We designed the corresponding program structure according to the characteristics of the quality inspection rules and implemented a software system for quality inspection through this method. Quality inspection is a crucial part of chart production, which is related to the product quality of charts. When designing the software, we must ensure the correctness and scalability of the system functions, and also consider the convenience of software use. The embodiments of the present application also include classification inspection and single-item inspection, and their characteristics are as follows:
[0078] 1) Classification inspection can batch-execute all inspection items under this classification and inspect all objects to be inspected. It is applicable to the initial inspection or comprehensive inspection of nautical charts and can batch-detect a certain type of problems.
[0079] 2) Single-item inspection can inspect a specified inspection item and can specify which of all objects to be inspected corresponding to this inspection item need to be inspected. It is applicable after classification inspection. When the object is corrected, the corrected object is inspected to confirm whether the object has been corrected properly. It is also applicable when a new object is added to confirm whether the newly added object meets the relevant inspection items.
[0080] 3) To quickly check the options selected in the classification, we have designed standard selection and full-selection buttons to facilitate users to make selections.
[0081] 4) To facilitate users to perform single-item inspection, we have listed all classification inspections and displayed all inspection items under this classification in the list for users to single-select the inspection items to be executed. On the right side of the inspection item, we have listed all objects applicable to this inspection item, and users can multi-select the objects to be inspected for this inspection item.
[0082] After the user selects the required quality inspection items and quality inspection objects for the nautical chart, the system will automatically conduct quality inspections item by item according to the quality inspection rules, and output the results to the result list after the quality inspection is completed. The program execution steps are as follows:
[0083] 1) Determine the objects to be inspected and the quality inspection items to be inspected according to the quality inspection objects and scope selected by the user.
[0084] 2) Read the nautical chart data from the database or data file according to the selected quality inspection object, store its data in the memory, and use it as the data source for subsequent quality inspections. After the system reads the nautical chart data, it will organize the data into a dataset object according to the dataset structure of s57 for easy inspection.
[0085] 3) The system reads the configured quality inspection file, parses the file structure, and generates corresponding quality inspection rules from its data content.
[0086] 4) Create multiple threads and allocate the content to be inspected with the inspection item as the smallest unit. Each thread can independently execute an inspection item, and the inspection item set and the inspection thread allocation scheme are evenly allocated according to the execution time to ensure that the execution time of each thread is similar, achieving the effect of shortening the quality inspection time.
[0087] In step S204, receive the correction for the abnormal data in the quality inspection result.
[0088] In some embodiments, the above quality inspection item results include at least one of a quality inspection item number, the total number of specific errors corresponding to a specific quality inspection item, and error prompt information; the object marker includes at least one of an object type, a spatial type, and an object number; the error type includes an error degree and an error quantity, and the error degree includes at least one of a critical error, an error, and a warning; the abnormal data includes at least one of edge abnormal data, node abnormal data, attribute abnormal data, and dataset abnormal data.
[0089] After the system quality inspection is completed, the quality inspection results will be output to the quality inspection result panel for display. The quality inspection result panel displays hierarchical data, which are four levels: problem type, quality inspection item, object, and abnormal data. The descriptions of each level are as follows:
[0090] 1) The problem type level is a classification of the severity of quality inspection item problems according to the s-58 standard, divided into 3 categories: critical error, error, and warning. The total number of errors of this type will be counted in the error type, which is convenient for users to make statistics.
[0091] 2) The quality inspection item level indicates that according to the inspection conditions of this quality inspection item, errors of this type are found in the chart data. The data includes the quality inspection item number, the total number of problems found in this quality inspection item, and error prompt information. After clicking on the quality inspection item, the problem details of the quality inspection item can also be viewed. This detail is displayed according to the quality inspection item description in the s-58 standard, which is used to help users understand and correct errors.
[0092] 3) The object level is the problem object specifically detected, including the type, spatial type, and object number of the object. Double-clicking on the object in the system can quickly locate the object position and highlight it on the chart. To quickly fix the problem, when right-clicking on the object, options such as editing attributes and editing graphics can be selected to jump to the operation interface.
[0093] 4) The abnormal data level is the data that does not conform specifically detected, including content such as edges, nodes, attributes, and datasets. The positions of the detected chain and node errors can be quickly located. If it is an attribute error, it will prompt which attribute has the problem.
[0094] The embodiment of the present application also provides a quality inspection system for chart data, as Figure 6 shown in the flowchart of the quality inspection system 600 for chart data according to an embodiment of the present application. The method 600 may include:
[0095] A data acquisition module 601, configured to acquire the object marker to be detected, the quality inspection rule configuration control, and the input quality inspection rule configuration file selected by the user based on the quality inspection request interface, and a full amount of quality inspection rule configuration controls and a receiving port for the quality inspection rule configuration file are displayed in the quality inspection request interface;
[0096] A rule generation module 602, configured to determine at least one first type of quality inspection condition and combined condition selected by a user by triggering a quality inspection rule configuration control, and parse a second type of quality inspection condition and combined condition from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items obtained by logically combining the first type of quality inspection condition and combined condition and the second type of quality inspection condition and combined condition; wherein, the quality inspection item includes at least one quality inspection condition, the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of an object class quality inspection condition, an attribute class quality inspection condition, a spatial class quality inspection condition, and a data set class quality inspection condition;
[0097] A data retrieval module 603, configured to retrieve chart data including target objects to be detected from a database or a data file;
[0098] A data quality inspection module 604, configured to perform quality inspection on the to-be-detected chart data according to the target quality inspection rule and send the quality inspection result to an interface loading end for display, where the quality inspection result includes at least one of a quality inspection item result, a target object, an error type, and abnormal data;
[0099] A correction receiving module 605, configured to receive corrections for the abnormal data in the quality inspection result.
[0100] Corresponding to the above example and method embodiments provided in the embodiments of the present application, the embodiments of the present application further provide a quality inspection device for chart data. As Figure 7 shown in the structural block diagram of a quality inspection device 700 for chart data according to an embodiment of the present application, the device 700 may include:
[0101] A data acquisition module 701, configured to acquire target objects to be detected, a quality inspection rule configuration control, and an input quality inspection rule configuration file selected by a user based on a quality inspection request interface, where a full volume quality inspection rule configuration control and a receiving port for the quality inspection rule configuration file are displayed on the quality inspection request interface;
[0102] A quality inspection rule determination module 702, configured to determine at least one first type of quality inspection condition and combined condition selected by a user by triggering a quality inspection rule configuration control, and parse a second type of quality inspection condition and combined condition from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items obtained by logically combining the first type of quality inspection condition and combined condition and the second type of quality inspection condition and combined condition; wherein, the quality inspection item includes at least one quality inspection condition, the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of an object class quality inspection condition, an attribute class quality inspection condition, a spatial class quality inspection condition, and a data set class quality inspection condition;
[0103] A quality inspection result generation module 703 is configured to retrieve chart data including the object to be inspected from a database or a data file, perform quality inspection on the chart data to be inspected according to the target quality inspection rule, and send the quality inspection result to an interface loading end for display. The quality inspection result includes at least one of a quality inspection item result, an object, an error type, and abnormal data;
[0104] A correction receiving module 704 is configured to receive corrections for the abnormal data in the quality inspection result.
[0105] In a possible implementation manner, the quality inspection condition is an indivisible basic condition for performing quality inspection on an object by using an operator for one operation.
[0106] In a possible implementation manner, before performing quality inspection on the chart data to be inspected according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, the above device may further include: a quality inspection scope determination module, configured to determine a quality inspection scope of the quality inspection content in the chart data to be inspected according to the target quality inspection rule, where the quality inspection scope is data set quality inspection, all object quality inspections, or specific object quality inspections; a quality inspection type determination module, configured to determine a quality inspection type for the quality inspection content in the chart data to be inspected according to the target quality inspection rule, where the quality inspection type is object quality inspection, object attribute quality inspection, spatial data quality inspection, or data set quality inspection; and a mapping relationship establishment module, configured to establish a mapping relationship between the target quality inspection rule and the quality inspection content in the chart data to be inspected based on the quality inspection scope and / or the quality inspection type.
[0107] In a possible implementation manner, before performing quality inspection on the chart data to be inspected according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, the above device may further include: a configured quality inspection rule search module, configured to search for configured quality inspection rules for the quality inspection content in the chart data to be inspected pre-configured before this quality inspection, and add the configured quality inspection rules to the target quality inspection rule for this time.
[0108] In a possible implementation manner, before performing quality inspection on the chart data to be inspected according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, the above device may further include: a file conversion module, configured to convert the target quality inspection rule into a file in an extensible markup language format for data exchange between systems.
[0109] In a possible implementation, the quality inspection conditions for the object class at least include checking whether the object exists, whether it is a prohibited object, whether the number is empty, whether there are attributes, and whether the object numbers are repeated; the quality inspection conditions for the attribute class at least include checking whether it conforms to the format, whether it is required, whether it is repeated, whether it is disabled, whether there is a conflict with its own attributes, whether there is a conflict with other objects, whether the attribute value is unique, whether the attribute value is equal to another value, whether the attribute value is less than a certain value, whether the attribute value is greater than a certain value, and whether the attribute value is within a certain range; the quality inspection conditions for the space class at least include at least one of whether the graphic type conforms, whether it is inconsistent with the attributes, whether the shape conforms, whether the positional relationship conforms, whether there is a lack of covering objects, whether the edges are repeated, whether the edges are referenced, whether the points coincide, whether the vector records are referenced multiple times, whether the node coordinates conflict, whether the node markers are correct, whether the node order is correct, and whether the inner and outer boundaries are correct; the quality inspection conditions for the dataset class at least include at least one of whether the data volume exceeds the limit, whether the document structure conforms, whether the identifier name conforms, whether the statistical quantity is correct, whether the update index is correct, whether the version number conforms, whether the data order conforms, whether the structure is repeated, whether the updated fields are inconsistent, whether the vocabulary level conforms, and whether the file directory conforms.
[0110] In a possible implementation, the above data quality inspection module may include: a quality inspection thread creation sub-module, configured to create multiple quality inspection threads, and split all quality inspection items into multiple quality inspection tasks according to the task quantity of the quality inspection items or the running time of the quality inspection items, and evenly allocate the quality inspection tasks of each quality inspection thread.
[0111] In a possible implementation, the quality inspection item results include at least one of a quality inspection item number, the total number of specific errors corresponding to a specific quality inspection item, and an error prompt message; the object label includes at least one of an object type, a space type, and an object number; the error type includes an error degree and an error quantity, and the error degree includes at least one of a critical error, an error, and a warning; the abnormal data includes at least one of edge abnormal data, node abnormal data, attribute abnormal data, and dataset abnormal data.
[0112] The functions of the modules in each device of the embodiments of the present application can be referred to the corresponding descriptions in the above methods, and have the corresponding beneficial effects, which will not be elaborated here.
[0113] Figure 8 It is a block diagram of an electronic device for implementing the embodiments of the present application. As Figure 8 shown, the electronic device includes: a memory 801 and a processor 802. The memory 801 stores a computer program that can run on the processor 802. When the processor 802 executes the computer program, the methods in the above embodiments are implemented. The number of the memory 801 and the processor 802 can be one or more.
[0114] The electronic device further includes:
[0115] A communication interface 803, configured to communicate with external devices and perform data interaction and transmission.
[0116] If the memory 801, the processor 802, and the communication interface 803 are implemented independently, the memory 801, the processor 802, and the communication interface 803 can be interconnected through a bus and complete communication with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity of representation, Figure 8 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0117] Optionally, in a specific implementation, if the memory 801, the processor 802, and the communication interface 803 are integrated on a single chip, the memory 801, the processor 802, and the communication interface 803 can complete communication with each other through an internal interface.
[0118] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0119] An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.
[0120] An embodiment of the present application further provides a chip, which includes a processor, configured to call and run instructions stored in a memory, so that a communication device installed with the chip executes the method provided in the embodiment of the present application.
[0121] An embodiment of the present application further provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, the output interface, the processor, and the memory are connected through an internal connection path. The processor is configured to execute code in the memory, and when the code is executed, the processor is configured to execute the method provided in the embodiment of the present application.
[0122] It should be understood that the above-mentioned processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.
[0123] Furthermore, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory may include a Random Access Memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Sync link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0124] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0125] In the description of this specification, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0126] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of the present application, "a plurality" means two or more, unless otherwise specifically defined.
[0127] Any process or method described in the flowchart or otherwise described herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a specific logical function or process. And the scope of the preferred embodiments of the present application includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in a reverse order according to the involved functions, rather than in the order shown or discussed.
[0128] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing a logical function, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatus, or devices.
[0129] It should be understood that each part of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the method in the above embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0130] In addition, in each embodiment of the present application, each functional unit can be integrated in a processing module, or each unit can exist physically alone, or two or more units can be integrated in one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a magnetic disk, an optical disk, etc.
[0131] As described above, only the exemplary embodiments of the present application are provided, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope recorded in the present application can easily think of various changes or substitutions, and these should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A quality inspection method for nautical chart data, the method being applied to a quality inspection system for nautical chart data, comprising: Obtaining the object to be detected, the quality inspection rule configuration control, and the quality inspection rule configuration file input by the user based on the quality inspection request interface, wherein the quality inspection request interface displays the receiving port of the full quality inspection rule configuration control and the quality inspection rule configuration file; Determine at least one first-category quality inspection condition and combination condition selected by the user by triggering the quality inspection rule configuration control, and parse the second-category quality inspection condition and combination condition from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items that are combined by logical operations with the first-category quality inspection condition and combination condition and the second-category quality inspection condition and combination condition; wherein the quality inspection item includes at least one quality inspection condition, and the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of object-class quality inspection conditions, attribute-class quality inspection conditions, space-class quality inspection conditions, and data set-class quality inspection conditions; Retrieving the nautical chart data containing the object to be detected from the database or data file, performing quality inspection on the nautical chart data to be detected according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, wherein the quality inspection result includes at least one of the quality inspection item result, the object, the error type and the abnormal data; Corrections for abnormal data in the quality inspection results are received.
2. The method according to claim 1, wherein: The quality inspection condition is an indivisible basic condition for quality inspection of the object by using one operator to perform one operation.
3. The method according to claim 1, wherein: Before performing quality inspection on the to-be-inspected nautical chart data according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, the method further includes: Determining the quality inspection scope of the quality inspection content in the to-be-inspected nautical chart data according to the target quality inspection rule, wherein the quality inspection scope is data set quality inspection, all object mark quality inspection or specific object mark quality inspection; Determining, according to the target quality inspection rule, a quality inspection type for the quality inspection content in the to-be-inspected nautical chart data, wherein the quality inspection type is object quality inspection, object attribute quality inspection, spatial data quality inspection or data set quality inspection; Based on the quality inspection scope and / or the quality inspection type, a mapping relationship between the target quality inspection rule and the quality inspection content in the nautical chart data to be inspected is established.
4. The method according to claim 1, wherein: Before performing quality inspection on the to-be-inspected nautical chart data according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, the method further includes: The configured quality inspection rules for the quality inspection content in the nautical chart data to be inspected, which were pre-configured before the current quality inspection, are searched, and the configured quality inspection rules are added to the current target quality inspection rules.
5. The method according to claim 1, wherein: Before performing quality inspection on the to-be-inspected nautical chart data according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, the method further includes: The target quality inspection rules are converted into a file in an extensible markup language format for data exchange between systems.
6. The method according to claim 1, wherein: The object class quality inspection conditions at least include checking whether the object exists, whether it is a prohibited object, whether the number is empty, whether there are attributes, and whether the object number is repeated; The attribute quality inspection conditions at least include checking whether the format is conformed, whether it is required, whether it is repeated, whether it is disabled, whether there is a conflict with its own attributes, whether there is a conflict with other objects, whether the attribute value is unique, whether the attribute value is equal to another value, whether the attribute value is less than a certain value, whether the attribute value is greater than a certain value, and whether the attribute value is within a certain range; The spatial quality inspection conditions include at least one of whether the graphic type is in compliance, whether it is inconsistent with the attribute, whether the shape is in compliance, whether the position relationship is in compliance, whether the covering object is missing, whether the edge is repeated, whether the edge is referenced, whether the point overlaps, whether the vector record is referenced multiple times, whether the node coordinates conflict, whether the node mark is correct, whether the node order is correct, and whether the inner and outer boundaries are correct; The data set quality inspection conditions include at least one of whether the data volume exceeds the limit, whether the document structure complies, whether the identifier name complies, whether the statistical quantity is correct, whether the update index is correct, whether the version number complies, whether the data sequence complies, whether the structure is repeated, whether the update field is inconsistent, whether the vocabulary level complies, and whether the file directory complies.
7. The method according to claim 1, wherein: The step of performing quality inspection on the to-be-inspected nautical chart data according to the target quality inspection rule comprises: Create multiple quality inspection threads, split all quality inspection items into multiple quality inspection tasks according to the number of quality inspection tasks or the running time of the quality inspection items, and evenly distribute the quality inspection tasks of each quality inspection thread.
8. The method according to claim 1, wherein: The quality inspection result includes at least one of the quality inspection item number, the total number of specific errors corresponding to the specific quality inspection item, and error prompt information; The object marker object includes at least one of an object type, a space type and an object number; The error type includes an error degree and an error quantity, and the error degree includes at least one of a major error, an error, and a warning; The abnormal data includes at least one of edge abnormal data, node abnormal data, attribute abnormal data and data set abnormal data.
9. A quality inspection system for nautical chart data, comprising: A data acquisition module is used to acquire the object to be detected, the quality inspection rule configuration control, and the input quality inspection rule configuration file selected by the user based on the quality inspection request interface, wherein the quality inspection request interface displays the receiving port of the full quality inspection rule configuration control and the quality inspection rule configuration file; A rule generation module is used to determine at least one first-class quality inspection condition and combination condition selected by the user by triggering the quality inspection rule configuration control, and parse the second-class quality inspection condition and combination condition from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items that are combined by logical operations with the first-class quality inspection condition and combination condition and the second-class quality inspection condition and combination condition; wherein the quality inspection item includes at least one quality inspection condition, and the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of object-class quality inspection conditions, attribute-class quality inspection conditions, space-class quality inspection conditions, and data set-class quality inspection conditions; A data retrieval module is used to retrieve the chart data containing the object to be detected from a database or a data file; A data quality inspection module, used for performing quality inspection on the chart data to be inspected according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, wherein the quality inspection result includes at least one of quality inspection item result, object, error type and abnormal data; The correction receiving module is used to receive corrections for abnormal data in the quality inspection results.
10. A quality inspection device for nautical chart data, comprising: A data acquisition module is used to acquire the object to be detected, the quality inspection rule configuration control, and the input quality inspection rule configuration file selected by the user based on the quality inspection request interface, wherein the quality inspection request interface displays the receiving port of the full quality inspection rule configuration control and the quality inspection rule configuration file; A quality inspection rule determination module is used to determine at least one first-class quality inspection condition and combination condition selected by the user by triggering the quality inspection rule configuration control, and parse the second-class quality inspection condition and combination condition from the quality inspection rule configuration file, and generate a target quality inspection rule corresponding to one or more quality inspection items that are combined by logical operations with the first-class quality inspection condition and combination condition and the second-class quality inspection condition and combination condition; wherein the quality inspection item contains at least one quality inspection condition, and the quality inspection item is composed of one or more quality inspection conditions combined by logical operations, and the quality inspection condition includes at least one of object-class quality inspection conditions, attribute-class quality inspection conditions, space-class quality inspection conditions, and data set-class quality inspection conditions; A quality inspection result generating module, used for retrieving the nautical chart data containing the object to be inspected from the database or data file, performing quality inspection on the nautical chart data to be inspected according to the target quality inspection rule and sending the quality inspection result to the interface loading end for display, wherein the quality inspection result includes at least one of the quality inspection item result, the object, the error type and the abnormal data; The correction receiving module receives corrections for abnormal data in the quality inspection results.
11. An electronic device comprising a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 8 when executing the computer program.
12. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.