Electronic chart full-link rendering method and device and medium

By parsing electronic chart datasets and generating triangulation data, combined with a nonlinear geometric simplification model for maritime safety perception, the problem of low efficiency in existing rendering technologies has been solved, achieving efficient and accurate electronic chart display and optimized resource allocation.

CN123181765APending Publication Date: 2026-11-27CHINA STATE SHIPBUILDING CORP NO 707 RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611654509.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The existing S-101 electronic chart rendering technology is inefficient in processing complex geometry and cannot achieve adaptive resource allocation for channel safety awareness. This results in insufficient detail of key elements in the channel area or waste of resources far from the channel area. Furthermore, the LOD grading technology exhibits geometric detail jumps during scaling, failing to meet the comprehensive needs of next-generation maritime applications.

Method used

By parsing and extracting standard datasets from electronic nautical charts, target triangulation data is generated. Topology repair and incremental constraints are performed using a half-side data structure. Geometric simplification error tolerance is calculated based on a multi-dimensional nonlinear geometric simplification error metric model for maritime safety perception. Rendering triangulation data is generated according to rendering requirements and finally rendered based on graphical representation rules.

Benefits of technology

It improves the efficiency and accuracy of electronic chart display, realizes adaptive resource allocation for channel safety awareness, avoids insufficient details of key elements or waste of resources, and ensures the accuracy and high efficiency of rendering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181765A_ABST
    Figure CN123181765A_ABST
Patent Text Reader

Abstract

The application discloses an electronic chart full-link rendering method and device and a medium, and relates to the technical field of electronic chart visualization and computer graphics. An electronic chart standard dataset file is parsed and extracted to obtain a diagram expression rule, at least one geographic element, and element information and a navigation importance level of the geographic element; a surface element is traversed according to geometric information of the geographic element, and topological repair and incremental constraint are performed on original edges of the surface element in combination with a half-edge data structure to generate target triangular mesh data; a multi-dimensional nonlinear geometric simplification error tolerance based on navigation safety perception is calculated for the target triangular mesh data based on a rendering requirement, and rendering triangular mesh data is generated according to the geometric simplification error tolerance; and rendering is performed based on the diagram expression rule and the rendering triangular mesh data to generate a target electronic chart. The above scheme can improve the display efficiency and accuracy of the electronic chart.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interdisciplinary technology of electronic chart visualization and computer graphics, specifically to a full-link rendering method, device and medium for electronic charts. Background Technology

[0002] In 2018, the International Hydrographic Organization (ITO) officially released the S-101 Electronic Nautical Chart Standard, a new generation of electronic nautical chart data standard. As a core component of the S-100 series of general marine geographic information standards, it achieves a breakthrough by completely decoupling geographic data models from graphic representation rules. This standard unifies and standardizes all chart symbols, line types, and fill styles through an independent graphic representation library, fundamentally changing the traditional S-57 standard's model of binding data and display logic, and significantly improving the consistency, scalability, and interoperability of global chart displays.

[0003] However, current mainstream S-101 electronic chart rendering technology has not fully utilized the architectural advantages of the new standard. The S-101 standard dataset contains a large number of concave polygons, polygons with holes, and self-intersecting polygons. Existing rendering systems typically employ a two-step process: topology repair followed by triangulation. The first step involves traversing all edges for topology repair (self-intersection detection, boundary closure, and hole identification). The second step inputs the repaired complete geometric data into a constrained triangulation algorithm to complete the triangulation of triangles, and then further optimizes the triangulated triangles based on the empty circle property. This process requires traversing all edges twice, resulting in a time complexity of O(n) + O(n log n), which is inefficient when processing large-scale datasets. Furthermore, existing LOD (Level of Detail) grading techniques typically only set simplification errors based on line-of-sight distance or simply superimpose feature importance levels, without considering the spatial position of features relative to the shipping lane. In reality, features located inside or near the shipping lane directly affect navigation safety and require higher geometric accuracy; while background features far from the shipping lane can be significantly simplified. Existing methods cannot achieve adaptive resource allocation for such channel safety awareness, resulting in insufficient detail of key elements in the channel area or waste of resources far from the channel area; moreover, existing LOD grading technologies usually use discrete line-of-sight threshold tables, and the LOD level changes abruptly at the threshold boundary, causing obvious jumps in the geometric details of elements during scaling; when performing large-scale view frustum clipping and element queries, a single index structure is difficult to adapt to the sparse distribution of polygon features and the dense distribution of point features at the same time; and without the use of frame buffer reuse technology, the full rendering process is still repeatedly executed even in static scenes where the nautical chart view does not change. Summary of the Invention

[0004] This invention provides a full-link rendering method, device, and medium for electronic nautical charts to address the technical problems of S-101 electronic nautical chart rendering, such as its inability to meet the comprehensive requirements of next-generation maritime applications for electronic nautical chart systems in terms of efficiency in complex geometry processing, rendering accuracy, and LOD resource allocation for channel safety awareness.

[0005] According to one aspect of the present invention, a full-link rendering method for electronic nautical charts is provided, comprising: The electronic nautical chart standard dataset file is parsed and extracted to obtain the graphic representation rules, at least one geographic element, and the element information and nautical importance level of the geographic element; the geographic element includes point elements, area elements, and line elements; the element information includes geometric information, attribute information, and style information; Based on the geometric information of the geographic features, the face features are traversed, and topology repair and incremental constraints are performed on the original edges of the face features in combination with the half-edge data structure to generate target triangular network data; the target triangular network data includes a point coordinate array, a texture coordinate array, and a triangle index array; Based on rendering requirements, the geometric simplification error tolerance is calculated for the target triangulation data using a multi-dimensional nonlinear geometric simplification error measurement model for maritime safety perception, and rendering triangulation data is generated based on the geometric simplification error tolerance; rendering requirements include line-of-sight distance and display scale. The target electronic nautical chart is generated by rendering based on the graphic representation rules and the rendered triangular network data.

[0006] According to another aspect of the present invention, an electronic nautical chart end-to-end rendering apparatus is provided, comprising: The parsing and extraction module is used to parse and extract data from the electronic nautical chart standard dataset file to obtain the graphic representation rules, at least one geographic feature, and the feature information and nautical importance level of the geographic feature; the geographic feature includes point features, area features, and line features; the feature information includes geometric information, attribute information, and style information. The traversal module is used to traverse the face features based on the geometric information of the geographic features, and perform topology repair and incremental constraints on the original edges of the face features in combination with the half-edge data structure to generate target triangular network data; the target triangular network data includes a point coordinate array, a texture coordinate array, and a triangle index array; The rendering triangulation data generation module is used to calculate the geometric simplification error tolerance of the target triangulation data based on the multi-dimensional nonlinear geometric simplification error measurement model of maritime safety perception, and generate rendering triangulation data according to the geometric simplification error tolerance; the rendering requirements include line-of-sight distance and display scale; The rendering module is used to render the target electronic nautical chart based on the graphic representation rules and the rendering triangular network data.

