Method for converting S-57 / S-101 electronic chart data with intermediate semantic objects and streaming dual-track verification
By constructing an intermediate semantic object and using a streaming dual-track verification method, the problems of semantic preservation and target feature generation consistency when converting S-57 format electronic nautical chart data to S-101 format were solved. This improved the efficiency of synchronous verification and anomaly location during the conversion process and ensured the geometric closure and topological reliability of the target spatial objects.
Patent Information
- Application Number
- CN202610976142.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for converting S-57 format electronic nautical chart data to S-101 format suffer from issues related to maintaining the semantics of the source data and ensuring consistency in the generation of target elements under complex mapping scenarios. Furthermore, the lack of effective synchronous verification and anomaly localization methods during the conversion process results in insufficient geometric closure and topological reliability.
A method for converting S-57/S-101 electronic nautical chart data using intermediate semantic objects and streaming dual-track verification is constructed. By parsing the source data and building a conversion rule base, intermediate semantic objects are generated. Combined with streaming processing and dual-track verification, target element generation, attribute conversion, and spatial object reconstruction are achieved, and synchronous verification and anomaly marking are performed.
It improves the consistency of source data semantic preservation and target element generation in complex mapping scenarios, enhances the efficiency of synchronous verification and anomaly location during the transformation process, and ensures the geometric closure and topological reliability of target spatial objects.
Smart Images

