WO2022100212A1 - Three-dimensional highly precise map tile-based generation method, apparatus, and electronic device - Google Patents

Three-dimensional highly precise map tile-based generation method, apparatus, and electronic device Download PDF

Info

Publication number
WO2022100212A1
WO2022100212A1 PCT/CN2021/115466 CN2021115466W WO2022100212A1 WO 2022100212 A1 WO2022100212 A1 WO 2022100212A1 CN 2021115466 W CN2021115466 W CN 2021115466W WO 2022100212 A1 WO2022100212 A1 WO 2022100212A1
Authority
WO
WIPO (PCT)
Prior art keywords
row
target
column numbers
map
vector
Prior art date
Application number
PCT/CN2021/115466
Other languages
French (fr)
Chinese (zh)
Inventor
郝瑞深
鲍建军
Original Assignee
湖北亿咖通科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 湖北亿咖通科技有限公司 filed Critical 湖北亿咖通科技有限公司
Publication of WO2022100212A1 publication Critical patent/WO2022100212A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format

Definitions

  • the present invention relates to the technical field of high-precision maps, in particular to a map generation method, device and electronic device based on three-dimensional high-precision map slices.
  • mapbox proposes a vector tile technology, which can update data in real time.
  • the generated vector tile data has the advantages of low redundancy and small size, which solves the drawbacks of traditional map rendering. It has been widely used now.
  • vector tiles are widely used in the industry, the existing visualization rendering of vector tile maps is based on two-dimensional vector map data, which cannot meet the large-scale visualization rendering requirements of three-dimensional vector high-precision maps.
  • the purpose of the embodiments of the present invention is to provide a map generation method, device and electronic device based on 3D high-precision map slices, so as to realize high-performance visualization rendering of 3D vector high-precision maps.
  • an embodiment of the present invention provides a map generation method based on a three-dimensional high-precision map slice, the method comprising:
  • the initialization row and column numbers include three-dimensional vectors containing geographic element location data under each scale level
  • the row and column number of the HD map slice; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number at the target scale level;
  • the determining the target scale level of the three-dimensional vector high-precision map to be generated includes:
  • the scale level corresponding to the camera height is determined as the target scale level.
  • determining the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level based on the coordinates of the target geographic location including:
  • the three-dimensional vector high-precision map slice at different scale levels determine the corresponding two-dimensional geographic coordinate range to which the target geographic location belongs.
  • determining the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level based on the coordinates of the target geographic location including:
  • the column number of the 3D vector HD map slice to which the target geographic location belongs is calculated according to the following formula:
  • X represents the column number of the 3D vector HD map slice to which the target geographic location belongs under the target scale level
  • lng represents the longitude included in the coordinates of the target geographic location
  • level represents the target scale level
  • the row number of the 3D vector HD map slice to which the target geographic location belongs is calculated according to the following formula:
  • Y represents the row number of the 3D vector high-precision map slice to which the target geographic location belongs at the target scale level
  • lat represents the latitude contained in the target geographic location coordinates
  • level represents the target scale level
  • comparing the row and column numbers to be loaded with the pre-stored initialization row and column numbers at the target scale level, and filtering out the target row and column numbers including:
  • obtaining the three-dimensional vector high-precision map slice data corresponding to each of the target row and column numbers includes:
  • the 3D vector high-precision map tile data corresponding to the target row and column numbers is searched from the pre-cached index file; the index file contains 3D vector high-precision maps with different row and column numbers at each scale level Slice the 3D vector HD map tile data.
  • the index file is constructed as follows:
  • the three-dimensional vector high-precision map tile data and the index relationship are saved in the index file.
  • the three-dimensional vector high-precision map slice data is data in geojson format.
  • an embodiment of the present invention also provides a device for generating a high-precision map based on a three-dimensional vector high-precision map slice, and the device includes:
  • the first determination module is used to determine the coordinates of the target geographic location, and to determine the target scale level of the three-dimensional vector high-precision map to be generated;
  • a second determining module configured to determine, based on the coordinates of the target geographic location, the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level;
  • the second determination module is configured to determine, based on the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs, each adjacent 3D vector within a preset range centered on the 3D vector HD map slice to which the target geographic location belongs.
  • the row and column numbers of the high-precision map slices, and the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs and the row and column numbers of the adjacent three-dimensional vector high-precision map slices are marked as the row and column numbers to be loaded;
  • the comparison module is used to compare the row and column numbers to be loaded with the pre-stored initialization row and column numbers under the target scale level, and filter out the target row and column numbers, and the initialization row and column numbers include the geographic inclusions under each scale level.
  • the generating module is used to obtain the slice data of the three-dimensional vector high-precision map corresponding to each of the target row and column numbers, and perform visual rendering of the three-dimensional data to generate the three-dimensional vector high-precision map.
  • an embodiment of the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus; wherein, the processor, the communication interface, and the memory communicate with each other through the communication bus;
  • the processor is configured to implement any of the above method steps when executing the program stored in the memory.
  • an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above method steps is implemented.
  • an embodiment of the present invention further provides a chip for running instructions, the chip includes a memory and a processor, where code and data are stored in the memory, the memory is coupled with the processor, and the processor The processor runs the code in the memory so that the chip implements any of the above method steps.
  • an embodiment of the present invention further provides a program product including instructions, which, when the program product runs on a computer, enables the computer to implement any of the above method steps.
  • an embodiment of the present invention further provides a computer program, which is used to implement any of the above method steps when the computer program is executed by a processor.
  • the three-dimensional vector high-precision map data can be segmented in advance, and the segmented data can be saved according to the row and column numbers.
  • the row and column numbers of the 3D vector HD map slices to be loaded under the target scale level are obtained, and the row and column numbers of the 3D vector HD map slices containing the location data of geographic elements are filtered out as the target row and column numbers.
  • FIG. 1 is a schematic flowchart of a map generation method based on a 3D high-precision map slice provided by an embodiment of the present invention
  • FIG. 2(a) is a first schematic diagram of a three-dimensional vector high-precision map slice provided by an embodiment of the present invention
  • 2(b) is a second schematic diagram of a three-dimensional vector high-precision map slice provided by an embodiment of the present invention.
  • 2(c) is a third schematic diagram of a three-dimensional vector high-precision map slice provided by an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a three-dimensional vector high-precision map provided by an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a map generation device based on a three-dimensional high-precision map slice provided by an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • an embodiment of the present invention provides a map generation method, device and electronic device based on a three-dimensional high-precision map slice, see FIG. 1 .
  • the method includes the following steps:
  • S101 Determine the coordinates of the target geographic location, and determine the target scale level of the three-dimensional vector high-precision map to be generated.
  • the method for generating maps based on 3D high-precision map slices provided by the embodiments of the present invention can be applied to clients that provide map services in terminals, such as mobile clients and tablet clients that provide map services, and can also be applied to web clients, etc. .
  • the generated three-dimensional vector high-precision map includes a map of the target geographic location and its surrounding areas.
  • the target geographic location may be a geographic location manually selected by the user, or may be obtained by the client locating the current location of the device, which is not limited in this embodiment of the present invention.
  • the coordinates of the target geographic location may be the latitude and longitude coordinates of the target geographic location.
  • the client may call the positioning service of the positioning software to obtain the coordinates of the target geographic location.
  • the client needs to determine the target scale level of the 3D vector HD map to be generated.
  • the client may determine the target scale level of the three-dimensional vector high-precision map to be generated according to the operation instruction input by the user. For example, if the client is a web client, the user can adjust the scale level by sliding the mouse wheel; if the client is a mobile client, the user can adjust the scale level by zooming the screen with fingers.
  • the above-mentioned manners are only used as examples, and are not intended to limit the present invention.
  • the corresponding relationship between the scale level and the camera height range may be established in advance.
  • the camera height is a professional term in the field, which can indicate the height of the angle of view. The higher the camera height, the larger the geographic area covered by the map.
  • the maximum camera height is calculated according to the total geographic coverage of the three-dimensional vector high-precision map and the preset camera opening angle.
  • the maximum camera height can be calculated according to the following formula:
  • MAX_CAMERA_HEIGHT (EARTH_PERIMETER/2)/tan(Math.PI*fov/180/2)
  • MAX_CAMERA_HEIGHT represents the maximum camera height
  • Math.PI represents the pi in mathematics.
  • the standard camera height corresponding to each scale level can be determined based on the maximum camera height and the dichotomy principle. As an example, let the standard camera height of scale level 0 be the maximum camera height H 0 , then the standard camera height of scale level 1 is The standard camera height for scale level level 2 is And so on. Further, the correspondence between the scale level and the camera height range can be determined. For example, when the camera height is in the interval H 2 -H 1 , it can be considered that the scale level corresponding to the camera height is level 2.
  • the above-mentioned determination of the target scale level of the three-dimensional vector high-precision map to be generated may include the following refinement steps:
  • Step a Obtain the camera height of the three-dimensional vector high-precision map to be generated.
  • the client can obtain the z value in the camera space position as the camera height by calling the camera space position position(x, y, z).
  • Step b Based on the preset correspondence between the camera height range and the scale level, determine the scale level corresponding to the camera height as the target scale level.
  • the camera height range in which the camera height obtained in step a is located can be determined, and then the corresponding scale level is determined, which is recorded as the target scale level.
  • S102 Based on the coordinates of the target geographic location, determine the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs at the target scale level.
  • the three-dimensional vector high-precision map data may be segmented in advance to obtain the slice data of the three-dimensional vector high-precision map slices at different scale levels, and each scale level corresponds to the slice data of a group of three-dimensional vector high-precision map slices , the slice data of each 3D vector HD map slice can be pre-stored in the client or server.
  • the slice data of the three-dimensional vector high-precision map tile includes two-dimensional coordinate data and elevation data of the geographic elements contained in the three-dimensional vector high-precision map tile. Because it is an HD map, the geographic features in the 3D vector HD map tiles can also contain only road networks.
  • each piece of 3D vector high-precision map slice data at each scale level can be marked with the row and column numbers of the 3D vector high-precision map slice corresponding to the slice data in the total 3D vector high-precision map.
  • Fig. 2(a) is a first schematic diagram of a three-dimensional vector high-precision map slice provided by an embodiment of the present invention
  • Fig. 2(b) is an implementation of the present invention
  • Figure 2 (c) is the third schematic diagram of the three-dimensional vector high-precision map slice provided by the embodiment of the present invention, set Figure 2 (a)- Figure 2 (c) ) in the bold rectangle indicates the total coverage of the 3D vector high-precision map before data segmentation, as shown in Figure 2(a)-2(c).
  • the map data is divided into 4 pieces of 3D vector high-precision map slice data.
  • the first piece of 3D vector high-precision map slice data corresponds to the 3D vector high-precision map slice a1, because a1 is located in the total 3D vector high-precision map.
  • the row number is 1 and the column number is 1, so the row and column numbers (1, 1) under the first scale level can be used to mark the slice data of the 3D vector HD map slice corresponding to a1.
  • the first scale level is used to mark the slice data.
  • the row and column numbers (1, 2) of a2 are used to mark the slice data of the 3D vector HD map slice corresponding to a2, and the row and column numbers (2, 1) at the first scale level are used to mark the slice data of the 3D vector HD map slice corresponding to a3.
  • Data, use the row and column numbers (2, 2) at the first scale level to mark the slice data of the 3D vector HD map slice corresponding to a4.
  • the row and column numbers (2, 1) under the second scale level can be used to mark the slice data of the 3D vector HD map slice corresponding to b4.
  • the row and column numbers (3,1) at the third scale level are used to mark the slice data of the 3D vector HD map slice corresponding to c9.
  • the 3D vector HD map slices can also be marked with row and column numbers.
  • the 3D vector with row and column numbers (2, 2) is the slice a4.
  • each map slice is a three-dimensional, three-dimensional map slice.
  • the above is only an exemplary description and is only for the convenience of understanding. , does not limit the technical solution of the present invention. In practical applications, there are many 3D vector high-precision map slices divided at each scale level, and the specific number of slices can be set according to actual needs.
  • the two-dimensional geographic coordinates covered by the 3D vector high-precision map slice corresponding to each slice data can be recorded
  • the corresponding relationship between the two-dimensional geographic coordinate range covered by the three-dimensional vector high-precision map slice and the row and column numbers of the three-dimensional vector high-precision map slice at different scale levels is established.
  • the target scale level is the second scale level
  • the target geographic location belongs to the two-dimensional geographic coordinate range covered by the three-dimensional vector high-precision map slice b5
  • the three-dimensional vector height can be determined according to the scale level.
  • the corresponding relationship between the two-dimensional geographic coordinate range covered by the precision map slice and the row and column numbers of the three-dimensional vector high-precision map slice, and the row and column number corresponding to the two-dimensional geographic coordinate range to which the target geographic location belongs is determined as the row and column number of b5, that is (2,2 ).
  • the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs at the target scale level can also be calculated according to the latitude and longitude.
  • the column number of the 3D vector high-precision map slice to which the target geographic location belongs can be calculated according to the following formula according to the longitude and the target scale level contained in the coordinates of the target geographic location:
  • X represents the column number of the 3D vector HD map slice to which the target geographic location belongs at the target scale level
  • lng represents the longitude contained in the target geographic location coordinates
  • level represents the target scale level
  • the row number of the 3D vector HD map slice to which the target geographic location belongs is calculated according to the following formula:
  • Y represents the row number of the 3D vector HD map slice to which the target geographic location belongs at the target scale level
  • lat represents the latitude contained in the target geographic location coordinates
  • level represents the target scale level
  • S103 Based on the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs, determine the row and column numbers of adjacent three-dimensional vector high-precision map slices within a preset range centered on the three-dimensional vector high-precision map slices to which the target geographic location belongs, and Mark the row and column numbers of the three-dimensional vector high-precision map slice to which the target geographic location belongs and the row and column numbers of each adjacent three-dimensional vector high-precision map slice as the row and column numbers to be loaded.
  • the generated 3D vector high-precision map is not enough to cover the display screen of the client.
  • the preset range can be set according to requirements.
  • based on the row and column numbers (X, Y) of the 3D vector high-precision map slice to which the target geographic location belongs cyclically traverse X-m, X-(m-1), ... X-1, X ,X+1,...X+(m-1),X-m, get the line number to be loaded, loop through Y-m, Y-(m-1),...Y-1,Y,Y+1,...Y+(m-1 ), Y-m, get the row number to be loaded, and then combine to get all the row and column numbers to be loaded, where m is the preset row and column number translation.
  • the row and column numbers of the map slice, in this case, the determined row and column numbers to be loaded are 25.
  • S104 Compare the row and column numbers to be loaded with the initialized row and column numbers under the pre-stored target scale level, filter out the target row and column numbers, and the initialized row and column numbers include the three-dimensional vector high-precision map slices containing geographic element location data under each scale level The row and column number; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number at the target scale level.
  • the 3D vector HD map tile b7 in FIG. 2(b) does not contain any geographic elements.
  • the row and column numbers of the three-dimensional vector high-precision map slices containing the location data of geographic elements can be filtered out from the row and column numbers to be loaded.
  • initial row and column numbers at different scale levels may be predetermined and recorded.
  • the 3D vector HD map tiles corresponding to the initial row and column numbers at this scale level all contain geographic feature location data, and the 3D vector heights corresponding to other row and column numbers under this scale level are different from the initial row and column numbers.
  • Geomap tiles do not contain geographic feature location data.
  • the row and column numbers to be loaded are (1,2), (1,3), (1,4), (2,2), (2,3), ( 2,4), (3,2), (3,3) and (3,4)
  • the pre-stored initial row and column numbers at this scale level include: (1,1), (1,3), (1 ,4), (2,1), (2,2), (2,3), (3,1), (3,2), (3,3), (3,4), (4,1 ), (4,2), (4,3) and (4,4), then compare the two, and take the intersection to get the target row and column numbers as (1,3), (1,4), (2, 2), (2,3), (3,2), (3,3) and (3,4).
  • the target row and column number is the row and column number of the 3D vector HD map slice that needs to be loaded on the current screen at the target scale level.
  • the client When generating a 3D vector HD map, the client only needs to request the 3D vector HD map slice of the target row and column number. corresponding slice data.
  • S105 Acquire three-dimensional vector high-precision map slice data corresponding to each target row and column number, and perform visual rendering of the three-dimensional data to generate a three-dimensional vector high-precision map.
  • the 3D vector HD map slice data is marked with row and column numbers. Therefore, after obtaining the target row and column numbers, the client can request the target row and column numbers from the server that stores the 3D vector HD map slice data. Corresponding 3D vector HD map tile data.
  • the 3D vector high-precision map slice data can be stored in the geojson data format, and the client can obtain the 3D vector high-precision map slice data corresponding to the target row and column numbers in the geojson data format, parse it, and use a 3D engine, such as THREEJS, based on parsing The results are rendered visually to generate a 3D vector high-precision map.
  • a 3D engine such as THREEJS
  • the three-dimensional vector high-precision map data can be segmented in advance and the segmented data can be saved according to the row and column numbers. Then, obtain the row and column numbers of the 3D vector HD map slices to be loaded at the target scale level, and filter out the row and column numbers of the 3D vector HD map slices containing the location data of geographic elements as the target row and column numbers. Obtain the 3D vector high-precision map slice data corresponding to the target row and column numbers, and perform visual rendering to generate a 3D vector high-precision map. It can be seen that high-performance visual rendering of 3D vector high-precision maps can be achieved.
  • the client can search for the 3D vector high-precision map tile data corresponding to the target row and column number from the index file pre-cached by the browser based on the target row and column number; 3D vector HD map tile data of 3D vector HD map tiles with different row and column numbers.
  • the index file can be pre-built through the following steps:
  • Step 21 Divide the three-dimensional vector high-precision map data to obtain three-dimensional vector high-precision map slice data corresponding to the three-dimensional vector high-precision map slices of different row and column numbers one-to-one at different scale levels.
  • the three-dimensional vector high-precision map data can be segmented in advance to obtain slice data of three-dimensional vector high-precision map slices at different scale levels, and each scale level corresponds to a set of three-dimensional vector high-precision map slices.
  • the tile data of the map tile, and each row and column number under each scale level corresponds to a 3D vector HD map tile data under the scale level.
  • Step 22 Establish an index relationship between each row and column number and the 3D vector high-precision map slice data under different scale levels.
  • the ranks of the 3D vector HD map slices corresponding to the slice data in the total 3D vector HD map can be used. number to mark, and then the index relationship between each row and column number and the 3D vector HD map slice data at different scale levels can be obtained.
  • Step 23 Save the 3D vector high-precision map tile data and the index relationship to the index file.
  • the three-dimensional vector high-precision map slice data and the index relationship can be saved in the index file, and the index file can be saved in the cache of the browser.
  • the 3D vector high-precision map slice data corresponding to the target row and column numbers is retrieved by searching for the index relationship in the index file.
  • FIG. 3 is a schematic diagram of a three-dimensional vector high-precision map provided by an embodiment of the present invention.
  • the generated three-dimensional vector high-precision map includes road lines, zebra crossings, and lane lines in the road network. , and road signs at a certain height, etc.
  • the three-dimensional vector high-precision map generated by the embodiment of the present invention can be applied to fields such as vehicle navigation and unmanned driving.
  • the embodiment of the present invention also provides a map generation device based on three-dimensional high-precision map slices.
  • the device includes the following modules:
  • the first determination module 401 is used to determine the target geographic location coordinates of the target geographic location, and to determine the target scale level of the three-dimensional vector high-precision map to be generated;
  • the second determination module 402 is configured to determine, based on the coordinates of the target geographic location, the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level;
  • the second determination module 403 is configured to determine, based on the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs, each adjacent 3D vector HD map within a preset range centered on the 3D vector HD map slice to which the target geographic location belongs. The row and column number of the slice, and the row and column number of the 3D vector HD map slice to which the target geographic location belongs and the row and column number of each adjacent 3D vector HD map slice are marked as the row and column number to be loaded;
  • the comparison module 404 is used to compare the row and column numbers to be loaded with the initialized row and column numbers under the pre-stored target scale level, screen out the target row and column numbers, and the initialization row and column numbers are three-dimensional vector high-precision map slices containing geographic element location data The row and column number of ; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number under the target scale level;
  • the generating module 405 is configured to obtain the 3D vector high-precision map slice data corresponding to each target row and column number, and perform visual rendering of the 3D data to generate a 3D vector high-precision map.
  • the three-dimensional vector high-precision map data can be segmented in advance and the segmented data can be saved according to the row and column numbers. After that, obtain the row and column numbers of the 3D vector HD map slices to be loaded at the target scale level, and filter out the row and column numbers of the 3D vector HD map slices containing the location data of geographic elements as the target row and column numbers. Obtain the 3D vector high-precision map slice data corresponding to the target row and column numbers, and perform visual rendering to generate a 3D vector high-precision map. It can be seen that high-performance visual rendering of 3D vector high-precision maps can be achieved.
  • the embodiment of the present invention further provides an electronic device, as shown in FIG. 5 , including a processor 501 , a communication interface 502 , and a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 complete the communication with each other through the communication bus 504,
  • the 3D vector HD map slices to which the target geographic location belongs Based on the row and column numbers of the 3D vector HD map slices to which the target geographic location belongs, determine the row and column numbers of adjacent 3D vector HD map slices within a preset range centered on the 3D vector HD map slices to which the target geographic location belongs, and assign the target location to the 3D vector HD map slices.
  • the row and column numbers of the 3D vector HD map slice to which the geographic location belongs and the row and column numbers of each adjacent 3D vector HD map slice are marked as the row and column numbers to be loaded;
  • the initial row and column numbers are the row and column numbers of the 3D vector high-precision map slices containing the location data of geographic elements; the target row and column numbers It is the intersection of the row and column numbers to be loaded and the initialization row and column numbers under the target scale level;
  • the communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like.
  • PCI peripheral component interconnect standard
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the above electronic device and other devices.
  • the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage.
  • RAM Random Access Memory
  • NVM non-Volatile Memory
  • the memory may also be at least one storage device located away from the aforementioned processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the three-dimensional vector high-precision map data can be segmented in advance and the segmented data can be saved according to the row and column numbers.
  • the row and column numbers of the loaded 3D vector HD map slices, and the row and column numbers of the 3D vector HD map slices containing the location data of geographic elements are filtered out as the target row and column numbers.
  • a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned three-dimensional high-precision maps is realized. Steps of the tiled map generation method.
  • a computer program product including instructions, which, when running on a computer, enables the computer to execute any one of the methods for generating a map based on three-dimensional high-precision map slices in the above-mentioned embodiments A step of.
  • a chip for running instructions includes a memory and a processor. Code and data are stored in the memory.
  • the memory is coupled to the processor, and the processor runs the code in the memory so that the chip uses The steps of executing any one of the above-mentioned methods for generating a map based on a 3D high-precision map slice in the above-mentioned embodiments are performed.
  • a program product containing instructions, the program product includes a computer program, the computer program is stored in a computer-readable storage medium, and at least one processor can read from the computer-readable storage medium Taking a computer program, at least one processor executes the steps of any one of the map generation methods based on 3D high-precision map slices in the foregoing embodiments when the computer program is executed.
  • a computer program when the computer program is executed by a processor, for executing the steps of any one of the above-mentioned embodiments of the map generation method based on a three-dimensional high-precision map slice.
  • a computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