[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to execute the electronic nautical chart full-link rendering method according to any embodiment of the present invention.

[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the electronic nautical chart full-link rendering method according to any embodiment of the present invention.

[0009] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the electronic nautical chart full-link rendering method according to any embodiment of the present invention.

[0010] The technical solution of this invention involves parsing and extracting from an electronic nautical chart standard dataset file to obtain graphic representation rules, at least one geographic element, and the element information and nautical importance level of the geographic element. The geographic element includes point elements, polygon elements, and line elements. The element information includes geometric information, attribute information, and style information. Based on the geometric information of the geographic element, the polygon elements are traversed, and topology repair and incremental constraints are performed on the original edges of the polygon elements using a half-edge data structure to generate target triangulation data. The target triangulation data includes a point coordinate array, a texture coordinate array, and a triangle index array. Based on rendering... The rendering requirements calculate the geometric simplification error tolerance for the target triangulation data based on a multi-dimensional nonlinear geometric simplification error metric model for maritime safety perception, and generate rendered triangulation data according to the geometric simplification error tolerance; the rendering requirements include line-of-sight distance and display scale; the rendering is performed based on the graphic representation rules and the rendered triangulation data to generate the target electronic nautical chart; this addresses the technical problems of electronic nautical chart rendering in terms of efficiency in complex geometric processing, rendering accuracy, and LOD resource allocation for channel safety perception, which cannot meet the comprehensive requirements of the new generation of maritime applications for electronic nautical chart systems, and can improve the display efficiency and accuracy of electronic nautical charts.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart of an electronic nautical chart full-link rendering method provided by an embodiment of the present invention; Figure 2 This is a flowchart of an electronic nautical chart full-link rendering method provided by an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an electronic nautical chart full-link rendering device according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements the electronic chart full-link rendering method of this invention. Detailed Implementation

[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0016] Furthermore, it should be noted that the collection, storage, use, processing, transmission, provision, and disclosure of data related to three-dimensional grid tiles involved in the technical solution of this invention all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0017] Figure 1 This is a flowchart of an electronic chart full-link rendering method according to an embodiment of the present invention. This embodiment is applicable to the full-link rendering of electronic charts, especially to the full-link rendering of S-101 electronic charts. The method can be executed by an electronic chart full-link rendering device, which can be implemented in hardware and / or software and can be configured in a server. Figure 1 As shown, the method includes: S110. Parse and extract from the electronic nautical chart standard dataset file to obtain the graphic representation rules, at least one geographic element, and the element information and nautical importance level of the geographic element; the geographic element includes point elements, area elements and line elements; the element information includes geometric information, attribute information and style information.

[0018] The electronic chart standard dataset file contains the nautical chart standard corresponding to the target geographic area. It can be the latest S-101 nautical chart standard and may include a product catalog, feature catalog, graphic representation library, and master data file. The product catalog is used to quickly identify electronic chart products for different sea areas. The feature catalog includes the encoding, name, attribute list, and geometric type of geographic elements in the chart. The graphic representation library contains the graphic representation rules corresponding to the S-101 electronic chart and may include visualization rules for geographic elements, such as symbol style, color, size, and display priority. The master data file includes the actual spatial coordinate data of geographic elements in the chart and their corresponding attribute data. The navigational importance level is the importance level of each geographic element set according to navigational safety regulations. It may include primary critical elements, secondary important elements, and tertiary general elements. Primary important elements, such as lighthouses, hazards, buoys, and restricted areas, directly affect navigation safety. Secondary important elements, such as coastlines, isobaths, channels, and anchorages, assist navigation decisions. Tertiary general elements include other background reference information.

[0019] Specifically, the system obtains the electronic nautical chart standard dataset file corresponding to the target sea area and automatically associates it with the supporting product catalog, feature catalog, and graphic representation library. Based on the master data file, it parses and extracts the graphic representation rules and at least one geographic feature, such as point features, area features, and line features. Point features include navigation marks, depth points, and obstacles; area features include land, islands, and sea area zones; and line features can be coastlines and channel boundaries. Based on the product catalog and feature catalog, the system determines the feature information of each geographic feature, such as geometric information, attribute information, and style information. Finally, based on maritime safety regulations, the system determines the maritime importance level corresponding to each geographic feature.

[0020] Optionally, the electronic nautical chart standard dataset file is parsed and extracted to obtain the graphic representation rules, at least one geographic feature, and the feature information and nautical importance level of the geographic feature, including: The standard dataset file of electronic nautical charts is parsed and extracted to obtain the graphic representation rules, master data file and product catalog; The master data file is parsed to extract all geographic features, as well as their geometric, attribute, and style information. Determine the element type of the geographic element from the product catalog based on the geographic elements; Geographic elements are classified into levels based on navigation safety regulations, attribute information, and element types to determine their navigational importance level.

[0021] The feature type can be the geometric type of the feature, including point features, polygon features, or line features.

[0022] Specifically, the standard dataset file of the electronic nautical chart corresponding to the target sea area is parsed and extracted to obtain the graphic representation rules, master data file, and product catalog. The master data file is parsed to extract all geographic features, which may include land, islands, sea area divisions, coastlines, channel boundaries, navigation marks, depth points, obstacles, etc. in the target sea area. Furthermore, their corresponding geometric information, attribute information, and style information are extracted. Based on the geographic features, the feature type is determined from the product catalog; these features are categorized as point features, area features, or line features. Geographic features are classified into levels according to navigation safety regulations, attribute information, and feature type to determine their navigational importance. For example, lighthouses, hazards, buoys, and restricted areas, which directly affect navigation safety, are classified as first-level critical features; coastlines, isobaths, channels, and anchorages, which assist navigation decisions, are classified as second-level important features; and other background reference information is classified as third-level general features.

[0023] Understandably, by accurately extracting the geographical elements of the target sea area and constructing the navigational importance level corresponding to each geographical element according to navigational safety regulations, it is possible to ensure that personalized rendering can be achieved according to the navigational importance level and the rendering requirements of geographical elements, thereby meeting the rendering requirements of navigational applications for electronic nautical charts and ensuring the accuracy of the rendering.

[0024] In an optional embodiment of the present invention, after determining the geometric information, attribute information, and style information of the geographic elements, the element mapping relationship corresponding to the geographic elements can be constructed based on the element identifier, geometric information, attribute information, and style information of the geographic elements; this ensures the subsequent screening and retrieval of geographic elements and further guarantees the rendering efficiency of the target electronic nautical chart corresponding to the target sea area.

[0025] Optionally, after parsing and extracting the standard electronic nautical chart dataset file to obtain the graphic representation rules, at least one geographic feature, and the feature information and nautical importance level of the geographic feature, the following may also be included: The geometric information in the feature information of the opposite feature is compared with a preset threshold, and the line features and polygon features greater than the preset threshold are used to construct an R-tree index; the tree nodes in the R-tree index store the corresponding list of geographic feature identifiers and the minimum bounding rectangle; Construct a multi-level grid index for point features; Based on the target geographic location, an indexed association table is created by combining R-tree indexes and multi-level grid indexes.

[0026] The preset threshold is used to construct index values ​​for surface features, and in this embodiment of the invention, it is preferably 1 square kilometer. Tree nodes in the R-tree index represent one region within the target sea area. The geographic feature identifier list represents the geographic feature identifiers within the region. The minimum bounding rectangle is the minimum bounding rectangle corresponding to the surface feature. The multi-level grid allows for adjustment of the grid size based on the point feature density; for example, a 0.01-degree grid is used when the point feature density is higher than 100 per square kilometer, a 0.05-degree grid is used when the point feature density is between 10 and 100 per square kilometer, and a 0.1-degree grid is used when the point feature density is lower than 10 per square kilometer. The target geographic region location is the region location corresponding to each geographic feature, and the index association table shows the association between each feature index value and its corresponding region location. It should be noted that the preset threshold can be set by relevant technical personnel according to actual needs, and this embodiment of the invention does not impose specific limitations on it.

[0027] Specifically, the geometric information in the feature information of polygon features is determined to determine the planar area of ​​the polygon features. The planar area of ​​the polygon features is compared with a preset threshold. For polygon features with a planar area greater than 1 square kilometer, an R-tree index is constructed in conjunction with linear features. The target sea area is divided into regions, and each geographic region is treated as a tree node. The feature identifiers corresponding to at least one polygon feature and the feature identifiers corresponding to the line feature under that geographic region are associated and stored, ensuring that each R-tree node stores the corresponding feature ID list and minimum bounding rectangle. A multi-level grid index is constructed for point features. For example, the grid size is adaptively adjusted according to the feature density: a 0.01-degree grid is used when the density is higher than 100 features / km², a 0.05-degree grid is used when the density is between 10 and 100 features / km², and a 0.1-degree grid is used when the density is lower than 10 features / km². Based on the location of the target geographic region, an index association table is established by combining the R-tree index and the multi-level grid index to ensure that the feature index values ​​corresponding to polygon features, line features, and point features can be found for each region location.

[0028] Understandably, by constructing index values ​​for polygon, line, and point features using different indexing methods and combining them with geographic location to build an index association table, a unified spatial query interface is provided. This supports multiple query methods such as rectangles, circles, and view frustums, and ensures that the index path is automatically selected based on the size of the query area and the feature type during the query. This effectively avoids the situation where a single index structure cannot simultaneously adapt to the sparse distribution of polygon and line features and the dense distribution of point features when performing large-scale view frustum clipping and feature queries.

[0029] S120. Based on the geometric information of the geographic elements, traverse the face elements, and combine the original edges of the face elements with the half-edge data structure to perform topology repair and incremental constraints to generate target triangular network data; the target triangular network data includes point coordinate array, texture coordinate array and triangle index array.

[0030] In this data structure, each edge stores the starting vertex, the dual half-edge, the next half-edge, and the information of the face to which it belongs. The original edges are all the edges of the face feature. Topology repair and incremental constraints are used to traverse and repair the original edges of the face feature and to insert new edges. The target triangular mesh data can include the attribute information corresponding to the triangular mesh for topology repair and incremental constraints, and can include the point coordinate array, texture coordinate array, and triangle index array corresponding to the triangular mesh. The point coordinate array can include the vertex set corresponding to the triangular mesh. The texture coordinate array is the texture value corresponding to the coordinates of each vertex in the triangular mesh. The triangle index array is the index value of each triangular mesh in the target sea area.

[0031] Specifically, based on the half-side data structure, all edges in the face feature are traversed one by one according to the geometric information of the geographic features. Topology repair and incremental constraints are performed on the original edges of the face feature. The repaired and deleted triangle data is used as the target triangular network data. It also includes the point coordinate array and texture coordinate array corresponding to each triangular network data, as well as the triangle index array.

[0032] S130. Based on rendering requirements, calculate the geometric simplification error tolerance of the target triangulation data using a multi-dimensional nonlinear geometric simplification error measurement model based on maritime safety perception, and generate rendering triangulation data according to the geometric simplification error tolerance; rendering requirements include line-of-sight distance and display scale.

[0033] The rendering requirements are obtained through the interactive page for the target sea area, and may include the line-of-sight distance, display scale, and the geographic features to be displayed. The line-of-sight distance is the distance between the geometric center of the feature and the camera position. The display scale is the display scale of the target sea area in this rendering, which can be at the Level of Detail (LOD) level. For example, a display scale of 1:5000-1:25000 corresponds to the highest level of detail (LOD), and the corresponding geographic features to be displayed are precise water depth, navigation marks, reefs, and channels; a display scale of 1:25000-1:100000 corresponds to a medium level of detail (LOD), and the corresponding geographic features to be displayed are main channels, coastlines, islands, and lighthouses; a display scale of 1:100... The scale is 000-1:1000000, with a low level of detail (LOD) and corresponding geographic features to be displayed, such as coastlines, major ports, and large islands. For scales smaller than 1:1000000, the LOD is the lowest level of detail, and corresponding geographic features to be displayed are land outlines and major ocean areas. The multi-dimensional nonlinear geometric simplification error measurement model for maritime safety perception is a pre-built model function that establishes a three-dimensional error mapping relationship between importance level, line-of-sight distance, and channel proximity, used to adaptively preserve the geometric details of key channel area features. The geometric simplification error tolerance is the three-dimensional error. The rendered triangular mesh data is the triangular mesh data to be rendered, which can be the triangular mesh data corresponding to the accuracy required for rendering.

[0034] Specifically, based on the viewing distance, display scale, and geographic features to be displayed in the rendering requirements, the geometric simplification error tolerance of each target triangulation data is calculated using a multi-dimensional nonlinear geometric simplification error measurement model based on maritime safety perception. Then, based on the geometric simplification error tolerance, the boundary vertices of the geographic features of the target triangulation data are simplified to generate the corresponding LOD level rendering triangulation data.

[0035] Optionally, based on rendering requirements, a geometric simplification error tolerance is calculated for the target triangulation data using a multi-dimensional nonlinear geometric simplification error metric model based on maritime safety perception. Rendering triangulation data is then generated based on the geometric simplification error tolerance, including: The rendering requirements are analyzed to obtain the viewing distance, view-projection matrix, display scale, and flight path influence radius. Based on the display scale, the target triangular mesh data is filtered according to the scale mapping table to obtain the elements to be rendered; Determine the camera focal length based on the view-projection matrix; The importance nonlinear coefficient of the element to be rendered is determined based on the navigation importance level and level coefficient mapping table; The geometric position of the feature to be rendered is determined based on the geometric information in the target triangular mesh data; The channel proximity is obtained by calculating the geometric position coordinates and the channel influence radius based on the channel proximity function; A multi-dimensional nonlinear geometric simplification error measurement model for pre-defined maritime safety perception is adopted. The geometric simplification error tolerance is calculated based on camera focal length, line-of-sight distance, importance nonlinear coefficient, screen pixel error threshold, and channel proximity. Based on the geometric simplification error tolerance, the boundary vertices of the target triangular mesh data corresponding to the features to be rendered are simplified to obtain the rendered triangular mesh data.

[0036] Among them, the view-projection matrix reflects the viewing angle and screen height, used to obtain the camera focal length; the scale mapping table is a pre-set scale table used to filter visible geographic features; the elements to be rendered are the visible geographic features corresponding to the display scale; the grade coefficient mapping table is the correlation between the navigation importance grade and the importance nonlinear coefficient; the channel influence radius can be adjusted according to the specific channel grade; and the channel proximity coefficient is used to control the dimension of the channel safety zone.

[0037] Specifically, the rendering requirements are analyzed to obtain the line-of-sight distance, view-projection matrix, display scale, and waterway influence radius. Based on the display scale, the target triangulation data is filtered using a scale mapping table and an index association table, outputting a list of visible elements after scale filtering and collision avoidance processing, thus obtaining the elements to be rendered. The camera focal length is determined based on the view-projection matrix, with the unit being pixels. The importance nonlinearity coefficient of the elements to be rendered is determined based on the navigation importance level and level coefficient mapping table; the preferred value is the navigation importance level. As a primary key element, its importance has a non-linear coefficient. The tolerance is 0.15, with an error margin of only 15% of the base value, forcibly retaining the highest geometric accuracy; nautical importance level. As a second-level general element, its importance nonlinear coefficient A value of 0.5 allows for simplification using the full baseline error tolerance; Nautical Importance Level For third-level general elements, their importance nonlinear coefficients The value is 1.0, which allows for simplification using the full basic error tolerance. It should be noted that the selection of the importance nonlinear coefficient in the embodiments of the present invention is nonlinear, rather than a simple geometric decrease. Relevant personnel can set it according to actual needs, and the embodiments of the present invention do not impose specific limitations on it.

[0038] The geometric position of the feature to be rendered is determined based on the geometric information in the target triangulation data; the channel proximity is calculated based on the geometric position coordinates and the channel influence radius using the channel proximity function, and the calculation formula is shown below:

[0039] in, Proximity to the waterway; The distance between the geometric position coordinates of the element to be rendered and the centerline of the waterway; Radius of influence of the waterway.

[0040] For example: The preferred distance is 500 meters. When the distance between the geometric coordinates of the element to be rendered and the centerline of the channel is zero, meaning the element is located on the centerline, the channel proximity is 1, and the error tolerance is the base value. When the distance between the geometric coordinates of the element to be rendered and the centerline is much less than 500 meters, meaning the element is inside or adjacent to the channel, the channel proximity is close to 1, the error tolerance is small, and more details are preserved. When the distance between the geometric coordinates of the element to be rendered and the centerline is 500 meters, the channel proximity is 2, and the error tolerance is twice the base value. When the distance between the geometric coordinates of the element to be rendered and the centerline is much greater than 500 meters, the channel proximity is 2, and the error tolerance is twice the base value. The 500-meter threshold indicates that the error tolerance is extremely small when the element to be rendered is far from the waterway, allowing for significant simplification. A multi-dimensional nonlinear geometric simplification error measurement model based on pre-defined maritime safety perception is used. This model calculates the geometric simplification error tolerance based on camera focal length, line-of-sight distance, importance nonlinear coefficient, screen pixel error threshold, and waterway proximity. Boundary vertices of the target triangular mesh data corresponding to the element to be rendered are then simplified based on this geometric simplification error tolerance to obtain the rendered triangular mesh data. It should be noted that the waterway influence radius can be adjusted according to the specific waterway grade, and relevant technicians can set it according to actual needs. This embodiment of the invention does not impose specific limitations on this.

[0041] In an optional embodiment of the present invention, the Douglas-Peucker algorithm can be used to simplify the boundary vertices of the target triangular mesh data corresponding to the feature to be rendered based on the geometric simplification error tolerance: connecting the first and last vertices of the boundary to form a baseline; finding the vertex on the boundary that is farthest from the baseline, if the distance is greater than the geometric simplification error tolerance, then retaining the vertex and dividing the boundary into two segments, and recursively processing; if the farthest distance is less than or equal to the geometric simplification error tolerance, then all intermediate vertices on the boundary segment can be removed.

[0042] Understandably, by multiplying the coefficients of the three dimensions of pixel error projection, importance nonlinearity coefficient, and channel proximity, fine control of error tolerance is achieved, effectively reflecting the design principle of "precision first" for navigation safety elements. A three-dimensional error mapping of importance level, line of sight, and channel proximity is established to achieve adaptive preservation of geometric details of key channel area elements. Under the same frame rate, the geometric detail preservation of key navigation elements in the channel area is significantly improved.

[0043] Optionally, a multi-dimensional nonlinear geometrically simplified error measurement model for maritime safety perception is adopted. Based on the camera focal length, line-of-sight distance, importance nonlinear coefficient, screen pixel error threshold, and channel proximity, the geometrically simplified error tolerance is calculated, and its calculation formula is as follows:

[0044] in, To allow for geometric simplification error tolerance; Navigational importance level; These are the geometric position coordinates; This is the screen pixel error threshold; This refers to the line-of-sight distance; The focal length of the camera; For importance nonlinear coefficients; This refers to the proximity to the shipping lane.

[0045] For example, when the influence radius of the waterway is 500 meters, a primary critical element such as a lighthouse located in the center of the waterway has a waterway proximity of 1; the error tolerance at a visual distance of 1000 meters is: =2.0×(1000 / f)×0.15×1=0.3×(1000 / f) meters; while the error tolerance for a general third-level feature, such as a common depth point, 2000 meters away from the channel, at the same sight distance is: =2.0×(1000 / f)×1.0×5=10×(1000 / f) meters, which shows that the error tolerance of key elements in the waterway area is much smaller than that of general elements far from the waterway, thus realizing the tilt of rendering resources towards the safe area of ​​the waterway.

[0046] Understandably, by setting a preset multi-dimensional nonlinear geometric simplification error measurement model for maritime safety perception, it is necessary to avoid setting simplification errors solely based on line-of-sight distance or simply superimposing element importance levels without considering the spatial position of elements relative to the waterway. In addition, elements located inside or adjacent to the waterway directly affect navigation safety, requiring the retention of higher geometric accuracy. Meanwhile, background elements far from the waterway can be significantly simplified, enabling adaptive resource allocation for waterway safety perception and effectively avoiding situations where key elements in the waterway area lack detail or resources are wasted in areas far from the waterway.

[0047] In an optional embodiment of the present invention, the scale mapping table is a nautical chart element-display scale mapping table, which defines a 12-level standard display scale range from 1:1000 to 1:1000000. The corresponding display element type, quantity and precision are configured for each scale level. The display scale of the current view can be obtained in real time, and the elements to be rendered can be filtered according to the mapping table so that collision detection and avoidance processing can be performed on the filtered elements. When the icons or labels of two elements overlap, the element with higher importance level is displayed first, and the element with lower importance level is hidden or offset.

[0048] S140. Based on the graphic representation rules and the rendered triangular network data, the target electronic nautical chart is generated.

[0049] The graphic representation rules are used to output the textures corresponding to each rendering triangulation; they can include four types of textures: point symbols, line types, surface fills, and characters; the target electronic nautical chart is the electronic nautical chart of the target sea area corresponding to the rendering requirements.

[0050] Specifically, based on the rules of graphic representation, four types of textures—point symbols, line types, area fills, and characters—are generated. These textures are then merged into four 2048×2048 pixel texture atlases using a texture packing algorithm. The generated texture atlases are uploaded to the GPU (Graphics Processing Unit) memory. During rendering, the style rendering and texture mapping of the elements to be rendered are achieved according to the preset textures corresponding to the rendering triangular mesh. Various elements can be drawn according to the priority from low to high according to the S-101 electronic nautical chart standard: ocean background, area elements, line elements, text annotations, and navigation mark elements, thus obtaining the electronic nautical chart.

[0051] In an optional embodiment of the present invention, the rendered target electronic nautical chart can be cached using FBO (Frame Buffer Object) off-screen rendering technology: This involves pre-creating an FBO and color-related textures of the same size as the window; ensuring that all elements are drawn into the FBO in a static scene; directly drawing the FBO color textures to the screen when there is no interaction, avoiding repeated full rendering; and re-rendering the FBO and updating the cache when interaction occurs. This ensures that frame buffer reuse technology is used, allowing the full rendering process to be repeated even in static scenes where the chart view remains unchanged.

[0052] The technical solution of this invention involves parsing and extracting standard dataset files for electronic nautical charts to obtain graphic representation rules, at least one geographic element, and the element information and navigational importance level of the geographic element. The geographic element includes point elements, polygon elements, and line elements. The element information includes geometric information, attribute information, and style information. Based on the geometric information of the geographic element, the polygon elements are traversed, and topology repair and incremental constraints are performed on the original edges of the polygon elements using a half-edge data structure to generate target triangulation data. The target triangulation data includes a point coordinate array, a texture coordinate array, and a triangle index array. Based on rendering requirements, a geometric simplification error tolerance is calculated on the target triangulation data using a multi-dimensional nonlinear geometric simplification error measurement model for navigational safety perception. Rendering triangulation data is then generated based on the geometric simplification error tolerance. Rendering requirements include line-of-sight distance and display scale. Rendering is performed based on the graphic representation rules and the rendered triangulation data to generate the target electronic nautical chart. This addresses the technical problems of S-101 electronic nautical chart rendering, such as its inability to meet the comprehensive requirements of next-generation navigational applications for electronic nautical chart systems in terms of complex geometric processing efficiency, rendering accuracy, and LOD resource allocation for channel safety perception. This improves the display efficiency and accuracy of electronic nautical charts.

[0053] Figure 2 This is a flowchart of an electronic nautical chart full-link rendering method according to an embodiment of the present invention; this embodiment, based on the above embodiments, elaborates in detail the generation process of target triangulation data. Figure 2 As shown, the method includes: S210. Parse and extract from the electronic nautical chart standard dataset file to obtain the graphic representation rules, at least one geographic feature, and the feature information and nautical importance level of the geographic feature; the geographic feature includes point features, area features and line features; the feature information includes geometric information, attribute information and style information.

[0054] S220. Construct a super triangle based on the bounding rectangle of the face feature vertices, and add the three sides and three vertices of the super triangle to the half-side data structure until all face features are added, thus obtaining the initialized half-side structure data.

[0055] Among them, the super triangle is a triangle containing the circumscribed rectangle of the face feature vertices, and the three vertices of the super triangle are located far enough away outside the circumscribed rectangle; initializing half-side structure data means initializing the face feature vertices as half-side data structures.

[0056] Specifically, calculate the vertices of all face features to obtain the corresponding bounding rectangles, construct the super triangles corresponding to the face features based on the bounding rectangles, and add the three sides and three vertices of the super triangles to the half-side data structure. Ensure that each half-side in the half-side data structure stores the coordinates of the starting vertex of the half-side; the dual half-side points to the adjacent half-side in the opposite direction; the next half-side points to the next half-side in the same face; the belonging face is the triangle face to which the half-side belongs; until all face features are added, the initialized half-side structure data is obtained.

[0057] S230, the original edges in the half-edge data structure corresponding to the traversal face features.

[0058] Specifically, the original edges in the half-edge data structure corresponding to the face features are traversed to obtain the boundary edge e.

[0059] S240. Perform intersection detection based on existing edges in the original edge and half-edge data structures to determine the constraint edges.

[0060] Among them, the existing edge is the non-adjacent edge to the original edge in the constructed half-edge data structure; the intersection detection is to determine whether the circumscribed rectangles of two line segments intersect, or to determine whether two line segments cross each other.

[0061] Specifically, intersection detection is performed on existing non-adjacent edges in the original edge and half-edge data structures. Fast rejection experiments, such as determining whether the circumscribed rectangles of two line segments intersect, and straddle experiments, such as determining whether two line segments straddle each other, are used to determine whether they intersect and to identify constraint edges.

[0062] Optionally, intersection detection is performed based on existing edges in the original edge and half-edge data structures to determine constraint edges, including: Perform intersection detection between the original edge and the existing edge in the half-edge data structure; If an intersection is detected, the original edge is split into two sub-edges at the intersection, and the intersection is added as a new vertex to the half-edge data structure. Use the two edge segments as constraint edges in sequence; If no intersection is detected, the original edge is used as the constraint edge.

[0063] The intersection point is used to indicate that the original edge intersects with an existing edge.

[0064] Specifically, the original edge e is subjected to line segment intersection detection with the existing non-adjacent edges in the triangulation network to determine whether they intersect. If an intersection point P is detected, edge e is split into two sub-edges e1 and e2 at intersection point P, where e1 is from v1 to P and e2 is from P to v2. The intersection point P is added as a new vertex to the half-edge data structure. e1 and e2 are then used as constraint edges. If no intersection point is detected, the original edge e is directly used as a constraint edge.

[0065] Understandably, by iterating through each constraint edge alternately, there is no need to iterate through all edges twice, thus ensuring high time efficiency when processing large-scale datasets.

[0066] S250. Perform incremental insertion on the constraint edges to generate triangulation geometry data.

[0067] Specifically, the constraint edges are alternately and incrementally inserted to generate triangular mesh geometric data.

[0068] Optionally, incremental insertion is performed on the constraint edges to generate triangulation geometry data, including: Locate the triangle containing the starting point of the constraint edge in the current triangulation; Starting from the origin, traverse the adjacent triangles along the direction of the constraint edge. For each adjacent triangle, check whether the constraint edge crosses the adjacent triangle. Form a set of triangles to be deleted by all triangles crossed by the constrained edges; Delete the set of triangles to be deleted, and construct the cavity boundary of the cavity region based on the undeleted edges of the triangles in the set of triangles to be deleted; Connect the two endpoints of the constraint edge to the vertices on the cavity boundary to generate a new triangle; Based on the empty circle property of the triangulation algorithm, the edge flipping operation is performed on the new triangle to generate the triangle geometric data.

[0069] Among them, adjacent triangles are triangles adjacent to the direction of the constraint edge; the set of triangles to be deleted is the triangles that need to be deleted and are crossed by the constraint edge, indicating that the triangles are in an overlapping state; the cavity boundary is the related half-edge and face resources released in the half-edge data structure after deleting the triangles to be deleted; the triangulation algorithm can be the Delaunay Triangulation algorithm, whose empty circle property is that the circumcircle of any triangle does not contain any other vertices.

[0070] Specifically, locate the triangle containing the starting point of the constraint edge in the current triangulation; starting from the starting point v1, traverse adjacent triangles along the direction of the constraint edge. For each adjacent triangle, check whether the constraint edge crosses the adjacent triangle, i.e., whether the constraint edge intersects with two edges of the triangle; form a set of triangles to be deleted by all triangles crossed by the constraint edge; delete the set of triangles to be deleted, and release the relevant half-edges and face resources in the half-edge data structure based on all triangles in the set of triangles to be deleted. Form a cavity region by combining the released undeleted edges, and the boundary of the cavity region is composed of the undeleted edges of the triangles in the set of triangles to be deleted; connect the two endpoints v1 and v2 of the constraint edge to the vertices on the cavity boundary to generate a new triangle. For example, starting from v1, connect the boundary vertices sequentially along one direction of the cavity boundary to form a triangle; then starting from v2, connect the boundary vertices along the other direction, retaining the constraint edge v1-v2 itself as a dividing edge of the cavity; and perform edge detection and flipping optimization on the new triangle based on the empty circle property of the triangulation algorithm. For example, for a shared edge AB, the triangles on both sides are ABC and ABD respectively. If ∠ACB+∠ADB>180°, which is equivalent to D being inside the circumcircle of triangle ABC, or C being inside the circumcircle of triangle ABD, then the empty circle property is not satisfied, and edge flipping needs to be performed: replace the shared edge AB with CD, which is the other diagonal of quadrilateral ACBD, and update the duality and next pointer in the half-edge data structure. After edge flipping, recursively detect newly generated shared edges until all triangles satisfy the Delaunay empty circle property, and use the remaining triangulation data that satisfies the empty circle property as the triangle geometric data.

[0071] S260. Traverse the triangular mesh geometric data and use the ray casting method to determine the nesting level of each closed boundary ring. Mark the area enclosed by boundary rings with an odd number of nesting levels as invalid areas.

[0072] Here, a closed boundary loop represents the containment relationship of boundary loops; the nesting level represents the enclosed area of ​​the closed boundary loop; and the invalid area represents the area that does not need to be displayed.

[0073] Specifically, during the edge traversal process, the inner boundary edges are also inserted as constraint edges incrementally. After all edges have been traversed, the hole region is identified based on the inclusion relationship of the boundary rings: the ray method is used first to emit a horizontal or vertical ray from any point inside the closed boundary ring to be judged, and the number of intersections between the ray and all other closed boundary rings is counted to determine the nesting level of each closed boundary ring. The area enclosed by the boundary rings with an odd number of nesting levels is marked as an invalid region.

[0074] S270. Determine the centroid of each triangle. If the centroid is located in an invalid region, remove the triangle corresponding to that centroid and generate the target triangulation data.

[0075] Specifically, for each triangulation data point, the centroid of each triangle is determined using point-in-polygon. If the centroid of a triangle is located in an invalid region, the triangle is discarded. The triangles after discarding the super triangle and the invalid region triangles are used as triangulation data. The target triangulation data is generated by combining the vertex coordinates, texture coordinates and index data corresponding to the triangulation data.

[0076] In an optional embodiment of the present invention, each edge is traversed only once through the above-described alternating execution process. Self-intersection detection and constraint edge insertion are completed in the same traversal, with a time complexity of O(n log n). Compared to the traditional two-step method, which requires traversing all edges twice and has a time complexity of O(n) + O(n log n), the constraint edges in the embodiments of the present invention are immediately inserted into the half-edge data structure after topology repair, without the need for intermediate data format conversion, thus fundamentally avoiding the loss of constraint information.

[0077] S280. Based on rendering requirements, calculate the geometric simplification error tolerance of the target triangulation data using a multi-dimensional nonlinear geometric simplification error measurement model based on maritime safety perception, and generate rendering triangulation data according to the geometric simplification error tolerance; rendering requirements include line-of-sight distance and display scale.

[0078] S290. Based on the graphic representation rules and the rendered triangular network data, the target electronic nautical chart is generated.

[0079] This invention avoids the two-step processing flow of rendering systems that typically involves "topology repair followed by triangulation" by alternately executing traversal and incremental insertion. The first step involves traversing all edges for topology repair, and the second step inputs the repaired complete geometric data into the constrained Delaunay triangulation algorithm to complete the triangulation of triangles, optimizing the triangulated triangles based on the empty circle property. This process requires two traversals of all edges, resulting in a time complexity of O(n) + O(n log n), which is inefficient for large-scale datasets. By alternately executing topology repair and incremental constrained triangulation, self-intersection detection and splitting, as well as incremental insertion of constrained edges, are performed simultaneously during edge-by-edge traversal, reducing the time complexity of the traditional two-step method from O(n) + O(n log n) to O(n log n), further improving the efficiency for processing large-scale data.

[0080] This invention can also provide an electronic nautical chart full-link rendering system, which is divided into four layers: a data processing layer, a geometry processing layer, a GPU resource layer, and a rendering output layer. The modules are coupled through standardized data interfaces, with the output of the upper-layer module serving as the input of the lower-layer module, forming a complete rendering data link.

[0081] The data processing layer is responsible for parsing, indexing, and commanding the raw data corresponding to the S-101 electronic nautical chart, and outputting standardized drawing commands and spatial indexes; it includes a data parsing module, a hybrid spatial indexing module, and a command generation module.

[0082] The data parsing module takes the S-101 standard dataset file as input, including a product catalog, feature catalog, graphic representation library, and master data file; the output is a set of features, each containing geometric information, attribute information, style information, and nautical importance level labeling. The output of this module is simultaneously fed into both the hybrid spatial indexing module and the instruction generation module as input.

[0083] The input to the hybrid spatial index module is the set of features output by the data parsing module; the output is an R-tree index constructed from polygon and line features, a multi-level grid index constructed from point features, and an index association table, providing a unified spatial query interface to the outside world; the output of this module is used by the display scale control module to perform view frustum queries, and by the dynamic LOD grading module to query the distance from features to the channel centerline.

[0084] The instruction generation module takes as input the feature set output by the data parsing module and the S-101 graphic representation rules; its output is a standardized drawing instruction sequence, which, after execution by the built-in Lua virtual machine, outputs a set of rendering parameters including geometric references, style parameters, display priority, and LOD constraints. The output of this module is then sent to the geometry integration processing module as input for geometry processing.

[0085] The geometry processing layer is responsible for converting vector geometry into triangulation, generating multi-level LOD data and texture resources, and outputting geometric and texture data that can be rendered by the GPU; it includes a geometry integrated processing module, a dynamic LOD hierarchical module, and a texture management module.

[0086] The geometry integration processing module takes as input the geometric data of the face features in the drawing instructions output by the instruction generation module; the output is triangulation data, including vertex coordinate arrays, texture coordinate arrays and triangle index arrays. The output of this module is sent to the dynamic LOD grading module for multi-level simplification, while the highest precision triangulation data is directly sent to the GPU rendering preparation module.

[0087] The inputs to the dynamic LOD grading module are the triangulation data output by the geometry integration processing module, the nautical importance level of the features, the line-of-sight distance provided by the interactive control module, and the distance from the features to the channel centerline obtained by querying through the hybrid spatial index; the output is the triangulation data corresponding to the multi-level LOD; and the output of this module is sent to the GPU rendering preparation module.

[0088] The texture management module takes as input the graphic representation library extracted by the data parsing module, including dot symbols, line types, surface fills, and font specifications; the output consists of four texture atlases: dot symbol texture atlas, line type texture atlas, surface fill texture atlas, and character texture atlas. Each atlas contains multiple LOD-level resolution versions; and the output of this module is sent to the GPU rendering preparation module.

[0089] The GPU resource layer and rendering output layer include the GPU rendering preparation module. This layer is responsible for uploading the geometric and texture data from the CPU to the GPU memory and creating OpenGL resource objects such as VAO (Vertex Array Object), VBO (Vertex Buffer Object), EBO (Element Buffer Object), and FBO.

[0090] The GPU rendering preparation module takes as input the triangulation data of each level output by the geometry integration processing module and the dynamic LOD grading module, as well as four sets of texture atlases output by the texture management module; the output is the GPU-side OpenGL resource objects, including VAO, VBO, EBO corresponding to each LOD level, as well as FBO and its color attachment textures; and the output of this module is used by the shader rendering module.

[0091] The rendering output layer is responsible for selecting data from GPU resources for rendering based on user interaction and the current view state, and then outputting it to the screen. It includes an interaction control module, a display scale control module, a shader rendering module, an off-screen cache module, and a screen output module.

[0092] The interactive control module takes user interaction operations as input, including panning, zooming, and rotating; and outputs a view-projection matrix and the current view's display scale. Simultaneously, the module's output is sent to the display scale control module for feature filtering and the dynamic LOD grading module for view distance calculation, forming an interactive feedback loop.

[0093] The display scale control module takes the current display scale output by the interactive control module and the set of visible features within the view frustum obtained through the hybrid spatial index interface as input. The output is a list of visible features after scale filtering and collision avoidance processing. Each element in the list contains a feature identifier, the corresponding LOD level, and the rendering priority. The output of this module is sent to the shader rendering module to determine which features need to be drawn in the current frame.

[0094] The shader rendering module takes as input VAO / VBO / EBO resources, texture atlases, view-projection matrix output from the interactive control module, and list of visible features output from the display scale control module; the output is color texture rendered to the FBO; and this module draws ocean background, polygon features, line features, text annotations, and navigation mark features in order of display priority from low to high.

[0095] The input to the off-screen caching module is the FBO color texture output by the shader rendering module, and the interaction state provided by the interaction control module, which can be either an interactive state or a non-interactive state; the corresponding output is the cached static scene texture in the non-interactive state, or the real-time rendered FBO texture in the interactive state; and this module directly reuses the cached texture when there is no interaction, and triggers re-rendering and updates the cache when there is interaction.

[0096] Screen output module: The input is the final rendered texture output by the off-screen buffer module; the output is the screen display content drawn to the default frame buffer, i.e., the electronic nautical chart visible to the user.

[0097] This invention enables the initialization of target sea area data, real-time rendering, and dynamic updates. The initialization data involves global rendering of all regions and geographic elements within the target sea area. The real-time rendering pipeline combines user interaction, an interactive control module, a display scale control module, a hybrid spatial index query, a shader rendering module, an off-screen caching module, and a screen output module. This process is executed during each frame's rendering, dynamically determining the rendering content based on the current view state. Furthermore, during dynamic updates to the display level, the interactive control module outputs changes in viewing distance, the dynamic LOD grading module recalculates error tolerance, selects the corresponding LOD level triangulation, the GPU rendering preparation module switches between VBO and EBO, and the shader rendering module uses new precision data for rendering. This ensures that global rendering is performed during the initialization phase, allowing direct access to GPU resources during real-time rendering without redundant data transmission.

[0098] This invention provides experimental data for full-link rendering of electronic nautical charts.

[0099] The experimental environment used an Intel Core i7-10700K CPU, an NVIDIA GeForce RTX 3060 GPU, and 16GB of RAM. The software platform consisted of an Ubuntu 20.04 operating system, OpenGL 4.6, and GPU driver version 525.60.11. The test dataset was the open-source port area S-101 dataset, which contained 12,456 polygon features (including 3,210 concave polygons, 876 polygons with holes, and 423 self-intersecting polygons), 8,932 line features, and 15,678 point features, with a total channel length of 128 kilometers.

[0100] The geometric preprocessing time and rendering error rate of the alternating execution method in this embodiment of the invention are compared with those of the traditional two-step method, as shown in Table 1:

[0101] Table 1 The overall performance comparison is shown in Table 2:

[0102] Table 2 The experimental data presented in this embodiment of the invention demonstrate that the method of the present invention is significantly superior to traditional methods in terms of geometric processing efficiency and overall rendering performance.

[0103] Figure 3 This is a schematic diagram of an electronic chart full-link rendering device according to an embodiment of the present invention. This embodiment is applicable to the full-link rendering of electronic charts, especially to the full-link rendering of S-101 electronic charts. The electronic chart full-link rendering device can be implemented in hardware and / or software, and can be configured in a server. Figure 3 As shown, the device includes: The parsing and extraction module 310 is used to parse and extract the electronic nautical chart standard dataset file to obtain the graphic representation rules, at least one geographic feature, and the feature information and nautical importance level of the geographic feature; the geographic feature includes point features, area features and line features; the feature information includes geometric information, attribute information and style information; Traversal module 320 is used to traverse the face features based on the geometric information of the geographic features, and perform topology repair and incremental constraints on the original edges of the face features in combination with the half-edge data structure to generate target triangular mesh data; the target triangular mesh data includes a point coordinate array, a texture coordinate array, and a triangle index array. The rendering triangulation data generation module 330 is used to calculate the geometric simplification error tolerance of the target triangulation data based on the multi-dimensional nonlinear geometric simplification error measurement model of maritime safety perception, based on rendering requirements, and generate rendering triangulation data according to the geometric simplification error tolerance; rendering requirements include line-of-sight distance and display scale; The rendering module 340 is used to render based on the graphic representation rules and the rendering triangular network data to generate the target electronic nautical chart.

[0104] The technical solution of this invention involves parsing and extracting standard dataset files for electronic nautical charts to obtain graphic representation rules, at least one geographic element, and the element information and navigational importance level of the geographic element. The geographic element includes point elements, polygon elements, and line elements. The element information includes geometric information, attribute information, and style information. Based on the geometric information of the geographic element, the polygon elements are traversed, and topology repair and incremental constraints are performed on the original edges of the polygon elements using a half-edge data structure to generate target triangulation data. The target triangulation data includes a point coordinate array, a texture coordinate array, and a triangle index array. Based on rendering requirements, a geometric simplification error tolerance is calculated on the target triangulation data using a multi-dimensional nonlinear geometric simplification error measurement model for navigational safety perception. Rendering triangulation data is then generated based on the geometric simplification error tolerance. Rendering requirements include line-of-sight distance and display scale. Rendering is performed based on the graphic representation rules and the rendered triangulation data to generate the target electronic nautical chart. This addresses the technical problems of S-101 electronic nautical chart rendering, such as its inability to meet the comprehensive requirements of next-generation navigational applications for electronic nautical chart systems in terms of complex geometric processing efficiency, rendering accuracy, and LOD resource allocation for channel safety perception. This improves the display efficiency and accuracy of electronic nautical charts.

[0105] Optionally, the parsing and extraction module 310 is also used to parse and extract the electronic nautical chart standard dataset file to obtain the graphic representation rules, master data file and product catalog; The master data file is parsed to extract all geographic features, as well as their geometric, attribute, and style information. Determine the element type of the geographic element from the product catalog based on the geographic elements; Geographic elements are classified into levels based on navigation safety regulations, attribute information, and element types to determine their navigational importance level.

[0106] Optionally, the traversal module 320 is also used to construct a super triangle based on the bounding rectangle of the face feature vertices, and add the three sides and three vertices of the super triangle to the half-side data structure until all face features are added, and obtain the initialized half-side structure data. Traverse the original edges in the half-edge data structure corresponding to the face features; Intersection detection is performed on existing edges in the original edge and half-edge data structures to determine constraint edges; Incremental insertion of constraint edges is performed to generate triangulation geometry data; Traverse the triangular mesh geometric data, use the ray casting method to determine the nesting level of each closed boundary ring, and mark the region enclosed by boundary rings with an odd number of nesting levels as invalid regions; Determine the centroid of each triangle. If the centroid is located in an invalid region, remove the triangle corresponding to that centroid and generate the target triangulation data.

[0107] Optionally, the traversal module 320 is also used to perform intersection detection between the original edge and the existing edge in the half-edge data structure; If an intersection is detected, the original edge is split into two sub-edges at the intersection, and the intersection is added as a new vertex to the half-edge data structure. Use the two edge segments as constraint edges in sequence; If no intersection is detected, the original edge is used as the constraint edge.

[0108] Optionally, the traversal module 320 is also used to locate the triangle containing the starting point of the constraint edge in the current triangulation; Starting from the origin, traverse the adjacent triangles along the direction of the constraint edge. For each adjacent triangle, check whether the constraint edge crosses the adjacent triangle. Form a set of triangles to be deleted by all triangles crossed by the constrained edges; Delete the set of triangles to be deleted, and construct the cavity boundary of the cavity region based on the undeleted edges of the triangles in the set of triangles to be deleted; Connect the two endpoints of the constraint edge to the vertices on the cavity boundary to generate a new triangle; Based on the empty circle property of the triangulation algorithm, the edge flipping operation is performed on the new triangle to generate the triangle geometric data.

[0109] Optionally, the rendering triangular mesh data generation module 330 is also used to parse the rendering requirements to obtain the viewing distance, view-projection matrix, display scale and waterway influence radius; Based on the display scale, the target triangular mesh data is filtered according to the scale mapping table to obtain the elements to be rendered; Determine the camera focal length based on the view-projection matrix; The importance nonlinear coefficient of the element to be rendered is determined based on the navigation importance level and level coefficient mapping table; The geometric position of the feature to be rendered is determined based on the geometric information in the target triangular mesh data; The channel proximity is obtained by calculating the geometric position coordinates and the channel influence radius based on the channel proximity function; A multi-dimensional nonlinear geometric simplification error measurement model for pre-defined maritime safety perception is adopted. The geometric simplification error tolerance is calculated based on camera focal length, line-of-sight distance, importance nonlinear coefficient, screen pixel error threshold, and channel proximity. Based on the geometric simplification error tolerance, the boundary vertices of the target triangular mesh data corresponding to the features to be rendered are simplified to obtain the rendered triangular mesh data.

[0110] Optionally, the rendering triangular mesh data generation module 330 is used for...

[0111] in, To allow for geometric simplification error tolerance; Navigational importance level; These are the geometric position coordinates; This is the screen pixel error threshold; This refers to the line-of-sight distance. The focal length of the camera; For importance nonlinear coefficients; This refers to the proximity to the shipping lane.

[0112] Optionally, the electronic nautical chart full-link rendering device 300 also includes an index building module, which is used to compare the geometric information in the feature information of the surface features with a preset threshold, and build an R-tree index for target geographic features that are greater than the preset threshold; the tree nodes in the R-tree index store the corresponding target geographic feature identifier list and minimum bounding rectangle. Construct a multi-level grid index for point features; Based on the target geographic location, an indexed association table is created by combining R-tree indexes and multi-level grid indexes.

[0113] The electronic chart full-link rendering device provided in the embodiments of the present invention can execute the electronic chart full-link rendering method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0114] According to embodiments of the present invention, the present invention also provides an electronic device, a readable storage medium, and a computer program product.

