Map road rendering method and device, equipment and storage medium

CN116051763BActive Publication Date: 2026-08-18GUANGZHOU WERIDE TECH LTD CO
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211721330.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2026-08-18
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

[0003]本发明的主要目的在于解决现有的地图道路渲染过程中在俯视正投影视角下对立交路段等高程方向的遮挡情况无法方便的展示的技术问题

Benefits of technology

[0068] In the technical solution of this invention, the coordinate information of the road surface grid model and each map grid patch in the road surface grid model is obtained, and the road surface grid model is displayed on the front-end page using an orthographic projection top-down view. In response to an interactive operation on the road surface grid model on the front-end page, the map grid patch and rendering mode corresponding to the interactive operation are determined. Automatic elevation clipping tracking is performed on the map grid patch corresponding to the interactive operation based on the coordinate information, and the elevation rendering range is adjusted. The road surface grid model is then rendered step-by-step based on the elevation rendering range and the rendering mode. This method tracks the map grid patch of the interactive operation on the front-end page using a preset automatic elevation clipping tracking mechanism, automatically determining the map grid patch corresponding to the current interactive operation, thus avoiding occlusion in the elevation direction during rendering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116051763B_ABST
    Figure CN116051763B_ABST
Patent Text Reader

Abstract

The present application relates to the field of map rendering, and discloses a map road rendering method, device, equipment and storage medium, the method comprises: obtaining the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and displaying the road surface grid model by orthographic projection overhead angle on the front-end page; in response to the interactive operation on the road surface grid model on the front-end page, determining the map grid patch and the rendering mode corresponding to the interactive operation; according to the coordinate information, the map grid patch corresponding to the interactive operation is automatically elevation cut tracking, the elevation rendering range is adjusted; based on the elevation rendering range and the rendering mode, the road surface grid model is rendered step by step. The method tracks the map grid patch of the interactive operation of the front-end page by the preset automatic elevation cut tracking, automatically determines the map grid patch corresponding to the current interactive operation, and avoids the shielding condition in the elevation direction in the rendering process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of map rendering, and more particularly to a method, apparatus, device, and storage medium for rendering maps and roads. Background Technology

[0002] The rendering and display of road networks in electronic maps is crucial to user experience, and the accurate display of interchanges is a challenge in road network rendering. In practical applications, interchanges refer to modern land bridges built at the intersection of two or more roads, providing multi-directional traffic without interference. Furthermore, users commonly view electronic maps from a top-down orthographic projection perspective. This perspective objectively shows the road's direction and offers relatively simple two-dimensional perspective manipulation, making it user-friendly. Building facades are not displayed in this perspective and are not a primary focus of high-precision maps. Moreover, orthographic projection avoids the distortion of perspective distortion. Therefore, a top-down orthographic projection perspective is generally preferred for viewing road surfaces. However, its drawback is that it cannot easily display elevation occlusion during rendering, such as in complex overpasses and tunnels. Summary of the Invention

[0003] The main objective of this invention is to solve the technical problem that existing map road rendering processes cannot easily display the occlusion of interchange sections and other elevation directions under a top-down orthographic projection view.

[0004] The first aspect of this invention provides a map road rendering method, comprising:

[0005] Obtain the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and display the road surface grid model on the front-end page using an orthographic projection top-down view.

[0006] In response to an interactive operation on the road surface grid model on the front-end page, determine the map grid patch and rendering mode corresponding to the interactive operation;

[0007] Based on the coordinate information, the map grid patch corresponding to the interactive operation is automatically subjected to elevation clipping and tracking, and the elevation rendering range is adjusted.

[0008] The road surface mesh model is rendered in stages based on the elevation rendering range and the rendering mode.

[0009] Optionally, in a first implementation of the first aspect of the present invention, the interactive operation is a click operation;

[0010] The step of automatically elevating and tracking the map grid patch corresponding to the interactive operation based on the coordinate information, and adjusting the elevation rendering range, includes:

[0011] Based on the coordinate information of the click position of the click operation, determine whether the map grid patch corresponding to the click operation is a group of map grid patches with the same coordinates under the orthographic projection view.

[0012] If so, then according to the preset elevation clipping tracking logic, determine the map grid patch corresponding to the click operation in the map grid patch group;

[0013] If not, then the map grid patch corresponding to the click position of the click operation is taken as the map grid patch corresponding to the click operation;

[0014] Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation, and the elevation rendering range is adjusted.

[0015] Optionally, in a second implementation of the first aspect of the present invention, determining the map grid patch corresponding to the click operation in the map grid patch group according to a preset elevation clipping tracking logic includes:

[0016] The preset elevation clipping and tracking logic obtains the map grid patch corresponding to the previous interaction operation;