Provided in embodiments of the present invention are a three-dimensional highly precise map tile-based map generation method, an apparatus, and an electronic device, where a target geographic location and a target scale level are determined; a row and column number for a three-dimensional vector highly precise map tile to which the target geographic location belongs at the target scale level is determined; row and column numbers of three-dimensional vector highly precise map tiles to be downloaded are determined, a comparison is performed with a pre-stored initialized row and column number at the target scale level, and a target row and column number is selected; three-dimensional vector highly precise map tile data corresponding to the target row and column number is obtained, visualization rendering is performed, and thereby a three-dimensional vector highly precise map is generated. It is thus apparent that high performance visualization rendering of a three-dimensional vector highly precise map can be achieved.

Description

基于三维高精地图切片的地图生成方法、装置及电子设备Map generation method, device and electronic device based on 3D high-precision map slice
本申请要求于2020年11月11日提交中国专利局、申请号为202011252217.3、申请名称为“基于三维高精地图切片的地图生成方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on November 11, 2020 with the application number 202011252217.3 and the application name "Map generation method, device and electronic device based on 3D high-precision map slices", all of which are The contents are incorporated herein by reference.
技术领域technical field
本发明涉及高精地图技术领域,特别是涉及一种基于三维高精地图切片的地图生成方法、装置及电子设备。The present invention relates to the technical field of high-precision maps, in particular to a map generation method, device and electronic device based on three-dimensional high-precision map slices.
背景技术Background technique
传统地图的大范围可视化渲染是基于栅格地图数据进行的,这种方式简单易用,但存在无法实时更新地图、数据切片大等弊端,已无法满足当前业务需求。The large-scale visual rendering of traditional maps is based on raster map data. This method is simple and easy to use, but there are disadvantages such as inability to update the map in real time and large data slices, which can no longer meet current business needs.
mapbox作为一款开源的地图开发平台,提出了矢量切片技术,这种技术可以实时更新数据,生成的矢量切片数据具有低冗余、体积小的优点,很好的解决了传统地图渲染的弊端,目前已被广泛应用。As an open source map development platform, mapbox proposes a vector tile technology, which can update data in real time. The generated vector tile data has the advantages of low redundancy and small size, which solves the drawbacks of traditional map rendering. It has been widely used now.
虽然矢量切片在行业内被广泛应用,但现有的矢量切片地图可视化渲染均是基于二维矢量地图数据进行的,无法满足三维矢量高精地图的大范围可视化渲染需求。Although vector tiles are widely used in the industry, the existing visualization rendering of vector tile maps is based on two-dimensional vector map data, which cannot meet the large-scale visualization rendering requirements of three-dimensional vector high-precision maps.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种基于三维高精地图切片的地图生成方法、装置及电子设备,以实现三维矢量高精地图的高性能可视化渲染。The purpose of the embodiments of the present invention is to provide a map generation method, device and electronic device based on 3D high-precision map slices, so as to realize high-performance visualization rendering of 3D vector high-precision maps.
具体技术方案如下:The specific technical solutions are as follows:
为实现上述目的,本发明实施例提供了一种基于三维高精地图切片的地图生成方法,所述方法包括:To achieve the above purpose, an embodiment of the present invention provides a map generation method based on a three-dimensional high-precision map slice, the method comprising:
确定目标地理位置的坐标,并确定待生成的三维矢量高精地图的目标比 例尺级别;Determine the coordinates of the target geographic location, and determine the target scale level of the three-dimensional vector high-precision map to be generated;
基于所述目标地理位置的坐标,确定在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行列号;Based on the coordinates of the target geographic location, determine the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs at the target scale level;
基于所述目标地理位置所属三维矢量高精地图切片的行列号,确定以所述目标地理位置所属三维矢量高精地图切片为中心的预设范围内的各邻近三维矢量高精地图切片的行列号,并将所述目标地理位置所属三维矢量高精地图切片的行列号和所述各邻近三维矢量高精地图切片的行列号标记为待加载行列号;Based on the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs, determine the row and column numbers of each adjacent 3D vector HD map slice within a preset range centered on the 3D vector HD map slice to which the target geographic location belongs , and mark the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs and the row and column numbers of the adjacent three-dimensional vector high-precision map slices as the row and column numbers to be loaded;
将所述待加载行列号与预先存储的所述目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,所述初始化行列号包括各比例尺级别下的包含地理要素位置数据的三维矢量高精地图切片的行列号;所述目标行列号为所述待加载行列号和所述目标比例尺级别下的初始化行列号的交集;Compare the row and column numbers to be loaded with the pre-stored initialization row and column numbers under the target scale level, and filter out the target row and column numbers, where the initialization row and column numbers include three-dimensional vectors containing geographic element location data under each scale level The row and column number of the HD map slice; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number at the target scale level;
获取各所述目标行列号对应的三维矢量高精地图切片数据,并进行三维数据可视化渲染,生成三维矢量高精地图。Acquire the slice data of the three-dimensional vector high-precision map corresponding to each of the target row and column numbers, and perform visual rendering of the three-dimensional data to generate a three-dimensional vector high-precision map.
可选的,所述确定待生成的三维矢量高精地图的目标比例尺级别,包括:Optionally, the determining the target scale level of the three-dimensional vector high-precision map to be generated includes:
获取所述待生成的三维矢量高精地图的相机高度;Obtain the camera height of the three-dimensional vector high-precision map to be generated;
基于预先设定的相机高度范围与比例尺级别的对应关系,确定所述相机高度对应的比例尺级别,作为目标比例尺级别。Based on the preset correspondence between the camera height range and the scale level, the scale level corresponding to the camera height is determined as the target scale level.
可选的,所述基于所述目标地理位置的坐标,确定在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行列号,包括:Optionally, determining the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level based on the coordinates of the target geographic location, including:
根据预先建立的不同比例尺级别下三维矢量高精地图切片覆盖的二维地理坐标范围与三维矢量高精地图切片的行列号的对应关系,确定所述目标地理位置所属的二维地理坐标范围对应的所述目标比例尺级别下的行列号。According to the pre-established correspondence between the two-dimensional geographic coordinate range covered by the three-dimensional vector high-precision map slice at different scale levels and the row and column numbers of the three-dimensional vector high-precision map slice, determine the corresponding two-dimensional geographic coordinate range to which the target geographic location belongs. The row and column numbers at the target scale level.
可选的,所述基于所述目标地理位置的坐标,确定在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行列号,包括:Optionally, determining the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level based on the coordinates of the target geographic location, including:
根据目标地理位置的坐标包含的经度以及目标比例尺级别,按照如下公式计算目标地理位置所属三维矢量高精地图切片的列号:According to the longitude contained in the coordinates of the target geographic location and the target scale level, the column number of the 3D vector HD map slice to which the target geographic location belongs is calculated according to the following formula:
X=[(lng+180)/360*2^level]X=[(lng+180)/360*2^level]
其中,X表示在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的列号,lng表示所述目标地理位置的坐标包含的经度,level表示所述目标比例尺级别;Wherein, X represents the column number of the 3D vector HD map slice to which the target geographic location belongs under the target scale level, lng represents the longitude included in the coordinates of the target geographic location, and level represents the target scale level;
根据目标地理位置的坐标包含的纬度以及目标比例尺级别,按照如下公式计算目标地理位置所属三维矢量高精地图切片的行号:According to the latitude contained in the coordinates of the target geographic location and the target scale level, the row number of the 3D vector HD map slice to which the target geographic location belongs is calculated according to the following formula:
Y=[(1-ln(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2^level]Y=[(1-ln(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2^level]
其中,Y表示在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行号,lat表示所述目标地理位置坐标包含的纬度,level表示所述目标比例尺级别。Wherein, Y represents the row number of the 3D vector high-precision map slice to which the target geographic location belongs at the target scale level, lat represents the latitude contained in the target geographic location coordinates, and level represents the target scale level.
可选的,所述将所述待加载行列号与预先存储的在所述目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,包括:Optionally, comparing the row and column numbers to be loaded with the pre-stored initialization row and column numbers at the target scale level, and filtering out the target row and column numbers, including:
遍历所述待加载行列号,判断每一待加载行列号是否属于所述初始化行列号;Traverse the row and column numbers to be loaded, and determine whether each row and column number to be loaded belongs to the initialization row and column number;
若属于,则将所述待加载行列号确定为目标行列号。If yes, determine the row and column number to be loaded as the target row and column number.
可选的,所述获取各所述目标行列号对应的三维矢量高精地图切片数据,包括:Optionally, obtaining the three-dimensional vector high-precision map slice data corresponding to each of the target row and column numbers includes:
基于所述目标行列号,从预先缓存的索引文件中查找与所述目标行列号对应的三维矢量高精地图切片数据;所述索引文件中包含各比例尺级别下不同行列号的三维矢量高精地图切片的三维矢量高精地图切片数据。Based on the target row and column numbers, the 3D vector high-precision map tile data corresponding to the target row and column numbers is searched from the pre-cached index file; the index file contains 3D vector high-precision maps with different row and column numbers at each scale level Slice the 3D vector HD map tile data.
可选的,所述索引文件是通过如下方式构建的:Optionally, the index file is constructed as follows:
将三维矢量高精地图数据进行切分,得到不同比例尺级别下与不同行列号的三维矢量高精地图切片一一对应的三维矢量高精地图切片数据;Divide the 3D vector HD map data to obtain 3D vector HD map slice data corresponding to 3D vector HD map slices with different row and column numbers at different scale levels;
建立不同比例尺级别下,各行列号与三维矢量高精地图切片数据的索引关系;Establish the index relationship between each row and column number and the 3D vector HD map slice data at different scale levels;
将所述三维矢量高精地图切片数据和所述索引关系保存至所述索引文件中。The three-dimensional vector high-precision map tile data and the index relationship are saved in the index file.
可选的,所述三维矢量高精地图切片数据为geojson格式数据。Optionally, the three-dimensional vector high-precision map slice data is data in geojson format.
为实现上述目的,本发明实施例还提供了一种基于三维矢量高精地图切片的高精地图生成装置,所述装置包括:In order to achieve the above purpose, an embodiment of the present invention also provides a device for generating a high-precision map based on a three-dimensional vector high-precision map slice, and the device includes:
第一确定模块,用于确定目标地理位置的坐标,并确定待生成的三维矢量高精地图的目标比例尺级别;The first determination module is used to determine the coordinates of the target geographic location, and to determine the target scale level of the three-dimensional vector high-precision map to be generated;
第二确定模块,用于基于所述目标地理位置的坐标,确定在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行列号;A second determining module, configured to determine, based on the coordinates of the target geographic location, the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level;
第二确定模块,用于基于所述目标地理位置所属三维矢量高精地图切片 的行列号,确定以所述目标地理位置所属三维矢量高精地图切片为中心的预设范围内的各邻近三维矢量高精地图切片的行列号,并将所述目标地理位置所属三维矢量高精地图切片的行列号和所述各邻近三维矢量高精地图切片的行列号标记为待加载行列号;The second determination module is configured to determine, based on the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs, each adjacent 3D vector within a preset range centered on the 3D vector HD map slice to which the target geographic location belongs The row and column numbers of the high-precision map slices, and the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs and the row and column numbers of the adjacent three-dimensional vector high-precision map slices are marked as the row and column numbers to be loaded;
比对模块,用于将所述待加载行列号与预先存储的所述目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,所述初始化行列号包括各比例尺级别下的包含地理要素位置数据的三维矢量高精地图切片的行列号;所述目标行列号为所述待加载行列号和所述目标比例尺级别下的初始化行列号的交集;The comparison module is used to compare the row and column numbers to be loaded with the pre-stored initialization row and column numbers under the target scale level, and filter out the target row and column numbers, and the initialization row and column numbers include the geographic inclusions under each scale level. The row and column number of the three-dimensional vector high-precision map slice of the element location data; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number at the target scale level;
生成模块,用于获取各所述目标行列号对应的三维矢量高精地图切片数据,并进行三维数据可视化渲染,生成三维矢量高精地图。The generating module is used to obtain the slice data of the three-dimensional vector high-precision map corresponding to each of the target row and column numbers, and perform visual rendering of the three-dimensional data to generate the three-dimensional vector high-precision map.
为实现上述目的,本发明实施例还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线;其中,处理器、通信接口、存储器通过通信总线完成相互间的通信;In order to achieve the above object, an embodiment of the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus; wherein, the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现上述任一方法步骤。The processor is configured to implement any of the above method steps when executing the program stored in the memory.
为实现上述目的,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一方法步骤。To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above method steps is implemented.
为实现上述目的,本发明实施例还提供了一种运行指令的芯片,所述芯片包括存储器、处理器,所述存储器中存储代码和数据,所述存储器与所述处理器耦合,所述处理器运行所述存储器中的代码使得所述芯片实现上述任一方法步骤。To achieve the above object, an embodiment of the present invention further provides a chip for running instructions, the chip includes a memory and a processor, where code and data are stored in the memory, the memory is coupled with the processor, and the processor The processor runs the code in the memory so that the chip implements any of the above method steps.
为实现上述目的,本发明实施例还提供了一种包含指令的程序产品,当所述程序产品在计算机上运行时,使得所述计算机实现上述任一方法步骤。To achieve the above object, an embodiment of the present invention further provides a program product including instructions, which, when the program product runs on a computer, enables the computer to implement any of the above method steps.
为实现上述目的,本发明实施例还提供了一种一种计算机程序,当所述计算机程序被处理器执行时,用于实现上述任一方法步骤。To achieve the above object, an embodiment of the present invention further provides a computer program, which is used to implement any of the above method steps when the computer program is executed by a processor.
本发明实施例有益效果:Beneficial effects of the embodiment of the present invention:
应用本发明实施例提供的基于三维高精地图切片的地图生成方法、装置及电子设备,可以预先对三维矢量高精地图数据进行切分并按照行列号对切分数据进行保存,在确定目标地理位置和目标比例尺级别后,获取目标比例 尺级别下需要加载的三维矢量高精地图切片的行列号,并从中筛选出包含地理要素位置数据的三维矢量高精地图切片的行列号,作为目标行列号。获取目标行列号对应的三维矢量高精地图切片数据,进行可视化渲染,从而生成三维矢量高精地图。可见,能够实现对三维矢量高精地图的高性能可视化渲染。By applying the map generation method, device, and electronic device based on three-dimensional high-precision map slices provided by the embodiments of the present invention, the three-dimensional vector high-precision map data can be segmented in advance, and the segmented data can be saved according to the row and column numbers. After the location and the target scale level are obtained, the row and column numbers of the 3D vector HD map slices to be loaded under the target scale level are obtained, and the row and column numbers of the 3D vector HD map slices containing the location data of geographic elements are filtered out as the target row and column numbers. Obtain the 3D vector high-precision map slice data corresponding to the target row and column numbers, and perform visual rendering to generate a 3D vector high-precision map. It can be seen that high-performance visual rendering of 3D vector high-precision maps can be achieved.
当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, it is not necessary for any product or method of the present invention to achieve all of the advantages described above at the same time.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can also be obtained according to these drawings without creative efforts.
图1为本发明实施例提供的基于三维高精地图切片的地图生成方法的一种流程示意图;FIG. 1 is a schematic flowchart of a map generation method based on a 3D high-precision map slice provided by an embodiment of the present invention;
图2(a)为本发明实施例提供的三维矢量高精地图切片的第一种示意图;2(a) is a first schematic diagram of a three-dimensional vector high-precision map slice provided by an embodiment of the present invention;
图2(b)为本发明实施例提供的三维矢量高精地图切片的第二种示意图;2(b) is a second schematic diagram of a three-dimensional vector high-precision map slice provided by an embodiment of the present invention;
图2(c)为本发明实施例提供的三维矢量高精地图切片的第三种示意图;2(c) is a third schematic diagram of a three-dimensional vector high-precision map slice provided by an embodiment of the present invention;
图3为本发明实施例提供的三维矢量高精地图的一种示意图;3 is a schematic diagram of a three-dimensional vector high-precision map provided by an embodiment of the present invention;
图4为本发明实施例提供的基于三维高精地图切片的地图生成装置的一种结构示意图;4 is a schematic structural diagram of a map generation device based on a three-dimensional high-precision map slice provided by an embodiment of the present invention;
图5为本发明实施例提供的电子设备的一种结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
为了解决现有的矢量切片地图可视化渲染无法适用于生成三维矢量高精地图的技术问题,本发明实施例提供了一种基于三维高精地图切片的地图生成方法、装置及电子设备,参见图1,方法包括以下步骤:In order to solve the technical problem that the existing vector tile map visualization rendering cannot be applied to generate a three-dimensional vector high-precision map, an embodiment of the present invention provides a map generation method, device and electronic device based on a three-dimensional high-precision map slice, see FIG. 1 . , the method includes the following steps:
S101:确定目标地理位置的坐标,并确定待生成的三维矢量高精地图的目标比例尺级别。S101: Determine the coordinates of the target geographic location, and determine the target scale level of the three-dimensional vector high-precision map to be generated.
本发明实施例提供的基于三维高精地图切片的地图生成方法可以应用于终端中提供地图服务的客户端,例如提供地图服务的手机客户端、平板电脑客户端,也可以应用于网页客户端等。The method for generating maps based on 3D high-precision map slices provided by the embodiments of the present invention can be applied to clients that provide map services in terminals, such as mobile clients and tablet clients that provide map services, and can also be applied to web clients, etc. .
本发明实施例中,所生成的三维矢量高精地图包括目标地理位置及其周边区域的地图。目标地理位置可以是用户手动选取的地理位置,也可以是客户端对设备当前位置进行定位得到的,本发明实施例对此不做限定。In the embodiment of the present invention, the generated three-dimensional vector high-precision map includes a map of the target geographic location and its surrounding areas. The target geographic location may be a geographic location manually selected by the user, or may be obtained by the client locating the current location of the device, which is not limited in this embodiment of the present invention.
目标地理位置的坐标可以是目标地理位置的经纬度坐标,具体的,客户端可以调用定位软件的定位服务,获取目标地理位置的坐标。The coordinates of the target geographic location may be the latitude and longitude coordinates of the target geographic location. Specifically, the client may call the positioning service of the positioning software to obtain the coordinates of the target geographic location.
此外,客户端需要确定待生成的三维矢量高精地图的目标比例尺级别。In addition, the client needs to determine the target scale level of the 3D vector HD map to be generated.
作为一个示例,客户端可以根据用户输入的操作指令确定待生成的三维矢量高精地图的目标比例尺级别。举例来讲,如果客户端是网页客户端,用户可以通过滑动鼠标滚轮的方式,调节比例尺级别;如果客户端是手机客户端,用户可以通过手指缩放屏幕的方式,调节比例尺级别。上述方式仅作为实施例,不用于限定本发明。As an example, the client may determine the target scale level of the three-dimensional vector high-precision map to be generated according to the operation instruction input by the user. For example, if the client is a web client, the user can adjust the scale level by sliding the mouse wheel; if the client is a mobile client, the user can adjust the scale level by zooming the screen with fingers. The above-mentioned manners are only used as examples, and are not intended to limit the present invention.
在本发明实施例中,可以预先建立比例尺级别与相机高度范围的对应关系。相机高度是领域内的专业术语,能够表示视角的高低,相机高度越高,则地图覆盖的地理范围越大。In the embodiment of the present invention, the corresponding relationship between the scale level and the camera height range may be established in advance. The camera height is a professional term in the field, which can indicate the height of the angle of view. The higher the camera height, the larger the geographic area covered by the map.
具体的,首先根据三维矢量高精地图的地理覆盖总范围以及预设的相机张角,计算最大相机高度。Specifically, first, the maximum camera height is calculated according to the total geographic coverage of the three-dimensional vector high-precision map and the preset camera opening angle.
以覆盖全球范围的三维矢量高精地图为例,确定地球赤道半径EARTH_RADIUS、地球赤道周长EARTH_PERIMETER以及预设的相机张角fov,可以根据如下公式计算最大相机高度:Taking the 3D vector high-precision map covering the whole world as an example, to determine the earth's equatorial radius EARTH_RADIUS, the earth's equatorial perimeter EARTH_PERIMETER and the preset camera opening angle fov, the maximum camera height can be calculated according to the following formula:
MAX_CAMERA_HEIGHT=(EARTH_PERIMETER/2)/tan(Math.PI*fov/ 180/2)MAX_CAMERA_HEIGHT=(EARTH_PERIMETER/2)/tan(Math.PI*fov/180/2)
其中,MAX_CAMERA_HEIGHT表示最大相机高度,Math.PI表示数学中的圆周率π。Among them, MAX_CAMERA_HEIGHT represents the maximum camera height, and Math.PI represents the pi in mathematics.
进而可以以最大相机高度为基准,以二分原则确定各比例尺级别对应的标准相机高度。作为一个示例,设比例尺级别level 0的标准相机高度即为最大相机高度H 0,则比例尺级别level 1的标准相机高度为
Figure PCTCN2021115466-appb-000001
比例尺级别level 2的标准相机高度为
Figure PCTCN2021115466-appb-000002
依次类推。进而可以确定比例尺级别与相机高度范围的对应关系,例如当相机高度在H 2-H 1区间,可以认为该相机高度对应的比例尺级别为level 2。
Furthermore, the standard camera height corresponding to each scale level can be determined based on the maximum camera height and the dichotomy principle. As an example, let the standard camera height of scale level 0 be the maximum camera height H 0 , then the standard camera height of scale level 1 is
Figure PCTCN2021115466-appb-000001
The standard camera height for scale level level 2 is
Figure PCTCN2021115466-appb-000002
And so on. Further, the correspondence between the scale level and the camera height range can be determined. For example, when the camera height is in the interval H 2 -H 1 , it can be considered that the scale level corresponding to the camera height is level 2.
上述仅作为示例,相机高度范围与比例尺级别的对应关系,以及比例尺级别的划分数目都可以根据实际需求进行设定。The above is only an example, the corresponding relationship between the camera height range and the scale level, and the number of divisions of the scale level can be set according to actual needs.
则在本发明的一种实施例中,上述确定待生成的三维矢量高精地图的目标比例尺级别,可以包括如下细化步骤:Then in an embodiment of the present invention, the above-mentioned determination of the target scale level of the three-dimensional vector high-precision map to be generated may include the following refinement steps:
步骤a:获取待生成的三维矢量高精地图的相机高度。Step a: Obtain the camera height of the three-dimensional vector high-precision map to be generated.
本步骤中,客户端可以通过调用相机空间位置position(x,y,z),获取相机空间位置中的z值,作为相机高度。In this step, the client can obtain the z value in the camera space position as the camera height by calling the camera space position position(x, y, z).
步骤b:基于预先设定的相机高度范围与比例尺级别的对应关系,确定相机高度对应的比例尺级别,作为目标比例尺级别。Step b: Based on the preset correspondence between the camera height range and the scale level, determine the scale level corresponding to the camera height as the target scale level.
根据预设的相机高度范围与比例尺级别的对应关系,即可确定步骤a获取的相机高度所处的相机高度范围,进而确定对应的比例尺级别,记为目标比例尺级别。According to the corresponding relationship between the preset camera height range and the scale level, the camera height range in which the camera height obtained in step a is located can be determined, and then the corresponding scale level is determined, which is recorded as the target scale level.
S102:基于目标地理位置的坐标,确定在目标比例尺级别下目标地理位置所属三维矢量高精地图切片的行列号。S102: Based on the coordinates of the target geographic location, determine the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs at the target scale level.
本发明实施例中,可以预先对三维矢量高精地图数据进行切分,得到不同比例尺级别下三维矢量高精地图切片的切片数据,每个比例尺级别对应一组三维矢量高精地图切片的切片数据,每个三维矢量高精地图切片的切片数据可以预先存储在客户端或服务器中。In this embodiment of the present invention, the three-dimensional vector high-precision map data may be segmented in advance to obtain the slice data of the three-dimensional vector high-precision map slices at different scale levels, and each scale level corresponds to the slice data of a group of three-dimensional vector high-precision map slices , the slice data of each 3D vector HD map slice can be pre-stored in the client or server.
三维矢量高精地图切片的切片数据包括该三维矢量高精地图切片中包含的地理要素的二维坐标数据和高程数据。由于是高精地图,因此三维矢 量高精地图切片中的地理要素还可以仅包含道路路网。The slice data of the three-dimensional vector high-precision map tile includes two-dimensional coordinate data and elevation data of the geographic elements contained in the three-dimensional vector high-precision map tile. Because it is an HD map, the geographic features in the 3D vector HD map tiles can also contain only road networks.
本发明实施例中,针对各比例尺级别的每份三维矢量高精地图切片数据,均可以用切片数据对应的三维矢量高精地图切片在总的三维矢量高精地图中的行列号来进行标记。In the embodiment of the present invention, each piece of 3D vector high-precision map slice data at each scale level can be marked with the row and column numbers of the 3D vector high-precision map slice corresponding to the slice data in the total 3D vector high-precision map.
为了便于理解,参见图2(a)-图2(c),图2(a)为本发明实施例提供的三维矢量高精地图切片的第一种示意图;图2(b)为本发明实施例提供的三维矢量高精地图切片的第二种示意图;图2(c)为本发明实施例提供的三维矢量高精地图切片的第三种示意图,设图2(a)-图2(c)中加粗矩形范围表示在数据切分之前,三维矢量高精地图的总覆盖范围,如图2(a)-2(c)所示,在第一比例尺级别下将总的三维矢量高精地图数据切分为4份三维矢量高精地图切片数据,其中,第一份三维矢量高精地图切片数据对应三维矢量高精地图切片a1,由于a1在总的三维矢量高精地图中所处的行号为1,列号为1,因此可以用第一比例尺级别下的行列号(1,1)来标记a1对应的三维矢量高精地图切片的切片数据,相应的,用第一比例尺级别下的行列号(1,2)来标记a2对应的三维矢量高精地图切片的切片数据,用第一比例尺级别下的行列号(2,1)来标记a3对应的三维矢量高精地图切片的切片数据,用第一比例尺级别下的行列号(2,2)来标记a4对应的三维矢量高精地图切片的切片数据。For ease of understanding, refer to Fig. 2(a)-Fig. 2(c), Fig. 2(a) is a first schematic diagram of a three-dimensional vector high-precision map slice provided by an embodiment of the present invention; Fig. 2(b) is an implementation of the present invention The second schematic diagram of the three-dimensional vector high-precision map slice provided by the example; Figure 2 (c) is the third schematic diagram of the three-dimensional vector high-precision map slice provided by the embodiment of the present invention, set Figure 2 (a)-Figure 2 (c) ) in the bold rectangle indicates the total coverage of the 3D vector high-precision map before data segmentation, as shown in Figure 2(a)-2(c). The map data is divided into 4 pieces of 3D vector high-precision map slice data. The first piece of 3D vector high-precision map slice data corresponds to the 3D vector high-precision map slice a1, because a1 is located in the total 3D vector high-precision map. The row number is 1 and the column number is 1, so the row and column numbers (1, 1) under the first scale level can be used to mark the slice data of the 3D vector HD map slice corresponding to a1. Correspondingly, the first scale level is used to mark the slice data. The row and column numbers (1, 2) of a2 are used to mark the slice data of the 3D vector HD map slice corresponding to a2, and the row and column numbers (2, 1) at the first scale level are used to mark the slice data of the 3D vector HD map slice corresponding to a3. Data, use the row and column numbers (2, 2) at the first scale level to mark the slice data of the 3D vector HD map slice corresponding to a4.
相应的,如图2(b)-图2(c)所示,可以用第二比例尺级别下的行列号(2,1)来标记b4对应的三维矢量高精地图切片的切片数据,可以用第三比例尺级别下的行列号(3,1)来标记c9对应的三维矢量高精地图切片的切片数据。Correspondingly, as shown in Fig. 2(b)-Fig. 2(c), the row and column numbers (2, 1) under the second scale level can be used to mark the slice data of the 3D vector HD map slice corresponding to b4. The row and column numbers (3,1) at the third scale level are used to mark the slice data of the 3D vector HD map slice corresponding to c9.
此外,为了便于描述,同样也可以用行列号来标记三维矢量高精地图切片,例如图2(a)所示实施例中,在第一比例尺级别下,行列号为(2,2)的三维矢量高精地图切片即为切片a4。In addition, for the convenience of description, the 3D vector HD map slices can also be marked with row and column numbers. For example, in the embodiment shown in FIG. 2(a), at the first scale level, the 3D vector with row and column numbers (2, 2) The vector HD map slice is the slice a4.
上述图2(a)-图2(c)仅以二维平面地图作为示例进行说明,实际上每个地图切片都是三维的、立体的地图切片,上述仅作为示例性描述,仅为了便于理解,并不限定本发明的技术方案。实际应用中,每个比例尺级别下划分的三维矢量高精地图切片的数目都较多,具体的切片数目可以根据实际需求进行设定。The above-mentioned Figures 2(a)-2(c) only take a two-dimensional plane map as an example for illustration. In fact, each map slice is a three-dimensional, three-dimensional map slice. The above is only an exemplary description and is only for the convenience of understanding. , does not limit the technical solution of the present invention. In practical applications, there are many 3D vector high-precision map slices divided at each scale level, and the specific number of slices can be set according to actual needs.
本发明实施例中,在对三维矢量高精地图数据进行切分,得到三维矢 量高精地图切片的切片数据之后,可以记录每个切片数据对应的三维矢量高精地图切片覆盖的二维地理坐标范围,进而建立不同比例尺级别下,三维矢量高精地图切片覆盖的二维地理坐标范围与三维矢量高精地图切片的行列号之间的对应关系。In the embodiment of the present invention, after segmenting the 3D vector high-precision map data to obtain the slice data of the 3D vector high-precision map slice, the two-dimensional geographic coordinates covered by the 3D vector high-precision map slice corresponding to each slice data can be recorded The corresponding relationship between the two-dimensional geographic coordinate range covered by the three-dimensional vector high-precision map slice and the row and column numbers of the three-dimensional vector high-precision map slice at different scale levels is established.
相应的,在本发明的一种实施例中,可以根据预先建立的不同比例尺级别下三维矢量高精地图切片覆盖的二维地理坐标范围与三维矢量高精地图切片的行列号的对应关系,确定目标地理位置所属的二维地理坐标范围对应的目标比例尺级别下的行列号。Correspondingly, in an embodiment of the present invention, it can be determined according to the pre-established correspondence between the two-dimensional geographic coordinate range covered by the three-dimensional vector high-precision map slice at different scale levels and the row and column numbers of the three-dimensional vector high-precision map slice. The row and column numbers under the target scale level corresponding to the two-dimensional geographic coordinate range to which the target geographic location belongs.
举例来讲,参见图2(b),如果目标比例尺级别为第二比例尺级别,目标地理位置属于三维矢量高精地图切片b5覆盖的二维地理坐标范围,则可以根据该比例尺级别下三维矢量高精地图切片覆盖的二维地理坐标范围与三维矢量高精地图切片的行列号的对应关系,确定目标地理位置所属的二维地理坐标范围对应的行列号为b5的行列号,即(2,2)。For example, referring to Fig. 2(b), if the target scale level is the second scale level, and the target geographic location belongs to the two-dimensional geographic coordinate range covered by the three-dimensional vector high-precision map slice b5, then the three-dimensional vector height can be determined according to the scale level. The corresponding relationship between the two-dimensional geographic coordinate range covered by the precision map slice and the row and column numbers of the three-dimensional vector high-precision map slice, and the row and column number corresponding to the two-dimensional geographic coordinate range to which the target geographic location belongs is determined as the row and column number of b5, that is (2,2 ).
在本发明的一种实施例中,针对覆盖全球范围的三维矢量高精地图,也可以根据经纬度计算在目标比例尺级别下,目标地理位置所属三维矢量高精地图切片的行列号。In an embodiment of the present invention, for a 3D vector HD map covering the whole world, the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs at the target scale level can also be calculated according to the latitude and longitude.
具体的,可以根据目标地理位置坐标包含的经度以及目标比例尺级别,按照如下公式计算目标地理位置所属三维矢量高精地图切片的列号:Specifically, the column number of the 3D vector high-precision map slice to which the target geographic location belongs can be calculated according to the following formula according to the longitude and the target scale level contained in the coordinates of the target geographic location:
X=[(lng+180)/360*2^level]X=[(lng+180)/360*2^level]
其中,X表示在目标比例尺级别下目标地理位置所属三维矢量高精地图切片的列号,lng表示目标地理位置坐标包含的经度,level表示目标比例尺级别;Among them, X represents the column number of the 3D vector HD map slice to which the target geographic location belongs at the target scale level, lng represents the longitude contained in the target geographic location coordinates, and level represents the target scale level;
根据目标地理位置坐标包含的纬度以及目标比例尺级别,按照如下公式计算目标地理位置所属三维矢量高精地图切片的行号:According to the latitude and target scale level contained in the target geographic location coordinates, the row number of the 3D vector HD map slice to which the target geographic location belongs is calculated according to the following formula:
Y=[(1-ln(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2^level]Y=[(1-ln(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2^level]
其中,Y表示在目标比例尺级别下目标地理位置所属三维矢量高精地图切片的行号,lat表示目标地理位置坐标包含的纬度,level表示目标比例尺级别。Among them, Y represents the row number of the 3D vector HD map slice to which the target geographic location belongs at the target scale level, lat represents the latitude contained in the target geographic location coordinates, and level represents the target scale level.
S103:基于目标地理位置所属三维矢量高精地图切片的行列号,确定以目标地理位置所属三维矢量高精地图切片为中心的预设范围内的各邻近三维矢量高精地图切片的行列号,并将目标地理位置所属三维矢量高精地 图切片的行列号和各邻近三维矢量高精地图切片的行列号标记为待加载行列号。S103: Based on the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs, determine the row and column numbers of adjacent three-dimensional vector high-precision map slices within a preset range centered on the three-dimensional vector high-precision map slices to which the target geographic location belongs, and Mark the row and column numbers of the three-dimensional vector high-precision map slice to which the target geographic location belongs and the row and column numbers of each adjacent three-dimensional vector high-precision map slice as the row and column numbers to be loaded.
本发明实施例中,如果仅加载目标地理位置所属的三维矢量高精地图切片,则生成的三维矢量高精地图不足以覆盖客户端的显示屏幕,因此,可以确定以目标地理位置所属的三维矢量高精地图切片为中心的预设范围内邻近的其他三维矢量高精地图切片的行列号。In this embodiment of the present invention, if only the 3D vector high-precision map slice to which the target geographic location belongs is loaded, the generated 3D vector high-precision map is not enough to cover the display screen of the client. The row and column numbers of other 3D vector HD map tiles adjacent to the preset range centered on the HD map tile.
其中,预设范围可以根据需求进行设定。The preset range can be set according to requirements.
在本发明的一种实施例中,以目标地理位置所属三维矢量高精地图切片的行列号(X,Y)为基准,循环遍历X-m,X-(m-1),…X-1,X,X+1,…X+(m-1),X-m,得到待加载行号,循环遍历Y-m,Y-(m-1),…Y-1,Y,Y+1,…Y+(m-1),Y-m,得到待加载行号,再进行组合得到所有待加载行列号,其中m是预设的行列号平移量。In an embodiment of the present invention, based on the row and column numbers (X, Y) of the 3D vector high-precision map slice to which the target geographic location belongs, cyclically traverse X-m, X-(m-1), ... X-1, X ,X+1,…X+(m-1),X-m, get the line number to be loaded, loop through Y-m, Y-(m-1),…Y-1,Y,Y+1,…Y+(m-1 ), Y-m, get the row number to be loaded, and then combine to get all the row and column numbers to be loaded, where m is the preset row and column number translation.
作为一个示例,可以设置m=2,则以X、Y行列号为基准,循环遍历X、Y加-2,-1,0,1,2的偏移量得到当前需要加载的所有三维矢量高精地图切片的行列号,在这种情况下,所确定的待加载行列号为25个。As an example, m=2 can be set, then based on the row and column numbers of X and Y, loop through the offsets of X, Y plus -2, -1, 0, 1, 2 to obtain all the three-dimensional vector heights that need to be loaded currently. The row and column numbers of the map slice, in this case, the determined row and column numbers to be loaded are 25.
S104:将待加载行列号与预先存储的目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,初始化行列号包括各比例尺级别下的包含地理要素位置数据的三维矢量高精地图切片的行列号;目标行列号为待加载行列号和目标比例尺级别下的初始化行列号的交集。S104: Compare the row and column numbers to be loaded with the initialized row and column numbers under the pre-stored target scale level, filter out the target row and column numbers, and the initialized row and column numbers include the three-dimensional vector high-precision map slices containing geographic element location data under each scale level The row and column number; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number at the target scale level.
本发明实施例中,部分三维矢量高精地图切片的地理覆盖范围内可能没有地理要素,例如图2(b)中三维矢量高精地图切片b7内不包含任何地理要素。为了提高生成效率,避免资源浪费,可以从待加载行列号中,筛选出包含地理要素位置数据的三维矢量高精地图切片的行列号。In this embodiment of the present invention, there may be no geographic elements within the geographic coverage of some 3D vector HD map tiles. For example, the 3D vector HD map tile b7 in FIG. 2(b) does not contain any geographic elements. In order to improve the generation efficiency and avoid wasting resources, the row and column numbers of the three-dimensional vector high-precision map slices containing the location data of geographic elements can be filtered out from the row and column numbers to be loaded.
具体的,本发明实施例中,可以预先确定不同比例尺级别下的初始行列号并记录。对于某一比例尺级别,该比例尺级别下的初始行列号对应的三维矢量高精地图切片中都包含地理要素位置数据,而该比例尺级别下的与初始行列号不同的其他行列号对应的三维矢量高精地图切片均不包含地理要素位置数据。Specifically, in this embodiment of the present invention, initial row and column numbers at different scale levels may be predetermined and recorded. For a certain scale level, the 3D vector HD map tiles corresponding to the initial row and column numbers at this scale level all contain geographic feature location data, and the 3D vector heights corresponding to other row and column numbers under this scale level are different from the initial row and column numbers. Geomap tiles do not contain geographic feature location data.
进而可以遍历所确定的目标比例尺级别下的待加载行列号,判断每一待加载行列号是否属于目标比例尺级别下的初始化行列号;若属于,则将待加载行列号确定为目标行列号。Further, it is possible to traverse the row and column numbers to be loaded under the determined target scale level, and determine whether each row and column number to be loaded belongs to the initialization row and column number under the target scale level; if so, determine the row and column number to be loaded as the target row and column number.
作为一个示例,如果目标比例尺级别为第三比例尺级别,待加载行列号为(1,2)、(1,3)、(1,4)、(2,2)、(2,3)、(2,4)、(3,2)、(3,3)和(3,4),如果预先存储的该比例尺级别下初始行列号包括:(1,1)、(1,3)、(1,4)、(2,1)、(2,2)、(2,3)、(3,1)、(3,2)、(3,3)、(3,4)、(4,1)、(4,2)、(4,3)和(4,4),则二者进行比对,取交集可得到目标行列号为(1,3)、(1,4)、(2,2)、(2,3)、(3,2)、(3,3)和(3,4)。As an example, if the target scale level is the third scale level, the row and column numbers to be loaded are (1,2), (1,3), (1,4), (2,2), (2,3), ( 2,4), (3,2), (3,3) and (3,4), if the pre-stored initial row and column numbers at this scale level include: (1,1), (1,3), (1 ,4), (2,1), (2,2), (2,3), (3,1), (3,2), (3,3), (3,4), (4,1 ), (4,2), (4,3) and (4,4), then compare the two, and take the intersection to get the target row and column numbers as (1,3), (1,4), (2, 2), (2,3), (3,2), (3,3) and (3,4).
目标行列号即为目标比例尺级别下,当前屏幕需要加载的三维矢量高精地图切片的行列号,在生成三维矢量高精地图时,客户端仅需要请求获取目标行列号的三维矢量高精地图切片对应的切片数据。The target row and column number is the row and column number of the 3D vector HD map slice that needs to be loaded on the current screen at the target scale level. When generating a 3D vector HD map, the client only needs to request the 3D vector HD map slice of the target row and column number. corresponding slice data.
S105:获取各目标行列号对应的三维矢量高精地图切片数据,并进行三维数据可视化渲染,生成三维矢量高精地图。S105: Acquire three-dimensional vector high-precision map slice data corresponding to each target row and column number, and perform visual rendering of the three-dimensional data to generate a three-dimensional vector high-precision map.
本发明实施例中,如上文所述,三维矢量高精地图切片数据用行列号进行标注,因此在获取目标行列号后,客户端可以向存储三维矢量高精地图切片数据的服务器请求目标行列号对应的三维矢量高精地图切片数据。In this embodiment of the present invention, as described above, the 3D vector HD map slice data is marked with row and column numbers. Therefore, after obtaining the target row and column numbers, the client can request the target row and column numbers from the server that stores the 3D vector HD map slice data. Corresponding 3D vector HD map tile data.
其中,三维矢量高精地图切片数据可以以geojson数据格式存储,客户端可以获取geojson数据格式的目标行列号对应的三维矢量高精地图切片数据,进行解析,并采用3D引擎,例如THREEJS,基于解析结果进行可视化渲染,生成三维矢量高精地图。Among them, the 3D vector high-precision map slice data can be stored in the geojson data format, and the client can obtain the 3D vector high-precision map slice data corresponding to the target row and column numbers in the geojson data format, parse it, and use a 3D engine, such as THREEJS, based on parsing The results are rendered visually to generate a 3D vector high-precision map.
应用本发明实施例提供的基于三维高精地图切片的地图生成方法,可以预先对三维矢量高精地图数据进行切分并按照行列号对切分数据进行保存,在确定目标地理位置和目标比例尺级别后,获取目标比例尺级别下需要加载的三维矢量高精地图切片的行列号,并从中筛选出包含地理要素位置数据的三维矢量高精地图切片的行列号,作为目标行列号。获取目标行列号对应的三维矢量高精地图切片数据,进行可视化渲染,从而生成三维矢量高精地图。可见,能够实现对三维矢量高精地图的高性能可视化渲染。By applying the map generation method based on the three-dimensional high-precision map slice provided by the embodiment of the present invention, the three-dimensional vector high-precision map data can be segmented in advance and the segmented data can be saved according to the row and column numbers. Then, obtain the row and column numbers of the 3D vector HD map slices to be loaded at the target scale level, and filter out the row and column numbers of the 3D vector HD map slices containing the location data of geographic elements as the target row and column numbers. Obtain the 3D vector high-precision map slice data corresponding to the target row and column numbers, and perform visual rendering to generate a 3D vector high-precision map. It can be seen that high-performance visual rendering of 3D vector high-precision maps can be achieved.
在本发明的一种实施例中,客户端可以基于目标行列号,从浏览器预先缓存的索引文件中查找与目标行列号对应的三维矢量高精地图切片数据;索引文件中包含各比例尺级别下不同行列号的三维矢量高精地图切片的三维矢量高精地图切片数据。In an embodiment of the present invention, the client can search for the 3D vector high-precision map tile data corresponding to the target row and column number from the index file pre-cached by the browser based on the target row and column number; 3D vector HD map tile data of 3D vector HD map tiles with different row and column numbers.
在本发明的一种实施例中,索引文件可以通过如下步骤预先构建:In an embodiment of the present invention, the index file can be pre-built through the following steps:
步骤21:将三维矢量高精地图数据进行切分,得到不同比例尺级别下与不同行列号的三维矢量高精地图切片一一对应的三维矢量高精地图切片数据。Step 21: Divide the three-dimensional vector high-precision map data to obtain three-dimensional vector high-precision map slice data corresponding to the three-dimensional vector high-precision map slices of different row and column numbers one-to-one at different scale levels.
如上文所述,本发明实施例中,可以预先对三维矢量高精地图数据进行切分,得到不同比例尺级别下三维矢量高精地图切片的切片数据,每个比例尺级别对应一组三维矢量高精地图切片的切片数据,且每个比例尺级别下的每个行列号对应该比例尺级别下的一份三维矢量高精地图切片数据。As described above, in this embodiment of the present invention, the three-dimensional vector high-precision map data can be segmented in advance to obtain slice data of three-dimensional vector high-precision map slices at different scale levels, and each scale level corresponds to a set of three-dimensional vector high-precision map slices. The tile data of the map tile, and each row and column number under each scale level corresponds to a 3D vector HD map tile data under the scale level.
步骤22:建立不同比例尺级别下,各行列号与三维矢量高精地图切片数据的索引关系。Step 22: Establish an index relationship between each row and column number and the 3D vector high-precision map slice data under different scale levels.
如上文所述,本发明实施例中,针对各比例尺级别的每份三维矢量高精地图切片数据,均可以用切片数据对应的三维矢量高精地图切片在总的三维矢量高精地图中的行列号来进行标记,进而可以得到不同比例尺级别下,各行列号与三维矢量高精地图切片数据的索引关系。As described above, in this embodiment of the present invention, for each piece of 3D vector HD map slice data at each scale level, the ranks of the 3D vector HD map slices corresponding to the slice data in the total 3D vector HD map can be used. number to mark, and then the index relationship between each row and column number and the 3D vector HD map slice data at different scale levels can be obtained.
步骤23:将三维矢量高精地图切片数据和索引关系保存至索引文件中。Step 23: Save the 3D vector high-precision map tile data and the index relationship to the index file.
本发明实施例中,可以将三维矢量高精地图切片数据和索引关系保存至索引文件中,索引文件可以保存至浏览器的缓存中。In the embodiment of the present invention, the three-dimensional vector high-precision map slice data and the index relationship can be saved in the index file, and the index file can be saved in the cache of the browser.
进而,当确定需要加载的目标行列号之后,通过查找索引文件中的索引关系,调出与目标行列号相对应的三维矢量高精地图切片数据。Furthermore, after determining the target row and column numbers to be loaded, the 3D vector high-precision map slice data corresponding to the target row and column numbers is retrieved by searching for the index relationship in the index file.
参见图3,图3为本发明实施例提供的三维矢量高精地图的一种示意图,如图3所示,所生成的三维矢量高精地图包含道路路网中的道路线、斑马线、车道线,以及在一定高度的道路指示牌等。本发明实施例所生成的三维矢量高精地图可以应用于车辆导航、无人驾驶等领域。Referring to FIG. 3, FIG. 3 is a schematic diagram of a three-dimensional vector high-precision map provided by an embodiment of the present invention. As shown in FIG. 3, the generated three-dimensional vector high-precision map includes road lines, zebra crossings, and lane lines in the road network. , and road signs at a certain height, etc. The three-dimensional vector high-precision map generated by the embodiment of the present invention can be applied to fields such as vehicle navigation and unmanned driving.
本发明实施例还提供了一种基于三维高精地图切片的地图生成装置,参见图4,装置包括以下模块:The embodiment of the present invention also provides a map generation device based on three-dimensional high-precision map slices. Referring to FIG. 4 , the device includes the following modules:
第一确定模块401,用于确定目标地理位置的目标地理位置坐标,并确定待生成的三维矢量高精地图的目标比例尺级别;The first determination module 401 is used to determine the target geographic location coordinates of the target geographic location, and to determine the target scale level of the three-dimensional vector high-precision map to be generated;
第二确定模块402,用于基于目标地理位置坐标,确定在目标比例尺级别下目标地理位置所属三维矢量高精地图切片的行列号;The second determination module 402 is configured to determine, based on the coordinates of the target geographic location, the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level;
第二确定模块403,用于基于目标地理位置所属三维矢量高精地图切片的行列号,确定以目标地理位置所属三维矢量高精地图切片为中心的预设范围内的各邻近三维矢量高精地图切片的行列号,并将目标地理位置所属 三维矢量高精地图切片的行列号和各邻近三维矢量高精地图切片的行列号标记为待加载行列号;The second determination module 403 is configured to determine, based on the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs, each adjacent 3D vector HD map within a preset range centered on the 3D vector HD map slice to which the target geographic location belongs The row and column number of the slice, and the row and column number of the 3D vector HD map slice to which the target geographic location belongs and the row and column number of each adjacent 3D vector HD map slice are marked as the row and column number to be loaded;
比对模块404,用于将待加载行列号与预先存储的目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,初始化行列号为包含地理要素位置数据的三维矢量高精地图切片的行列号;目标行列号为待加载行列号和目标比例尺级别下的初始化行列号的交集;The comparison module 404 is used to compare the row and column numbers to be loaded with the initialized row and column numbers under the pre-stored target scale level, screen out the target row and column numbers, and the initialization row and column numbers are three-dimensional vector high-precision map slices containing geographic element location data The row and column number of ; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number under the target scale level;
生成模块405,用于获取各目标行列号对应的三维矢量高精地图切片数据,并进行三维数据可视化渲染,生成三维矢量高精地图。The generating module 405 is configured to obtain the 3D vector high-precision map slice data corresponding to each target row and column number, and perform visual rendering of the 3D data to generate a 3D vector high-precision map.
应用本发明实施例提供的基于三维高精地图切片的地图生成装置,可以预先对三维矢量高精地图数据进行切分并按照行列号对切分数据进行保存,在确定目标地理位置和目标比例尺级别后,获取目标比例尺级别下需要加载的三维矢量高精地图切片的行列号,并从中筛选出包含地理要素位置数据的三维矢量高精地图切片的行列号,作为目标行列号。获取目标行列号对应的三维矢量高精地图切片数据,进行可视化渲染,从而生成三维矢量高精地图。可见,能够实现对三维矢量高精地图的高性能可视化渲染。By applying the map generation device based on the three-dimensional high-precision map slice provided by the embodiment of the present invention, the three-dimensional vector high-precision map data can be segmented in advance and the segmented data can be saved according to the row and column numbers. After that, obtain the row and column numbers of the 3D vector HD map slices to be loaded at the target scale level, and filter out the row and column numbers of the 3D vector HD map slices containing the location data of geographic elements as the target row and column numbers. Obtain the 3D vector high-precision map slice data corresponding to the target row and column numbers, and perform visual rendering to generate a 3D vector high-precision map. It can be seen that high-performance visual rendering of 3D vector high-precision maps can be achieved.
基于相同的发明构思,根据上述基于三维高精地图切片的地图生成方法实施例,本发明实施例还提供了一种电子设备,如图5所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存储器503通过通信总线504完成相互间的通信,Based on the same inventive concept, according to the above embodiments of the map generation method based on 3D high-precision map slices, the embodiment of the present invention further provides an electronic device, as shown in FIG. 5 , including a processor 501 , a communication interface 502 , and a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 complete the communication with each other through the communication bus 504,
存储器503,用于存放计算机程序;a memory 503 for storing computer programs;
处理器501,用于执行存储器503上所存放的程序时,实现如下步骤:When the processor 501 is used to execute the program stored in the memory 503, the following steps are implemented:
确定目标地理位置的坐标,并确定待生成的三维矢量高精地图的目标比例尺级别;Determine the coordinates of the target geographic location, and determine the target scale level of the three-dimensional vector high-precision map to be generated;
基于目标地理位置的坐标,确定在目标比例尺级别下目标地理位置所属三维矢量高精地图切片的行列号;Based on the coordinates of the target geographic location, determine the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs at the target scale level;
基于目标地理位置所属三维矢量高精地图切片的行列号,确定以目标地理位置所属三维矢量高精地图切片为中心的预设范围内的各邻近三维矢量高精地图切片的行列号,并将目标地理位置所属三维矢量高精地图切片的行列号和各邻近三维矢量高精地图切片的行列号标记为待加载行列号;Based on the row and column numbers of the 3D vector HD map slices to which the target geographic location belongs, determine the row and column numbers of adjacent 3D vector HD map slices within a preset range centered on the 3D vector HD map slices to which the target geographic location belongs, and assign the target location to the 3D vector HD map slices. The row and column numbers of the 3D vector HD map slice to which the geographic location belongs and the row and column numbers of each adjacent 3D vector HD map slice are marked as the row and column numbers to be loaded;
将待加载行列号与预先存储的目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,初始化行列号为包含地理要素位置数据的三维 矢量高精地图切片的行列号;目标行列号为待加载行列号和目标比例尺级别下的初始化行列号的交集;Compare the row and column numbers to be loaded with the initialized row and column numbers at the pre-stored target scale level, filter out the target row and column numbers, and the initial row and column numbers are the row and column numbers of the 3D vector high-precision map slices containing the location data of geographic elements; the target row and column numbers It is the intersection of the row and column numbers to be loaded and the initialization row and column numbers under the target scale level;
获取各目标行列号对应的三维矢量高精地图切片数据,并进行三维数据可视化渲染,生成三维矢量高精地图。Obtain 3D vector high-precision map slice data corresponding to each target row and column number, and perform 3D data visualization rendering to generate a 3D vector high-precision map.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
应用本发明实施例提供的电子设备,可以预先对三维矢量高精地图数据进行切分并按照行列号对切分数据进行保存,在确定目标地理位置和目标比例尺级别后,获取目标比例尺级别下需要加载的三维矢量高精地图切片的行列号,并从中筛选出包含地理要素位置数据的三维矢量高精地图切片的行列号,作为目标行列号。获取目标行列号对应的三维矢量高精地图切片数据,进行可视化渲染,从而生成三维矢量高精地图。可见,能够实现对三维矢量高精地图的高性能可视化渲染。By applying the electronic device provided by the embodiment of the present invention, the three-dimensional vector high-precision map data can be segmented in advance and the segmented data can be saved according to the row and column numbers. The row and column numbers of the loaded 3D vector HD map slices, and the row and column numbers of the 3D vector HD map slices containing the location data of geographic elements are filtered out as the target row and column numbers. Obtain the 3D vector high-precision map slice data corresponding to the target row and column numbers, and perform visual rendering to generate a 3D vector high-precision map. It can be seen that high-performance visual rendering of 3D vector high-precision maps can be achieved.
在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现上述任一基于三维高精地图切片的地图生成方法的步骤。In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned three-dimensional high-precision maps is realized. Steps of the tiled map generation method.
在本发明提供的又一实施例中,还提供了一种包含指令的计算机程序 产品,当其在计算机上运行时,使得计算机执行上述实施例中任一基于三维高精地图切片的地图生成方法的步骤。In yet another embodiment provided by the present invention, there is also provided a computer program product including instructions, which, when running on a computer, enables the computer to execute any one of the methods for generating a map based on three-dimensional high-precision map slices in the above-mentioned embodiments A step of.
在本发明提供的又一实施例中,还提供一种运行指令的芯片,芯片包括存储器、处理器,存储器中存储代码和数据,存储器与处理器耦合,处理器运行存储器中的代码使得芯片用于执行上述实施例中的执行上述实施例中任一基于三维高精地图切片的地图生成方法的步骤。In another embodiment provided by the present invention, a chip for running instructions is also provided. The chip includes a memory and a processor. Code and data are stored in the memory. The memory is coupled to the processor, and the processor runs the code in the memory so that the chip uses The steps of executing any one of the above-mentioned methods for generating a map based on a 3D high-precision map slice in the above-mentioned embodiments are performed.
在本发明提供的又一实施例中,还提供一种包含指令的程序产品,程序产品包括计算机程序,计算机程序存储在计算机可读存储介质中,至少一个处理器可以从计算机可读存储介质读取计算机程序,至少一个处理器执行计算机程序时可执行上述实施例中任一基于三维高精地图切片的地图生成方法的步骤。In yet another embodiment provided by the present invention, there is also provided a program product containing instructions, the program product includes a computer program, the computer program is stored in a computer-readable storage medium, and at least one processor can read from the computer-readable storage medium Taking a computer program, at least one processor executes the steps of any one of the map generation methods based on 3D high-precision map slices in the foregoing embodiments when the computer program is executed.
在本发明提供的又一实施例中,还提供一种计算机程序,当计算机程序被处理器执行时,用于执行上述实施例中任一基于三维高精地图切片的地图生成方法的步骤。In yet another embodiment provided by the present invention, there is also provided a computer program, when the computer program is executed by a processor, for executing the steps of any one of the above-mentioned embodiments of the map generation method based on a three-dimensional high-precision map slice.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本发明实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present invention result in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语 “包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于基于三维高精地图切片的地图生成装置、电子设备、计算机可读存储介质及计算机程序产品实施例而言,由于其基本相似于基于三维高精地图切片的地图生成方法实施例,所以描述的比较简单,相关之处参见基于三维高精地图切片的地图生成方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the map generation apparatus, electronic device, computer-readable storage medium and computer program product based on 3D high-precision map slices, since they are basically similar to the embodiments of the map generation method based on 3D high-precision map slices, The description is relatively simple, and for relevant details, please refer to the partial description of the embodiment of the map generation method based on the three-dimensional high-precision map slice.
以上所述仅为本发明的较佳实施例,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (14)

  1. 一种基于三维高精地图切片的地图生成方法,其特征在于,所述方法包括:A map generation method based on three-dimensional high-precision map slices, characterized in that the method comprises:
    确定目标地理位置的坐标,并确定待生成的三维矢量高精地图的目标比例尺级别;Determine the coordinates of the target geographic location, and determine the target scale level of the three-dimensional vector high-precision map to be generated;
    基于所述目标地理位置的坐标,确定在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行列号;Based on the coordinates of the target geographic location, determine the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs at the target scale level;
    基于所述目标地理位置所属三维矢量高精地图切片的行列号,确定以所述目标地理位置所属三维矢量高精地图切片为中心的预设范围内的各邻近三维矢量高精地图切片的行列号,并将所述目标地理位置所属三维矢量高精地图切片的行列号和所述各邻近三维矢量高精地图切片的行列号标记为待加载行列号;Based on the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs, determine the row and column numbers of each adjacent 3D vector HD map slice within a preset range centered on the 3D vector HD map slice to which the target geographic location belongs , and mark the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs and the row and column numbers of the adjacent three-dimensional vector high-precision map slices as the row and column numbers to be loaded;
    将所述待加载行列号与预先存储的所述目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,所述初始化行列号包括各比例尺级别下的包含地理要素位置数据的三维矢量高精地图切片的行列号;所述目标行列号为所述待加载行列号和所述目标比例尺级别下的初始化行列号的交集;Compare the row and column numbers to be loaded with the pre-stored initialization row and column numbers under the target scale level, and filter out the target row and column numbers, where the initialization row and column numbers include three-dimensional vectors containing geographic element location data under each scale level The row and column number of the HD map slice; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number at the target scale level;
    获取各所述目标行列号对应的三维矢量高精地图切片数据,并进行三维数据可视化渲染,生成三维矢量高精地图。Acquire the slice data of the three-dimensional vector high-precision map corresponding to each of the target row and column numbers, and perform visual rendering of the three-dimensional data to generate a three-dimensional vector high-precision map.
  2. 根据权利要求1所述的方法,其特征在于,所述确定待生成的三维矢量高精地图的目标比例尺级别,包括:The method according to claim 1, wherein the determining the target scale level of the three-dimensional vector high-precision map to be generated comprises:
    获取所述待生成的三维矢量高精地图的相机高度;Obtain the camera height of the three-dimensional vector high-precision map to be generated;
    基于预先设定的相机高度范围与比例尺级别的对应关系,确定所述相机高度对应的比例尺级别,作为目标比例尺级别。Based on the preset correspondence between the camera height range and the scale level, the scale level corresponding to the camera height is determined as the target scale level.
  3. 根据权利要求1所述的方法,其特征在于,所述基于所述目标地理位置的坐标,确定在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行列号,包括:The method according to claim 1, wherein the determining, based on the coordinates of the target geographic location, the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs at the target scale level, comprising:
    根据预先建立的不同比例尺级别下三维矢量高精地图切片覆盖的二维地理坐标范围与三维矢量高精地图切片的行列号的对应关系,确定所述目标地理位置所属的二维地理坐标范围对应的所述目标比例尺级别下的行列号。According to the pre-established correspondence between the two-dimensional geographic coordinate range covered by the three-dimensional vector high-precision map slice at different scale levels and the row and column numbers of the three-dimensional vector high-precision map slice, determine the corresponding two-dimensional geographic coordinate range to which the target geographic location belongs. The row and column numbers at the target scale level.
  4. 根据权利要求1所述的方法,其特征在于,所述基于所述目标地理位 置的坐标,确定在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行列号,包括:The method according to claim 1, characterized in that, determining the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs under the target scale level based on the coordinates of the target geographic location, comprising:
    根据目标地理位置的坐标包含的经度以及目标比例尺级别,按照如下公式计算目标地理位置所属三维矢量高精地图切片的列号:According to the longitude contained in the coordinates of the target geographic location and the target scale level, the column number of the 3D vector HD map slice to which the target geographic location belongs is calculated according to the following formula:
    X=[(lng+180)/360*2^level]X=[(lng+180)/360*2^level]
    其中,X表示在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的列号,lng表示所述目标地理位置的坐标包含的经度,level表示所述目标比例尺级别;Wherein, X represents the column number of the 3D vector HD map slice to which the target geographic location belongs under the target scale level, lng represents the longitude included in the coordinates of the target geographic location, and level represents the target scale level;
    根据目标地理位置的坐标包含的纬度以及目标比例尺级别,按照如下公式计算目标地理位置所属三维矢量高精地图切片的行号:According to the latitude contained in the coordinates of the target geographic location and the target scale level, the row number of the 3D vector HD map slice to which the target geographic location belongs is calculated according to the following formula:
    Y=[(1-ln(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2^level]Y=[(1-ln(tan(lat*π/180)+1/cos(lat*π/180))/π)/2*2^level]
    其中,Y表示在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行号,lat表示所述目标地理位置坐标包含的纬度,level表示所述目标比例尺级别。Wherein, Y represents the row number of the 3D vector high-precision map slice to which the target geographic location belongs at the target scale level, lat represents the latitude contained in the target geographic location coordinates, and level represents the target scale level.
  5. 根据权利要求1所述的方法,其特征在于,所述将所述待加载行列号与预先存储的所述目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,包括:The method according to claim 1, wherein the comparing the row and column numbers to be loaded with the pre-stored initialization row and column numbers at the target scale level, and filtering out the target row and column numbers, comprising:
    遍历所述待加载行列号,判断每一待加载行列号是否属于所述初始化行列号;Traverse the row and column numbers to be loaded, and determine whether each row and column number to be loaded belongs to the initialization row and column number;
    若属于,则将所述待加载行列号确定为目标行列号。If yes, determine the row and column number to be loaded as the target row and column number.
  6. 根据权利要求1所述的方法,其特征在于,所述获取各所述目标行列号对应的三维矢量高精地图切片数据,包括:The method according to claim 1, wherein the acquiring the three-dimensional vector high-precision map slice data corresponding to each of the target row and column numbers comprises:
    基于所述目标行列号,从预先缓存的索引文件中查找与所述目标行列号对应的三维矢量高精地图切片数据;所述索引文件中包含各比例尺级别下不同行列号的三维矢量高精地图切片的三维矢量高精地图切片数据。Based on the target row and column numbers, the 3D vector high-precision map tile data corresponding to the target row and column numbers is searched from the pre-cached index file; the index file contains 3D vector high-precision maps with different row and column numbers at each scale level Slice the 3D vector HD map tile data.
  7. 根据权利要求6所述的方法,其特征在于,所述索引文件是通过如下方式构建的:The method according to claim 6, wherein the index file is constructed in the following manner:
    将三维矢量高精地图数据进行切分,得到不同比例尺级别下与不同行列号的三维矢量高精地图切片一一对应的三维矢量高精地图切片数据;Divide the 3D vector HD map data to obtain 3D vector HD map slice data corresponding to 3D vector HD map slices with different row and column numbers at different scale levels;
    建立不同比例尺级别下,各行列号与三维矢量高精地图切片数据的索引关系;Establish the index relationship between each row and column number and the 3D vector HD map slice data at different scale levels;
    将所述三维矢量高精地图切片数据和所述索引关系保存至所述索引文件中。The three-dimensional vector high-precision map tile data and the index relationship are saved in the index file.
  8. 根据权利要求6所述的方法,其特征在于,所述三维矢量高精地图切片数据为geojson格式数据。The method according to claim 6, wherein the three-dimensional vector high-precision map slice data is data in geojson format.
  9. 一种基于三维高精地图切片的地图生成装置,其特征在于,所述装置包括:A map generation device based on three-dimensional high-precision map slices, characterized in that the device comprises:
    第一确定模块,用于确定目标地理位置的坐标,并确定待生成的三维矢量高精地图的目标比例尺级别;The first determination module is used to determine the coordinates of the target geographic location, and to determine the target scale level of the three-dimensional vector high-precision map to be generated;
    第二确定模块,用于基于所述目标地理位置的坐标,确定在所述目标比例尺级别下所述目标地理位置所属三维矢量高精地图切片的行列号;A second determining module, configured to determine, based on the coordinates of the target geographic location, the row and column numbers of the 3D vector high-precision map slices to which the target geographic location belongs under the target scale level;
    第二确定模块,用于基于所述目标地理位置所属三维矢量高精地图切片的行列号,确定以所述目标地理位置所属三维矢量高精地图切片为中心的预设范围内的各邻近三维矢量高精地图切片的行列号,并将所述目标地理位置所属三维矢量高精地图切片的行列号和所述各邻近三维矢量高精地图切片的行列号标记为待加载行列号;The second determination module is configured to determine, based on the row and column numbers of the 3D vector HD map slice to which the target geographic location belongs, each adjacent 3D vector within a preset range centered on the 3D vector HD map slice to which the target geographic location belongs The row and column numbers of the high-precision map slices, and the row and column numbers of the three-dimensional vector high-precision map slices to which the target geographic location belongs and the row and column numbers of the adjacent three-dimensional vector high-precision map slices are marked as the row and column numbers to be loaded;
    比对模块,用于将所述待加载行列号与预先存储的所述目标比例尺级别下的初始化行列号进行比对,筛选出目标行列号,所述初始化行列号包括各比例尺级别下的包含地理要素位置数据的三维矢量高精地图切片的行列号;所述目标行列号为所述待加载行列号和所述目标比例尺级别下的初始化行列号的交集;The comparison module is used to compare the row and column numbers to be loaded with the pre-stored initialization row and column numbers under the target scale level, and filter out the target row and column numbers, and the initialization row and column numbers include the geographic inclusions under each scale level. The row and column number of the three-dimensional vector high-precision map slice of the element location data; the target row and column number is the intersection of the row and column number to be loaded and the initialization row and column number at the target scale level;
    生成模块,用于获取各所述目标行列号对应的三维矢量高精地图切片数据,并进行三维数据可视化渲染,生成三维矢量高精地图。The generating module is used to obtain the slice data of the three-dimensional vector high-precision map corresponding to each of the target row and column numbers, and perform visual rendering of the three-dimensional data to generate the three-dimensional vector high-precision map.
  10. 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An electronic device, characterized in that it includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
    存储器,用于存放计算机程序;memory for storing computer programs;
    处理器,用于执行存储器上所存放的程序时,实现权利要求1-8任一所述的方法步骤。The processor is configured to implement the method steps described in any one of claims 1-8 when executing the program stored in the memory.
  11. 一种存储介质,其特征在于,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时实现权利要求1-8任一所述的方法步骤。A storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is configured to implement the method steps of any one of claims 1-8 when running.
  12. 一种运行指令的芯片,其特征在于,所述芯片包括存储器、处理器,所述存储器中存储代码和数据,所述存储器与所述处理器耦合,所述处理器 运行所述存储器中的代码使得所述芯片用于实现权利要求1-8任一所述的方法步骤。A chip for running instructions, characterized in that the chip includes a memory and a processor, the memory stores code and data, the memory is coupled to the processor, and the processor runs the code in the memory The chip is used to implement the method steps of any one of claims 1-8.
  13. 一种包含指令的程序产品,其特征在于,当所述程序产品在计算机上运行时,使得所述计算机实现权利要求1-8任一所述的方法步骤。A program product containing instructions, characterized in that, when the program product is run on a computer, the computer is made to implement the method steps of any one of claims 1-8.
  14. 一种计算机程序,其特征在于,当所述计算机程序被处理器执行时,用于实现权利要求1-8任一所述的方法步骤。A computer program, characterized in that, when the computer program is executed by a processor, it is used to implement the method steps of any one of claims 1-8.
PCT/CN2021/115466 2020-11-11 2021-08-30 Three-dimensional highly precise map tile-based generation method, apparatus, and electronic device WO2022100212A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011252217.3A CN112069285B (en) 2020-11-11 2020-11-11 Map generation method and device based on three-dimensional high-precision map slice and electronic equipment
CN202011252217.3 2020-11-11

Publications (1)

Publication Number Publication Date
WO2022100212A1 true WO2022100212A1 (en) 2022-05-19

Family

ID=73655223

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/115466 WO2022100212A1 (en) 2020-11-11 2021-08-30 Three-dimensional highly precise map tile-based generation method, apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN112069285B (en)
WO (1) WO2022100212A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115952244A (en) * 2022-08-08 2023-04-11 中国城市规划设计研究院 Online loading method, device and medium for vector slicing service in drawing software
CN116756139A (en) * 2023-05-12 2023-09-15 中国自然资源航空物探遥感中心 Data indexing method, system, storage medium and electronic equipment
CN116755619A (en) * 2023-06-06 2023-09-15 中国自然资源航空物探遥感中心 Method, device, equipment and medium for slicing measurement data of aviation magnetic-release comprehensive station

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069285B (en) * 2020-11-11 2021-01-22 湖北亿咖通科技有限公司 Map generation method and device based on three-dimensional high-precision map slice and electronic equipment
CN112669426B (en) * 2020-12-25 2024-01-02 武汉青图科技工程有限公司 Three-dimensional geographic information model rendering method and system based on generation countermeasure network
CN114185613A (en) * 2021-11-30 2022-03-15 广州景骐科技有限公司 Semantic map partitioning method and device, vehicle and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872492A (en) * 2010-06-09 2010-10-27 中国科学院深圳先进技术研究院 Multi-angle map implementation method of three-dimensional simulation city
CN103942338A (en) * 2014-05-08 2014-07-23 百度在线网络技术(北京)有限公司 Mapping method, server and terminal
US20140340421A1 (en) * 2013-05-15 2014-11-20 Google Inc. Efficient composition and rendering of graphical elements
CN104867174A (en) * 2015-05-08 2015-08-26 腾讯科技(深圳)有限公司 Three-dimensional map rendering and display method and system
CN105447064A (en) * 2014-09-30 2016-03-30 高德软件有限公司 Electronic map data making method and using method and apparatus therefor
CN107423445A (en) * 2017-08-10 2017-12-01 腾讯科技(深圳)有限公司 A kind of map data processing method, device and storage medium
CN110990510A (en) * 2019-11-28 2020-04-10 北京世纪高通科技有限公司 Three-dimensional map generation method, terminal and server
CN112069285A (en) * 2020-11-11 2020-12-11 湖北亿咖通科技有限公司 Map generation method and device based on three-dimensional high-precision map slice and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7015068B2 (en) * 2002-06-03 2006-03-21 Texas Instruments Incorporated Partial wafer processing for random size wafers
CN101319910B (en) * 2008-07-23 2011-12-14 深圳市凯立德科技股份有限公司 Authenticity verification method and system of navigation electronic map
CN101777189B (en) * 2009-12-30 2012-07-04 武汉大学 Method for measuring image and inspecting quantity under light detection and ranging (LiDAR) three-dimensional environment
CN103606188B (en) * 2013-11-15 2016-05-04 南京师范大学 Geography information based on imaging point cloud acquisition method as required
CN104182453A (en) * 2014-06-20 2014-12-03 银江股份有限公司 Distributed map matching method for massive historical floating car data
CN108132056B (en) * 2017-11-15 2021-04-30 北京通途永久科技有限公司 Method for deducing bus route through GPS
CN107705272A (en) * 2017-11-21 2018-02-16 桂林航天工业学院 A kind of high-precision geometric correction method of aerial image
US10665228B2 (en) * 2018-05-23 2020-05-26 Bank of America Corporaiton Quantum technology for use with extracting intents from linguistics
CN111914046B (en) * 2020-07-14 2023-02-03 北京世纪国源科技股份有限公司 Generation method and device of target seating chart and computer equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872492A (en) * 2010-06-09 2010-10-27 中国科学院深圳先进技术研究院 Multi-angle map implementation method of three-dimensional simulation city
US20140340421A1 (en) * 2013-05-15 2014-11-20 Google Inc. Efficient composition and rendering of graphical elements
CN103942338A (en) * 2014-05-08 2014-07-23 百度在线网络技术(北京)有限公司 Mapping method, server and terminal
CN105447064A (en) * 2014-09-30 2016-03-30 高德软件有限公司 Electronic map data making method and using method and apparatus therefor
CN104867174A (en) * 2015-05-08 2015-08-26 腾讯科技(深圳)有限公司 Three-dimensional map rendering and display method and system
CN107423445A (en) * 2017-08-10 2017-12-01 腾讯科技(深圳)有限公司 A kind of map data processing method, device and storage medium
CN110990510A (en) * 2019-11-28 2020-04-10 北京世纪高通科技有限公司 Three-dimensional map generation method, terminal and server
CN112069285A (en) * 2020-11-11 2020-12-11 湖北亿咖通科技有限公司 Map generation method and device based on three-dimensional high-precision map slice and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115952244A (en) * 2022-08-08 2023-04-11 中国城市规划设计研究院 Online loading method, device and medium for vector slicing service in drawing software
CN115952244B (en) * 2022-08-08 2023-12-01 中国城市规划设计研究院 On-line loading method, device and medium for vector slicing service in drawing software
CN116756139A (en) * 2023-05-12 2023-09-15 中国自然资源航空物探遥感中心 Data indexing method, system, storage medium and electronic equipment
CN116756139B (en) * 2023-05-12 2024-04-23 中国自然资源航空物探遥感中心 Data indexing method, system, storage medium and electronic equipment
CN116755619A (en) * 2023-06-06 2023-09-15 中国自然资源航空物探遥感中心 Method, device, equipment and medium for slicing measurement data of aviation magnetic-release comprehensive station
CN116755619B (en) * 2023-06-06 2024-01-05 中国自然资源航空物探遥感中心 Method, device, equipment and medium for slicing measurement data of aviation magnetic-release comprehensive station

Also Published As

Publication number Publication date
CN112069285A (en) 2020-12-11
CN112069285B (en) 2021-01-22

Similar Documents

Publication Publication Date Title
WO2022100212A1 (en) Three-dimensional highly precise map tile-based generation method, apparatus, and electronic device
US10083533B2 (en) Geo-tagging digital images
US11990108B2 (en) Method and apparatus for rendering items in a user interface
CN109977192B (en) Unmanned aerial vehicle tile map rapid loading method, system, equipment and storage medium
US9514717B2 (en) Method and apparatus for rendering items in a user interface
US11204896B2 (en) Scalable space-time density data fusion
US9129428B2 (en) Map tile selection in 3D
CN110069579B (en) Electronic fence partitioning method and device
US9804748B2 (en) Scale sensitive treatment of features in a geographic information system
US10147162B2 (en) Method and system for recognizing POI outside map screen
CN110941686A (en) Positioning map processing method and device
CN108009205B (en) Search result caching method based on position, search method, client and system
TW201931172A (en) Poi retrieving method and device based on geographic locations
US10965864B2 (en) Panoramic photograph with dynamic variable zoom
CN112287010B (en) Map service providing method, device, terminal and storage medium based on android system
WO2015006442A2 (en) Caching geographic data according to a server-specified policy
CN110750602A (en) Method and device for determining site to which order address belongs
CN110378904B (en) Method and device for segmenting point cloud data
US9245360B2 (en) Computing devices and methods for deterministically placing geometric shapes within geographic maps
US9519667B2 (en) Method of spatial storage of an object by means of a flexible hierarchical structure, and a non-transient storage medium
US10460420B2 (en) Converting spatial features to map projection
US10460427B2 (en) Converting imagery and charts to polar projection
CN110619028A (en) Map display method, device, terminal equipment and medium for house source detail page
CN110634159A (en) Target detection method and device
KR20180090970A (en) Method for displaying of image according to location, apparatus and system for the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21890741

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21890741

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21890741

Country of ref document: EP

Kind code of ref document: A1