[0115] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the electronic chart full-link rendering method of this invention. Figure 4A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0116] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0117] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0118] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the electronic chart end-to-end rendering method.

[0119] In some embodiments, the electronic chart end-to-end rendering method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the electronic chart end-to-end rendering method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute the electronic chart end-to-end rendering method by any other suitable means (e.g., by means of firmware).

[0120] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0121] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0122] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0123] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0124] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0125] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0126] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0127] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A full-link rendering method for electronic nautical charts, characterized in that, include: The standard dataset file of electronic nautical charts is parsed and extracted to obtain the graphic representation rules, at least one geographic element, and the element information and nautical importance level of the geographic element; The geographic features include point features, polygon features, and line features; the feature information includes geometric information, attribute information, and style information. Based on the geometric information of the geographic elements, the face elements are traversed, and topology repair and incremental constraints are performed on the original edges of the face elements in combination with the half-side data structure to generate target triangular network data. The target triangulation data includes a point coordinate array, a texture coordinate array, and a triangle index array; Based on rendering requirements, the geometric simplification error tolerance is calculated for the target triangulation data using a multi-dimensional nonlinear geometric simplification error metric model based on maritime safety perception, and rendering triangulation data is generated based on the geometric simplification error tolerance. Rendering requirements include view distance and display scale; The target electronic nautical chart is generated by rendering based on the graphic representation rules and the rendered triangular network data.