[0017] In the road surface grid model, the map grid patch corresponding to the previous interactive operation is connected to each map grid patch in the map grid patch group, and the connection distance between the map grid patch corresponding to the previous interactive operation and each map grid patch in the map grid patch group is calculated.

[0018] The map grid patch with the shortest connection distance to the map grid patch corresponding to the previous interactive operation in the map grid patch group is selected as the map grid patch corresponding to the click operation.

[0019] Optionally, in a third implementation of the first aspect of the present invention, the automatic elevation clipping and tracking of the map grid patch corresponding to the click operation, and the adjustment of the elevation rendering range, include:

[0020] Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation to obtain the elevation information of the map grid patch corresponding to the click operation.

[0021] Determine whether the elevation information of the map grid patch corresponding to the click operation is within the preset elevation rendering range;

[0022] If not, the elevation rendering range is adjusted until the elevation information of the map grid patch corresponding to the click operation is within the elevation rendering range.

[0023] Optionally, in a fourth implementation of the first aspect of the present invention, the step of automatically performing elevation clipping and tracking on the map grid patch corresponding to the interactive operation based on the coordinate information and adjusting the elevation rendering range further includes:

[0024] The content displayed on the front-end page is adjusted according to the click operation;

[0025] The map grid patch corresponding to the central display area in the adjusted display content is determined to be the map grid patch corresponding to the click operation.

[0026] Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation, and the elevation rendering range is adjusted.

[0027] Optionally, in a fifth implementation of the first aspect of the present invention, the rendering mode includes a normal mode and a special mode;

[0028] The step-by-step rendering of the road surface mesh model based on the elevation rendering range and the rendering mode includes:

[0029] Obtain the road surface parameters of each map grid patch in the road surface grid model;

[0030] If the display mode is normal mode, then the map grid patches in the road surface grid model within the elevation rendering range are clipped, and the clipped map grid patches are rendered according to the road surface parameters.

[0031] If the display mode is a special mode, then each map grid patch of the road surface grid model on the front-end page is rendered according to the road surface parameters and the size relationship between the elevation information corresponding to each map grid patch and the elevation rendering range.

[0032] Optionally, in a sixth implementation of the first aspect of the present invention, before obtaining the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, the method further includes:

[0033] The vehicle trajectory of the vehicle collecting map data is obtained, and the map grid patch in the map data on the vehicle trajectory is marked as the initial road surface;

[0034] Based on the initial road surface, the map grid is expanded according to a preset algorithm until the distance between the expanded map grid and the map grid of the initial road surface is greater than a preset threshold. Then the map grid expansion operation is stopped, and a drivable road surface is obtained.

[0035] A road surface grid model is generated based on the map grid patches of the drivable road surface.

[0036] A second aspect of the present invention provides a map road rendering apparatus, comprising:

[0037] The acquisition module is used to acquire the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and display the road surface grid model on the front-end page using an orthographic projection top-down view.

[0038] An interaction module is used to respond to interactive operations on the road surface grid model on the front-end page and determine the map grid patch and rendering mode corresponding to the interactive operation.

[0039] The elevation tracking module is used to automatically perform elevation clipping and tracking on the map grid patch corresponding to the interactive operation based on the coordinate information, and adjust the elevation rendering range.

[0040] The rendering module is used to perform step-by-step rendering of the road surface grid model based on the elevation rendering range and the rendering mode.

[0041] Optionally, in a first implementation of the second aspect of the present invention, the interactive operation is a click operation; the elevation tracking module includes:

[0042] The judgment unit is used to determine, based on the coordinate information of the click position of the click operation, whether the map grid patch corresponding to the click operation is a group of map grid patches with the same coordinates under the orthographic projection view.

[0043] The first confirmation unit is used to determine the map grid patch corresponding to the click operation in the map grid patch group according to the preset elevation clipping tracking logic.

[0044] The second confirmation unit is used to take the map grid patch corresponding to the click position of the click operation as the map grid patch corresponding to the click operation.

[0045] The tracking unit is used to automatically perform elevation clipping tracking on the map grid patch corresponding to the click operation and adjust the elevation rendering range.

[0046] Optionally, in a second implementation of the second aspect of the present invention, the first determining unit is specifically used for:

[0047] The preset elevation clipping and tracking logic obtains the map grid patch corresponding to the previous interaction operation;

[0048] In the road surface grid model, the map grid patch corresponding to the previous interactive operation is connected to each map grid patch in the map grid patch group, and the connection distance between the map grid patch corresponding to the previous interactive operation and each map grid patch in the map grid patch group is calculated.

[0049] The map grid patch with the shortest connection distance to the map grid patch corresponding to the previous interactive operation in the map grid patch group is selected as the map grid patch corresponding to the click operation.

[0050] Optionally, in a third implementation of the second aspect of the present invention, the tracking unit is specifically used for:

[0051] Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation to obtain the elevation information of the map grid patch corresponding to the click operation.

