S-101 electronic chart analyzing and drawing method, system, equipment and medium
By deeply analyzing and standardizing the display of S-101 electronic nautical charts, the problems of insufficient autonomous controllability and lack of compatibility have been solved, generating accurate marine geographic environment information, reducing navigation risks, and ensuring the safety of maritime operations.
Patent Information
- Application Number
- CN202511403238.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-29
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2045-09-29
AI Technical Summary
The existing S-101 electronic nautical chart analysis and drawing methods suffer from insufficient autonomy and controllability, lack of analytical depth, poor adaptability and flexibility, and lack of compatibility. This results in inconsistent chart display and inflexible information updates, failing to accurately reflect the marine geographical environment and increasing navigational safety risks.
By loading basic information from the electronic nautical chart and the drawing resource library, parsing object definitions, drawing parameters, and spatial data files, and generating drawing instructions using the Lua language, the S-101 electronic nautical chart achieves in-depth analysis and standardized display, ensuring compatibility with the S-57.
The generated S-101 electronic nautical chart can accurately reflect key information about the marine geographical environment, reduce the risk of collisions and grounding, provide reliable decision-making references for navigation, and ensure the safety and efficiency of maritime operations.
Smart Images

Figure CN120892510A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic chart technology, and in particular to an S-101 electronic chart analysis and drawing method, system, device and medium. Background Technology
[0002] The S-101 standard, meticulously developed by the International Hydrographic Organization (IHO), serves as the core specification for next-generation electronic chart products. Rooted in the S-100 universal hydrographic data model, it aims to provide highly dynamic and fully interoperable chart data services. The S-101 standard not only lays the foundation for electronic chart layers but also provides a robust support platform for other interoperable products based on the S-100 standard. Compared to the traditional S-57 standard, S-101 introduces richer descriptions of complex attributes, geometric concepts, and an efficient dynamic data transfer mechanism, significantly enhancing user experience and data application flexibility. Furthermore, S-101 strictly defines the naming conventions for ENCs, data size limits, and loading and visualization strategies in Electronic Chart and Information Systems (ECDIS), ensuring data standardization and compatibility. In S-101, the relationships between features, attributes, and enumeration values are defined in a single feature catalog. The feature catalog is constructed based on a registry, which defines the data content and stores it in machine-readable XML format. Therefore, it allows ECDIS to easily upgrade existing shipboard systems via XML files. Under the S-100 framework, registered content can be continuously modified, and the S-101 element and graphic catalog can be continuously updated without altering the standard XML structure of the catalog. This allows the IHO to leverage the advantages of dynamic registration while ensuring all update operations remain under full control through standardized process design, balancing efficiency and standardization. However, existing electronic chart parsing and drawing methods based on the S-57 standard have certain shortcomings: insufficient data compatibility, difficulty in converting between different standards and formats, and a tendency for information loss or display errors when applied across systems; poor adaptability of symbolization rules, unable to flexibly handle diverse geographic element symbolization rules, resulting in inconsistent chart display effects; and inflexible data updates, failing to effectively combine the dynamic scalability of electronic charts and making it difficult to provide navigators with the latest chart information in a timely manner. Existing S-101 parsing tools largely rely on foreign commercial components, and their core parsing logic and drawing algorithms are not publicly available. This prevents navigators from adjusting the parsing rules according to the specific needs of different sea areas. S-101 data contains three core file types: FeatureCatalogue (object definition), Portrayal_catalogue.xml (object drawing parameters), and 000 files (object spatial data). Most existing methods only implement surface-level parsing of 000 files and fail to establish a correlation mapping between "object definition - drawing parameters - spatial attributes," resulting in object display that does not conform to the S-101 standard. As Lua is the core tool for generating S-101 drawing commands, existing solutions do not enable real-time invocation of object spatial attributes through Lua, causing drawing commands to be unable to dynamically adapt to object updates. Summary of the Invention
[0003] This invention aims to address at least one of the technical problems existing in related technologies. To this end, this invention provides an S-101 electronic nautical chart analysis and drawing method, system, equipment, and medium, solving the pain points of insufficient autonomy and controllability, lack of analysis depth, poor adaptability and flexibility, and lack of compatibility in the current field of S-101 electronic nautical chart analysis and drawing. The drawn S-101 electronic nautical chart can accurately reflect key information of the marine geographical environment, such as the location of obstacles and the range of navigable waters, providing reliable decision-making references for ship navigation, marine engineering operations, and other scenarios, reducing safety risks such as collisions and groundings caused by inaccurate chart information, and ensuring the safety and efficiency of maritime operations.
[0004] This invention provides a method for analyzing and drawing S-101 electronic nautical charts, comprising: S1: Load basic information of electronic nautical charts and drawing resource library, obtain graphic center point and chart setting information, and generate nautical chart drawing parameters according to the drawing resource library; S2: Parse the object definition file to obtain the type, attributes, associations, and symbolization rules of the elements in the electronic chart; S3: Parse the object drawing parameter file to obtain the symbolization rules and styles of map elements in the electronic nautical chart; S4: Parse the spatial data file of the object corresponding to S-101 to obtain the spatial element record of the electronic nautical chart, and extract the geographic element information and its related information based on the spatial element record; S5: Based on the type, attributes, associations, and symbolization rules of elements in the electronic nautical chart, the symbolization rules and styles of map elements in the electronic nautical chart, geographic element information and their association information, drawing instructions are generated jointly with the main program using Lua language; S6: Parse drawing instructions and draw the S-101 electronic nautical chart based on the chart drawing parameters, graphic center point, and chart setting information.
[0005] Furthermore, the drawing resource library includes a color library, an SVG library, a line library, and a surface library. Color drawing parameters are generated from the color library, point symbol drawing parameters are generated from the SVG library, line symbol drawing parameters are generated from the line library, and surface symbol drawing parameters are generated from the surface library.
[0006] Furthermore, step S2 includes: FeatureCatalogue file definition parsing, which includes the version and scope of the parsed file; Attribute parsing, which includes simple attribute parsing and complex attribute parsing based on the file version and scope of application; The association resolution includes role resolution, information association resolution, and element association resolution based on the version and scope of application of the file. Type resolution, which includes information type resolution and element type resolution based on the document's version and scope of application; The symbolization rules for each element in the electronic nautical chart are determined based on the attributes, relationships, and types of the elements.
[0007] Furthermore, step S4 includes: Reference function parsing includes parsing the dataset general information record, the dataset coordinate system reference record, and the information record; Spatial element record parsing includes parsing general information records of the dataset, coordinate system reference system records of the dataset, and information record parsing point records, multi-point records, curve records, combined curve records, surface records, and element type records. The associated attributes include the parsing of geographic feature information and its associated information through landmark association based on point records, multi-point records, curve records, combined curve records, surface records, and feature type records. The geographic feature information includes land outlines, waterways, lighthouses, buoys, and water depth points. The landmark association is to start from the landmark and find associated spatial features.
[0008] Furthermore, parsing geographic feature information and its associated attributes through landmark association includes: S41: Locate the spatial feature association fields associated with the object, and classify the spatial feature association fields into association points, association multiple points, association curves, association combination curves and association surfaces according to type; S42: Associate the ring association field with the spatial feature association field, find the curve association field with the ring association field, and find the point association field with the curve association field; S43: Repeat step S42 to find all associated points, associated multiple points, associated curves, associated combination curves, and associated surfaces related to the object.
[0009] Furthermore, step S5 includes: The main program extracts the core data of the nautical chart through the main program header function. The core data of the nautical chart includes object ID, information ID, spatial association information of point features, spatial association information of line features, and spatial association information of area features. The main program transmits the core chart data to the Lua program, which receives the core chart data and pushes it onto the stack for temporary storage. The main program registers the hostname interaction function with the Lua program through the main program header function based on the core nautical chart data. The Lua program registers the host function based on the hostname interaction function and the core nautical chart data. The main program uses the hostname interactive function to call the Lua program and obtain the first intermediate drawing instructions. In this process, the Lua program calls Lua internal functions, which in turn call the host function and Lua header functions to obtain the second intermediate drawing instructions. The first intermediate drawing command and the second intermediate drawing command are combined to obtain the drawing command.
[0010] Furthermore, the symbolization rules of S-101 are used to generate vector symbols compatible with S-57. Then, different drawing instructions are issued based on the different point, line, and polygon elements. Point, line, and polygon drawing includes: Point drawing is rendered using SVG files; Complex line shapes are created by first drawing all the simple line shapes within the complex line shape, and then inserting point objects according to the rotation direction. When the length is less than a complete simple line shape, the length is calculated during drawing, and the process stops when the target point is reached. Face drawing involves calculating the length and width of the face shape, and then filling the points from left to right and bottom according to the rules. When the area is less than a complete face, the length and height are calculated during filling, and the filling stops when the bottom right corner is reached.
[0011] The present invention also provides an S-101 electronic nautical chart analysis and drawing system for performing the above-mentioned S-101 electronic nautical chart analysis and drawing method, comprising: The generation module loads basic information of electronic nautical charts and a drawing resource library, obtains graphic center points and nautical chart setting information, and generates nautical chart drawing parameters based on the drawing resource library. The first parsing module parses the object definition file to obtain the type, attributes, associations, and symbolization rules of the elements in the electronic chart; The second parsing module parses the object drawing parameter file to obtain the symbolization rules and styles of map elements in the electronic nautical chart; The third parsing module parses the spatial data file of the object corresponding to S-101, obtains the spatial element record of the electronic nautical chart, and extracts geographic element information and its related information based on the spatial element record. The drawing instruction module generates drawing instructions in conjunction with the main program using Lua language, based on the type, attributes, associations, and symbolization rules of elements in the electronic nautical chart, the symbolization rules and styles of map elements in the electronic nautical chart, geographic element information, and their association information. The drawing module parses the drawing instructions and draws the S-101 electronic nautical chart according to the chart drawing parameters, the center point of the graphic, and the chart setting information.
[0012] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the above-described S-101 electronic chart analysis and drawing methods.
[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the S-101 electronic chart analysis and drawing method described in any of the preceding claims.
[0014] The above-described one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: This invention performs in-depth analysis of S-101 electronic nautical chart data from the ground up through steps such as S-101 data preloading, parsing FeatureCatalogue files, parsing Portrayal_catalogue.xml files, parsing 000 files, obtaining spatial association attributes such as points, curves, and surfaces associated with landmarks, inputting and executing drawing instructions through Lua to generate drawing instructions compatible with S-101 and S-57, and completing the standardized display and control operation of S-101 electronic nautical chart data to complete the chart drawing. This technology specifically addresses the pain points in the current field of S-101 electronic nautical chart analysis and mapping, such as insufficient autonomy and controllability, lack of analytical depth, poor adaptability and flexibility, and lack of compatibility. The generated S-101 electronic nautical charts can accurately reflect key information of the marine geographical environment, such as the location of obstacles and the scope of navigable waters, providing reliable decision-making references for ship navigation, marine engineering operations and other scenarios, reducing safety risks such as collisions and groundings caused by inaccurate chart information, and ensuring the safety and efficiency of maritime operations.
[0015] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating an S-101 electronic nautical chart analysis and drawing method provided by the present invention.
[0018] Figure 2 This is a schematic diagram of the structure of an S-101 electronic nautical chart analysis and drawing system provided by the present invention.
[0019] Figure 3 This is a block diagram of the electronic device provided by the present invention.
[0020] Figure label: 101. Generation module; 102. First parsing module; 103. Second parsing module; 104. Third parsing module; 105. Drawing instruction module; 106. Drawing module; 201. Processor; 202. Communication bus; 203. Communication interface; 204. Memory. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention. The following embodiments are used to illustrate this invention but cannot be used to limit the scope of this invention.
[0022] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0023] The following is combined Figures 1 to 3 This invention describes an S-101 electronic nautical chart analysis and drawing method, system, device, and medium.
[0024] like Figure 1 As shown, a method for analyzing and drawing S-101 electronic nautical charts includes: S1: Load basic information of electronic nautical charts and drawing resource library, obtain graphic center point and chart setting information, and generate nautical chart drawing parameters according to the drawing resource library; The basic information of electronic nautical charts includes the center point of the chart graphic and the chart configuration. The chart configuration includes positioning information such as scale and coordinate system adaptation rules. The drawing resource library includes a color library, an SVG library, a line type library, and a surface type library. The color library generates color drawing parameters, the SVG library generates point symbol drawing parameters, the line type library generates line symbol drawing parameters, and the surface type library generates surface symbol drawing parameters.
[0025] S2: Parse the object definition file to obtain the type, attributes, associations, and symbolization rules of the elements in the electronic chart; Parsing a FeatureCatalogue file includes parsing the FeatureCatalogue file definition, parsing attributes, parsing associations, and parsing types. FeatureCatalogue file definition parsing includes the parsing file version and applicable scope; Attribute parsing includes simple attribute parsing and complex attribute parsing based on file version and scope; Association resolution includes role resolution, information association resolution, and element association resolution based on the document version and scope of application; Type resolution includes parsing information types and element types based on the document's version and scope of application; The symbolization rules for each element in the electronic nautical chart are determined based on the type, attributes, and relationships of the elements. By parsing the FeatureCatalogue file, data compatibility and consistency between different systems can be ensured.
[0026] S3: Parse the object drawing parameter file to obtain the symbolization rules and styles of map elements in the electronic nautical chart; This section analyzes color tables, symbol definitions, style rules, line type definitions, area fills, view groupings, basic modes, view grouping layers, display modes, display planes, and content associations.
[0027] The unique Portrayal_catalogue.xml file of the S-101 electronic nautical chart format is analyzed to obtain the symbolization rules and styles of map elements, and to analyze how to display different geographic elements (such as roads, rivers, buildings, etc.) on the map. The specific analysis content includes color tables, symbol definitions, style rules, line type definitions, area fill, view grouping, basic mode, view grouping layer, display mode, display plane, content, etc.
[0028] Parsing the symbolization rules and styles of map elements ensures that different geographic features are displayed correctly on the map.
[0029] S4: Parse the spatial data file of the object corresponding to S-101 to obtain the spatial element record of the electronic nautical chart, and extract the geographic element information and its related information based on the spatial element record; The main function is to parse the reference functions of the spatial data files of the landmarks, including reference function parsing, spatial feature record parsing, and associated attributes; Reference function parsing includes parsing general information about the dataset, the reference frame of the dataset coordinate system, and information records; Spatial feature record parsing includes parsing general information records, coordinate system reference system records, and information record parsing point records, multi-point records, curve records, combined curve records, surface records, and feature type records based on dataset general information records, dataset coordinate system reference system records, and information record parsing point records, multi-point records, curve records, combined curve records, surface records, and feature type records; The associated attributes include parsing geographic feature information and its associated information through landmark association based on point records, multi-point records, curve records, combined curve records, surface records, and feature type records. The geographic feature information includes land outlines, waterways, lighthouses, buoys, and water depth points. The landmark association is to start from the landmark and find the associated spatial features. Object association mainly includes querying spatial association information such as points, curves, and surfaces associated with objects. It further explores complex multi-layered data structures by referencing record names to associate ring association fields, curve association fields, and point association fields, and accurately extracts information such as land outlines, waterways, lighthouses, buoys, and depth points, as well as their associated information.
[0030] After obtaining the relevant spatial association information, based on Lua's advantages such as lightweight efficiency, low resource consumption, strong cross-platform compatibility, flexible integration and extension, and dynamic updates and interactions, the Lua language is selected to use the S-101 general data model to associate objects with their attribute information, and finally generate high-precision, highly dynamic and highly interactive drawing instructions.
[0031] The analysis of geographic feature information and its associated attributes through landmark association includes: S41: Locate the spatial feature association fields associated with the object, and classify the spatial feature association fields into association points, association multiple points, association curves, association combination curves and association surfaces according to type; S42: Associate the ring association field with the spatial feature association field, find the curve association field with the ring association field, and find the point association field with the curve association field; S43: Repeat step S42 to find all associated points, associated multiple points, associated curves, associated combination curves, and associated surfaces related to the object.
[0032] S5: Based on the type, attributes, relationships, and symbolization rules of elements in the electronic nautical chart, the symbolization rules and styles of map elements in the electronic nautical chart, geographic element information and its associated information, drawing instructions are generated jointly with the main program using Lua language; The main program extracts the core data of the nautical chart through the main program header function. The core data of the nautical chart includes object ID, information ID, spatial association information of point features, spatial association information of line features, and spatial association information of area features. The main program transmits the core chart data to the Lua program, which receives the core chart data and pushes it onto the stack for temporary storage. The main program registers the hostname interaction function with the Lua program through the main program header function based on the core nautical chart data. The Lua program registers the host function based on the hostname interaction function and the core nautical chart data. The main program uses the hostname interactive function to call the Lua program and obtain the first intermediate drawing instructions. In this process, the Lua program calls Lua internal functions, which in turn call the host function and Lua header functions to obtain the second intermediate drawing instructions. The first intermediate drawing command and the second intermediate drawing command are combined to obtain the drawing command.
[0033] S6: Parse drawing instructions and draw the S-101 electronic nautical chart based on the chart drawing parameters, graphic center point and chart setting information; The S-101 symbolization rules are used to generate vector symbols compatible with S-57. Then, different drawing commands are issued based on the different point, line, and polygon elements. Point, line, and polygon drawing includes: Point drawing is rendered using SVG files; Complex line shapes are created by first drawing all the simple line shapes within the complex line shape, and then inserting point objects according to the rotation direction. When the length is less than a complete simple line shape, the length is calculated during drawing, and the process stops when the target point is reached. Face drawing involves calculating the length and width of the face shape, and then filling the points from left to right and bottom according to the rules. When the area is less than a complete face, the length and height are calculated during filling, and the filling stops when the bottom right corner is reached.
[0034] The S-57 electronic chart and the S-101 electronic chart differ fundamentally in format. The S-101 electronic chart directly generates drawing instructions based on the general data model provided by the IHO, while the S-57 chart is drawn based on the object type, location, and vector symbol information obtained by parsing the 000 file. This invention generates S-57 compatible vector symbols from the symbolization rules of S-101, and then issues different drawing instructions based on the different point, line, and area elements.
[0035] like Figure 2 As shown, an S-101 electronic nautical chart analysis and drawing system is used to execute an S-101 electronic nautical chart analysis and drawing method, including: The generation module 101 loads the basic information of the electronic nautical chart and the drawing resource library, obtains the graphic center point and nautical chart setting information, and generates nautical chart drawing parameters according to the drawing resource library; The first parsing module 102 parses the object definition file to obtain the type, attributes, associations, and symbolization rules of the elements in the electronic chart; The second parsing module 103 parses the object drawing parameter file to obtain the symbolization rules and styles of map elements in the electronic nautical chart; The third parsing module 104 parses the spatial data file of the object corresponding to S-101, obtains the spatial element record of the electronic nautical chart, and extracts geographic element information and its related information based on the spatial element record. The drawing instruction module 105 generates drawing instructions in conjunction with the main program using Lua language, based on the type, attributes, relationships, and symbolization rules of elements in the electronic nautical chart, the symbolization rules and styles of map elements in the electronic nautical chart, geographic element information, and their associated information. The drawing module 106 parses the drawing instructions and draws the S-101 electronic nautical chart based on the chart drawing parameters, the center point of the graphic, and the chart setting information.
[0036] Figure 3 An example is a block diagram of an electronic device, such as... Figure 3 As shown, the electronic device may include a processor 201, a communication interface 203, a memory 204, and a communication bus 202. The processor 201, communication interface 203, and memory 204 communicate with each other via the communication bus 202. The processor 201 can call logical instructions from the memory 204 to execute an S-101 electronic chart analysis and drawing method.
[0037] Furthermore, the logical instructions in the aforementioned memory 204 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0038] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer is able to execute an S-101 electronic chart analysis and drawing method provided by the above methods.
[0039] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an S-101 electronic nautical chart analysis and drawing method provided by the above methods.
[0040] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0041] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0042] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for analyzing and drawing S-101 electronic nautical charts, characterized in that, include: S1: Load basic information of electronic nautical charts and drawing resource library, obtain graphic center point and chart setting information, and generate nautical chart drawing parameters according to the drawing resource library; S2: Parse the object definition file to obtain the type, attributes, associations, and symbolization rules of the elements in the electronic chart; S3: Parse the object drawing parameter file to obtain the symbolization rules and styles of map elements in the electronic nautical chart; S4: Parse the spatial data file of the object corresponding to S-101 to obtain the spatial element record of the electronic nautical chart, and extract the geographic element information and its related information based on the spatial element record; S5: Based on the type, attributes, associations, and symbolization rules of elements in the electronic nautical chart, the symbolization rules and styles of map elements in the electronic nautical chart, geographic element information and their association information, drawing instructions are generated jointly with the main program using Lua language; S6: Parse drawing instructions and draw the S-101 electronic nautical chart based on the chart drawing parameters, graphic center point, and chart setting information.
2. The S-101 electronic nautical chart analysis and drawing method according to claim 1, characterized in that, The drawing resource library includes a color library, an SVG library, a line library, and a surface library. Color drawing parameters are generated from the color library, point symbol drawing parameters are generated from the SVG library, line symbol drawing parameters are generated from the line library, and surface symbol drawing parameters are generated from the surface library.
3. The S-101 electronic nautical chart analysis and drawing method according to claim 1, characterized in that, Step S2 includes: FeatureCatalogue file definition parsing, which includes the version and scope of the parsed file; Attribute parsing, which includes simple attribute parsing and complex attribute parsing based on the file version and scope of application; The association resolution includes role resolution, information association resolution, and element association resolution based on the version and scope of application of the file. Type resolution, which includes information type resolution and element type resolution based on the document's version and scope of application; The symbolization rules for each element in the electronic nautical chart are determined based on the attributes, relationships, and types of the elements.
4. The S-101 electronic nautical chart analysis and drawing method according to claim 1, characterized in that, Step S4 includes: Reference function parsing includes parsing the dataset general information record, the dataset coordinate system reference record, and the information record; Spatial element record parsing includes parsing general information records of the dataset, coordinate system reference system records of the dataset, and information record parsing point records, multi-point records, curve records, combined curve records, surface records, and element type records. The associated attributes include the parsing of geographic feature information and its associated information through landmark association based on point records, multi-point records, curve records, combined curve records, surface records, and feature type records. The geographic feature information includes land outlines, waterways, lighthouses, buoys, and water depth points. The landmark association is to start from the landmark and find associated spatial features.
5. The S-101 electronic nautical chart analysis and drawing method according to claim 4, characterized in that, The analysis of geographic feature information and its associated attributes through landmark association includes: S41: Locate the spatial feature association fields associated with the object, and classify the spatial feature association fields into association points, association multiple points, association curves, association combination curves and association surfaces according to type; S42: Associate the ring association field with the spatial feature association field, find the curve association field with the ring association field, and find the point association field with the curve association field; S43: Repeat step S42 to find all associated points, associated multiple points, associated curves, associated combination curves, and associated surfaces related to the object.
6. The method for analyzing and drawing S-101 electronic nautical charts according to claim 1, characterized in that, The S5 steps include: The main program extracts the core data of the nautical chart through the main program header function. The core data of the nautical chart includes object ID, information ID, spatial association information of point features, spatial association information of line features, and spatial association information of area features. The main program transmits the core chart data to the Lua program, which receives the core chart data and pushes it onto the stack for temporary storage. The main program registers the hostname interaction function with the Lua program through the main program header function based on the core nautical chart data. The Lua program registers the host function based on the hostname interaction function and the core nautical chart data. The main program uses the hostname interactive function to call the Lua program and obtain the first intermediate drawing instructions. In this process, the Lua program calls Lua internal functions, which in turn call the host function and Lua header functions to obtain the second intermediate drawing instructions. The first intermediate drawing command and the second intermediate drawing command are combined to obtain the drawing command.
7. The method for analyzing and drawing S-101 electronic nautical charts according to claim 1, characterized in that, The S-101 symbolization rules are used to generate vector symbols compatible with S-57. Then, different drawing commands are issued based on the different point, line, and polygon elements. Point, line, and polygon drawing includes: Point drawing is rendered using SVG files; Complex line shapes are created by first drawing all the simple line shapes within the complex line shape, and then inserting point objects according to the rotation direction. When the length is less than a complete simple line shape, the length is calculated during drawing, and the process stops when the target point is reached. Face drawing involves calculating the length and width of the face shape, and then filling the points from left to right and bottom according to the rules. When the area is less than a complete face, the length and height are calculated during filling, and the filling stops when the bottom right corner is reached.
8. An S-101 electronic nautical chart analysis and plotting system, characterized in that, To perform an S-101 electronic nautical chart analysis and drawing method as described in any one of claims 1 to 7, comprising: The generation module loads basic information of electronic nautical charts and a drawing resource library, obtains graphic center points and nautical chart setting information, and generates nautical chart drawing parameters based on the drawing resource library. The first parsing module parses the object definition file to obtain the type, attributes, associations, and symbolization rules of the elements in the electronic chart; The second parsing module parses the object drawing parameter file to obtain the symbolization rules and styles of map elements in the electronic nautical chart; The third parsing module parses the spatial data file of the object corresponding to S-101, obtains the spatial element record of the electronic nautical chart, and extracts geographic element information and its related information based on the spatial element record. The drawing instruction module generates drawing instructions in conjunction with the main program using Lua language, based on the type, attributes, associations, and symbolization rules of elements in the electronic nautical chart, the symbolization rules and styles of map elements in the electronic nautical chart, geographic element information, and their association information. The drawing module parses the drawing instructions and draws the S-101 electronic nautical chart according to the chart drawing parameters, the center point of the graphic, and the chart setting information.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the S-101 electronic nautical chart analysis and drawing method as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the S-101 electronic nautical chart analysis and drawing method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Ship collision risk pre-warning system and method
CN108281043A
Electronic chart analysis display method based on PyQGIS development system
CN115994234A
DevOps development environment establishment automation platform service method and system
KR1020240083890A
System of displaying next generation electronic navigation chart
KR102319815B1