2. The method according to claim 1, characterized in that, The step of parsing and extracting from the electronic nautical chart standard dataset file yields the graphic representation rules, at least one geographic element, and the element information and nautical importance level of the geographic element, including: The standard dataset file of electronic nautical charts is parsed and extracted to obtain the graphic representation rules, master data file and product catalog; The master data file is parsed to extract all geographic features, as well as their geometric, attribute, and style information. Determine the element type of the geographic element from the product catalog based on the geographic elements; The geographical elements are classified into different levels based on maritime safety regulations, attribute information, and element type to determine their maritime importance level.

3. The method according to claim 1, characterized in that, The process of traversing the face features based on the geometric information of the geographic features, performing topology repair and incremental constraints on the original edges of the face features using the half-edge data structure, and generating target triangular network data includes: A super triangle is constructed based on the bounding rectangle of the face feature vertices, and the three sides and three vertices of the super triangle are added to the half-side data structure until all face features are added, thus obtaining the initialized half-side structure data. Traverse the original edges in the half-edge data structure corresponding to the face feature; Intersection detection is performed based on the original edges and the existing edges in the half-edge data structure to determine the constraint edges; Incremental insertion is performed on the constrained edges to generate triangulation geometric data; Traverse the triangular mesh geometric data, use the ray casting method to determine the nesting level of each closed boundary ring, and mark the area enclosed by the boundary ring with an odd number of nesting levels as an invalid area; Determine the centroid of each triangle. If the centroid is located in the invalid region, remove the triangle corresponding to that centroid and generate the target triangulation data.