[0052] Determine whether the elevation information of the map grid patch corresponding to the click operation is within the preset elevation rendering range;

[0053] If not, the elevation rendering range is adjusted until the elevation information of the map grid patch corresponding to the click operation is within the elevation rendering range.

[0054] Optionally, in a fourth implementation of the second aspect of the present invention, the elevation tracking module is further configured to:

[0055] The content displayed on the front-end page is adjusted according to the click operation;

[0056] The map grid patch corresponding to the central display area in the adjusted display content is determined to be the map grid patch corresponding to the click operation.

[0057] Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation, and the elevation rendering range is adjusted.

[0058] Optionally, in a fifth implementation of the second aspect of the present invention, the rendering mode includes a normal mode and a special mode; the rendering module is specifically used for:

[0059] Obtain the road surface parameters of each map grid patch in the road surface grid model;

[0060] If the display mode is normal mode, then the map grid patches in the road surface grid model within the elevation rendering range are clipped, and the clipped map grid patches are rendered according to the road surface parameters.

[0061] If the display mode is a special mode, then each map grid patch of the road surface grid model on the front-end page is rendered according to the road surface parameters and the size relationship between the elevation information corresponding to each map grid patch and the elevation rendering range.

[0062] Optionally, in a sixth implementation of the second aspect of the present invention, the road surface rendering device further includes a mesh model generation module, which is specifically used for:

[0063] The vehicle trajectory of the vehicle collecting map data is obtained, and the map grid patch in the map data on the vehicle trajectory is marked as the initial road surface;

[0064] Based on the initial road surface, the map grid is expanded according to a preset algorithm until the distance between the expanded map grid and the map grid of the initial road surface is greater than a preset threshold. Then the map grid expansion operation is stopped, and a drivable road surface is obtained.

[0065] A road surface grid model is generated based on the map grid patches of the drivable road surface.

[0066] A third aspect of the present invention provides a map road rendering device, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a circuit; the at least one processor invokes the instructions in the memory to cause the map road rendering device to perform the steps of the map road rendering method described above.

[0067] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the steps of the map road rendering method described above.

[0068] In the technical solution of this invention, the coordinate information of the road surface grid model and each map grid patch in the road surface grid model is obtained, and the road surface grid model is displayed on the front-end page using an orthographic projection top-down view. In response to an interactive operation on the road surface grid model on the front-end page, the map grid patch and rendering mode corresponding to the interactive operation are determined. Automatic elevation clipping tracking is performed on the map grid patch corresponding to the interactive operation based on the coordinate information, and the elevation rendering range is adjusted. The road surface grid model is then rendered step-by-step based on the elevation rendering range and the rendering mode. This method tracks the map grid patch of the interactive operation on the front-end page using a preset automatic elevation clipping tracking mechanism, automatically determining the map grid patch corresponding to the current interactive operation, thus avoiding occlusion in the elevation direction during rendering. Attached Figure Description

[0069] Figure 1 This is a schematic diagram of the first embodiment of the map road rendering method in this invention;

[0070] Figure 2 This is a schematic diagram of a second embodiment of the map road rendering method in this invention;

[0071] Figure 3 This is a schematic diagram of one embodiment of the map road rendering device in this invention;

[0072] Figure 4 This is a schematic diagram of another embodiment of the map road rendering device in this invention;

[0073] Figure 5 This is a schematic diagram of one embodiment of the map road rendering device in this invention. Detailed Implementation

[0074] In this embodiment, the method acquires the road surface grid model and the coordinate information of each map grid patch within the road surface grid model, and displays the road surface grid model on the front-end page using an orthographic projection top-down view. In response to an interactive operation on the road surface grid model on the front-end page, the method determines the map grid patch and rendering mode corresponding to the interactive operation. Based on the coordinate information, the method performs automatic elevation clipping tracking on the map grid patch corresponding to the interactive operation, adjusting the elevation rendering range. The method then performs step-by-step rendering of the road surface grid model based on the elevation rendering range and the rendering mode. This method tracks the map grid patches of the interactive operation on the front-end page using a preset automatic elevation clipping tracking mechanism, automatically determining the map grid patch corresponding to the current interactive operation, thus avoiding occlusion in the elevation direction during rendering.

[0075] The terms “first,” “second,” “third,” “fourth,” etc. (if present) 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 described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a 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.

[0076] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 The first embodiment of the map road rendering method in this invention includes:

[0077] 101. Obtain the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and display the road surface grid model on the front-end page using an orthographic projection top-down view.

[0078] It is understood that the executing entity of this invention can be a map road rendering device, a terminal, or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.