Figure CN123178951A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of electronic chart data processing, geospatial data conversion, and electronic chart conversion quality verification. More specifically, it relates to a method for converting S-57 / S-101 electronic chart data using intermediate semantic objects and streaming dual-track verification. Background Technology
[0002] S-57 is a digital hydrographic data transmission standard proposed by the International Hydrographic Organization (ITO), and has long been used for the production, exchange, updating, and application of electronic nautical chart data. Electronic nautical charts produced based on the S-57 standard are widely used in electronic chart display and information systems, resulting in a large stock of data and a relatively mature production and application system. With the development of electronic navigation, intelligent shipping, and marine spatial information services, traditional electronic chart data standards face new requirements in terms of data model expansion, collaborative product representation, and multi-source marine information fusion.
[0003] S-100 is a new generation of universal hydrographic data model proposed by the International Hydrographic Organization (ITO). S-101 is an electronic nautical chart product specification based on the S-100 framework, designed for the production, exchange, display, and application of next-generation electronic nautical chart data. Compared to S-57, S-101 adopts a new specification system in terms of data model, element representation, attribute structure, spatial object organization, and product interoperability, and will serve as an important foundational product for next-generation electronic nautical charts. Since a large amount of existing electronic nautical chart data still exists in S-57 format, during the gradual promotion and application of the S-101 standard, it is necessary to convert existing S-57 electronic nautical chart data into target data that conforms to the S-101 expression requirements to meet the needs of electronic nautical chart data updates, standard migration, and next-generation maritime information service applications. Summary of the Invention
[0004] The technical problem to be solved by this invention is to provide a method for converting S-57 / S-101 electronic nautical chart data with intermediate semantic objects and streaming dual-track verification. This method can improve the consistency of source data semantic preservation and target element generation in complex mapping scenarios, improve the geometric closure and topological reliability in the target spatial object generation process, and improve the efficiency of synchronous verification, anomaly location and manual review in the conversion process.
[0005] The technical solution adopted by this invention to solve its technical problem is: to construct a method for converting S-57 / S-101 electronic nautical chart data with intermediate semantic objects and streaming dual-track verification, including the following steps: S1. Obtain the S-57 electronic nautical chart data to be converted, and parse the source landmark information, source attribute information, source spatial object information, spatial reference relationship, feature association relationship, topological relationship and metadata information. Combined with the S-101 feature catalog, attribute catalog and data coding rules, form an S-57 / S-101 conversion rule library for constraining target feature generation, attribute conversion, complex attribute assembly, spatial object reconstruction and anomaly handling. S2. Construct an intermediate semantic object using the S-57 source object as the basic processing unit. Associate the source object identifier, source attribute set, source spatial object set, spatial pointer relationship, feature association relationship, topological relationship, candidate transformation rule, matching rule, mapping mode, transformation status, verification status, and anomaly marker to the same intermediate semantic object. Determine the corresponding transformation rule and mapping mode based on the matching relationship between the intermediate semantic object and the transformation rule base. S3. Generate target elements, target attributes, target complex attributes, and target spatial objects for S-101 expression according to the transformation rules and mapping mode. Based on the reference order, direction identifier, continuity, closure, direction consistency of the source spatial objects, and the spatial association between the target elements and the target spatial objects, perform spatial geometric reconstruction and topological quality evaluation on the target spatial objects. S4. During the streaming processing of the source object S-57, the same intermediate semantic object is used synchronously for data transformation and verification processing. Anomaly markers are generated based on rule matching results, attribute transformation results, spatial topology quality evaluation results, dual-track synchronization status, and consistency verification results. The anomaly markers are then written back to the transformation and verification status of the intermediate semantic object to generate target data for S-101 expression and source data traceability indexes corresponding to the source object, transformation rules, target elements, and anomaly information.
[0006] According to the above scheme, the specific method for parsing the S-57 source data and preparing the conversion rules in step S1 includes the following steps: S101. Read the S-57 electronic nautical chart basic data file to be converted and its corresponding update file; during the file reading process, parse the dataset description record, dataset general information record, coordinate parameter record, feature record and spatial record; S102. When parsing feature records, the system takes each S-57 source object as the basic processing object and extracts the source object category code, long name identifier, attribute field set, spatial pointer field and feature association field. S103. When parsing spatial records, the system identifies point objects, edge objects, surface objects, and multi-point depth sounding objects respectively, and establishes independent indexes for each type of spatial object. S104. To ensure the use of spatial objects of a uniform scale in subsequent spatial geometric reconstruction, the coordinate multipliers in the coordinate parameter records are used. and 3D coordinate multiplier The original coordinate and depth values are restored. For two-dimensional coordinates, if the original latitude and longitude integer values recorded in the S-57 file are respectively and The actual coordinate values are then expressed as:
[0007] For depth measurements or 3D coordinate values, if the original integer value of the depth measurement is... The actual coordinate values are then expressed as:
[0008] In the formula, Represents coordinate multiplier. Represents three-dimensional coordinates or depth sounding multipliers; S105. After completing the parsing of the S-57 source data, read or import the S-101 feature catalog, attribute catalog and data coding rules, extract the target feature type, target attribute structure, target complex attribute structure, target spatial object type, feature relationship, spatial relationship and mandatory constraints, and construct the S-57 / S-101 electronic nautical chart data conversion rule library.
[0009] According to the above scheme, in S105, the conversion rules include rule number, source object category conditions, source attribute conditions, source geometric type conditions, spatial pointer conditions, feature association conditions, topological conditions, target feature type, target attribute structure, target complex attribute structure, target spatial object type, rule priority, and anomaly handling identifier, forming the S-57 / S-101 conversion rule library, which serves as the basis for subsequent intermediate semantic object construction and rule matching, providing unified constraints for target feature generation, target attribute conversion, complex attribute assembly, spatial object reconstruction, and anomaly handling.
[0010] According to the above scheme, the specific method for constructing the intermediate semantic object and matching rules in step S2 includes the following steps: S201, Regarding the first For each S-57 source marker, the source marker identifier, source marker category code, long name identifier, attribute field set, spatial object reference, spatial pointer field, feature association field, and topological relationship are read from the source marker record items formed in the first stage, and the corresponding intermediate semantic object is constructed. Specifically:
[0011] in, Indicates the source object identifier, Indicates the source object class code, Indicates a long name identifier. Represents a collection of attributes. Represents spatial geometric objects, Indicates the mapping mode, This indicates a space pointer field. Indicates the feature association field, Indicates topological relationships. This indicates the transformation rule number that was matched. Represents the set of candidate transformation rules. Indicates a state transition. Indicates the verification status. Indicates an anomaly flag; S202, Regarding the source attribute set Classify and organize the source space object collection. Organize types; topological relationships Generated based on spatial reference relationships; after processing, intermediate semantic objects... It includes the category and attribute information of the source object, as well as the relationship information between the source object and spatial objects, between the source object and other source objects, and between edge objects and nodes, providing complete input for subsequent rule matching; S203, In forming intermediate semantic objects Then, based on the source object class code Attribute set , and topological relations Candidate transformation rules are selected from the S-57 / S-101 transformation rule base to form a candidate transformation rule set. After filtering, the candidate conversion rule set is obtained. Save and the first Each source object has a transformation rule with potential matching relationships; S204, in the candidate transformation rule set Based on this, calculate the first The intermediate semantic object and the first Rule matching degree between candidate transformation rules The rule matching degree is used to determine which transformation rule should be used for the source object, and whether the mapping mode corresponding to the transformation rule is reliable; S205. Determine the mapping mode and abnormal state. After obtaining the matching degree of the candidate rules, select the transformation rule corresponding to the maximum matching degree as the priority matching rule. If the maximum matching degree is not lower than the preset matching threshold... Then write the corresponding rule number. And determine the state to be judged based on the mapping type of the rule. The mapping modes include one-to-one mapping, one-to-many decomposition mapping, many-to-one merging mapping, conditional mapping, and mapping without direct correspondence.
[0012] According to the above scheme, in step S203, the candidate rule screening includes the following judgments: First, determine the source identifier category. If the source identifier category condition in the conversion rule is consistent with... If a match is found, the rule is included in the candidate list; if the source object category does not match, the rule will not participate in the subsequent matching calculation of the source object. Second, source attribute condition judgment: if the attribute conditions required by the rule can be obtained from... If the required key attributes are obtained, or can be handled through default value completion, derived rules, or manual confirmation, then the rule is retained as a candidate rule; if the key attributes required by the rule are missing and there is no completion method, then the rule is not considered a priority candidate rule, and the missing attribute information is written into the system. The status is pending confirmation; Third, the source space object condition judgment: if the rule requires point objects, multi-point depth sounding objects, edge objects, face objects, or combinations thereof, and the spatial geometric objects are... If a corresponding spatial object exists in the list, the rule is retained; if the spatial object type does not meet the rule requirements, the rule is not included in the candidate set. Fourth, spatial pointer and feature association condition judgment; if the rule requires a complete spatial reference relationship, then check the spatial pointer field. Can the corresponding spatial object be located? If the rule requires the association between source objects, then check... or Is it possible to establish a link? Fifth, topological condition judgment: if the rule requires edge objects to be continuous, face objects to be closed, or boundary directions to meet specific conditions, then check... Does it contain the required edge sequence, node connection relationships, and direction information?
[0013] According to the above scheme, in step S204, the rule matching degree The formula is as follows:
[0014] In the formula , , , and They represent the first The transformation rules include source object category conditions, source attribute conditions, source geometry type conditions, spatial pointer conditions, feature association conditions, and topological conditions. This represents a function that takes the value 1 if the condition is met, and 0 otherwise. This represents the matching function between the source attribute set and the rule attribute conditions. , , , , , To match the weight coefficients, and satisfy:
[0015] in, Used to determine whether the source object category meets the rule requirements; To determine whether the source attribute set meets the attribute conditions required for generating the target feature; Used to determine whether the type of the source space object meets the generation conditions of the target space object; Used to determine whether spatial reference relationships meet the rule requirements; Used to determine whether the association relationship between source objects meets the rule requirements; Used to determine whether topological relationships meet the rule requirements.
[0016] According to the above scheme, the specific method for generating the S-101 target features and reconstructing the spatial topology in step S3 includes the following steps: S301, Regarding the first An intermediate semantic object, if the mapping pattern It has been determined in the second phase, according to Matching rule null value Generate the corresponding S-101 target feature type ; S302. According to the attribute mapping rules... Perform field name conversion, data type conversion, enumeration value recoding, unit conversion, and default value completion to obtain the target attribute set. The processing procedure is represented as follows:
[0017] In the formula, This represents an attribute conversion function, where Indicates the default value completion rule. This indicates the recoding rules for enumerated values. Indicate the unit conversion rules; S303. After completing the generation of target elements and attributes, based on the source spatial object set... Space pointer field Matching rules and target element type Determine the type of the target space object in S-101; S304. For a target curve, composite curve, or surface object composed of multiple edge objects, based on the space pointer field... The order and direction identifier of edge object references recorded in the data are used to construct the first... edge sequence:
[0018] in, Indicates the first Edge object, Represents the direction identifier of the edge object, defined The starting point after direction correction. Calculate the continuity of the edge sequence for the endpoint after direction correction. : S305. After constructing the edge sequence, calculate the edge sequence continuity score. :
[0019] In the formula, This represents a function that takes the value 1 if the condition is met, and 0 otherwise. Indicates the preset node connection tolerance; S306. Combine the spatial association consistency identifier between target elements and target spatial objects. The geometric topological quality value is calculated based on the continuity of the edge sequence, closure condition, directional consistency, and spatial correlation of the target elements. ,in:
[0020] In the formula, Geometric topological quality value Represents the continuity score of the edge sequence. Indicates the closure condition identifier. Indicates direction consistency. This indicates the spatial consistency identifier between target elements and target spatial objects. , , , Let be the weighting coefficient, and satisfy:
[0021] when When the value is not lower than the preset geometric topology threshold, establish the spatial relationship between the target element and the target spatial object. When the value is below the preset geometric and topological threshold, the corresponding target element will be marked as a geometric anomaly or a topological anomaly, and the anomaly type will be written into the transformation status and verification status.
[0022] According to the above scheme, in step S305, When the edge sequence satisfies the closure condition At that time, generate the S-101 face object, with the closure condition. Represented as:
[0023] Calculate directional consistency for closed edge sequences ,in:
[0024] In the formula, Represents the sequence of edges The directed area calculated from the corresponding coordinate sequence Indicates the direction of the boundary ring. This indicates a preset direction identifier determined by the boundary type of the target surface object.
[0025] According to the above scheme, the specific methods for streaming dual-track verification, anomaly rewriting, and traceability output in step S4 include the following steps: S401, Obtain the first object sequentially according to the reading order of the source object in S-57. Intermediate semantic objects and with intermediate semantic objects As a common input to both the data transformation track and the visualization verification track, the data transformation track is based on the intermediate semantic object. , , , , and , generate the first Target transformation results ,in:
[0026] In the formula, This indicates the transformation rule number that was matched. Indicates the type of target feature. Represents the set of target attributes for S-101. This represents the set of complex attributes of the S-101 target. Indicates the S-101 target space object. Indicates a state transition. Indicates the verification status; For the same Two types of processing are executed simultaneously: one is data transformation processing, which is used to confirm whether the target elements, target attributes, target complex attributes, and target spatial objects have been generated; the other is visual verification processing, which is used to generate transformation preview data, anomaly marker data, and verification prompt data based on the target transformation results. S402. Generate an anomaly marker based on the rule matching result, geometric topology quality value, synchronization trigger status, and verification status. Exception markers for each intermediate semantic object Represented as:
[0027] In the formula, This indicates the preset geometric topology quality threshold. Indicates a preset verification exception state; S403. Perform a consistency check on the target transformation result. Consistency verification score of each target transformation result Represented as:
[0028] In the formula, Indicates the integrity identifier of the element category. Indicates the completeness of required attributes. This indicates the validity of the enumerated value. Indicates the integrity identifier of complex attributes. Indicates consistency of association relationships. Indicates metadata consistency identifier, to To verify the weight coefficients, and satisfy:
[0029] when Not lower than the preset consistency threshold When the corresponding final target conversion result is marked as verified, and... Updated to verification passed status. Below the preset consistency threshold When this happens, the corresponding final target transformation result will be marked as a validation anomaly, and... Update to verify the abnormal status, and record the abnormal type, abnormal fields, source S-57 object identifier, S-101 target feature type and target spatial object information; S404. Based on the target element set, target spatial object set, target attribute set, relationship set, and metadata set of S-101, generate a target dataset oriented towards the expression of S-101.
[0030] According to the above scheme, in step S404, the first... Establish a source data traceability index for the final target transformation result. :
[0031] In the formula, Indicates the first The source data traceability index for the final target transformation result. This indicates the function for generating the trace index. Indicates the source object identifier, Indicates a long name identifier. Indicates the source object category code, This indicates a space pointer field. This indicates the transformation rule number that was matched. Mapping mode, Indicates the type of target element S-101. Indicates a state transition. Indicates the verification status. Indicates the verification status. Indicates the geometric topological quality value. This indicates an anomaly flag.
[0032] The S-57 / S-101 electronic nautical chart data conversion method using intermediate semantic objects and streaming dual-track verification according to the present invention has the following beneficial effects: 1. This invention can improve the consistency of source data semantic preservation and target element generation in complex mapping scenarios. It calculates the rule matching degree by source object category, attribute set, spatial object, spatial pointer relationship, element association relationship and topological relationship, and determines one-to-one mapping, one-to-many decomposition mapping, many-to-one merging mapping, conditional mapping or no direct correspondence mapping accordingly. The target element type determination, target attribute generation, complex attribute assembly and abnormal state marking can all be mapped to specific rule sources, thereby reducing the problems of source semantic loss, unclear basis for target element generation and inconsistent mapping results in complex mapping scenarios, and improving the semantic preservation capability and rule execution consistency in the S-57 / S-101 conversion process. 2. This invention can improve the geometric closure and topological reliability of target spatial objects during the generation process. For an edge sequence composed of multiple edge objects, it calculates the continuity, closure, directional consistency, and spatial association consistency of nodes, and forms a geometric topological quality value accordingly. When the geometric topological quality value meets a preset threshold, a spatial association relationship is established between the target element and the target spatial object; when the threshold is not met, the corresponding object is marked as a geometric anomaly or a topological anomaly. The target spatial object can complete the synchronous judgment of continuity, closure, directional consistency, and spatial binding relationship during the generation stage, which helps to improve the topological reliability of S-101 curve objects, composite curve objects, and surface objects. 3. This invention improves the efficiency of synchronous verification, anomaly location, and manual review during the conversion process. Anomaly markers are generated based on rule matching degree, geometric topology quality value, dual-track synchronous trigger status, and verification status, and are written back to the conversion status and verification status of intermediate semantic objects. Insufficient rule matching, missing attributes, geometric anomalies, topology anomalies, association anomalies, or metadata anomalies discovered during the conversion process can be synchronously entered into the anomaly marker layer, conversion process log, and conversion quality report. The source data traceability index further associates source object identifiers, LNAM, OBJL, FSPT, FFPT, matching rule number, mapping mode, S-101 target feature type, target spatial object, verification score, geometric topology quality value, and anomaly markers. When anomalies occur in target features, the corresponding source S-57 object, trigger rule, spatial pointer relationship, feature association relationship, and anomaly field can be directly located, thereby narrowing the scope of manual review and improving the efficiency of conversion anomaly location, quality feedback, and manual correction. Attached Figure Description
[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a flowchart of the method for converting S-57 / S-101 electronic nautical chart data between intermediate semantic objects and streaming dual-track verification according to the present invention; Figure 2 This is a schematic diagram of the S-57 electronic nautical chart data parsing and source landmark set construction of the present invention; Figure 3 This is a schematic diagram of the construction of the S-57 / S-101 conversion rule base and intermediate semantic model of the present invention; Figure 4 This is a schematic diagram of the geometric reconstruction of the S-57 spatial object to the S-101 spatial object of the present invention; Figure 5 This is a flowchart of the streaming processing, dual-track parallel visualization verification, and quality report generation process of this invention. Figure 6 This is a visual verification comparison chart of the S-57 electronic nautical chart and the converted S-101 target data of this invention; Figure 7 This is a comprehensive visualization verification map of target elements in electronic nautical charts after conversion according to the present invention. Detailed Implementation
[0034] To provide a clearer understanding of the technical features, objectives, and effects of the present invention, specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0035] like Figure 1-7 As shown, the method for converting intermediate semantic objects into S-57 / S-101 electronic nautical chart data using streaming dual-track verification according to the present invention includes the following steps: The preparation of S1 and S-57 source data parsing and transformation rules is as follows: S101 and S-57 electronic nautical chart data file reading and updating processing.
[0036] First, the S-57 electronic nautical chart base data file and its corresponding update file to be converted are read. The base data file provides complete source landmarks, attributes, spatial objects, and metadata information; the update file is used to incrementally correct the feature records, spatial records, and attribute records in the base data file.
[0037] When multiple update files exist, the update processes are executed sequentially in ascending order of update number. Each update applies to the source object set and spatial object set in the previous state, ensuring that the data participating in the subsequent transformation remains in the latest valid state. After the update is completed, S-101 target data is not generated directly; instead, an S-57 source data set to be transformed is first formed to provide input for subsequent source object parsing and intermediate semantic object construction.
[0038] During file reading, the dataset description record, dataset general information record, coordinate parameter record, feature record, and spatial record are parsed. The dataset description record and dataset general information record are used to obtain dataset identifier, version number, update number, coordinate datum, compilation scale, coverage area, and data quality information. The coordinate parameter record is used to obtain the coordinate multiplier COMF and the 3D coordinate multiplier SOMF. In IHO S-57 related documents, COMF is used as the coordinate multiplier, and SOMF is used as the 3D or depth sounding multiplier. For ENC data, depth values can be converted between integer values and actual depth values using SOMF.
[0039] S102. Extraction of source object, attribute field and associated field When parsing feature records, each S-57 source marker is used as the basic processing object to extract the source marker category code OBJL, long name identifier LNAM, attribute field set, spatial pointer field FSPT, and feature association field FFPT.
[0040] Among them, the category code OBJL is used to identify the category of the source object and is the basic field for subsequent category mapping rules and rule matching degree calculation; the long name identifier LNAM is used to identify the long name information of the source object and is an important index for subsequent source data tracing, anomaly location and manual review; the attribute field set is used for target attribute conversion, enumeration value recoding, unit conversion, default value completion and complex attribute assembly; the spatial pointer field FSPT is used to record the spatial reference relationship between the source object and point objects, edge objects, surface objects or multi-point depth sounding objects; and FFPT is used to record the logical association relationship between source objects.
[0041] S103, Spatial Object Resolution and Spatial Reference Relationship Establishment When parsing spatial records, point objects, edge objects, surface objects, and multi-point depth sounding objects are identified respectively, and independent indexes are established for each type of spatial object.
[0042] Point objects are used to store single spatial coordinates; edge objects are used to store the starting point, ending point, and intermediate coordinate sequences; surface objects express spatial extent through closed boundaries; multi-point sounding objects are used to store the planar coordinates and corresponding depth values of multiple sounding points. For each source object, a spatial reference relationship between the source object and the spatial object is established based on the spatial pointer field FSPT. If a source object references multiple edge objects, the reference order and direction identifier of the edge objects are preserved, providing a basis for subsequent reconstruction of composite curve objects and surface objects.
[0043] Simultaneously, feature relationships between source objects are established based on the Spatial Pointer Field (FFPT) or Long Name Identifier (LNA) information. These feature relationships are used for subsequent determinations regarding many-to-one merging mapping, conditional mapping, preservation of target feature relationships, and anomaly tracing.
[0044] S104, Coordinate values, depth values, and spatial scale standardization. To ensure that spatial objects of a uniform scale are used in subsequent spatial geometric reconstructions, coordinate multipliers are recorded based on the coordinate parameters. and 3D coordinate multiplier The original coordinate values and depth values are restored.
[0045] For two-dimensional coordinates, if the original latitude and longitude integer values recorded in the S-57 file are respectively and The actual coordinate values are then expressed as:
[0046] For depth measurements or 3D coordinate values, if the original integer value of the depth measurement is... The actual coordinate values can then be expressed as:
[0047] In the formula, Represents coordinate multiplier. This indicates the 3D coordinates or depth multiplier. If an update file does not specify the 3D coordinates or depth multiplier separately, this will be ignored. or Then, the corresponding multipliers in the base data file are used. After the restoration process, point objects, edge objects, surface objects, and multi-point depth sounding objects all enter the source spatial object set under a unified spatial scale, providing a foundation for the subsequent generation of S-101 point objects, multi-point objects, curve objects, composite curve objects, and surface objects.
[0048] Construction of S105 and S-57 / S-101 conversion rule base After completing the parsing of S-57 source data, read or import the S-101 feature catalog, attribute catalog and data coding rules, extract the target feature type, target attribute structure, target complex attribute structure, target spatial object type, feature relationship, spatial relationship and mandatory constraints, and construct the S-57 / S-101 electronic nautical chart data conversion rule library accordingly.
[0049] The transformation rule base provides a unified basis for subsequent intermediate semantic object rule matching, target feature generation, target attribute transformation, complex attribute assembly, spatial object reconstruction, topological constraint judgment, and anomaly handling. This rule base includes at least category mapping rules, attribute mapping rules, complex attribute assembly rules, spatial object mapping rules, topological constraint rules, metadata mapping rules, and anomaly handling rules.
[0050] Among them, the category mapping rule is used to determine the correspondence between the S-57 source object category and the S-101 target feature type. The mapping types include direct mapping, conditional mapping, one-to-many decomposition mapping, many-to-one merging mapping, renaming mapping, extended mapping, and mapping without direct correspondence; the attribute mapping rule is used to complete the field conversion from source attribute to target attribute, enumeration value recoding, unit conversion, and default value completion; the complex attribute assembly rule is used to combine the source attribute value, the converted attribute value, the derived attribute value, and the default supplementary value into the target complex attribute according to the S-101 target complex attribute structure; the spatial object mapping rule is used to constrain S-5 The rules define the conversion of 7-point objects, multi-point depth sounding objects, edge objects, and polygon objects into S-101 point objects, multi-point objects, curve objects, composite curve objects, or polygon objects; topological constraint rules are used to constrain the connection order of edge objects, node continuity, polygon object closure, boundary direction consistency, and spatial association consistency between target features and target spatial objects; metadata mapping rules are used to retain dataset identifiers, version numbers, update numbers, coordinate datums, compilation scales, coverage areas, and data quality information; and anomaly handling rules are used to specify how to handle rule matching failures, missing attributes, missing spatial references, topological anomalies, or incomplete metadata.
[0051] Each transformation rule includes a rule number, source object category conditions, source attribute conditions, source geometry type conditions, spatial pointer conditions, feature association conditions, topology conditions, target feature type, target attribute structure, target complex attribute structure, target spatial object type, rule priority, and anomaly handling identifier. The rule number is used for subsequent traceability; the rule priority is used to determine the priority matching rule when multiple candidate rules are simultaneously satisfied; and the anomaly handling identifier indicates whether the corresponding source object will enter the auto-completion, anomaly marking, error recording, or manual confirmation process. After the above processing, the resulting transformation rule base serves as the basis for subsequent intermediate semantic object rule matching, target feature generation, and anomaly status updates.
[0052] S106. Structured storage of transformation rules Each transformation rule must include at least the rule number, source object category conditions, source attribute conditions, source geometry type conditions, spatial pointer conditions, feature association conditions, topology conditions, target feature type, target attribute structure, target complex attribute structure, target spatial object type, rule priority, and anomaly handling identifier.
[0053] Among them, the rule number is used for subsequent tracing; the source object category condition is used to determine whether the source object category code OBJL meets the rule; the source attribute condition is used to determine whether the source attribute set meets the target feature generation requirements; the source geometry type condition is used to determine whether point objects, edge objects, polygon objects, or multi-point depth sounding objects are applicable to the rule; the spatial pointer condition is used to determine whether the spatial pointer field FSPT reference relationship is complete; the feature association condition is used to determine whether the feature association field FFPT or long name identifier LNAM association relationship meets the rule; the topology condition is used to determine whether the edge sequence, closure, and spatial association relationship meet the target expression requirements; the rule priority is used to determine the priority matching rule when multiple candidate rules are met simultaneously; and the anomaly handling indicator is used to indicate the processing path when matching fails, attributes are missing, spatial references are missing, or topology anomalies occur.
[0054] After the above processing, the S-57 / S-101 transformation rule base is formed. This rule base serves as the basis for subsequent intermediate semantic object construction and rule matching, and also provides unified constraints for target element generation, target attribute transformation, complex attribute assembly, spatial object reconstruction, and anomaly handling.
[0055] S2, intermediate semantic object construction and rule matching, specifically: S201, Initialization of intermediate semantic objects For the For each S-57 source marker, the source marker identifier, source marker category code, long name identifier, attribute field set, spatial object reference, spatial pointer field, feature association field, and topological relationship are read from the source marker record items formed in the first stage, and the corresponding intermediate semantic object is constructed. ,in:
[0056] in, Indicates the source object identifier, Indicates the source object class code, Indicates a long name identifier. Represents a collection of attributes. Represents spatial geometric objects, Indicates the mapping mode, This indicates a space pointer field. Indicates the feature association field, Indicates topological relationships. This indicates the transformation rule number that was matched. Represents the set of candidate transformation rules. Indicates a state transition. Indicates the verification status. This indicates an anomaly flag.
[0057] in, and From S-57 feature record; From S-57 space records and their spatial object indexes; according to The spatial object reference order, edge object direction identifiers, node connection relationships, and face object closure relationships are generated. In the initial state, An empty set It is an empty value. Set to the pending state. Set to pending conversion state. Set to pending verification status. Set to a state without any abnormalities.
[0058] The intermediate semantic object does not serve as a temporary cache for source fields, but rather organizes the source semantics, spatial references, relationships, topological relationships, rule matching results, and status markers required for subsequent transformations into a single object. Any subsequent target feature, target attribute, target spatial object, anomaly marker, or retrospective index uses this intermediate semantic object as its source basis.
[0059] S202, Attribute Sets, Spatial Object Sets, and Topological Relationship Organization Build Then, for the source attribute set The source attributes are categorized and organized. The source attribute set is divided into simple attributes, enumerated attributes, source items for complex attributes to be assembled, and metadata attributes. Simple attributes are used for subsequent field name conversion and data type conversion; enumerated attributes are used for subsequent enumeration value recoding; source items for complex attributes to be assembled are used for subsequent S-101 complex attribute construction; and metadata attributes are used for subsequent target metadata generation and consistency verification.
[0060] At the same time, for the source space object collection Perform type sorting. If the source object passes... If a point object is referenced, then that point object is written to... A subset of point objects; if referencing a multi-point sounding object, the coordinates of the sounding points and their corresponding depth values are written to... A subset of multi-point objects; if an edge object is referenced, the edge object number, start point, end point, intermediate coordinate sequence and direction identifier are retained; if a face object or closed boundary is referenced, the edge object sequence and boundary direction information required to form the face object are recorded.
[0061] Topological relationships Generated based on the spatial reference relationships described above. For a single point object, Record its spatial binding relationship with the source object; for edge objects, Record the start and end nodes and direction identifiers of the edge objects; for an edge sequence consisting of multiple edge objects, Record the reference order of edge objects, the connection relationships between adjacent edges, and potential closure relationships; for multi-point depth sounding objects, Record the overall spatial attribution relationship between the set of sounding points and the source landmark.
[0062] After this treatment It not only includes the category and attribute information of the source object, but also the relationship information between the source object and spatial objects, between the source object and other source objects, and between edge objects and nodes, providing complete input for subsequent rule matching.
[0063] S203, Candidate Transformation Rule Filtering In forming intermediate semantic objects Then, based on the source object category code Source attribute set Space pointer field and topological relations Candidate transformation rules are selected from the S-57 / S-101 transformation rule base to form a candidate transformation rule set. .
[0064] Candidate rule filtering should include at least the following criteria: First, determine the source object category. If the source object category condition in the transformation rule is consistent with... If a match is found, the rule is included in the candidate list; if the source object category does not match, the rule will not participate in the subsequent matching calculation of the source object.
[0065] Second, source attribute condition judgment. If the attribute conditions required by the rule can be obtained from... If the required key attributes are obtained, or can be handled through default value completion, derived rules, or manual confirmation, then the rule is retained as a candidate rule; if the key attributes required by the rule are missing and there is no completion method, then the rule is not considered a priority candidate rule, and the missing attribute information is written into the system. The status is pending confirmation.
[0066] Third, source space object condition judgment. If the rule requires point objects, multi-point depth sounding objects, edge objects, face objects, or combinations thereof, and If a corresponding spatial object exists in the list, the rule is retained; if the spatial object type does not meet the rule requirements, the rule is not included in the candidate set.
[0067] Fourth, spatial pointer and feature association condition judgment. If the rule requires a complete spatial reference relationship, then check... Can the corresponding spatial object be located? If the rule requires the association relationship between source objects, then check the feature association field. or long name identifier Can a link be established? If spatial references or feature relationships are missing, the corresponding exception will be written to the status field of the intermediate semantic object for subsequent exception marking.
[0068] Fifth, topological condition judgment. If the rule requires edge objects to be continuous, face objects to be closed, or boundary directions to meet specific conditions, then check... Does it contain the required edge sequence, node connectivity, and direction information? Topological conditions that cannot be determined during the candidate selection stage are reserved for further calculation in the subsequent spatial geometry reconstruction stage.
[0069] After the above screening process Save and the first Each source object has a transformation rule with potential matching relationships. This step reduces the scope of subsequent rule matching calculations and ensures that all rules entering the matching calculation have a clear source object category, attribute, spatial object, or association condition basis.
[0070] S204, Rule Matching Degree Calculation In the candidate transformation rule set Based on this, calculate the first The intermediate semantic object and the first Rule matching degree between candidate transformation rules Rule matching degree is used to determine which transformation rule should be used for the source object, and whether the mapping mode corresponding to the transformation rule is reliable.
[0071]
[0072] In the formula , , , and They represent the first The transformation rules include source object category conditions, source attribute conditions, source geometry type conditions, spatial pointer conditions, feature association conditions, and topological conditions. This represents a function that takes the value 1 if the condition is met, and 0 otherwise. This represents the matching function between the source attribute set and the rule attribute conditions. , , , , , To match the weight coefficients, and satisfy:
[0073] in, Used to determine whether the source object category meets the rule requirements; To determine whether the source attribute set meets the attribute conditions required for generating the target feature; Used to determine whether the type of the source space object meets the generation conditions of the target space object; Used to determine whether spatial reference relationships meet the rule requirements; Used to determine whether the association relationship between source objects meets the rule requirements; Used to determine whether topological relationships meet the rule requirements.
[0074] This matching score is not a single-category mapping score, but a comprehensive rule-based matching result that simultaneously considers source object category, attributes, spatial objects, spatial pointers, feature associations, and topological relationships. This calculation avoids the problems that arise when directly determining the target feature type based solely on the OBJL lookup table, which cannot handle conditional mappings, one-to-many decomposition mappings, many-to-one merging mappings, and mappings without direct correspondence.
[0075] S205, Determine the mapping mode and abnormal status. After obtaining the matching scores of candidate rules, the transformation rule corresponding to the highest matching score is selected as the priority matching rule. If the highest matching score is not lower than a preset matching threshold... Then write the corresponding rule number. And determine the mapping type according to the rule. Mapping patterns include at least one-to-one mapping, one-to-many decomposition mapping, many-to-one merging mapping, conditional mapping, and mapping with no direct correspondence.
[0076] when When it is a one-to-one mapping, it represents the first... An intermediate semantic object generates an S-101 target feature in a subsequent stage; when When it is a one-to-many decomposition mapping, it represents the first... An intermediate semantic object generates multiple S-101 target features based on attribute conditions, spatial conditions, or management semantic conditions; when When it is a many-to-one merge mapping, it represents the first... Each intermediate semantic object needs to work with other intermediate semantic objects to generate an S-101 target feature; when When used for conditional mapping, it indicates that the target feature type needs to be further determined based on attributes, spatial objects, or topological conditions; when When there is no direct corresponding mapping, it means that the source object cannot directly generate a definite S-101 target element and needs to enter the process of waiting for manual confirmation or exception handling.
[0077] If the maximum matching degree is lower than the preset matching threshold In this case, the target element will not be forcibly generated, but will be... Set to no direct mapping or pending manual confirmation. Update to a rule-matching insufficiency status and write the corresponding exception.
[0078] If there are at least two candidates rule The matching degree is no less than If the difference between the highest and second-highest matching scores is less than the preset conflict threshold, then... The relevant candidate rules will be retained. Update to a rule conflict state, and Update the status to "Pending Review" and mark the source object as "Pending Manual Confirmation." This avoids directly outputting incorrect target elements when the rule basis is insufficient.
[0079] If a rule match is successful but there are compensable defects in the source attribute, spatial reference, feature association, or topological conditions, then... and Retain, and at the same time Updated to a matched but pending completion status. This status will continue to be used in subsequent target attribute generation, spatial object reconstruction, and consistency verification phases.
[0080] The generation of target elements and spatial topology reconstruction for S3 and S-101 are as follows: S301. Determination of Target Element Type For the An intermediate semantic object, if its mapping pattern As determined in the second phase, then according to Matching rules Generate the corresponding S-101 target feature type .
[0081] when When it is a one-to-one mapping, an intermediate semantic object generates an S-101 target feature; when In a one-to-many decomposition mapping, an intermediate semantic object generates multiple S-101 target features based on attribute conditions, spatial conditions, or management semantic conditions. These multiple target features share the same source object identifier. and long name identifier ;when When performing a many-to-one merge mapping, multiple intermediate semantic objects are determined according to... , Or spatial topological relationships together generate a single S-101 target feature; when When performing conditional mapping, the target feature type is jointly determined by the source attribute values, source geometric type, spatial pointer relationships, feature association relationships, or topological conditions; when When there is no direct corresponding mapping or the mapping needs to be manually confirmed, the target element is not automatically generated, and the corresponding object is retained as an item to be manually confirmed.
[0082] S302, Target Attribute Transformation and Complex Attribute Assembly According to the attribute mapping rules Perform field name conversion, data type conversion, enumeration value recoding, unit conversion, and default value completion to obtain the target attribute set. Attribute conversion includes at least field name conversion, data type conversion, enumeration value recoding, unit conversion, and default value completion. The process is represented as follows:
[0083] In the formula, This represents an attribute conversion function, where Indicates the default value completion rule. This indicates the recoding rules for enumerated values. Indicates unit conversion rules.
[0084] When the S-101 target feature contains complex attributes, the source attribute fields, derived attribute values, and default supplementary values are assembled into a complex attribute set according to the target complex attribute structure. :
[0085] In the formula, This represents a function for assembling complex attributes.
[0086] When source attributes are missing, enumeration values do not match, geometric types do not meet conversion conditions, or direct mapping rules do not exist, the corresponding target features are marked as autocomplete items, conflict items, or items awaiting manual confirmation, and the conversion status is updated. and exception markers .
[0087] S303. Determining the type of target space object After generating the target features and attributes, based on the source spatial object set Space pointer field Matching rules and target element type Determine the target space object type for S-101. The target space object type includes at least point objects, multi-point objects, curve objects, composite curve objects, and surface objects.
[0088] when When the object contains a point object, its restored latitude and longitude coordinates are read to generate an S-101 point object; when When a multi-point sounding object is included, the planar coordinates and depth values of the sounding points are read simultaneously to generate an S-101 multi-point object containing both coordinates and depth values; when When a single edge object is included, an S-101 curve object is generated based on the start point, end point, intermediate coordinate sequence, and direction identifier of that edge object; when... When multiple edge objects are referenced consecutively, an S-101 composite curve object is generated based on the reference order and direction identifier of the edge objects; when the edge sequence satisfies the closure condition, an S-101 surface object is further generated.
[0089] S304, Side Sequence Organization and Direction Correction For a target curve, composite curve, or surface object composed of multiple edge objects, according to The order and direction identifier of edge object references recorded in the data are used to construct the first... edge sequence:
[0090] in Indicates the first Edge object, Represents the direction identifier of the edge object, defined The starting point after direction correction. Calculate the continuity of the edge sequence for the endpoint after direction correction. : This process ensures that the connection determination of edge objects no longer relies solely on the edge object number, but also considers the reference order and direction identifier of the edge objects, providing a foundation for subsequent judgments on continuity, closure, and direction consistency.
[0091] S305. Judgment of edge sequence continuity, closure and direction consistency. After constructing the edge sequence, calculate the edge sequence continuity score. :
[0092] In the formula, This represents a function that takes the value 1 if the condition is met, and 0 otherwise. This indicates the preset node connection tolerance.
[0093] When the edge sequence satisfies the closure condition At that time, generate the S-101 face object, with the closure condition. Represented as:
[0094] Calculate directional consistency for closed edge sequences ,in:
[0095] In the formula, Represents the sequence of edges The directed area calculated from the corresponding coordinate sequence Indicates the direction of the boundary ring. This indicates a preset direction identifier determined by the boundary type of the target surface object.
[0096] The three judgments mentioned above correspond to whether the edge object is continuous, whether the boundary is closed, and whether the boundary direction meets the requirements of the target object, respectively. If the continuity, closure, or directional consistency requirements are not met, the target spatial object is not directly confirmed as valid, but the corresponding object is marked as a candidate for geometric anomaly or topological anomaly.
[0097] S306, Calculation of Geometric Topological Quality Values and Confirmation of Target Spatial Objects After completing the judgments on continuity, closure, and directional consistency, and combining the spatial association consistency identifiers between the target elements and the target spatial objects, The geometric topological quality value is calculated based on the continuity of the edge sequence, closure condition, directional consistency, and spatial correlation of the target elements. ,in:
[0098] In the formula, This indicates the spatial consistency identifier between target elements and target spatial objects. , , , Let be the weighting coefficient, and satisfy:
[0099] when When the value is not lower than the preset geometric topology threshold, establish the spatial relationship between the target element and the target spatial object. When the value is below the preset geometric and topological threshold, the corresponding target element will be marked as a geometric anomaly or a topological anomaly, and the anomaly type will be written into the transformation status and verification status.
[0100] S4, streaming dual-track verification, exception rewriting and traceable output, specifically: S401, Flow Dual-Track Processing According to the reading order of the S-57 source targets, the first... Intermediate semantic objects and with intermediate semantic objects It serves as the common input for both the data transformation track and the visualization verification track. In the data transformation track, according to... , , , , and , generate the first Target transformation results ,in:
[0101] For the same Two types of processing are executed simultaneously: one is data transformation processing, used to confirm whether the target elements, target attributes, target complex attributes, and target spatial objects have been successfully generated; the other is visual verification processing, used to generate transformation preview data, anomaly marker data, and verification prompt data based on the target transformation results. Both types of processing use the same intermediate semantic object as input, ensuring that the transformation results, verification results, and anomaly states maintain a common source correspondence.
[0102] To determine whether the two types of processing are completed synchronously, a synchronization trigger state is defined. :
[0103] In the formula, This indicates that the data conversion track has completed the first step. The final target transformation result output, This indicates that the visual verification track has completed its first step. A visual verification result output, This represents a function that takes the value 1 if the condition is met, and 0 otherwise. When =1, it indicates that the dual-track processing of this intermediate semantic object is completed synchronously; when When =0, it indicates an abnormal situation where the conversion output or verification output has not been completed.
[0104] S402, Exception Marker Generation and State Reversal Anomaly markers are generated based on rule matching results, geometric topology quality values, synchronization trigger status, and verification status. Exception markers for each intermediate semantic object Represented as:
[0105] In the formula, This indicates the preset geometric topology quality threshold. This indicates the preset verification exception status.
[0106] when When, update the transformation state of the corresponding intermediate semantic object to be mapped or completed. When the conversion status of the corresponding intermediate semantic object is updated to pending manual confirmation or conversion exception, the exception type is written to the exception tag layer, conversion process log and conversion quality report.
[0107] S403, Consistency Verification Scoring After anomaly markers are generated, a consistency check is performed on the target transformation results. The check includes at least the completeness of target feature categories, the completeness of required attributes, the validity of enumerated values, the completeness of complex attributes, geometric topological quality, consistency of relationships, and consistency of metadata. Consistency verification score of each target transformation result Represented as:
[0108] In the formula, Indicates the integrity identifier of the element category. Indicates the completeness of required attributes. This indicates the validity of the enumerated value. Indicates the integrity identifier of complex attributes. Indicates consistency of association relationships. Indicates metadata consistency identifier, to To verify the weight coefficients, and satisfy:
[0109] when Not lower than the preset consistency threshold When the corresponding final target conversion result is marked as verified, and... Updated to verification passed status. Below the preset consistency threshold When this happens, the corresponding final target transformation result will be marked as a validation anomaly, and... Update to verify the abnormal status, and record the abnormal type, abnormal fields, source S-57 object identifier, S-101 target feature type and target spatial object information.
[0110] Based on consistency verification score , and The conversion results are divided into successful conversion items, auto-complete items, conditional mapping items, conflict items, error items, and items awaiting manual confirmation.
[0111] S404, Source Data Traceability Index Generation Based on the S-101 target feature set, target spatial object set, target attribute set, relationship set, and metadata set, generate a target dataset oriented towards S-101 expression.
[0112] For the first Establish a source data traceability index for the final target transformation result. :
[0113] In the formula, Indicates the first The source data traceability index for the final target transformation result. This indicates the function for generating the trace index. When an S-101 target feature is generated by merging multiple intermediate semantic objects... In , , , ,and It is in set form; when an intermediate semantic object is decomposed into multiple S-101 target elements, multiple Share the same source object identifier and record the target element decomposition sequence number.
[0114] This invention constructs an intermediate semantic object using S-57 source objects as the basic transformation unit, organizing source object identifiers, OBJL, LNAM, attribute sets, spatial object sets, FSPT, FFPT, topological relationships, candidate transformation rules, matching rule numbers, mapping modes, transformation status, verification status, and anomaly markers within the same data object. Thus, source objects, source attributes, spatial reference relationships, feature association relationships, transformation rules, and target features are no longer processed in a scattered manner, but rather form a continuous chain of associations within the same transformation object. In the target spatial object generation stage, this invention performs categorized reconstruction of source spatial objects: point objects generate S-101 point objects, multi-point depth sounding objects generate S-101 multi-point objects containing planar coordinates and depth values, edge objects generate S-101 curve objects based on start, end, and direction identifiers, and multiple consecutively referenced edge objects generate S-101 combined curve objects or surface objects according to their reference order and direction identifiers. Through this reconstruction method, spatial object transformation no longer stops at the level of geometric shape transfer, but incorporates the reference order, directional relationships, and spatial semantics of source spatial objects into the target spatial object generation process. In the S-57 source object streaming process, this invention synchronously inputs the same intermediate semantic object into the data transformation track and the visualization verification track. The data transformation track is responsible for generating S-101 target features, target attributes, complex attributes, and target spatial objects; the visualization verification track is responsible for generating the transformation preview layer, anomaly marker layer, and verification prompt information. The two processing tracks share the same intermediate semantic object, ensuring that the target transformation results, verification results, and anomaly markers have a common data source, thus preventing a disconnect between the transformation results and the verification results.
[0115] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification, characterized in that, Includes the following steps: S1. Obtain the S-57 electronic nautical chart data to be converted, and parse the source landmark information, source attribute information, source spatial object information, spatial reference relationship, feature association relationship, topological relationship and metadata information. Combined with the S-101 feature catalog, attribute catalog and data coding rules, form an S-57 / S-101 conversion rule library for constraining target feature generation, attribute conversion, complex attribute assembly, spatial object reconstruction and anomaly handling. S2. Construct an intermediate semantic object using the S-57 source object as the basic processing unit. Associate the source object identifier, source attribute set, source spatial object set, spatial pointer relationship, feature association relationship, topological relationship, candidate transformation rule, matching rule, mapping mode, transformation status, verification status, and anomaly marker to the same intermediate semantic object. Determine the corresponding transformation rule and mapping mode based on the matching relationship between the intermediate semantic object and the transformation rule base. S3. Generate target elements, target attributes, target complex attributes, and target spatial objects for S-101 expression according to the transformation rules and mapping mode. Based on the reference order, direction identifier, continuity, closure, direction consistency of the source spatial objects, and the spatial association between the target elements and the target spatial objects, perform spatial geometric reconstruction and topological quality evaluation on the target spatial objects. S4. During the streaming processing of the source object S-57, the same intermediate semantic object is used synchronously for data transformation and verification processing. Anomaly markers are generated based on rule matching results, attribute transformation results, spatial topology quality evaluation results, dual-track synchronization status, and consistency verification results. The anomaly markers are then written back to the transformation and verification status of the intermediate semantic object to generate target data for S-101 expression and source data traceability indexes corresponding to the source object, transformation rules, target elements, and anomaly information.
2. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 1, characterized in that, In step S1, the specific method for parsing the S-57 source data and preparing the transformation rules includes the following steps: S101. Read the S-57 electronic nautical chart basic data file to be converted and its corresponding update file; during the file reading process, parse the dataset description record, dataset general information record, coordinate parameter record, feature record and spatial record; S102. When parsing feature records, the system takes each S-57 source object as the basic processing object and extracts the source object category code, long name identifier, attribute field set, spatial pointer field and feature association field. S103. When parsing spatial records, the system identifies point objects, edge objects, surface objects, and multi-point depth sounding objects respectively, and establishes independent indexes for each type of spatial object. S104. To ensure the use of spatial objects of a uniform scale in subsequent spatial geometric reconstruction, the coordinate multipliers in the coordinate parameter records are used. and 3D coordinate multiplier The original coordinate and depth values are restored. For two-dimensional coordinates, if the original latitude and longitude integer values recorded in the S-57 file are respectively and The actual coordinate values are then expressed as: For depth measurements or 3D coordinate values, if the original integer value of the depth measurement is... The actual coordinate values are then expressed as: In the formula, Represents coordinate multiplier. Represents three-dimensional coordinates or depth sounding multipliers; S105. After completing the parsing of the S-57 source data, read or import the S-101 feature catalog, attribute catalog and data coding rules, extract the target feature type, target attribute structure, target complex attribute structure, target spatial object type, feature relationship, spatial relationship and mandatory constraints, and construct the S-57 / S-101 electronic nautical chart data conversion rule library.
3. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 2, characterized in that, In step S105, the conversion rules include rule number, source object category conditions, source attribute conditions, source geometric type conditions, spatial pointer conditions, feature association conditions, topological conditions, target feature type, target attribute structure, target complex attribute structure, target spatial object type, rule priority, and anomaly handling identifier, forming the S-57 / S-101 conversion rule library. This library serves as the basis for subsequent intermediate semantic object construction and rule matching, providing unified constraints for target feature generation, target attribute conversion, complex attribute assembly, spatial object reconstruction, and anomaly handling.
4. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 1, characterized in that, In step S2, the specific method for constructing the intermediate semantic object and matching rules includes the following steps: S201, Regarding the first For each S-57 source marker, the source marker identifier, source marker category code, long name identifier, attribute field set, spatial object reference, spatial pointer field, feature association field, and topological relationship are read from the source marker record items formed in the first stage, and the corresponding intermediate semantic object is constructed. Specifically: in, Indicates the source object identifier, Indicates the source object class code, Indicates a long name identifier. Represents a collection of attributes. Represents spatial geometric objects, Indicates the mapping mode. Represents a space pointer field. Indicates the feature association field, Indicates topological relationships. This indicates the transformation rule number that was matched. Represents the set of candidate transformation rules. Indicates a state transition. Indicates the verification status. Indicates an anomaly flag; S202, Regarding the source attribute set Classify and organize the source space object collection. Organize types; topological relationships Generated based on spatial reference relationships; after processing, intermediate semantic objects... It includes the category and attribute information of the source object, as well as the relationship information between the source object and spatial objects, between the source object and other source objects, and between edge objects and nodes, providing complete input for subsequent rule matching; S203, In forming intermediate semantic objects Then, based on the source object class code Attribute set , and topological relations Candidate transformation rules are selected from the S-57 / S-101 transformation rule base to form a candidate transformation rule set. After filtering, the candidate conversion rule set is obtained. Save and the first Each source object has a transformation rule with potential matching relationships; S204, in the candidate transformation rule set Based on this, calculate the first The intermediate semantic object and the first Rule matching degree between candidate transformation rules The rule matching degree is used to determine which transformation rule should be used for the source object, and whether the mapping mode corresponding to the transformation rule is reliable; S205. Determine the mapping mode and abnormal state. After obtaining the matching degree of the candidate rules, select the transformation rule corresponding to the maximum matching degree as the priority matching rule. If the maximum matching degree is not lower than the preset matching threshold... Then write the corresponding rule number. And determine the state to be judged based on the mapping type of the rule. The mapping modes include one-to-one mapping, one-to-many decomposition mapping, many-to-one merging mapping, conditional mapping, and mapping without direct correspondence.
5. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 4, characterized in that, In step S203, the candidate rule filtering includes the following judgments: First, determine the source identifier category. If the source identifier category condition in the conversion rule is consistent with... If a match is found, the rule is included in the candidate list; if the source object category does not match, the rule will not participate in the subsequent matching calculation of the source object. Second, source attribute condition judgment: if the attribute conditions required by the rule can be obtained from... If the required key attributes are obtained, or can be handled through default value completion, derived rules, or manual confirmation, then the rule is retained as a candidate rule; if the key attributes required by the rule are missing and there is no completion method, then the rule is not considered a priority candidate rule, and the missing attribute information is written into the system. The status is pending confirmation; Third, the source space object condition judgment: if the rule requires point objects, multi-point depth sounding objects, edge objects, face objects, or combinations thereof, and the spatial geometric objects are... If a corresponding spatial object exists in the table, the rule is retained. If the type of the spatial object does not meet the rule requirements, then the rule will not be included in the candidate set; Fourth, spatial pointer and feature association condition judgment; if the rule requires a complete spatial reference relationship, then check the spatial pointer field. Can the corresponding spatial object be located? If the rule requires the association between source objects, then check... or Is it possible to establish a link? Fifth, topological condition judgment: if the rule requires edge objects to be continuous, face objects to be closed, or boundary directions to meet specific conditions, then check... Does it contain the required edge sequence, node connection relationships, and direction information? 6. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 4, characterized in that, In step S204, the rule matching degree The formula is as follows: In the formula , , , and They represent the first The transformation rules include source object category conditions, source attribute conditions, source geometry type conditions, spatial pointer conditions, feature association conditions, and topological conditions. This represents a function that takes the value 1 if the condition is met, and 0 otherwise. This represents the matching function between the source attribute set and the rule attribute conditions. , , , , , To match the weight coefficients, and satisfy: in, Used to determine whether the source object category meets the rule requirements; To determine whether the source attribute set meets the attribute conditions required for generating the target feature; Used to determine whether the type of the source space object meets the generation conditions of the target space object; Used to determine whether spatial reference relationships meet the rule requirements; Used to determine whether the association relationship between source objects meets the rule requirements; Used to determine whether topological relationships meet the rule requirements.
7. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 1, characterized in that, In step S3, the specific method for generating the S-101 target features and reconstructing the spatial topology includes the following steps: S301, Regarding the first An intermediate semantic object, if the mapping pattern It has been determined in the second phase, according to Matching rule null value Generate the corresponding S-101 target feature type ; S302. According to the attribute mapping rules... Perform field name conversion, data type conversion, enumeration value recoding, unit conversion, and default value completion to obtain the target attribute set. The processing procedure is represented as follows: In the formula, This represents an attribute conversion function, where Indicates the default value completion rule. This indicates the recoding rules for enumerated values. Indicate the unit conversion rules; S303. After completing the generation of target elements and attributes, based on the source spatial object set... Space pointer field Matching rules and target element type Determine the type of the target space object in S-101; S304. For a target curve, composite curve, or surface object composed of multiple edge objects, based on the space pointer field... The order and direction identifier of edge object references recorded in the data are used to construct the first... edge sequence: in, Indicates the first Edge object, Represents the direction identifier of the edge object, defined The starting point after direction correction. Calculate the continuity of the edge sequence for the endpoint after direction correction. : S305. After constructing the edge sequence, calculate the edge sequence continuity score. : In the formula, This represents a function that takes the value 1 if the condition is met, and 0 otherwise. Indicates the preset node connection tolerance; S306. Combine the spatial association consistency identifier between target elements and target spatial objects. The geometric topological quality value is calculated based on the continuity of the edge sequence, closure condition, directional consistency, and spatial correlation of the target elements. ,in: In the formula, Geometric topological quality value Represents the continuity score of the edge sequence. Indicates the closure condition identifier. Indicates direction consistency. This indicates the spatial consistency identifier between target elements and target spatial objects. , , , Let be the weighting coefficients, and satisfy: when When the value is not lower than the preset geometric topology threshold, establish the spatial relationship between the target element and the target spatial object. When the value is below the preset geometric and topological threshold, the corresponding target element will be marked as a geometric anomaly or a topological anomaly, and the anomaly type will be written into the transformation status and verification status.
8. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 7, characterized in that, In step S305 When the edge sequence satisfies the closure condition At that time, generate the S-101 face object, with the closure condition. Represented as: Calculate directional consistency for closed edge sequences ,in: In the formula, Represents the sequence of edges The directed area calculated from the corresponding coordinate sequence Indicates the direction of the boundary ring. This indicates a preset direction identifier determined by the boundary type of the target surface object.
9. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 1, characterized in that, In step S4, the specific methods for streaming dual-track verification, anomaly rewriting, and traceability output include the following steps: S401, Obtain the first object sequentially according to the reading order of the source object in S-57. Intermediate semantic objects and with intermediate semantic objects As a common input to both the data transformation track and the visualization verification track, the data transformation track is based on the intermediate semantic object. , , , , and , generate the first Target transformation results ,in: In the formula, This indicates the transformation rule number that was matched. Indicates the type of target feature. Represents the set of target attributes for S-101. This represents the set of complex attributes of the S-101 target. Indicates the S-101 target space object. Indicates a state transition. Indicates the verification status; For the same Two types of processing are executed simultaneously: one is data transformation processing, which is used to confirm whether the target elements, target attributes, target complex attributes, and target spatial objects have been generated; the other is visual verification processing, which is used to generate transformation preview data, anomaly marker data, and verification prompt data based on the target transformation results. S402. Generate an anomaly marker based on the rule matching result, geometric topology quality value, synchronization trigger status, and verification status. Exception markers for each intermediate semantic object Represented as: In the formula, This indicates the preset geometric topology quality threshold. Indicates a preset verification exception state; S403. Perform a consistency check on the target transformation result. Consistency verification score of each target transformation result Represented as: In the formula, Indicates the integrity identifier of the element category. Indicates the completeness of required attributes. This indicates the validity of the enumerated value. Indicates the integrity identifier of complex attributes. Indicates consistency of association relationships. Indicates metadata consistency identifier, to To verify the weight coefficients, and satisfy: when Not lower than the preset consistency threshold When the corresponding final target conversion result is marked as verified, and... Updated to verification passed status; when Below the preset consistency threshold When this happens, the corresponding final target transformation result will be marked as a validation anomaly, and... Update to verify the abnormal status, and record the abnormal type, abnormal fields, source S-57 object identifier, S-101 target feature type and target spatial object information; S404. Based on the target element set, target spatial object set, target attribute set, relationship set, and metadata set of S-101, generate a target dataset oriented towards the expression of S-101.
10. The method for converting S-57 / S-101 electronic nautical chart data to intermediate semantic objects and streaming dual-track verification according to claim 9, characterized in that, In step S404, the first... Establish a source data traceability index for the final target transformation result. : In the formula, Indicates the first The source data traceability index for the final target transformation result. This indicates the function for generating the trace index. Indicates the source object identifier, Indicates a long name identifier. Indicates the source object category code, Represents a space pointer field. This indicates the transformation rule number that was matched. Mapping mode, Indicates the type of target element S-101. Indicates a state transition. Indicates the verification status. Indicates the verification status. Indicates the geometric topological quality value. This indicates an anomaly flag.