4. The method according to claim 3, characterized in that, The step of performing intersection detection based on the original edges and existing edges in the half-edge data structure to determine constrained edges includes: Perform intersection detection between the original edge and the existing edges in the half-edge data structure; If an intersection is detected, the original edge is split into two sub-edges at the intersection, and the intersection is added as a new vertex to the half-edge data structure. Use the two edge segments as constraint edges in sequence; If no intersection is detected, the original edge is used as a constraint edge.

5. The method according to claim 3, characterized in that, The step of incrementally inserting the constrained edges to generate triangulation geometric data includes: Locate the triangle containing the starting point of the constraint edge in the current triangulation; Starting from the origin, traverse adjacent triangles along the direction of the constraint edge. For each adjacent triangle, check whether the constraint edge crosses the adjacent triangle. Form a set of triangles to be deleted by all triangles crossed by the constrained edges; Delete the set of triangles to be deleted, and construct the cavity boundary of the cavity region based on the undeleted edges of the triangles in the set of triangles to be deleted; Connect the two endpoints of the constraint edge to the vertices on the cavity boundary to generate a new triangle; Based on the empty circle property of the triangulation algorithm, the edge flipping operation is performed on the new triangle to generate the triangle geometric data.

6. The method according to claim 1, characterized in that, The process of calculating the geometric simplification error tolerance of the target triangulation data based on the rendering requirements using a multi-dimensional nonlinear geometric simplification error metric model for maritime safety perception, and generating rendered triangulation data based on the geometric simplification error tolerance, includes: The rendering requirements are analyzed to obtain the viewing distance, view-projection matrix, display scale, and flight path influence radius. Based on the display scale, the target triangular mesh data is filtered according to the scale mapping table to obtain the elements to be rendered; The camera focal length is determined based on the view-projection matrix; The importance nonlinear coefficient of the element to be rendered is determined according to the navigation importance level and level coefficient mapping table; The geometric position of the element to be rendered is determined based on the geometric information in the target triangular mesh data; The channel proximity is calculated based on the geometric position coordinates and the channel influence radius using the channel proximity function; A multi-dimensional nonlinear geometric simplification error measurement model for maritime safety perception is adopted. Based on the camera focal length, the line-of-sight distance, the importance nonlinear coefficient, the screen pixel error threshold, and the channel proximity, the geometric simplification error tolerance is calculated. Based on the geometric simplification error tolerance, the boundary vertices of the target triangular mesh data corresponding to the feature to be rendered are simplified to obtain the rendered triangular mesh data.