[0079] In this embodiment, the road surface mesh model is obtained by extracting the road surface portion from the 3D mesh model generated from point cloud map data. The front-end main interface always uses an orthographic projection top-down view to render a high-precision map mesh with textured maps, and only renders a subset of the mesh patches of the road surface mesh model extracted in the previous step. The subset of mesh patches contains map mesh patches of the road surface mesh model, and each map mesh patch has corresponding coordinate information. Rendering only the subset of the mesh patches of the road surface mesh model extracted in the previous step can avoid interference from other irrelevant objects and occlusion of the road surface portion under the top-down view.

[0080] In this embodiment, before obtaining the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, the method further includes: obtaining the vehicle trajectory of the vehicle collecting map data, and marking the map grid patch on the vehicle trajectory in the map data as the initial road surface; performing map grid patch expansion operation based on the initial road surface according to a preset algorithm until the distance between the expanded map grid patch and the map grid patch of the initial road surface is greater than a preset threshold, stopping the map grid patch expansion operation to obtain a drivable road surface; and generating a road surface grid model based on the map grid patches of the drivable road surface.

[0081] Specifically, the geometric representation of a high-precision map is typically a 3D mesh model with textured maps. By extracting the road surface portion from this model, a road surface mesh model is obtained. Given that the trajectory of the vehicle collecting map data always lies on the road surface, the mesh patch directly below the trajectory is marked as the road surface, serving as the initial seed patch. Then, the road surface markings are continuously expanded outwards through mesh connections. During this expansion, only patches whose normal vector forms an angle less than a certain threshold with the vertical upward direction are selected, and the distance between the current patch and the initial seed patch is gradually accumulated. The expansion stops when the distance between the current patch and the seed patch exceeds a certain threshold. After the algorithm stops, all patches marked as road surfaces form a subset of the drivable area mesh model. According to the algorithm, this subset is a continuous, flat mesh without abrupt height changes. The road surface mesh model is generated based on the meshes in this subset of the 3D mesh model, completing the extraction of the road surface portion from the model.

[0082] In this embodiment, the coordinate information is mainly from a top-down orthographic projection perspective. This perspective objectively displays the road's direction and offers relatively simple 2D spatial manipulation, making it easy for users. Furthermore, building facades are not displayed in the top-down view and are not a primary focus of high-precision maps. The orthographic projection perspective also avoids the distortion of near objects appearing smaller than distant ones. Therefore, overall, a top-down orthographic projection perspective is primarily used for viewing road surfaces. For road segments with grid patches sharing the same coordinate information, these patches are identified as grade-separated intersections.

[0083] 102. In response to interactive operations on the road surface grid model on the front-end page, determine the map grid patch and rendering mode corresponding to the interactive operation;

[0084] In this embodiment, the interactive operation can be one of a click operation, a long press operation, or a double-click operation, or it can be an operation that can determine the map grid area in practical applications; this invention is not limited to any particular operation. The rendering mode includes a normal mode and a special mode, where the special mode can be a semi-transparent mode, which can be switched by a keyboard button. When a keyboard shortcut key is pressed continuously, the semi-transparent mode is maintained; otherwise, the normal mode is used. In normal mode, grid areas below the minimum height or above the maximum height are not rendered. In semi-transparent mode, map grid areas of different height ranges will display different transparency or colors. For example, models within the height range will be rendered with 20% transparency. Areas below the minimum height will be rendered with 80% transparency and supplemented with blue tint, and areas above the maximum height will be rendered with 80% transparency and supplemented with red tint. This rendering method allows users to quickly observe road conditions outside the current elevation rendering range.

[0085] 103. Based on the coordinate information, automatically perform elevation clipping and tracking on the map grid patches corresponding to the interactive operation, and adjust the elevation rendering range;

[0086] In this embodiment, the step of automatically elevating and tracking the map grid patch corresponding to the interactive operation based on the coordinate information and adjusting the elevation rendering range includes: adjusting the displayed content of the front-end page according to the click operation; determining the map grid patch corresponding to the central display area in the adjusted displayed content as the map grid patch corresponding to the click operation; and automatically elevating and tracking the map grid patch corresponding to the click operation to adjust the elevation rendering range.

[0087] Specifically, the automatic elevation clipping tracking function adaptively adjusts the elevation clipping range based on the user's current operation. Users can enable automatic elevation clipping tracking when moving the viewpoint. This function continuously retrieves the elevation information of the viewport center point (the central display area within the displayed content) using the same method as the previous step, and automatically adjusts the elevation rendering range to adapt to this elevation information. It retrieves the elevation of the viewport center point rather than the mouse click location because, in this user's viewpoint, the mouse is likely clicking and dragging the background, where there are no objects, thus no elevation information for interactive operations to perform elevation clipping tracking.

[0088] 104. The road surface mesh model is rendered in stages based on the elevation rendering range and rendering mode.

