Method for displaying tunnel road in map, method for acquiring vector topographic map
By generating vector topographic maps and processing the tunnel roads to appear sunken, the problem of tunnel roads not being displayed realistically on maps was solved, resulting in a more realistic display of tunnel roads and improving user experience and immersion.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING SANKUAI ONLINE TECH CO LTD
- Filing Date
- 2022-09-13
- Publication Date
- 2026-04-21
AI Technical Summary
In existing technologies, tunnel roads are not displayed vividly on maps, lack a strong sense of three-dimensionality, and do not correspond to ordinary roads, resulting in a poor user experience and immersion.
By acquiring location information, altitude, and vegetation index from map data, a vector topographic map is generated, and the tunnel road is sunken to lie below the ground surface. Combined with entrance and exit models, a directional tunnel road is generated.
It enhances the visual appeal and three-dimensionality of the tunnel road, making it consistent with the actual road and improving the user experience and immersion.
Smart Images

Figure CN115496869B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method for displaying tunnels and roads in a map and a method for obtaining vector topographic maps. Background Technology
[0002] With the continuous development of computer technology, electronic maps are being used more and more frequently. Therefore, there is an urgent need for a method to display tunnels and roads on maps, so as to make tunnels and roads on electronic maps more intuitive and thus help people use electronic maps better.
[0003] In related technologies, map data is acquired, which includes label information for multiple points. The label information is used to indicate the geographic features where the points are located. Geographic features refer to content adjacent to the ground surface. Based on the label information of multiple points, multiple target points are determined among the multiple points. Based on the multiple target points, a tunnel road is generated. When displaying, the tunnel road is displayed in the target color.
[0004] However, since tunnels are actually below the ground surface while ordinary roads are on the surface, displaying tunnels in the aforementioned way using the target color makes them less vivid and lacking in three-dimensionality. Moreover, the tunnels displayed as being on the ground surface would cover ordinary roads, which does not match the actual relationship between tunnels and ordinary roads, resulting in low display accuracy and a poor user experience and immersion. Summary of the Invention
[0005] This application provides a method for displaying tunnels and roads in a map and a method for obtaining vector topographic maps, which can be used to solve problems in related technologies. The technical solution is as follows:
[0006] In a first aspect, embodiments of this application provide a method for displaying tunnel roads in a map, the method comprising:
[0007] Acquire map data, which includes location information, altitude, and vegetation index of multiple points. The location information of any point is used to indicate the location of the point, the altitude of any point is used to indicate the height difference between the point and the reference surface, and the vegetation index of any point is used to indicate the vegetation cover of the point.
[0008] The target map is displayed, which includes a vector topographic map generated based on the map data. The target map displays tunnel roads, which are obtained by sinking the vector topographic map and are located below the ground surface.
[0009] In one possible implementation, the map data also includes label information for the plurality of points, wherein the label information for any point is used to indicate the geographic feature corresponding to the point, and the geographic feature refers to an object adjacent to the ground surface.
[0010] After acquiring the map data, the method further includes:
[0011] The vector topographic map is generated based on the location information, altitude, and vegetation index of the multiple points.
[0012] Based on the label information of the multiple points, multiple target points are determined among the multiple points, and the geographical element corresponding to the target point is the tunnel road;
[0013] Based on the location information of the multiple target points, a target road surface is generated;
[0014] The height information of the target road surface is lowered to the target value to obtain the virtual height of the target road surface, which is used to indicate the distance between the target road surface and the ground surface;
[0015] Determine the target vector topographic map corresponding to the target road surface in the vector topographic map;
[0016] Based on the virtual height of the target road surface, a sinking process is performed on the target vector topographic map to obtain the tunnel road.
[0017] In one possible implementation, the step of performing a subsidence process on the target vector topographic map based on the virtual height of the target road surface to obtain the tunnel road includes:
[0018] The target vector topographic map is lowered by a first value in the target direction to obtain a target groove, which is used to place the tunnel road. The first value is determined based on the virtual height of the target road surface.
[0019] Among the plurality of target points, a plurality of first points and a plurality of second points are determined, wherein the plurality of first points are the entrance points of the tunnel road and the plurality of second points are the exit points of the tunnel road;
[0020] Based on the plurality of first points, an inlet region is determined in the target slot, and based on the plurality of second points, an outlet region is determined in the target slot;
[0021] An inlet model is placed in the inlet area, and an outlet model is placed in the outlet area to obtain a directional target slot, wherein the inlet model and the outlet model are used to indicate the direction of the target slot;
[0022] The tunnel road is obtained based on the directional target groove.
[0023] In one possible implementation, obtaining the tunnel road based on the directional target slot includes:
[0024] Among the plurality of target points, a plurality of third points are determined, wherein the plurality of third points are points on the centerline of the target road surface;
[0025] Based on the plurality of third points, the centerline of the target road surface is generated;
[0026] Based on the centerline of the target road surface, generate a coverage area with target color and target transparency;
[0027] The covering surface is placed over the directional target groove to obtain the tunnel road.
[0028] In one possible implementation, the method further includes:
[0029] Multiple fourth points and multiple fifth points are determined among the multiple points. The multiple fourth points are used to generate a first road surface, and the multiple fifth points are used to generate a second road surface. The first road surface is the road surface of a first road connected to the tunnel road and before entering the tunnel road, and the second road surface is the road surface of a second road connected to the tunnel road and after leaving the tunnel road.
[0030] The first road surface is divided into multiple first intermediate road surfaces, and the second road surface is divided into multiple second intermediate road surfaces.
[0031] The height information of each first intermediate road surface and each second intermediate road surface is processed by downsampling to obtain the virtual height of each first intermediate road surface and each second intermediate road surface. The virtual height of the first intermediate road surface and the second intermediate road surface closer to the tunnel road is lower than the virtual height of the first intermediate road surface and the second intermediate road surface farther away from the tunnel road.
[0032] In the vector topographic map, a first vector topographic map corresponding to the first road surface and a second vector topographic map corresponding to the second road surface are determined;
[0033] Based on the virtual height corresponding to each of the first intermediate road surfaces, a sinking process is performed on the first vector topographic map to obtain the first road; based on the virtual height corresponding to each of the second intermediate road surfaces, a sinking process is performed on the second vector topographic map to obtain the second road.
[0034] In one possible implementation, displaying the target map includes:
[0035] The target map is displayed, showing the first road, the tunnel road, and the second road, which are respectively connected to the tunnel road.
[0036] Secondly, embodiments of this application provide a method for obtaining a vector topographic map, the method comprising:
[0037] Acquire map data, which includes location information, altitude, and vegetation index of multiple points. The location information of any point is used to indicate the location of the point, the altitude of any point is used to indicate the height difference between the point and the reference surface, and the vegetation index of any point is used to indicate the vegetation cover of the point.
[0038] Based on the location information and elevation depth of the multiple points, a terrain triangulation network is generated;
[0039] Based on the location information and vegetation index of the multiple points, multiple vegetation coverage areas are generated. Each vegetation coverage area includes different points, and each vegetation coverage area corresponds to a different range of vegetation index.
[0040] A vector topographic map is obtained based on the topographic triangulation network and the multiple vegetation cover areas.
[0041] In one possible implementation, the terrain triangulation network includes multiple triangles, and the vertices of each triangle correspond to location information and elevation depth.
[0042] The step of obtaining a vector topographic map based on the topographic triangulation and the multiple vegetation cover surfaces includes:
[0043] Based on the position information corresponding to the vertices of each triangle, the target coverage area corresponding to each triangle is obtained from the multiple vegetation coverage areas;
[0044] The target coverage area corresponding to each triangle is overlaid on the corresponding triangle to obtain the vector terrain map corresponding to each triangle. The vector terrain map corresponding to each triangle includes the position information of the vertices of each triangle, the altitude, and the vegetation index.
[0045] The vector topographic map is obtained based on the vector topographic map corresponding to each triangle.
[0046] In one possible implementation, the step of overlaying the target coverage area corresponding to each triangle onto the corresponding triangle to obtain the vector terrain map corresponding to each triangle includes:
[0047] The target coverage area corresponding to each triangle is overlaid on the corresponding triangle to obtain the intermediate terrain map corresponding to each triangle;
[0048] Determine the color corresponding to each vegetation index range;
[0049] The intermediate topographic map corresponding to each triangle is filled with the color corresponding to each vegetation index range to obtain the vector topographic map corresponding to each triangle.
[0050] In one possible implementation, obtaining the target coverage area corresponding to each triangle among the plurality of vegetation coverage areas based on the position information corresponding to the vertices of each triangle includes:
[0051] For any one of the plurality of triangles, the area covered by any one triangle is determined based on the position information corresponding to the vertex of the triangle.
[0052] The vegetation cover area that includes the area covered by any one of the multiple vegetation cover areas is taken as the target cover area corresponding to any one of the triangles.
[0053] In one possible implementation, generating multiple vegetation cover areas based on the location information of the multiple points and the vegetation index includes:
[0054] Based on the location information and vegetation index of the multiple points, multiple intermediate cover surfaces are generated. Each intermediate cover surface includes different points and has a different range of vegetation index.
[0055] Determine the color corresponding to each vegetation index range;
[0056] The multiple intermediate cover surfaces are filled with the colors corresponding to the various vegetation index ranges to obtain the multiple vegetation cover surfaces.
[0057] Thirdly, embodiments of this application provide a display device for tunnel roads in a map, the device comprising:
[0058] The acquisition module is used to acquire map data, which includes the location information, altitude and vegetation index of multiple points. The location information of any point is used to indicate the location of the point, the altitude of any point is used to indicate the height difference between the point and the reference surface, and the vegetation index of any point is used to indicate the vegetation coverage of the point.
[0059] A display module is used to display a target map, which includes a vector topographic map generated based on the map data. The target map displays tunnel roads, which are obtained by sinking the vector topographic map and are located below the ground surface.
[0060] In one possible implementation, the map data also includes label information for the plurality of points, wherein the label information for any point is used to indicate the geographic feature corresponding to the point, and the geographic feature refers to an object adjacent to the ground surface.
[0061] The device further includes:
[0062] The generation module is used to generate the vector topographic map based on the location information, altitude, and vegetation index of the multiple points;
[0063] The determination module is used to determine multiple target points among the multiple points based on the label information of the multiple points, wherein the geographic element corresponding to the target point is the tunnel road;
[0064] The generation module is also used to generate a target road surface based on the location information of the plurality of target points;
[0065] The determining module is further configured to reduce the height information of the target road surface to a target value to obtain a virtual height of the target road surface, the virtual height being used to indicate the distance between the target road surface and the ground surface; and to determine the target vector terrain map corresponding to the target road surface in the vector terrain map;
[0066] The generation module is also used to perform sinking processing on the target vector topographic map based on the virtual height of the target road surface to obtain the tunnel road.
[0067] In one possible implementation, the generation module is configured to lower the target vector topographic map by a first value in the target direction to obtain a target groove, the target groove being used to place the tunnel road, the first value being determined based on the virtual height of the target road surface; determine a plurality of first points and a plurality of second points among a plurality of target points, the plurality of first points being the entrance points of the tunnel road, and the plurality of second points being the exit points of the tunnel road; determine an entrance region in the target groove based on the plurality of first points, and determine an exit region in the target groove based on the plurality of second points; place an entrance model in the entrance region and an exit model in the exit region to obtain a directional target groove, the entrance model and the exit model being used to indicate the direction of the target groove; and obtain the tunnel road based on the directional target groove.
[0068] In one possible implementation, the generation module is configured to determine a plurality of third points among the plurality of target points, the plurality of third points being points on the centerline of the target road surface; generate the centerline of the target road surface based on the plurality of third points; generate a covering surface with target color and target transparency based on the centerline of the target road surface; and cover the covering surface onto the directional target groove to obtain the tunnel road.
[0069] In one possible implementation, the generation module is further configured to determine a plurality of fourth points and a plurality of fifth points among the plurality of points, the plurality of fourth points being used to generate a first road surface, and the plurality of fifth points being used to generate a second road surface. The first road surface is a road surface of a first road connected to the tunnel road and preceding entry into the tunnel road, and the second road surface is a road surface of a second road connected to the tunnel road and preceding exit from the tunnel road. The first road surface is segmented to obtain a plurality of first intermediate road surfaces, and the second road surface is segmented to obtain a plurality of second intermediate road surfaces. The height information of each first intermediate road surface and each second intermediate road surface is subjected to a downward processing to obtain the virtual height of each first intermediate road surface and each second intermediate road surface. The virtual height of the first intermediate road surface and the second intermediate road surface closer to the tunnel road is lower than the virtual height of the first intermediate road surface and the second intermediate road surface farther from the tunnel road. A first vector topographic map corresponding to the first road surface and a second vector topographic map corresponding to the second road surface are determined in the vector topographic map. Based on the virtual heights corresponding to each first intermediate road surface, a downward processing is performed on the first vector topographic map to obtain the first road. Based on the virtual heights corresponding to each second intermediate road surface, a downward processing is performed on the second vector topographic map to obtain the second road.
[0070] In one possible implementation, the display module is used to display the target map, on which the first road, the tunnel road, and the second road are displayed, and the first road and the second road are respectively connected to the tunnel road.
[0071] Fourthly, embodiments of this application provide a vector topographic map acquisition device, the device comprising:
[0072] The acquisition module is used to acquire map data, which includes the location information, altitude and vegetation index of multiple points. The location information of any point is used to indicate the location of the point, the altitude of any point is used to indicate the height difference between the point and the reference surface, and the vegetation index of any point is used to indicate the vegetation coverage of the point.
[0073] The generation module is used to generate a terrain triangulation network based on the location information and elevation depth of the multiple points;
[0074] The generation module is also used to generate multiple vegetation coverage areas based on the location information of the multiple points and the vegetation index. Each vegetation coverage area includes different points, and each vegetation coverage area corresponds to a different range of vegetation index.
[0075] The acquisition module is also used to acquire a vector topographic map based on the topographic triangulation and the multiple vegetation cover areas.
[0076] In one possible implementation, the terrain triangulation network includes multiple triangles, and the vertices of each triangle correspond to location information and elevation depth.
[0077] The acquisition module is used to acquire the target coverage area corresponding to each triangle from the plurality of vegetation coverage areas based on the position information corresponding to the vertices of each triangle; to cover the target coverage area corresponding to each triangle onto the corresponding triangle to obtain the vector topographic map corresponding to each triangle, wherein the vector topographic map corresponding to each triangle includes the position information of the vertices of each triangle, the altitude and the vegetation index; and to acquire the vector topographic map based on the vector topographic map corresponding to each triangle.
[0078] In one possible implementation, the acquisition module is used to overlay the target coverage area corresponding to each triangle onto the corresponding triangle to obtain an intermediate topographic map corresponding to each triangle; determine the color corresponding to each vegetation index range; and fill the intermediate topographic map corresponding to each triangle according to the color corresponding to each vegetation index range to obtain a vector topographic map corresponding to each triangle.
[0079] In one possible implementation, the acquisition module is used to determine the area covered by any triangle among the plurality of triangles based on the position information corresponding to the vertices of the triangle; and to take the vegetation cover surface that includes the area covered by the triangle among the plurality of vegetation cover surfaces as the target cover surface corresponding to the triangle.
[0080] In one possible implementation, the generation module is configured to generate multiple intermediate cover surfaces based on the location information of the multiple points and the vegetation index, wherein each intermediate cover surface includes different points and the vegetation index range corresponding to each intermediate cover surface is different; determine the color corresponding to each vegetation index range; and fill the multiple intermediate cover surfaces according to the color corresponding to each vegetation index range to obtain the multiple vegetation cover surfaces.
[0081] Fifthly, embodiments of this application provide a computer device, the computer device including a processor and a memory, the memory storing at least one piece of program code, the at least one piece of program code being loaded and executed by the processor, so as to enable the computer device to implement the method for displaying tunnels and roads in a map as described in the first aspect or any possible implementation of the first aspect, or to enable the computer device to implement the method for acquiring vector terrain maps as described in the second aspect or any possible implementation of the second aspect.
[0082] In a sixth aspect, a computer-readable storage medium is also provided, wherein at least one piece of program code is stored therein, the at least one piece of program code being loaded and executed by a processor to enable a computer to implement the method for displaying tunnel roads in a map as described in the first aspect or any possible implementation thereof, or to enable a computer device to implement the method for acquiring vector topographic maps as described in the second aspect or any possible implementation thereof.
[0083] In a seventh aspect, a computer program or computer program product is also provided, wherein the computer program or computer program product stores at least one computer instruction, the at least one computer instruction being loaded and executed by a processor to enable a computer to implement the method for displaying tunnel roads in a map as described in the first aspect or any possible implementation of the first aspect, or to enable a computer device to implement the method for acquiring vector topographic maps as described in the second aspect or any possible implementation of the second aspect.
[0084] The technical solution provided in this application has at least the following beneficial effects:
[0085] The technical solution provided in this application process map data to obtain a vector topographic map, and then performs a sinking process on the vector topographic map to obtain a tunnel road. The obtained tunnel road is located below the ground surface, making the tunnel road more vivid and three-dimensional. Moreover, the relationship between the tunnel road and ordinary roads is consistent with the actual situation, and the obtained tunnel road is closer to the real scene, thereby improving the user experience and immersion. Attached Figure Description
[0086] To more clearly illustrate the technical solutions in the embodiments of this application, 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 this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0087] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;
[0088] Figure 2 This is a flowchart illustrating a method for displaying tunnel roads in a map, as provided in an embodiment of this application.
[0089] Figure 3 This is a schematic diagram of a target map display provided in an embodiment of this application;
[0090] Figure 4This is a flowchart of a method for obtaining a vector topographic map provided in an embodiment of this application;
[0091] Figure 5 This is a schematic diagram showing a terrain triangulation provided in an embodiment of this application;
[0092] Figure 6 This is a schematic diagram of the structure of a map display device provided in an embodiment of this application;
[0093] Figure 7 This is a schematic diagram of the structure of a vector topographic map acquisition device provided in an embodiment of this application;
[0094] Figure 8 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application;
[0095] Figure 9 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0096] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0097] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application, such as... Figure 1 As shown, the implementation environment includes: terminal device 101 and server 102.
[0098] The method for displaying tunnels and roads in a map provided in this application embodiment can be executed by terminal device 101, server 102, or jointly by terminal device 101 and server 102. This application embodiment does not limit this. In the case where the method for displaying tunnels and roads in a map provided in this application embodiment is jointly executed by terminal device 101 and server 102, server 102 undertakes the main computational work, and terminal device 101 undertakes the secondary computational work; or, server 102 undertakes the secondary computational work, and terminal device 101 undertakes the main computational work; or, server 102 and terminal device 101 collaborate using a distributed computing architecture.
[0099] The vector topographic map acquisition method provided in this application embodiment can be executed by terminal device 101, server 102, or jointly by terminal device 101 and server 102. This application embodiment does not limit this. In the case where the vector topographic map acquisition method provided in this application embodiment is jointly executed by terminal device 101 and server 102, server 102 undertakes the main calculation work, and terminal device 101 undertakes the secondary calculation work; or, server 102 undertakes the secondary calculation work, and terminal device 101 undertakes the main calculation work; or, server 102 and terminal device 101 use a distributed computing architecture for collaborative calculation.
[0100] It should be noted that the device executing the method for displaying tunnels and roads in the map and the device executing the method for acquiring vector topographic maps can be the same or different, and this application embodiment does not limit this. For example, the device executing the method for displaying tunnels and roads in the map is a terminal device 101, and the device executing the method for acquiring vector topographic maps is a server 102; or, both the device executing the method for displaying tunnels and roads in the map and the device executing the method for acquiring vector topographic maps are terminal devices 101.
[0101] Optionally, the terminal device 101 can be any electronic product capable of human-computer interaction with a user through one or more methods such as a keyboard, touchpad, touchscreen, remote control, voice interaction, or handwriting device. The terminal device 101 includes, but is not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, and aircraft. The server 102 can be a single server, a server cluster consisting of multiple servers, or any of the following: a cloud computing platform or a virtualization center. This application embodiment does not limit this. The server 102 communicates with the terminal device 101 via a wired or wireless network. The server 102 has data receiving, data processing, and data sending functions. Of course, the server 102 may also have other functions, which are not limited in this application embodiment.
[0102] Those skilled in the art should understand that the terminal device 101 and server 102 described above are merely illustrative examples. Other existing or future terminal devices or servers that are applicable to this application should also be included within the scope of protection of this application, and are hereby incorporated by reference.
[0103] This application provides a method for displaying tunnels and roads in a map. This method can be executed by a computer device and can be applied to the above-mentioned... Figure 1 The implementation environment is shown. The computer equipment can be... Figure 1 Terminal device 101 in the middle can also be Figure 1The server 102 in this embodiment is not limited thereto. Figure 2 The flowchart shown in this embodiment of the application illustrates a method for displaying tunnel roads in a map. Figure 2 As shown, the method includes the following steps 201 to 202.
[0104] In step 201, map data is acquired, which includes the location information, altitude, and vegetation index of multiple points.
[0105] In this embodiment, the location information of any point indicates its position, the altitude of any point indicates the height difference between the point and the reference surface, and the vegetation index (Normalized Difference Vegetation Index, NDVI) of any point indicates its vegetation cover. Optionally, the location information includes a first-dimensional coordinate and a second-dimensional coordinate, wherein the first dimension is X-dimensional and the second dimension is Y-dimensional, or the first dimension is Y-dimensional and the second dimension is X-dimensional; this embodiment does not limit this. The reference surface is sea level; however, it can also be other planes, and this embodiment does not limit this either. The better the vegetation cover, the higher the vegetation index; conversely, the worse the vegetation cover, the lower the vegetation index.
[0106] In one possible implementation, the map data also includes label information for multiple points. The label information for any point is used to indicate the geographic feature corresponding to that point. A geographic feature refers to an object adjacent to the earth's surface. Map features include mountains, rivers, oceans, roads, tunnels, buildings, etc. The label information can be numbers, letters, or other formats; this application embodiment does not limit this. For example, taking numbers as the label information, the number 0 indicates a mountain, the number 1 indicates a river, the number 2 indicates an ocean, the number 3 indicates a road, the number 4 indicates a tunnel, and the number 5 indicates a building.
[0107] Optionally, there are various ways to acquire map data, and this application embodiment does not limit the method of acquiring map data. For example, map data is acquired from a geospatial data cloud platform.
[0108] In one possible implementation, after acquiring map data, a vector topographic map is generated based on the location information, altitude, and vegetation index of multiple points. Based on the label information of these points, multiple target points are identified, with the corresponding geographic features being the tunnel road. Based on the location information of these target points, a target road surface is generated. The height information of the target road surface is then lowered to a target value to obtain a virtual height. This virtual height indicates the distance between the target road surface and the ground surface. A target vector topographic map corresponding to the target road surface is then determined within the vector topographic map. Based on the virtual height of the target road surface, a subsidence process is performed on the target vector topographic map to obtain the tunnel road.
[0109] The process of generating a vector topographic map based on the location information, altitude, and vegetation index of multiple points is as follows: Figure 4 The embodiments shown are described in detail here, and will not be repeated here.
[0110] In one possible implementation, multiple target points are determined from among the points based on the label information of each point. The geographic feature corresponding to each target point is the tunnel road. The target points are used to generate the target road surface. Optionally, the target road surface can be generated using point-to-surface logic based on the location information of the multiple target points.
[0111] For example, the point labeled "4" among multiple points is selected as the target point. After obtaining multiple target points, the target road surface is generated using the logic of point-to-surface generation based on the location information of the multiple target points.
[0112] Optionally, the target value is negative, meaning the virtual height corresponding to the target road surface is negative. Virtual height refers to the distance from a point along a vertical line to the absolute reference plane. In an exemplary embodiment of this application, the virtual height corresponding to the target road surface refers to the distance between the target road surface and the ground surface. Since the virtual height corresponding to the target road surface is negative, it can be determined that the target road surface is below the ground surface. In one possible implementation, the target value is set based on experience or adjusted according to the implementation environment; this embodiment does not limit this. For example, the target value is -2 meters, or -3 meters.
[0113] In one possible implementation, the process of obtaining the tunnel road by performing a sinking process on the target vector topographic map based on the virtual height of the target road surface includes: sinking the target vector topographic map by a first value in the target direction to obtain a target groove, which is used to place the tunnel road; determining multiple first points and multiple second points among multiple target points, where the multiple first points are the entrance points of the tunnel road and the multiple second points are the exit points of the tunnel road; determining the entrance area in the target groove based on the multiple first points and the exit area in the target groove based on the multiple second points; placing the entrance model in the entrance area and the exit model in the exit area to obtain a directional target groove, where the entrance model and exit model are used to indicate the direction of the target groove; and obtaining the tunnel road based on the directional target groove.
[0114] The first value is the absolute value of the virtual height corresponding to the target road surface. For example, if the virtual height corresponding to the target road surface is -2 meters, then the first value is 2. The target direction is downward. That is, it sinks 2 meters downward on the target vector terrain map. The entrance model and the exit model are stored in the storage space of the computer device. The entrance model and the exit model are two different models. The entrance model is used to simulate the entrance to a tunnel in the real world, and the exit model is used to simulate the exit from a tunnel in the real world.
[0115] In one possible implementation, the process of obtaining the tunnel road based on the directional target groove includes: determining multiple third points among multiple target points, wherein the multiple third points are points on the centerline of the target road surface; generating the centerline of the target road surface based on the multiple third points; generating a cover surface with target color and target transparency based on the centerline of the target road surface; and covering the cover surface onto the directional target groove to obtain the tunnel road.
[0116] In this method, the line connecting multiple third points is used as the centerline of the target road surface. Based on the centerline of the target road surface, the logic of line-to-surface generation is used to generate a surface with target color and target transparency. Optionally, the target color and target transparency are set based on experience or adjusted according to the implementation environment; this embodiment does not limit this. For example, the target color is the color corresponding to the tunnel road. For instance, if the color corresponding to the tunnel road is khaki, then the target color is khaki, and the target transparency is 50%. The target color is used to make the generated tunnel road consistent with the representation color of other roads, and the target transparency is used to allow the lane line information of the tunnel road to be visible from a top-down view.
[0117] Optionally, an intermediate surface can be generated based on the logic of generating a surface from a line, the target transparency and target color can be determined, and the intermediate surface can be processed based on the RGB (red-green-blue) values of the target transparency and target color to obtain the coverage surface of the target color and target transparency.
[0118] The transparency of the middle surface can be adjusted first according to the target transparency, and then the RGB value of the middle surface can be adjusted according to the RGB value of the target color to obtain the coverage of the target color and target transparency; alternatively, the RGB value of the middle surface can be adjusted first according to the RGB value of the target color, and then the transparency of the middle surface can be adjusted according to the target transparency to obtain the coverage of the target color and target transparency. In this embodiment, the order of adjusting the transparency and RGB value of the middle surface is not limited.
[0119] For example, if the target color is gray, the RGB values of gray are 192, 192, and 192, and the target transparency is 50%, then first adjust the R value, G value, and B value of the middle surface to 192, then adjust the transparency of the middle surface to 50%, thus obtaining a gray coverage surface with 50% transparency.
[0120] In one possible implementation, after obtaining the coverage area, the coverage area is placed over the directional target slot to obtain the tunnel road.
[0121] In step 202, a target map is displayed. The target map includes a vector topographic map generated based on map data. The target map displays a tunnel road, which is obtained by sinking the vector topographic map. The tunnel road is located below the ground surface.
[0122] In one possible implementation, after generating the tunnel road in step 201 above, the tunnel road can also be displayed. If the computer device is a terminal device, the tunnel road is displayed directly; if the computer device is a server, after generating the tunnel road, the generated tunnel road is sent to the terminal device for display.
[0123] To make the displayed tunnel road more realistic, a first road and a second road connected to the tunnel road can also be generated and displayed, along with the first road, the tunnel road, and the second road. In one possible implementation, the process of generating the first road and the second road connected to the tunnel road includes: determining multiple fourth points and multiple fifth points among multiple points, where the multiple fourth points are used to generate the first road surface and the multiple fifth points are used to generate the second road surface. The first road surface is the road surface of the first road connected to the tunnel road and located before entering the tunnel road, and the second road surface is the road surface of the second road connected to the tunnel road and located after leaving the tunnel road; segmenting the first road surface to obtain multiple first intermediate road surfaces, and segmenting the second road surface to obtain multiple second intermediate road surfaces; performing a downward processing on the height information of each first intermediate road surface and each second intermediate road surface to obtain the virtual height of each first intermediate road surface and each second intermediate road surface, wherein the virtual height of the first intermediate road surface and the second intermediate road surface closer to the tunnel road is lower than the virtual height of the first intermediate road surface and the second intermediate road surface farther away from the tunnel road; determining the first vector topographic map corresponding to the first road surface and the second vector topographic map corresponding to the second road surface in the vector topographic map; performing a downward processing on the first vector topographic map according to the virtual height corresponding to each first intermediate road surface to obtain the first road; and performing a downward processing on the second vector topographic map according to the virtual height corresponding to each second intermediate road surface to obtain the second road.
[0124] Optionally, to reflect the downhill slope of the road entering the tunnel and the uphill slope of the road exiting the tunnel, the virtual elevations of different sections of the first and second road surfaces are different when the road surface is subsided. In both the first and second road surfaces, the virtual elevation of sections closer to the tunnel is smaller, and the virtual elevation of sections farther from the tunnel is larger.
[0125] It should be noted that the process of obtaining the first vector topographic map corresponding to the first road surface and the second vector topographic map corresponding to the second road surface is similar to the process of obtaining the target vector topographic map corresponding to the target surface. Based on the virtual height corresponding to each first intermediate road surface, a sinking process is performed on the first vector topographic map to obtain the first road. Based on the virtual height corresponding to each second intermediate road surface, a sinking process is performed on the second vector topographic map to obtain the second road. This process is similar to the process of performing a sinking process on the target vector topographic map based on the virtual height corresponding to the target road surface to obtain the tunnel road. Therefore, they will not be described in detail here.
[0126] like Figure 3 This is a schematic diagram of a target map provided in an embodiment of this application. The target map displays a tunnel road, a first road, and a second road. Figure 3 The target map shown also displays lane markings on the tunnel road.
[0127] The above method processes map data to obtain a vector topographic map, and then performs a sinking process on the vector topographic map so that the resulting tunnel road is located below the ground surface. This makes the tunnel road more vivid and three-dimensional, and the relationship between the tunnel road and ordinary roads matches the actual situation. The resulting tunnel road is closer to the real scene, thereby improving the user experience and immersion.
[0128] This application provides a method for acquiring vector topographic maps. This method can be executed by a computer device and can be applied to the aforementioned... Figure 1 The implementation environment is shown. The computer equipment can be... Figure 1 Terminal device 101 in the middle can also be Figure 1 The server 102 in this embodiment is not limited thereto. Figure 4 The flowchart shown in this embodiment of the application illustrates a method for obtaining vector topographic maps. Figure 4 As shown, the method includes the following steps 401 to 404.
[0129] In step 401, map data is obtained, which includes the location information, altitude, and vegetation index of multiple points.
[0130] In one possible implementation, the location information of any point is used to indicate the location of any point, the altitude of any point is used to indicate the height difference between any point and the reference surface, and the vegetation index of any point is used to indicate the vegetation cover of any point. The process of obtaining map data is similar to the process in step 201 above, and will not be described again here.
[0131] In step 402, a terrain triangulation network is generated based on the location information and altitude of multiple points.
[0132] In one possible implementation, the location information and elevation of each point are stored in a raster format. Based on the location information and elevation of multiple points, triangulation is performed using the Delaunay triangulation algorithm (a standard triangulation method) to obtain a terrain triangulation network. Delaunay triangulation algorithms include edge-flipping algorithms, point-by-point insertion (Bowyer-Watson) algorithms, segmentation and merging algorithms, etc.
[0133] The terrain triangulation network comprises multiple triangles, each with vertices possessing (X, Y, Z) three-dimensional geographic coordinates. Here, X represents the first dimension, Y the second dimension, (X, Y) the vertex's position, and Z the vertex's elevation. For example, Figure 5 This is a schematic diagram of a terrain triangulation provided in an embodiment of this application.
[0134] In step 403, multiple vegetation cover areas are generated based on the location information of multiple points and vegetation indices. Each vegetation cover area includes different points, and each vegetation cover area corresponds to a different range of vegetation indices.
[0135] In one possible implementation, the location information and vegetation index of each point are also stored in a raster format. The process of generating multiple vegetation cover areas based on the location information and vegetation index of multiple points includes: performing hierarchical raster-to-vector conversion (i.e., vectorization processing) on the location information and vegetation index of multiple points to obtain multiple vegetation cover areas.
[0136] Optionally, the process of hierarchically converting the location information and vegetation indices of multiple points from raster to vector to obtain multiple vegetation cover areas includes: generating multiple vegetation index ranges based on the vegetation indices of each point, with each range having a different start and end vegetation index; determining multiple intermediate cover areas based on the multiple vegetation index ranges, the location information of each point, and the vegetation indices, with each intermediate cover area including different points and corresponding to a different vegetation index range; and finally, determining multiple vegetation cover areas based on these intermediate cover areas, with each vegetation cover area including different points and corresponding to a different vegetation index range.
[0137] For example, five vegetation index ranges are generated based on the vegetation index of each point. The first vegetation index range is [0, 0.2), the second is [0.2, 0.4), the third is [0.4, 0.6), the fourth is [0.6, 0.8), and the fifth is [0.8, 1.0]. That is, the first vegetation index range begins with 0 and ends with 0.2; the beginning and ending vegetation indices of the other ranges are not detailed further.
[0138] Optionally, the process of determining multiple intermediate cover areas based on multiple vegetation index ranges, the location information of each point, and the vegetation index includes: identifying points among the multiple points whose vegetation indices fall within the target vegetation index range; and generating intermediate cover areas corresponding to the target vegetation index range based on the location information of the points whose vegetation indices fall within the target vegetation index range. Here, the target vegetation index range is any one of the multiple vegetation index ranges.
[0139] For example, a point with a vegetation index in [0, 0.2) is determined among multiple points, and an intermediate cover area corresponding to the vegetation index range [0, 0.2) is generated based on the location information of the point with a vegetation index in [0, 0.2).
[0140] It should be noted that the process for determining the intermediate cover areas is similar for each type of vegetation cover area. This embodiment of the application only uses the process for determining the intermediate cover area corresponding to the target vegetation index range as an example for illustration. The process for determining the intermediate cover area corresponding to other vegetation index ranges will not be described in detail.
[0141] Alternatively, there are two implementation methods to determine multiple vegetation cover areas based on multiple intermediate cover areas.
[0142] Method 1: Use multiple intermediate cover surfaces as multiple vegetation cover surfaces.
[0143] Method 2: Determine the color corresponding to each vegetation index range, and fill multiple intermediate cover areas according to the colors corresponding to each vegetation index range to obtain multiple vegetation cover areas.
[0144] In one possible implementation, the color corresponding to the vegetation index range represents the vegetation coverage effect. The higher the vegetation index range, the darker the color corresponding to the vegetation index range, and the better the vegetation coverage effect; conversely, the lower the vegetation index range, the lighter the color corresponding to the vegetation index range, and the worse the vegetation coverage effect.
[0145] For example, the first vegetation index ranges from [0, 0.2), and the color corresponding to the first vegetation index range is light green; the second vegetation index ranges from [0.2, 0.4), and the color corresponding to the second vegetation index range is yellowish-green; the third vegetation index ranges from [0.4, 0.6), and the color corresponding to the third vegetation index range is lemon green; the fourth vegetation index ranges from [0.6, 0.8), and the color corresponding to the fourth vegetation index range is forest green; the fifth vegetation index ranges from [0.8, 1.0], and the color corresponding to the fifth vegetation index range is dark green.
[0146] In one possible implementation, the process of filling multiple intermediate cover areas with the colors corresponding to each vegetation index range to obtain multiple vegetation cover areas includes: determining the RGB values of the colors corresponding to each vegetation index range, filling the intermediate cover map corresponding to each vegetation index range with the RGB values of the colors corresponding to each vegetation index range, and obtaining the vegetation cover areas corresponding to each vegetation index range, that is, obtaining multiple vegetation cover areas.
[0147] For example, the RGB values corresponding to light green are 144, 238, and 144. The R of the intermediate cover area corresponding to the vegetation index range [0, 0.2) is filled with 144, the G is filled with 238, and the B is filled with 144, resulting in the vegetation cover area corresponding to the vegetation index range [0, 0.2). The color of the vegetation cover area corresponding to the vegetation index range [0, 0.2) is light green.
[0148] The RGB values for yellow-green are 127, 255, and 0; for lemon yellow, they are 50, 205, and 50; for forest green, they are 34, 139, and 34; and for dark green, they are 0, 100, and 0. The process for obtaining the vegetation cover area corresponding to the vegetation index range [0.2, 0.4), the vegetation cover area corresponding to the vegetation index range [0.4, 0.6), the vegetation cover area corresponding to the vegetation index range [0.6, 0.8), and the vegetation cover area corresponding to the vegetation index range [0.8, 1.0] is similar to the process for obtaining the vegetation cover area corresponding to the vegetation index range [0, 0.2), and will not be repeated here.
[0149] It should be noted that any of the above implementation methods can be selected to determine multiple vegetation cover areas, and this application embodiment does not limit this.
[0150] In step 404, a vector topographic map is obtained based on the topographic triangulation network and multiple vegetation cover areas.
[0151] In one possible implementation, since the terrain triangulation network includes multiple triangles, each triangle's vertices correspond to location information and elevation. Therefore, based on the location information of each triangle's vertices, the target coverage area corresponding to each triangle is obtained from multiple vegetation cover areas. The target coverage areas corresponding to each triangle are then overlaid on their respective triangles to obtain vector terrain maps for each triangle. These vector terrain maps include the location information, elevation, and vegetation index of each triangle's vertices. Based on these vector terrain maps, a vector terrain map is obtained. Because the vector terrain map includes the elevation of each point, it exhibits an undulating effect. Furthermore, the geographic features of each point can be obtained and displayed on the vector terrain map, thus ensuring that the map features fit and follow the terrain.
[0152] The process of obtaining the target coverage area corresponding to each triangle in multiple vegetation coverage areas based on the position information of the vertices of each triangle includes: for any triangle in the multiple triangles, determining the area covered by any triangle based on the position information of the vertices of any triangle; and taking the vegetation coverage area that includes the area covered by any triangle in the multiple vegetation coverage areas as the target coverage area corresponding to any triangle.
[0153] In one possible implementation, in response to the fact that multiple vegetation cover areas are obtained through implementation method two in step 403 above, the target cover area corresponding to each triangle is overlaid on the corresponding triangle to obtain the vector topographic map corresponding to each triangle.
[0154] In one possible implementation, in response to the fact that multiple vegetation cover areas are obtained through implementation method one in step 403 above, the target cover area corresponding to each triangle is overlaid on the corresponding triangle to obtain the intermediate topographic map corresponding to each triangle; the color corresponding to each vegetation index range is determined, and the intermediate topographic map corresponding to each triangle is filled according to the color corresponding to each vegetation index range to obtain the vector topographic map corresponding to each triangle.
[0155] Optionally, the process of determining the color corresponding to each vegetation index range is the same as in step 403 above, and will not be repeated here. The process of filling the intermediate topographic map corresponding to each triangle with the color corresponding to each vegetation index range to obtain the vector topographic map corresponding to each triangle includes: determining the RGB values of the color corresponding to each vegetation index range; and filling the intermediate topographic map corresponding to each triangle with the RGB values of the color corresponding to each vegetation index range to obtain the vector topographic map corresponding to each triangle. That is, adjusting the RGB values of the intermediate topographic map corresponding to each triangle to the RGB values of the color corresponding to the vegetation index range of each triangle.
[0156] For example, the vegetation index range of the intermediate topographic map corresponding to the target triangle is [0, 0.2). The color corresponding to the vegetation index range [0, 0.2) is light green. The RGB values corresponding to light green are 144, 238, and 144, respectively. Therefore, by filling the R of the intermediate topographic map corresponding to the target triangle with 144, the G with 238, and the B with 144, the vector topographic map corresponding to the target triangle is obtained.
[0157] In one possible implementation, after obtaining the vector topographic map corresponding to each triangle, the triangles are stitched together according to their positions in the topographic triangulation network to obtain the vector topographic map.
[0158] The above method processes map data to obtain a topographic triangulation network and multiple vegetation cover areas. Then, based on the topographic triangulation network and multiple vegetation cover areas, a vector topographic map is obtained. This method takes into account location information, altitude, and vegetation cover, making the obtained vector topographic map more consistent with the actual terrain and more accurate.
[0159] Figure 6 The diagram shown is a schematic representation of a map display device for tunnels and roads provided in an embodiment of this application. Figure 6 As shown, the device includes:
[0160] The acquisition module 601 is used to acquire map data, which includes the location information, altitude and vegetation index of multiple points. The location information of any point is used to indicate the location of any point, the altitude of any point is used to indicate the height difference between any point and the reference surface, and the vegetation index of any point is used to indicate the vegetation cover of any point.
[0161] Display module 602 is used to display a target map, which includes a vector topographic map generated based on map data. The target map displays a tunnel road, which is obtained by sinking the vector topographic map and is located below the ground surface.
[0162] In one possible implementation, the map data also includes label information for multiple points. The label information for any point is used to indicate the geographic feature corresponding to any point. A geographic feature is an object adjacent to the ground surface.
[0163] The device also includes:
[0164] The generation module is used to generate vector topographic maps based on the location information, altitude, and vegetation index of multiple points;
[0165] The determination module is used to determine multiple target points from multiple points based on the label information of multiple points. The geographic feature corresponding to the target points is the tunnel road.
[0166] The generation module is also used to generate the target road surface based on the location information of multiple target points;
[0167] The determination module is also used to lower the height information of the target road surface to the target value to obtain the virtual height of the target road surface, which is used to indicate the distance between the target road surface and the ground surface; and to determine the target vector terrain map corresponding to the target road surface in the vector terrain map.
[0168] The generation module is also used to perform sinking processing on the target vector topographic map based on the virtual height of the target road surface to obtain the tunnel road.
[0169] In one possible implementation, a generation module is used to sink the target vector topographic map downwards by a first value in the target direction to obtain a target groove, which is used to place the tunnel road. The first value is determined based on the virtual height of the target road surface. Multiple first points and multiple second points are determined among multiple target points, where the multiple first points are the entrance points of the tunnel road and the multiple second points are the exit points of the tunnel road. Based on the multiple first points, an entrance area is determined in the target groove, and based on the multiple second points, an exit area is determined in the target groove. An entrance model is placed in the entrance area, and an exit model is placed in the exit area to obtain a directional target groove, where the entrance model and exit model indicate the direction of the target groove. The tunnel road is obtained based on the directional target groove.
[0170] In one possible implementation, a generation module is used to determine multiple third points among multiple target points, wherein the multiple third points are points on the centerline of the target road surface; generate the centerline of the target road surface based on the multiple third points; generate a cover surface with target color and target transparency based on the centerline of the target road surface; and cover the cover surface onto the target groove with direction to obtain the tunnel road.
[0171] In one possible implementation, the generation module is further configured to determine multiple fourth points and multiple fifth points among multiple points, the multiple fourth points being used to generate a first road surface, and the multiple fifth points being used to generate a second road surface. The first road surface is the road surface of a first road connected to the tunnel road and located before entering the tunnel road, and the second road surface is the road surface of a second road connected to the tunnel road and located after leaving the tunnel road. The first road surface is segmented to obtain multiple first intermediate road surfaces, and the second road surface is segmented to obtain multiple second intermediate road surfaces. The height information of each first intermediate road surface and each second intermediate road surface is subjected to a downward processing to obtain the virtual height of each first intermediate road surface and each second intermediate road surface. The virtual height of the first intermediate road surface and the second intermediate road surface closer to the tunnel road is lower than the virtual height of the first intermediate road surface and the second intermediate road surface farther away from the tunnel road. A first vector topographic map corresponding to the first road surface and a second vector topographic map corresponding to the second road surface are determined in the vector topographic map. Based on the virtual height corresponding to each first intermediate road surface, a downward processing is performed on the first vector topographic map to obtain the first road. Based on the virtual height corresponding to each second intermediate road surface, a downward processing is performed on the second vector topographic map to obtain the second road.
[0172] In one possible implementation, the display module 602 is used to display a target map, on which a first road, a tunnel road, and a second road are displayed, and the first road and the second road are respectively connected to the tunnel road.
[0173] The aforementioned device processes map data to obtain a vector topographic map, and then performs a sinking process on the vector topographic map so that the resulting tunnel road is located below the ground surface. This makes the tunnel road more vivid and three-dimensional, and the relationship between the tunnel road and ordinary roads matches the actual situation. The resulting tunnel road is closer to the real scene, thereby improving the user experience and immersion.
[0174] Figure 7 The diagram shown is a schematic representation of a vector topographic map acquisition device provided in an embodiment of this application. Figure 7 As shown, the device includes:
[0175] The acquisition module 701 is used to acquire map data, which includes the location information, altitude and vegetation index of multiple points. The location information of any point is used to indicate the location of any point, the altitude of any point is used to indicate the height difference between any point and the reference surface, and the vegetation index of any point is used to indicate the vegetation cover of any point.
[0176] The generation module 702 is used to generate a terrain triangulation network based on the location information and elevation depth of multiple points;
[0177] The generation module 702 is also used to generate multiple vegetation cover areas based on the location information of multiple points and vegetation indices. Each vegetation cover area includes different points and the vegetation index range corresponding to each vegetation cover area is different.
[0178] The acquisition module 701 is also used to acquire vector topographic maps based on the terrain triangulation and multiple vegetation cover areas.
[0179] In one possible implementation, the terrain triangulation network includes multiple triangles, and the vertices of each triangle correspond to location information and elevation depth.
[0180] The acquisition module 701 is used to acquire the target coverage area corresponding to each triangle in multiple vegetation coverage areas based on the position information of the vertices of each triangle; to overlay the target coverage area corresponding to each triangle onto the corresponding triangle to obtain the vector topographic map corresponding to each triangle, which includes the position information of the vertices of each triangle, the altitude and the vegetation index; and to acquire the vector topographic map based on the vector topographic map corresponding to each triangle.
[0181] In one possible implementation, the acquisition module 701 is used to overlay the target coverage area corresponding to each triangle onto the corresponding triangle to obtain the intermediate topographic map corresponding to each triangle; determine the color corresponding to each vegetation index range; and fill the intermediate topographic map corresponding to each triangle according to the color corresponding to each vegetation index range to obtain the vector topographic map corresponding to each triangle.
[0182] In one possible implementation, the acquisition module 701 is used to determine the area covered by any triangle among multiple triangles based on the position information corresponding to the vertices of any triangle; and to take the vegetation cover surface that includes the area covered by any triangle among multiple vegetation cover surfaces as the target cover surface corresponding to any triangle.
[0183] In one possible implementation, the generation module 702 is used to generate multiple intermediate cover surfaces based on the location information of multiple points and vegetation indices. Each intermediate cover surface includes different points and corresponds to a different range of vegetation indices. The module determines the color corresponding to each range of vegetation indices and fills the multiple intermediate cover surfaces according to the color corresponding to each range of vegetation indices to obtain multiple vegetation cover surfaces.
[0184] The aforementioned device processes map data to obtain a topographic triangulation network and multiple vegetation cover areas. Then, based on the topographic triangulation network and multiple vegetation cover areas, it obtains a vector topographic map. This takes into account location information, altitude, and vegetation cover, making the obtained vector topographic map more consistent with the actual terrain and more accurate.
[0185] It should be understood that the above-described apparatus is only illustrated by the division of the functional modules described above when implementing its functions. In practical applications, the functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0186] Figure 8 This illustration shows a structural block diagram of a terminal device 800 provided in an exemplary embodiment of this application. The terminal device 800 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal device 800 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.
[0187] Typically, terminal device 800 includes a processor 801 and a memory 802.
[0188] Processor 801 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 801 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 801 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 801 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 801 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0189] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 802 is used to store at least one instruction, which is executed by the processor 801 to implement the present application. Figure 2 The method embodiments shown provide a method for displaying tunnel roads in a map, and / or, Figure 4 The illustrated method embodiment provides a method for obtaining vector topographic maps.
[0190] In some embodiments, the terminal device 800 may also optionally include a peripheral device interface 803 and at least one peripheral device. The processor 801, memory 802, and peripheral device interface 803 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 803 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807, a positioning assembly 808, and a power supply 809.
[0191] Peripheral device interface 803 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 801 and memory 802. In some embodiments, processor 801, memory 802 and peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 801, memory 802 and peripheral device interface 803 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0192] The radio frequency (RF) circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 804 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 804 can communicate with other terminal devices through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 804 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0193] Display screen 805 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 805 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 801 for processing. In this case, display screen 805 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 805, disposed on the front panel of terminal device 800; in other embodiments, there may be at least two display screens, disposed on different surfaces of terminal device 800 or in a folded design; in still other embodiments, display screen 805 may be a flexible display screen, disposed on a curved or folded surface of terminal device 800. Furthermore, display screen 805 may be configured as a non-rectangular irregular shape, i.e., a non-rectangular screen. Display screen 805 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0194] The camera assembly 806 is used to acquire images or videos. Optionally, the camera assembly 806 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal device 800, and the rear-facing camera is located on the back of the terminal device 800. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0195] The audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 801 for processing, or input to the radio frequency circuit 804 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of the terminal device 800. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert the electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 807 may also include a headphone jack.
[0196] The positioning component 808 is used to locate the current geographical location of the terminal device 800 in order to enable navigation or LBS (Location Based Service). The positioning component 808 can be a positioning component based on the US GPS (Global Positioning System), China's BeiDou system, Russia's Granas system, or the European Union's Galileo system.
[0197] Power supply 809 is used to supply power to the various components in terminal device 800. Power supply 809 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 809 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0198] In some embodiments, the terminal device 800 further includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: an accelerometer 811, a gyroscope 812, a pressure sensor 813, a fingerprint sensor 814, an optical sensor 815, and a proximity sensor 816.
[0199] Accelerometer 811 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal device 800. For example, accelerometer 811 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 801 can control display screen 805 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 811. Accelerometer 811 can also be used for games or for acquiring user motion data.
[0200] The gyroscope sensor 812 can detect the orientation and rotation angle of the terminal device 800. The gyroscope sensor 812, in conjunction with the accelerometer sensor 811, can collect 3D motion data from the user on the terminal device 800. Based on the data collected by the gyroscope sensor 812, the processor 801 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0201] The pressure sensor 813 can be disposed on the side bezel of the terminal device 800 and / or on the lower layer of the display screen 805. When the pressure sensor 813 is disposed on the side bezel of the terminal device 800, it can detect the user's grip signal on the terminal device 800, and the processor 801 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed on the lower layer of the display screen 805, the processor 801 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 805. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0202] The fingerprint sensor 814 is used to collect a user's fingerprint. The processor 801 identifies the user based on the fingerprint collected by the fingerprint sensor 814, or vice versa. When the user's identity is verified as trusted, the processor 801 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 814 can be located on the front, back, or side of the terminal device 800. When the terminal device 800 has a physical button or manufacturer logo, the fingerprint sensor 814 can be integrated with the physical button or manufacturer logo.
[0203] An optical sensor 815 is used to collect ambient light intensity. In one embodiment, the processor 801 can control the display brightness of the display screen 805 based on the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display screen 805 is decreased. In another embodiment, the processor 801 can also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
[0204] The proximity sensor 816, also known as a distance sensor, is typically located on the front panel of the terminal device 800. The proximity sensor 816 is used to detect the distance between the user and the front of the terminal device 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front of the terminal device 800 is gradually decreasing, the processor 801 controls the display screen 805 to switch from a screen-on state to a screen-off state; when the proximity sensor 816 detects that the distance between the user and the front of the terminal device 800 is gradually increasing, the processor 801 controls the display screen 805 to switch from a screen-off state to a screen-on state.
[0205] Those skilled in the art will understand that Figure 8 The structure shown does not constitute a limitation on the terminal device 800, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0206] Figure 9 This is a schematic diagram of the server structure provided in the embodiments of this application. The server 900 can vary considerably due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 901 and one or more memories 902. The one or more memories 902 store at least one line of program code, which is loaded and executed by the one or more processors 901 to implement the above-mentioned functions. Figure 2 The method embodiments shown provide a method for displaying tunnel roads in a map, and / or, Figure 4 The illustrated method embodiment provides a method for acquiring vector topographic maps. Of course, the server 900 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server 900 may also include other components for implementing device functions, which will not be elaborated upon here.
[0207] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one line of program code, which is loaded and executed by a processor to enable the computer to perform the above-described functions. Figure 2 The method embodiments shown provide a method for displaying tunnel roads in a map, and / or, Figure 4 The illustrated method embodiment provides a method for obtaining vector topographic maps.
[0208] Optionally, the aforementioned computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0209] In an exemplary embodiment, a computer program or computer program product is also provided, which stores at least one computer instruction, which is loaded and executed by a processor to enable the computer to perform the above-described functions. Figure 2 The method embodiments shown provide a method for displaying tunnel roads in a map, and / or, Figure 4 The illustrated method embodiment provides a method for obtaining vector topographic maps.
[0210] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the map data involved in this application was obtained with full authorization.
[0211] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0212] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0213] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for displaying tunnel roads in a map, characterized in that, The method includes: Acquire map data, which includes location information, altitude, and vegetation index of multiple points. The location information of any point is used to indicate the location of the point, the altitude of any point is used to indicate the height difference between the point and the reference surface, and the vegetation index of any point is used to indicate the vegetation cover of the point. The target map is displayed, which includes a vector topographic map obtained based on the map data. The target map displays tunnel roads, which are obtained by sinking the vector topographic map and are located below the ground surface. The map data also includes label information for the multiple points. The label information for any point is used to indicate the geographic feature corresponding to the point. The geographic feature refers to an object adjacent to the ground surface. After acquiring the map data, the method further includes: The vector topographic map is generated based on the location information, altitude, and vegetation index of the multiple points. Based on the label information of the multiple points, multiple target points are determined among the multiple points, and the geographical element corresponding to the target point is the tunnel road; Based on the location information of the multiple target points, a target road surface is generated; The height information of the target road surface is lowered to the target value to obtain the virtual height of the target road surface, which is used to indicate the distance between the target road surface and the ground surface; Determine the target vector topographic map corresponding to the target road surface in the vector topographic map; Based on the virtual height of the target road surface, a sinking process is performed on the target vector topographic map to obtain the tunnel road; the process of obtaining the tunnel road by sinking on the target vector topographic map based on the virtual height of the target road surface includes: The target vector topographic map is lowered by a first value in the target direction to obtain a target groove, which is used to place the tunnel road. The first value is determined based on the virtual height of the target road surface. Among the plurality of target points, a plurality of first points and a plurality of second points are determined, wherein the plurality of first points are the entrance points of the tunnel road and the plurality of second points are the exit points of the tunnel road; Based on the plurality of first points, an inlet region is determined in the target slot, and based on the plurality of second points, an outlet region is determined in the target slot; An inlet model is placed in the inlet area, and an outlet model is placed in the outlet area to obtain a directional target slot, wherein the inlet model and the outlet model are used to indicate the direction of the target slot; The tunnel road is obtained based on the directional target groove.
2. The method according to claim 1, characterized in that, The step of obtaining the tunnel road based on the directional target groove includes: Among the plurality of target points, a plurality of third points are determined, wherein the plurality of third points are points on the centerline of the target road surface; Based on the plurality of third points, the centerline of the target road surface is generated; Based on the centerline of the target road surface, generate a coverage area with target color and target transparency; The covering surface is placed over the directional target groove to obtain the tunnel road.
3. The method according to claim 1 or 2, characterized in that, The method further includes: Multiple fourth points and multiple fifth points are determined among the multiple points. The multiple fourth points are used to generate a first road surface, and the multiple fifth points are used to generate a second road surface. The first road surface is the road surface of a first road connected to the tunnel road and before entering the tunnel road, and the second road surface is the road surface of a second road connected to the tunnel road and after leaving the tunnel road. The first road surface is divided into multiple first intermediate road surfaces, and the second road surface is divided into multiple second intermediate road surfaces. The height information of each first intermediate road surface and each second intermediate road surface is processed by downsampling to obtain the virtual height of each first intermediate road surface and each second intermediate road surface. The virtual height of the first intermediate road surface and the second intermediate road surface closer to the tunnel road is lower than the virtual height of the first intermediate road surface and the second intermediate road surface farther away from the tunnel road. In the vector topographic map, a first vector topographic map corresponding to the first road surface and a second vector topographic map corresponding to the second road surface are determined; Based on the virtual height corresponding to each of the first intermediate road surfaces, a sinking process is performed on the first vector topographic map to obtain the first road; based on the virtual height corresponding to each of the second intermediate road surfaces, a sinking process is performed on the second vector topographic map to obtain the second road.
4. The method according to claim 3, characterized in that, The target map display includes: The target map is displayed, showing the first road, the tunnel road, and the second road, which are respectively connected to the tunnel road.
5. The method according to claim 1, characterized in that, The vector topographic map obtained based on the map data includes: Obtain the map data; Based on the location information and elevation depth of the multiple points, a terrain triangulation network is generated; Based on the location information and vegetation index of the multiple points, multiple vegetation coverage areas are generated. Each vegetation coverage area includes different points, and each vegetation coverage area corresponds to a different range of vegetation index. A vector topographic map is obtained based on the topographic triangulation network and the multiple vegetation cover areas.
6. The method according to claim 5, characterized in that, The terrain triangulation network includes multiple triangles, and the vertices of each triangle correspond to location information and elevation depth; The step of obtaining a vector topographic map based on the topographic triangulation and the multiple vegetation cover surfaces includes: Based on the position information corresponding to the vertices of each triangle, the target coverage area corresponding to each triangle is obtained from the multiple vegetation coverage areas; The target coverage area corresponding to each triangle is overlaid on the corresponding triangle to obtain the vector terrain map corresponding to each triangle. The vector terrain map corresponding to each triangle includes the position information of the vertices of each triangle, the altitude, and the vegetation index. The vector topographic map is obtained based on the vector topographic map corresponding to each triangle.
7. The method according to claim 6, characterized in that, The step of overlaying the target coverage area corresponding to each triangle onto the corresponding triangle to obtain the vector terrain map corresponding to each triangle includes: The target coverage area corresponding to each triangle is overlaid on the corresponding triangle to obtain the intermediate terrain map corresponding to each triangle; Determine the color corresponding to each vegetation index range; The intermediate topographic map corresponding to each triangle is filled with the color corresponding to each vegetation index range to obtain the vector topographic map corresponding to each triangle.
8. The method according to claim 5, characterized in that, The process of generating multiple vegetation cover areas based on the location information and vegetation index of the multiple points includes: Based on the location information and vegetation index of the multiple points, multiple intermediate cover surfaces are generated. Each intermediate cover surface includes different points and has a different range of vegetation index. Determine the color corresponding to each vegetation index range; The multiple intermediate cover surfaces are filled with the colors corresponding to the various vegetation index ranges to obtain the multiple vegetation cover surfaces.
Citation Information
Patent Citations
3d tunnel representation
CN102956037A
Urban digital map three-dimensional modeling manufacturing method
CN104658039A
Map data processing method and device, and three-dimensional map generation method and device
CN106780736A