7. The method according to claim 6, characterized in that, The multi-dimensional nonlinear geometric simplification error measurement model employing preset maritime safety perception calculates the geometric simplification error tolerance based on the camera focal length, the line-of-sight distance, the importance nonlinear coefficient, the screen pixel error threshold, and the channel proximity. The calculation formula is as follows: in, To allow for geometric simplification error tolerance; Navigational importance level; These are the geometric position coordinates; This is the screen pixel error threshold; This refers to the line-of-sight distance. The focal length of the camera; For importance nonlinear coefficients; This refers to the proximity to the shipping lane.

8. The method according to claim 1, characterized in that, After parsing and extracting the standard dataset file of electronic nautical charts to obtain the graphic representation rules, at least one geographic element, and the element information and nautical importance level of the geographic element, the process also includes: The geometric information in the feature information of the opposite feature is compared with a preset threshold, and the target geographic features that are greater than the preset threshold are constructed into an R-tree index; the tree nodes in the R-tree index store the corresponding target geographic feature identifier list and minimum bounding rectangle; Construct a multi-level grid index for the point features; Based on the location of the target geographical region, an index association table is established by combining the R-tree index and the multi-level grid index.

9. An electronic nautical chart end-to-end rendering device, characterized in that, include: The parsing and extraction module is used to parse and extract the electronic nautical chart standard dataset file to obtain the graphic representation rules, at least one geographic element, and the element information and nautical importance level of the geographic element; The geographic features include point features, polygon features, and line features; the feature information includes geometric information, attribute information, and style information. The traversal module is used to traverse the face features based on the geometric information of the geographic features, and perform topology repair and incremental constraints on the original edges of the face features in combination with the half-edge data structure to generate target triangular network data; the target triangular network data includes a point coordinate array, a texture coordinate array, and a triangle index array; The rendering triangulation data generation module is used to calculate the geometric simplification error tolerance of the target triangulation data based on the rendering requirements and the multi-dimensional nonlinear geometric simplification error measurement model of maritime safety perception, and generate rendering triangulation data according to the geometric simplification error tolerance. Rendering requirements include view distance and display scale; The rendering module is used to render the target electronic nautical chart based on the graphic representation rules and the rendering triangular network data.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the electronic chart full-link rendering method according to any one of claims 1-8.