[0089] In this embodiment, the rendering mode includes a normal mode and a special mode; the step-by-step rendering of the road surface grid model based on the elevation rendering range and the rendering mode includes: obtaining the road surface parameters of each map grid patch in the road surface grid model; if the display mode is normal mode, then the map grid patches in the road surface grid model within the elevation rendering range are cropped, and the cropped map grid patches are rendered according to the road surface parameters; if the display mode is special mode, then each map grid patch of the road surface grid model on the front-end page is rendered according to the road surface parameters and the size relationship between the elevation information corresponding to each map grid patch and the elevation rendering range.

[0090] In this embodiment, the rendering modes include a normal mode and a special mode, where the special mode can be a semi-transparent mode, which can be switched using a keyboard button. The semi-transparent mode is maintained while a keyboard shortcut key is continuously pressed; otherwise, the normal mode is used. In normal mode, grid patches with heights below the minimum or above the maximum are not rendered. In semi-transparent mode, map grid patches with different height ranges will display different transparency levels or colors. For example, models within the height range will be rendered with 20% transparency. Parts below the minimum height will be rendered with 80% transparency and a blue tint, while parts above the maximum height will be rendered with 80% transparency and a red tint. This rendering method allows users to quickly observe road conditions outside the current elevation rendering range. The road surface grid model is rendered step-by-step based on multiple interactive operations, with each interactive operation rendering the corresponding map grid patch within the road surface grid model.

[0091] In this embodiment, the road surface grid model and the coordinate information of each map grid patch within the road surface grid model are obtained, and the road surface grid model is displayed on the front-end page using an orthographic projection top-down view. In response to interactive operations on the road surface grid model on the front-end page, the map grid patch and rendering mode corresponding to the interactive operation are determined. Automatic elevation clipping tracking is performed on the map grid patch corresponding to the interactive operation based on the coordinate information, and the elevation rendering range is adjusted. The road surface grid model is then rendered in stages based on the elevation rendering range and the rendering mode. This method tracks the map grid patches of the interactive operation on the front-end page using a preset automatic elevation clipping tracking mechanism, automatically determining the map grid patch corresponding to the current interactive operation, thus avoiding occlusion in the elevation direction during rendering.

[0092] Please see Figure 2 The second embodiment of the map road rendering method in this invention includes:

[0093] 201. Obtain the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and display the road surface grid model on the front-end page using an orthographic projection top-down view.

[0094] 202. In response to an interactive operation on the road surface grid model on the front-end page, determine the map grid patch and rendering mode corresponding to the interactive operation, wherein the interactive operation is a click operation;

[0095] 203. Based on the coordinate information of the click position of the click operation, determine whether the map grid patch corresponding to the click operation is a group of map grid patches with the same coordinates under the orthographic projection top view.

[0096] 204. If so, then determine the map grid patch corresponding to the click operation in the map grid patch group according to the preset elevation clipping tracking logic;

[0097] In this embodiment, determining the map grid patch corresponding to the click operation in the map grid patch group according to the preset elevation clipping tracking logic includes: obtaining the map grid patch corresponding to the previous interaction operation according to the preset elevation clipping tracking logic; connecting the map grid patch corresponding to the previous interaction operation to each map grid patch in the map grid patch group in the road surface grid model, and calculating the connection distance between the map grid patch corresponding to the previous interaction operation and each map grid patch in the map grid patch group; and selecting the map grid patch in the map grid patch group with the shortest connection distance to the map grid patch corresponding to the previous interaction operation as the map grid patch corresponding to the click operation.

[0098] Specifically, because the ground grid model is rendered in steps, multiple interactive operations are performed during the rendering process. In each interactive operation, the corresponding map grid patch needs to be determined. Since the ground grid model may contain grade-separated road sections (in practical applications, grade-separated road sections refer to modern land bridges established at the intersection of two or more roads, allowing for multi-directional traffic without interference), multiple map grid patches with the same coordinate information are grouped together. It is necessary to determine the map grid patch corresponding to the current interactive operation from this group. When multiple... During each interactive operation, connecting lines are generated between each interactive operation. The map grid patch corresponding to the previous interactive operation is also connected to each map grid patch in the map grid patch group. The connection distance between the map grid patch corresponding to the previous interactive operation and each map grid patch in the map grid patch group is calculated. This connection distance is the path connecting the two map grid patches along the road grid model. The map grid patch with the shortest connection distance to the map grid patch corresponding to the previous interactive operation is selected as the map grid patch corresponding to the click operation because the distance between two interactive operations is generally not too far.

[0099] 205. If not, then the map grid patch corresponding to the click location of the click operation will be used as the map grid patch corresponding to the click operation.

[0100] 206. Perform automatic elevation clipping and tracking on the map grid patches corresponding to the click operation, and adjust the elevation rendering range;

[0101] In this embodiment, the automatic elevation clipping and tracking of the map grid patch corresponding to the click operation and the adjustment of the elevation rendering range include: performing automatic elevation clipping and tracking of the map grid patch corresponding to the click operation to obtain the elevation information of the map grid patch corresponding to the click operation; determining whether the elevation information of the map grid patch corresponding to the click operation is within a preset elevation rendering range; if not, adjusting the elevation rendering range until the elevation information of the map grid patch corresponding to the click operation is within the elevation rendering range.

[0102] 207. The road surface mesh model is rendered in stages based on the elevation rendering range and rendering mode.

[0103] This embodiment, based on the previous embodiment, describes in detail the process of automatically performing elevation clipping and tracking on the map grid patch corresponding to the interactive operation based on the coordinate information, and adjusting the elevation rendering range. By determining whether the map grid patch corresponding to the click operation is a group of map grid patches with the same coordinates under the orthographic projection viewpoint, based on the coordinate information of the click position, the method identifies the map grid patch corresponding to the click operation within the map grid patch group. If so, the method determines the map grid patch corresponding to the click operation within the map grid patch group according to a preset elevation clipping and tracking logic. If not, the map grid patch corresponding to the click position is taken as the map grid patch corresponding to the click operation. Automatic elevation clipping and tracking are then performed on the map grid patch corresponding to the click operation to adjust the elevation rendering range. This method tracks the map grid patches of interactive operations on the front-end page using preset automatic elevation clipping and tracking, automatically determining the map grid patch corresponding to the current interactive operation, thus avoiding occlusion in the elevation direction during rendering.

[0104] The map road rendering method in the embodiments of the present invention has been described above. The map road rendering apparatus in the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 3 One embodiment of the map road rendering device in this invention includes:

[0105] The acquisition module 301 is used to acquire the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and to display the road surface grid model on the front-end page using an orthographic projection top-down view.

[0106] The interaction module 302 is used to respond to the interaction operation on the road surface grid model on the front-end page and determine the map grid patch and rendering mode corresponding to the interaction operation.

[0107] The elevation tracking module 303 is used to automatically perform elevation clipping and tracking on the map grid patch corresponding to the interactive operation based on the coordinate information, and adjust the elevation rendering range.

[0108] The rendering module 304 is used to perform step-by-step rendering of the road surface grid model based on the elevation rendering range and the rendering mode.

[0109] In this embodiment of the invention, the map road rendering device runs the aforementioned map road rendering method. The device acquires a road surface grid model and the coordinate information of each map grid patch within the model, and displays the road surface grid model on a front-end page using an orthographic projection top-down view. In response to an interactive operation on the road surface grid model on the front-end page, it determines the map grid patch and rendering mode corresponding to the interactive operation. Based on the coordinate information, it performs automatic elevation clipping tracking on the map grid patch corresponding to the interactive operation, adjusting the elevation rendering range. Based on the elevation rendering range and the rendering mode, it performs step-by-step rendering of the road surface grid model. This method tracks the map grid patches of the interactive operation on the front-end page using a preset automatic elevation clipping tracking mechanism, automatically determining the map grid patch corresponding to the current interactive operation, thus avoiding occlusion in the elevation direction during rendering.

[0110] Please see Figure 4 A second embodiment of the map road rendering device in this invention includes:

[0111] The acquisition module 301 is used to acquire the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and to display the road surface grid model on the front-end page using an orthographic projection top-down view.

[0112] The interaction module 302 is used to respond to the interaction operation on the road surface grid model on the front-end page and determine the map grid patch and rendering mode corresponding to the interaction operation.

[0113] The elevation tracking module 303 is used to automatically perform elevation clipping and tracking on the map grid patch corresponding to the interactive operation based on the coordinate information, and adjust the elevation rendering range.

[0114] The rendering module 304 is used to perform step-by-step rendering of the road surface grid model based on the elevation rendering range and the rendering mode.

[0115] In this embodiment, the interactive operation is a click operation; the elevation tracking module 303 includes:

[0116] The judgment unit 3031 is used to determine, based on the coordinate information of the click position of the click operation, whether the map grid patch corresponding to the click operation is a group of map grid patches with the same coordinates under the orthographic projection view.

[0117] The first confirmation unit 3032 is used to determine the map grid patch corresponding to the click operation in the map grid patch group according to the preset elevation clipping tracking logic.

[0118] The second confirmation unit 3033 is used to use the map grid patch corresponding to the click position of the click operation as the map grid patch corresponding to the click operation.

[0119] The tracking unit 3034 is used to automatically perform elevation clipping tracking on the map grid patch corresponding to the click operation and adjust the elevation rendering range.

[0120] In this embodiment, the first determining unit 3032 is specifically used for:

[0121] The preset elevation clipping and tracking logic obtains the map grid patch corresponding to the previous interaction operation;

[0122] In the road surface grid model, the map grid patch corresponding to the previous interactive operation is connected to each map grid patch in the map grid patch group, and the connection distance between the map grid patch corresponding to the previous interactive operation and each map grid patch in the map grid patch group is calculated.

[0123] The map grid patch with the shortest connection distance to the map grid patch corresponding to the previous interactive operation in the map grid patch group is selected as the map grid patch corresponding to the click operation.

[0124] In this embodiment, the tracking unit 3034 is specifically used for:

[0125] Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation to obtain the elevation information of the map grid patch corresponding to the click operation.

[0126] Determine whether the elevation information of the map grid patch corresponding to the click operation is within the preset elevation rendering range;

[0127] If not, the elevation rendering range is adjusted until the elevation information of the map grid patch corresponding to the click operation is within the elevation rendering range.

[0128] In this embodiment, the elevation tracking module 303 is further used for:

[0129] The content displayed on the front-end page is adjusted according to the click operation;

[0130] The map grid patch corresponding to the central display area in the adjusted display content is determined to be the map grid patch corresponding to the click operation.

[0131] Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation, and the elevation rendering range is adjusted.

[0132] In this embodiment, the rendering mode includes a normal mode and a special mode; the rendering module 304 is specifically used for:

[0133] Obtain the road surface parameters of each map grid patch in the road surface grid model;

[0134] If the display mode is normal mode, then the map grid patches in the road surface grid model within the elevation rendering range are clipped, and the clipped map grid patches are rendered according to the road surface parameters.

[0135] If the display mode is a special mode, then each map grid patch of the road surface grid model on the front-end page is rendered according to the road surface parameters and the size relationship between the elevation information corresponding to each map grid patch and the elevation rendering range.

[0136] In this embodiment, the road surface rendering device further includes a mesh model generation module 305, which is specifically used for:

[0137] The vehicle trajectory of the vehicle collecting map data is obtained, and the map grid patch in the map data on the vehicle trajectory is marked as the initial road surface;

[0138] Based on the initial road surface, the map grid is expanded according to a preset algorithm until the distance between the expanded map grid and the map grid of the initial road surface is greater than a preset threshold. Then the map grid expansion operation is stopped, and a drivable road surface is obtained.

[0139] A road surface grid model is generated based on the map grid patches of the drivable road surface.

[0140] This implementation details the specific functions of each module of the map road rendering device, as well as some newly added modules. Through the composition of these modules and units, the device acquires the road surface grid model and the coordinate information of each map grid patch within it. The road surface grid model is then displayed on the front-end page using an orthographic projection top-down view. In response to interactive operations on the road surface grid model on the front-end page, the device determines the map grid patch and rendering mode corresponding to the interactive operation. Based on the coordinate information, it performs automatic elevation clipping tracking on the map grid patch corresponding to the interactive operation, adjusting the elevation rendering range. Based on the elevation rendering range and the rendering mode, the road surface grid model is rendered step-by-step. This method tracks the map grid patches of the interactive operation on the front-end page using a preset automatic elevation clipping tracking mechanism, automatically determining the map grid patch corresponding to the current interactive operation and avoiding elevation occlusion during rendering.

[0141] above Figure 3 and Figure 4The map road rendering device in this embodiment of the invention will be described in detail from the perspective of modular functional entities. The map road rendering device in this embodiment of the invention will be described in detail from the perspective of hardware processing.

[0142] Figure 5 This is a schematic diagram of the structure of a map road rendering device 500 provided in an embodiment of the present invention. The map road rendering device 500 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and storage media 530 can be temporary or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the map road rendering device 500. Furthermore, the processor 510 may be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the map road rendering device 500 to implement the steps of the above-described map road rendering method.

[0143] The map road rendering device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 5 The illustrated map road rendering device structure does not constitute a limitation on the map road rendering device provided in this application. It may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0144] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of the map road rendering method.

[0145] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0146] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0147] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for rendering roads in a map, characterized in that, The map road rendering method includes: Obtain the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and display the road surface grid model on the front-end page using an orthographic projection top-down view. In response to an interactive operation on the road surface grid model on the front-end page, the map grid patch and rendering mode corresponding to the interactive operation are determined, wherein the interactive operation is a click operation; Based on the coordinate information, the map grid patch corresponding to the interactive operation is automatically subjected to elevation clipping and tracking, and the elevation rendering range is adjusted. The road surface mesh model is rendered in stages based on the elevation rendering range and the rendering mode. The step of automatically elevating and cropping the map grid patch corresponding to the interactive operation based on the coordinate information and adjusting the elevation rendering range includes: determining whether the map grid patch corresponding to the click operation is a group of map grid patches with the same coordinates under the orthographic projection view, based on the coordinate information of the click position of the click operation; if so, determining the map grid patch corresponding to the click operation in the map grid patch group according to the preset elevation cropping and tracking logic; if not, taking the map grid patch corresponding to the click position of the click operation as the map grid patch corresponding to the click operation; and automatically elevating and cropping the map grid patch corresponding to the click operation and adjusting the elevation rendering range.

2. The map road rendering method according to claim 1, characterized in that, The step of determining the map grid patch corresponding to the click operation in the map grid patch group according to the preset elevation clipping and tracking logic includes: The preset elevation clipping and tracking logic obtains the map grid patch corresponding to the previous interaction operation; In the road surface grid model, the map grid patch corresponding to the previous interactive operation is connected to each map grid patch in the map grid patch group, and the connection distance between the map grid patch corresponding to the previous interactive operation and each map grid patch in the map grid patch group is calculated. The map grid patch with the shortest connection distance to the map grid patch corresponding to the previous interactive operation in the map grid patch group is selected as the map grid patch corresponding to the click operation.

3. The map road rendering method according to claim 1, characterized in that, The automatic elevation clipping and tracking of the map grid patch corresponding to the click operation, and the adjustment of the elevation rendering range, include: Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation to obtain the elevation information of the map grid patch corresponding to the click operation. Determine whether the elevation information of the map grid patch corresponding to the click operation is within the preset elevation rendering range; If not, the elevation rendering range is adjusted until the elevation information of the map grid patch corresponding to the click operation is within the elevation rendering range.

4. The map road rendering method according to claim 1, characterized in that, The step of automatically performing elevation clipping and tracking of the map grid patch corresponding to the interactive operation based on the coordinate information, and adjusting the elevation rendering range, further includes: The content displayed on the front-end page is adjusted according to the click operation; The map grid patch corresponding to the central display area in the adjusted display content is determined to be the map grid patch corresponding to the click operation. Automatic elevation clipping and tracking are performed on the map grid patch corresponding to the click operation, and the elevation rendering range is adjusted.

5. The map road rendering method according to claim 1, characterized in that, The rendering modes include normal mode and special mode; The step-by-step rendering of the road surface mesh model based on the elevation rendering range and the rendering mode includes: Obtain the road surface parameters of each map grid patch in the road surface grid model; If the rendering mode is normal mode, then the map grid patches in the road surface grid model within the elevation rendering range are clipped, and the clipped map grid patches are rendered according to the road surface parameters. If the rendering mode is a special mode, then each map grid patch of the road surface grid model on the front-end page is rendered according to the road surface parameters and the size relationship between the elevation information corresponding to each map grid patch and the elevation rendering range.

6. The map road rendering method according to any one of claims 1-5, characterized in that, Before obtaining the road surface mesh model and the coordinate information of each map mesh patch in the road surface mesh model, the following steps are also included: The vehicle trajectory of the vehicle collecting map data is obtained, and the map grid patch in the map data on the vehicle trajectory is marked as the initial road surface; Based on the initial road surface, the map grid is expanded according to a preset algorithm until the distance between the expanded map grid and the map grid of the initial road surface is greater than a preset threshold. Then the map grid expansion operation is stopped, and a drivable road surface is obtained. A road surface grid model is generated based on the map grid patches of the drivable road surface.

7. A map road rendering device, characterized in that, The map road rendering device includes: The acquisition module is used to acquire the road surface grid model and the coordinate information of each map grid patch in the road surface grid model, and display the road surface grid model on the front-end page using an orthographic projection top-down view. An interaction module is used to respond to an interaction operation on the road surface grid model on the front-end page, and to determine the map grid patch and rendering mode corresponding to the interaction operation, wherein the interaction operation is a click operation. The elevation tracking module is used to automatically perform elevation clipping and tracking on the map grid patch corresponding to the interactive operation based on the coordinate information, and adjust the elevation rendering range. The rendering module is used to perform step-by-step rendering of the road surface mesh model based on the elevation rendering range and the rendering mode; The step of automatically elevating and cropping the map grid patch corresponding to the interactive operation based on the coordinate information and adjusting the elevation rendering range includes: determining whether the map grid patch corresponding to the click operation is a group of map grid patches with the same coordinates under the orthographic projection view, based on the coordinate information of the click position of the click operation; if so, determining the map grid patch corresponding to the click operation in the map grid patch group according to the preset elevation cropping and tracking logic; if not, taking the map grid patch corresponding to the click position of the click operation as the map grid patch corresponding to the click operation; and automatically elevating and cropping the map grid patch corresponding to the click operation and adjusting the elevation rendering range.

8. A map road rendering device, characterized in that, The map road rendering device includes: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor invokes the instructions in the memory to cause the map road rendering device to perform the steps of the map road rendering method as described in any one of claims 1-6.

9. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the map road rendering method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Map display method and device

    CN107729389A

  • Navigation map generation method and device, electronic equipment and program product

    CN115307621A