WO2022089018A1 - Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device - Google Patents

Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device Download PDF

Info

Publication number
WO2022089018A1
WO2022089018A1 PCT/CN2021/117100 CN2021117100W WO2022089018A1 WO 2022089018 A1 WO2022089018 A1 WO 2022089018A1 CN 2021117100 W CN2021117100 W CN 2021117100W WO 2022089018 A1 WO2022089018 A1 WO 2022089018A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
geographic
map
dimensional
dimensional vector
Prior art date
Application number
PCT/CN2021/117100
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 WO2022089018A1 publication Critical patent/WO2022089018A1/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

Definitions

  • the invention relates to the technical field of electronic maps, in particular to a three-dimensional vector data slicing method, device and electronic equipment for three-dimensional vector maps.
  • a vector map is a map obtained by representing geographic roads, rivers, or buildings through geometric elements such as points, lines, and polygons.
  • the slicing technology of vector map has been widely used. Specifically, the vector data of the vector map is sliced and saved, and in the process of drawing the vector map at the front end, the required part of the sliced vector data can be directly called for drawing.
  • the purpose of the embodiments of the present invention is to provide a method, device and electronic device for slicing 3D vector data of a 3D vector map, so as to realize slicing processing of the 3D vector data of the 3D vector map.
  • the specific technical solutions are as follows:
  • an embodiment of the present invention provides a three-dimensional vector data slicing method for a three-dimensional vector map, the method comprising:
  • the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map;
  • each scale level based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile;
  • each scale level the three-dimensional vector data is segmented based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, and the three-dimensional vector data corresponding to the map tiles of the scale level are obtained one-to-one.
  • a data block wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the map tile The two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points;
  • the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point
  • the map The elevation data of the boundary geographic element points of the tile is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point, the first geographic element point and the second geographic element point
  • the element points are geographic element points that are respectively located on both sides of the boundary geographic element point and belong to the same geographic element as the boundary geographic element point.
  • segmenting the three-dimensional vector data based on the two-dimensional geographic coordinate range covered by each map tile at the scale level includes:
  • For each geographic element point in the three-dimensional vector data determine each geographic element point according to the two-dimensional geographic coordinate data of the geographic element point and the two-dimensional geographic coordinate range covered by each map tile The map tile at the scale level to which it belongs;
  • the two-dimensional geographic coordinate data and elevation data of each of the geographic element points are stored in a three-dimensional vector sub-data block corresponding to the map tile at the scale level to which the geographic element point belongs.
  • the method further includes:
  • thinning processing is performed on the three-dimensional vector sub-data blocks of each map tile to obtain simplified three-dimensional vector sub-data blocks.
  • the step of thinning the three-dimensional vector sub-data blocks of each map tile based on the resolution of the map tile at the scale level includes:
  • the redundant geographic element points in each map tile are identified according to a preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile and will not be changed. Geographic feature points describing the shape of geographic features in the map tile;
  • the two-dimensional geographic coordinate data and elevation data of the redundant geographic element points are deleted.
  • the method further includes:
  • the target geographic element includes The number of geographic element points is less than a preset threshold, and the target geographic element is a regular geographic element;
  • the step of thinning the three-dimensional vector sub-data blocks of each map tile based on the resolution of the map tile at the scale level includes:
  • thinning processing is performed on geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
  • the three-dimensional vector data further includes geographic attribute identifiers of the geographic element points.
  • an embodiment of the present invention also provides a three-dimensional vector data slicing device for a three-dimensional vector map, and the device includes:
  • an acquisition module configured to acquire three-dimensional vector data of a three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map;
  • a first determination module configured to determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided under each scale level
  • the second determining module is configured to, for each scale level, determine the two-dimensional geographic coordinate range covered by each map tile based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level ;
  • the segmentation module is used for, for each scale level, to segment the three-dimensional vector data based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, to obtain the same scale as the map tile of the scale level.
  • a corresponding three-dimensional vector sub-data block wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block , and the two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points of the map tile;
  • the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point
  • the map The elevation data of the boundary geographic element points of the tile is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point, the first geographic element point and the second geographic element point
  • the element points are geographic element points that are respectively located on both sides of the boundary geographic element point and belong to the same geographic element as the boundary geographic element point.
  • the segmentation module is specifically used for:
  • For each geographic element point in the three-dimensional vector data determine each geographic element point according to the two-dimensional geographic coordinate data of the geographic element point and the two-dimensional geographic coordinate range covered by each map tile The map tile at the scale level to which it belongs;
  • the two-dimensional geographic coordinate data and elevation data of each of the geographic element points are stored in a three-dimensional vector sub-data block corresponding to the map tile at the scale level to which the geographic element point belongs.
  • the device further includes: a thinning module,
  • the thinning module is used for:
  • thinning processing is performed on the three-dimensional vector sub-data blocks of each map tile to obtain simplified three-dimensional vector sub-data blocks.
  • the thinning module is specifically used for:
  • the redundant geographic element points in each map tile are identified according to a preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile and will not be changed. Geographic feature points describing the shape of geographic features in the map tile;
  • the two-dimensional geographic coordinate data and elevation data of the redundant geographic element points are deleted.
  • the device further includes: an identification module,
  • the identification module is used to identify the preset target on the three-dimensional vector sub-data block of the map tile, obtain one or more target geographic elements, and determine a plurality of target geographic element points that constitute the target geographic element ;
  • the number of geographic element points contained in the target geographic element is less than a preset threshold, and the target geographic element is a regular geographic element;
  • the thinning module is specifically used for:
  • thinning processing is performed on geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
  • the three-dimensional vector data further includes geographic attribute identifiers of the geographic element points.
  • 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 method and device for slicing 3D vector data of a 3D vector map provided by the embodiments of the present invention are used to obtain 3D vector data of the 3D vector map to be sliced; the multiple scale levels of the preset 3D vector map and the cut-down of each scale level are determined.
  • the 3D vector data is segmented based on the 2D geographic coordinate range covered by each map tile of the scale level, and the 3D vector sub-data blocks corresponding to the map tiles of the scale level are obtained.
  • each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the boundary of the map tile Two-dimensional geographic coordinate data and elevation data of geographic feature points.
  • FIG. 1 is a schematic flowchart of a method for slicing three-dimensional vector data of a three-dimensional vector map according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a two-dimensional geographic coordinate range covered by a map tile according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of thinning processing of three-dimensional vector sub-data blocks of map tiles according to an embodiment of the present invention
  • FIG. 4 is another schematic flowchart of thinning processing of three-dimensional vector sub-data blocks of map tiles according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a device for slicing three-dimensional vector data of a three-dimensional vector map according to an embodiment of the present invention
  • FIG. 6 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 3D vector data slicing method and device for a 3D vector map, see FIG. 1, the method The following steps can be included:
  • S101 Acquire three-dimensional vector data of a three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map.
  • the three-dimensional vector data slicing method of the three-dimensional vector map provided by the embodiment of the present invention can be applied to an electronic terminal device or a server.
  • the server adopts the three-dimensional vector data slicing method of the three-dimensional vector map provided by the embodiment of the present invention, and can slice and save the three-dimensional vector data of the three-dimensional vector map.
  • the required slice data can be called from the server during correlation operations.
  • the server may acquire the three-dimensional vector data of the three-dimensional vector map through an external device, for example, download the three-dimensional vector data of the three-dimensional vector map from the Internet.
  • the embodiment of the present invention does not limit the range of the area covered by the three-dimensional vector map, for example, it may be a three-dimensional vector map for the whole world, or a three-dimensional vector map for a certain city.
  • a vector map is a map obtained by representing geographic roads, rivers, buildings, etc. through geometric elements such as points, lines, and surfaces.
  • Geographical roads, rivers, or buildings can be collectively referred to as geographic features.
  • These geographic features can be represented by geographic feature points in a three-dimensional vector map. For example, a series of consecutive geographic feature points can form a line that represents a road.
  • the three-dimensional vector data of the three-dimensional vector map includes the two-dimensional geographic coordinate data of the geographic element points, and the two-dimensional geographic coordinate data includes the abscissa and the ordinate of the geographic element points.
  • the three-dimensional vector data also includes the elevation data of each geographic feature point. That is, a three-dimensional vector map can not only represent the location of roads, rivers or buildings, but also the height of these geographic features.
  • S102 Determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided at each scale level.
  • slice processing may be performed on the three-dimensional vector data.
  • the scale level of the three-dimensional vector map can be determined according to actual requirements, and the number of map tiles divided under each scale can be determined.
  • a map tile represents a part of a three-dimensional vector map, and usually the geographic range covered by each map tile is a regular rectangle.
  • the scale bar represents the ratio of the length of a line segment on the map to the actual length of the corresponding line segment on the ground, such as 1/500, 1/1000, 1/2000, 1/5000, etc., that is, the smaller the scale bar, the more The actual length of the corresponding line segment on the ground corresponding to the line segment is larger.
  • the relationship between the scale level and the scale size may be: the smaller the scale, the higher the scale level.
  • the number of map tiles to be divided at different scale levels may be set according to actual needs. Specifically, the higher the scale level of the 3D vector map, the fewer map tiles can be set, and the geographic range covered by each map tile is also larger; the lower the scale level of the 3D vector map, the more maps can be set tiles, and thus each map tile covers a smaller geographic area.
  • each map tile at the scale level can be calculated in combination with the two-dimensional geographic coordinate range covered by the three-dimensional vector map Covered 2D geographic coordinate range.
  • the two-dimensional geographic coordinate range covered by the three-dimensional vector map may be understood as the two-dimensional geographic coordinate range of the geographic area covered by the three-dimensional vector map.
  • the maximum abscissa of the geographic area covered by the three-dimensional vector map is Xmax
  • the maximum vertical coordinate is Ymax
  • the two-dimensional geographic coordinate range of the geographic area covered by the three-dimensional vector map can be expressed as: abscissa The range is (0, Xmax), and the ordinate range is (0, Ymax).
  • the geographic area covered by map tiles is usually rectangular, and usually the size of the geographic area covered by each map tile is the same, then the above example is continued. If the number of map tiles divided under a certain scale level is 4, then the geographic area covered by the four map tiles can be squares of the same size, then at this scale level, the two-dimensional geographic coordinate range of the geographic area covered by each map tile can be expressed as:
  • the abscissa range is (0, 1/2Xmax), and the ordinate range is (1/2Ymax, Ymax);
  • the abscissa range is (1/2Xmax, Xmax), and the ordinate range is (1/2Ymax, Ymax);
  • the abscissa range is (0,1/2Xmax), and the ordinate range is (0,1/2Ymax);
  • the abscissa range is (1/2Xmax, Xmax), and the ordinate range is (0, 1/2Ymax).
  • each scale level based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, segment the three-dimensional vector data to obtain the three-dimensional vector elements corresponding to the map tiles of the scale level one-to-one A data block, wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the map tile The two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points.
  • the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point.
  • the elevation data of the geographic element point is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point.
  • the first geographic element point and the second geographic element point are located on both sides of the boundary geographic element point, respectively.
  • the three-dimensional vector data can be segmented to obtain a three-dimensional map corresponding to the map tiles at the scale level one-to-one.
  • Vector sub-blocks
  • each map tile corresponds to a 3D vector sub-data block. That is to say, the three-dimensional vector sub-data block contains two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile.
  • the map tile to which the geographic element point belongs can be determined according to the two-dimensional geographic coordinates of each geographic element point and the two-dimensional geographic coordinate range covered by each map tile under the scale level, and then The two-dimensional geographic coordinate data and elevation data of the geographic feature point are saved into the three-dimensional vector sub-data block corresponding to the map tile to which it belongs.
  • the map tile to which the geographic element point belongs is the first map. tile, the two-dimensional geographic coordinate data of the geographic element point and the elevation data of the geographic element point are saved in the three-dimensional vector sub-data block corresponding to the first map tile.
  • the above is just an example. In practical applications, it is possible to determine the map tile to which each geographic element point belongs at each scale level, and save the two-dimensional geographic coordinate data and elevation data of the geographic element point to the corresponding map tile.
  • the three-dimensional vector data is further divided to obtain a plurality of three-dimensional vector sub-data blocks.
  • each three-dimensional vector sub-data block in addition to saving the two-dimensional geographic coordinate data and elevation data of the geographic element points covered by the map tile corresponding to the three-dimensional vector sub-data block, it may also include The bounding geographic feature points of the map tile.
  • the boundary geographic element points are additional geographic element points that need to be saved due to data segmentation, that is, the boundary geographic element points do not exist before the data segmentation.
  • the data of the boundary geographic element points also includes two-dimensional geographic coordinate data and elevation data, wherein the two-dimensional geographic coordinate data of the boundary geographic element points are based on the two-dimensional geographic coordinates of the first geographic element point and the second geographic coordinate data of the first geographic element point.
  • the elevation data of the boundary geographic element point is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point.
  • a boundary geographic element point of the map tile is generated, and the boundary geographic element point can be stored in the two adjacent maps at the same time.
  • the boundary geographic element point can be stored in the two adjacent maps at the same time.
  • the abscissa of the first geographic element point is 47/100Xmax, the ordinate is 47/100Ymax, the abscissa of the second geographic element point is 53/100Xmax, and the ordinate is 45/100Ymax, before data slicing,
  • the first geographic element point and the second geographic element point belong to the same geographic element and are adjacent geographic element points, then during the data segmentation process, the first geographic element point is segmented into the third map tile, and the first geographic element point is segmented into the third map tile.
  • the abscissa in the coordinates is 1/2Xmax.
  • the ordinate in the two-dimensional geographic coordinates of the boundary geographic element points can be obtained as 46/100Ymax.
  • the elevation data of the boundary geographic element point may be calculated based on the elevation data of the first geographic element point and the elevation data of the second geographic element point according to the spatial geometry operation.
  • the two-dimensional geographic coordinate data and the elevation data of the boundary geographic element points can be stored in the three-dimensional vector sub-data blocks corresponding to the above-mentioned two adjacent map tiles, respectively.
  • the two-dimensional geographic coordinate data and the elevation data of the boundary geographic element points may not be saved, which may be specifically set according to requirements. For example, if there is a high demand for the accuracy of the three-dimensional vector map, the two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points can be additionally saved, otherwise, it is not necessary to save.
  • the three-dimensional vector data slicing method of the three-dimensional vector map provided by the embodiment of the present invention is applied to obtain the three-dimensional vector data of the three-dimensional vector map to be sliced; the multiple scale levels of the preset three-dimensional vector map and the segmented data at each scale level are determined.
  • the three-dimensional vector data can be stored separately to realize the segmentation of the three-dimensional vector data of the three-dimensional vector map.
  • it is only necessary to call the three-dimensional vector sub-data block corresponding to a specific map tile at a specific scale level, which can significantly reduce the amount of data processing.
  • Step S301 Determine the resolution of map tiles at each scale level.
  • the resolutions of map tiles may be different.
  • the scale level is large, the geographic area covered by the three-dimensional vector map displayed on the electronic screen is large. For example, if a world map is displayed on the electronic screen, the lower resolution of the map tiles can meet the display requirements.
  • the scale level is small, the geographic area covered by the three-dimensional vector map displayed on the electronic screen is also small. For example, if a town map is displayed on the electronic screen, the map tiles need a higher resolution to meet the display requirements.
  • the resolution of map tiles at each scale level can be determined.
  • the larger the scale level the smaller the resolution of the map tiles at the scale level; the smaller the scale level, the larger the resolution of the map tiles under the scale level.
  • the resolutions of map tiles at different scale levels can be set according to actual requirements.
  • Step S302 For the map tiles at each scale level, based on the resolution of the map tiles at the scale level, perform thinning processing on the three-dimensional vector sub-data blocks of each map tile to obtain simplified three-dimensional vector sub-data yuan.
  • the step of thinning the three-dimensional vector sub-data blocks of each map tile in step S302 may include the following refinement steps:
  • S401 Determine the data thinning degree at the scale level based on the resolution of the map tiles at the scale level.
  • the data thinning degree at the scale level may be determined based on the resolution of the map tiles at the scale level, wherein the higher the resolution, the lower the data thinning degree.
  • the scale level when the scale level is relatively large, the resolution requirements of the map tiles are relatively low, and a relatively large data thinning degree can be determined, that is, more redundant data is extracted; when the scale level is relatively small, the map tile The resolution of the tile is required to be higher, and a smaller degree of data thinning can be determined, that is, less redundant data is extracted.
  • the resolution requirement of the map tile is the highest, so the thinning processing may not be performed on the three-dimensional vector sub-data block of the map tile at the scale level.
  • S402 Identify redundant geographic element points in each map tile based on the data thinning degree according to a preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile without changing the geographic location in the map tile The geographic feature point of the feature shape.
  • redundant geographic element points are geographic element points that do not change the shape of geographic elements in the map tile after deletion. Or multiple points, you can still connect the starting point, the ending point and the remaining points by means of rendering, and simulate a line to represent the road, and the shape of the simulated road and the shape of the original road can remain basically unchanged.
  • redundant geographic element points may be identified through various methods.
  • redundant geographic feature points are identified by methods such as step size method, line segment filtering method, and Douglas-Pucker algorithm.
  • step size method the target step size of the current map tile can be calculated according to the resolution of the map tile at the current scale level. The lower the resolution, the larger the step size.
  • the step selects one geographic feature point, and the unselected geographic feature points between the start and end points are marked as redundant geographic feature points.
  • S403 Delete the two-dimensional geographic coordinate data and elevation data of redundant geographic element points in the three-dimensional vector sub-data block corresponding to the map tile.
  • the two-dimensional geographic coordinate data and elevation data of the redundant geographic element points can be deleted from the three-dimensional vector sub-data block corresponding to the map tile.
  • the thinned-out three-dimensional vector sub-data block may be recorded as a simplified three-dimensional vector sub-data block.
  • the method may further include the following steps:
  • Identify the preset target on the three-dimensional vector sub-data block of the map tile obtain one or more target geographic elements, and determine multiple target geographic element points that constitute the target geographic element, and the number of geographic element points contained in the target geographic element is less than Preset thresholds, and the target geographic features are regular geographic features.
  • the above-mentioned preset target may be preset, and there is no need for thinning geographic elements.
  • traffic signs, etc. when the traffic signs are thinned, the user's recognition may be affected.
  • It can also be a geographical element with a small size, etc. Since there are fewer geographical element points in the vector map corresponding to the geographical element with a small size, if it is thinned, it may be deformed. For example, for a charging pile, in the vector map Generally, it only contains the points corresponding to the eight corners. If it is thinned, a certain point may be missing, resulting in structural deformation.
  • a pre-trained network model may be used to identify the preset target for the three-dimensional vector sub-data block of the map tile.
  • the above network model may be a Recurrent Neural Network (RNN), or a Convolutional Neural Network (CNN), etc., which can be selected according to requirements.
  • the pre-trained network model may be a network model obtained by training a large number of geographic element point data of preset geographic elements. For example, the network model is trained through the preset geographic element point data that does not need to be thinned to obtain a trained network model, and the three-dimensional vector sub-data blocks of the map tiles are sequentially processed through the trained network model. Recognition of preset targets.
  • the geographic elements that do not need to be thinned in the tile map at each scale level can be determined.
  • the step of thinning the three-dimensional vector sub-data blocks of each map tile may include:
  • thinning processing is performed for the geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
  • one or more target geographic elements are obtained by identifying the preset targets on the tile map of each layer, and then the three-dimensional vector sub-data blocks except the target geographic element points of the target geographic elements are thinned out. Prevents severe deformation of target geographic features.
  • the three-dimensional vector data includes geographic attribute identifiers including geographic element points.
  • Geographic attribute identifiers include rivers, streets, and buildings. Then, when the three-dimensional vector map is generated, the geographic feature points can be rendered according to the geographic attribute identifiers of the geographic feature points.
  • an embodiment of the present invention also provides a three-dimensional vector data slicing device for a three-dimensional vector map.
  • the following modules may be included:
  • an acquisition module 501 configured to acquire three-dimensional vector data of a three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map;
  • a first determining module 502 configured to determine multiple scale levels of a preset three-dimensional vector map and the number of map tiles divided under each scale level;
  • the second determining module 503 is configured to, for each scale level, determine the two-dimensional geographic coordinate range covered by each map tile based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level;
  • the segmentation module 504 is configured to, for each scale level, segment the three-dimensional vector data based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, and obtain the map tiles of the scale level one by one.
  • Corresponding three-dimensional vector sub-data blocks wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points of the map tile;
  • the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point.
  • the elevation data of the geographic element point is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point.
  • the first geographic element point and the second geographic element point are located on both sides of the boundary geographic element point, respectively.
  • the three-dimensional vector data slicing device of the three-dimensional vector map provided by the embodiment of the present invention is used to obtain the three-dimensional vector data of the three-dimensional vector map to be sliced; and the preset three scale levels of the three-dimensional vector map and the sliced scale levels at each scale level are determined.
  • the three-dimensional vector data can be stored separately to realize the segmentation of the three-dimensional vector data of the three-dimensional vector map.
  • it is only necessary to call the three-dimensional vector sub-data block corresponding to a specific map tile at a specific scale level, which can significantly reduce the amount of data processing.
  • the segmentation module 504 may be specifically used for:
  • For each geographic feature point in the three-dimensional vector data determine the map at the scale level to which each geographic feature point belongs according to the two-dimensional geographic coordinate data of the geographic feature point and the two-dimensional geographic coordinate range covered by each map tile tile;
  • the two-dimensional geographic coordinate data and elevation data of each geographic feature point are saved into a three-dimensional vector sub-data block corresponding to the map tile at the scale level to which the geographic feature point belongs.
  • the device further includes: a thinning module,
  • the thinning module can be used for:
  • thinning processing is performed on the 3D vector sub-data blocks of each map tile to obtain simplified 3-D vector sub-data blocks.
  • the thinning module can be specifically used for:
  • the redundant geographic element points in each map tile are identified according to the preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile and do not change the shape of the geographic elements in the map tile.
  • the two-dimensional geographic coordinate data and elevation data of redundant geographic feature points are deleted.
  • the device may further include: an identification module,
  • the identification module is used to identify the preset target of the three-dimensional vector sub-data block of the map tile, obtain one or more target geographic elements, and determine multiple target geographic element points that compose the target geographic element;
  • the target geographic elements include The number of geographic feature points is less than the preset threshold, and the target geographic feature is a regular geographic feature;
  • the thinning module can be used for:
  • thinning processing is performed for the geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
  • the three-dimensional vector data further includes geographic attribute identifiers of geographic element points.
  • An embodiment of the present invention further provides an electronic device, as shown in FIG. 6 , including a processor 601 , a communication interface 602 , a memory 603 and a communication bus 604 , wherein the processor 601 , the communication interface 602 , and the memory 603 pass through the communication bus 604 complete communication with each other,
  • 3D vector data of the 3D vector map Acquiring 3D vector data of the 3D vector map to be sliced, where the 3D vector data includes 2D geographic coordinate data and elevation data of geographic element points in the 3D vector map;
  • each scale level based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile;
  • each scale level the 3D vector data is segmented based on the 2D geographic coordinate range covered by each map tile of the scale level, and the 3D vector sub-data blocks corresponding to the map tiles of the scale level are obtained.
  • each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the boundary of the map tile Two-dimensional geographic coordinate data and elevation data of geographic feature points;
  • the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point.
  • the elevation data of the geographic element point is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point.
  • the first geographic element point and the second geographic element point are located on both sides of the boundary geographic element point, respectively.
  • 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 data can be stored separately to realize the segmentation of the three-dimensional vector data of the three-dimensional vector map.
  • it is only necessary to call the three-dimensional vector sub-data block corresponding to a specific map tile at a specific scale level, which can significantly reduce the amount of data processing.
  • a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium. Steps of the vector data slicing method.
  • a computer program product including instructions, which, when running on a computer, enables the computer to execute any of the three-dimensional vector data slicing methods of the three-dimensional vector map in the above-mentioned embodiments. step.
  • a chip for running instructions 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 to make the chip Steps for executing the three-dimensional vector data slicing method for any three-dimensional vector map in the above embodiments.
  • the 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 above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.

Landscapes

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

Abstract

A method and apparatus for slicing three-dimensional vector data of a three-dimensional vector map. The method comprises: obtaining three-dimensional vector data to be sliced of a three-dimensional vector map; determining a preset plurality of scale levels of the three-dimensional vector map and the number of map tiles sliced under each scale level; determining, for each scale level on the basis of a two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles of the scale level, a two-dimensional geographic coordinate range covered by each map tile; and slicing the three-dimensional vector data for each scale level on the basis of the two-dimensional geographic coordinate range covered by each map tile of the scale level to obtain three-dimensional vector sub-data blocks having one-to-one correspondence to the map tiles of the scale level. The present invention can implement the slicing processing of three-dimensional vector data of a three-dimensional vector map.

Description

三维矢量地图的三维矢量数据切片方法、装置及电子设备Three-dimensional vector data slicing method, device and electronic device for three-dimensional vector map
本申请要求于2020年10月29日提交中国专利局、申请号为202011179019.9、申请名称为“三维矢量地图的三维矢量数据切片方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 29, 2020, with the application number of 202011179019.9 and the application title of "Three-dimensional vector data slicing method, device and electronic equipment for three-dimensional vector map", the entire content of which is Incorporated herein by reference.
技术领域technical field
本发明涉及电子地图技术领域,特别是涉及一种三维矢量地图的三维矢量数据切片方法、装置及电子设备。The invention relates to the technical field of electronic maps, in particular to a three-dimensional vector data slicing method, device and electronic equipment for three-dimensional vector maps.
背景技术Background technique
矢量地图是通过点、线、多边形等几何要素,对地理上的道路、河流或建筑物等进行表示所得到的地图。A vector map is a map obtained by representing geographic roads, rivers, or buildings through geometric elements such as points, lines, and polygons.
目前矢量地图的切片技术已经有着广泛的应用。具体的,对矢量地图的矢量数据进行切片并保存,在前端绘制矢量地图的过程中,可以直接调用所需要的部分切片的矢量数据进行绘制即可。At present, the slicing technology of vector map has been widely used. Specifically, the vector data of the vector map is sliced and saved, and in the process of drawing the vector map at the front end, the required part of the sliced vector data can be directly called for drawing.
然而,现有的矢量地图切片技术均是针对二维矢量地图的,无法适用于三维矢量地图。However, the existing vector map slicing technologies are all aimed at two-dimensional vector maps and cannot be applied to three-dimensional vector maps.
可见,亟需一种能够对三维矢量地图的三维矢量数据进行切片的方法。It can be seen that there is an urgent need for a method capable of slicing three-dimensional vector data of a three-dimensional vector map.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种三维矢量地图的三维矢量数据切片方法、装置及电子设备,以实现对三维矢量地图的三维矢量数据进行切片处理。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a method, device and electronic device for slicing 3D vector data of a 3D vector map, so as to realize slicing processing of the 3D vector data of the 3D vector map. The specific technical solutions are as follows:
为实现上述目的,本发明实施例提供了一种三维矢量地图的三维矢量数据切片方法,所述方法包括:To achieve the above purpose, an embodiment of the present invention provides a three-dimensional vector data slicing method for a three-dimensional vector map, the method comprising:
获取待切片的三维矢量地图的三维矢量数据,所述三维矢量数据包括所述三维矢量地图中地理要素点的二维地理坐标数据和高程数据;obtaining three-dimensional vector data of the three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map;
确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;Determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided under each scale level;
针对每一比例尺级别,基于所述三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;For each scale level, based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile;
针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对所述三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据;For each scale level, the three-dimensional vector data is segmented based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, and the three-dimensional vector data corresponding to the map tiles of the scale level are obtained one-to-one. A data block, wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the map tile The two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points;
其中,所述地图瓦片的边界地理要素点的二维地理坐标数据是根据第一地理要素点的二维地理坐标数据和第二地理要素点的二维地理坐标数据计算得到的,所述地图瓦片的边界地理要素点的高程数据是根据所述第一地理要素点的高程数据和所述第二地理要素点的高程数据计算得到的,所述第一地理要素点和所述第二地理要素点是分别位于所述边界地理要素点两侧、且与所述边界地理要素点同属于同一地理要素的地理要素点。Wherein, the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point, and the map The elevation data of the boundary geographic element points of the tile is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point, the first geographic element point and the second geographic element point The element points are geographic element points that are respectively located on both sides of the boundary geographic element point and belong to the same geographic element as the boundary geographic element point.
可选的,所述基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对所述三维矢量数据进行切分,包括:Optionally, segmenting the three-dimensional vector data based on the two-dimensional geographic coordinate range covered by each map tile at the scale level includes:
针对所述三维矢量数据中的每个地理要素点,根据所述地理要素点的二维地理坐标数据以及所述每个地图瓦片覆盖的二维地理坐标范围,确定每个所述地理要素点所属的该比例尺级别下的地图瓦片;For each geographic element point in the three-dimensional vector data, determine each geographic element point according to the two-dimensional geographic coordinate data of the geographic element point and the two-dimensional geographic coordinate range covered by each map tile The map tile at the scale level to which it belongs;
将每个所述地理要素点的二维地理坐标数据和高程数据保存至与该地理要素点所属的该比例尺级别下的地图瓦片对应的三维矢量子数据块中。The two-dimensional geographic coordinate data and elevation data of each of the geographic element points are stored in a three-dimensional vector sub-data block corresponding to the map tile at the scale level to which the geographic element point belongs.
可选的,所述方法还包括:Optionally, the method further includes:
确定每一比例尺级别下地图瓦片的分辨率;Determine the resolution of map tiles at each scale level;
针对每一比例尺级别下的地图瓦片,基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理,得到简化三维矢量子数据块。For map tiles at each scale level, based on the resolution of the map tiles at the scale level, thinning processing is performed on the three-dimensional vector sub-data blocks of each map tile to obtain simplified three-dimensional vector sub-data blocks.
可选的,所述基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理的步骤,包括:Optionally, the step of thinning the three-dimensional vector sub-data blocks of each map tile based on the resolution of the map tile at the scale level includes:
基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;Determine the degree of data thinning at the scale level based on the resolution of the map tiles at the scale level;
基于所述数据抽稀程度,按照预设抽稀算法识别每个地图瓦片中冗余的地理要素点,其中,所述冗余的地理要素点为所述地图瓦片中删除后不改变所述地图瓦片中地理要素形状的地理要素点;Based on the data thinning degree, the redundant geographic element points in each map tile are identified according to a preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile and will not be changed. Geographic feature points describing the shape of geographic features in the map tile;
在所述地图瓦片对应的三维矢量子数据块中,将所述冗余的地理要素点的二维地理坐标数据和高程数据删除。In the three-dimensional vector sub-data block corresponding to the map tile, the two-dimensional geographic coordinate data and elevation data of the redundant geographic element points are deleted.
可选的,在所述对每个地图瓦片的三维矢量子数据块进行抽稀处理之前,所述方法还包括:Optionally, before the thinning processing is performed on the three-dimensional vector sub-data blocks of each map tile, the method further includes:
对所述地图瓦片的三维矢量子数据块进行预设目标的识别,得到一个或多个目标地理要素,并确定组成所述目标地理要素的多个目标地理要素点;所述目标地理要素包含的地理要素点数目小于预设阈值,且所述目标地理要素为规则地理要素;Identifying a preset target on the three-dimensional vector sub-data block of the map tile, obtaining one or more target geographic elements, and determining a plurality of target geographic element points that form the target geographic element; the target geographic element includes The number of geographic element points is less than a preset threshold, and the target geographic element is a regular geographic element;
所述基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理的步骤,包括:The step of thinning the three-dimensional vector sub-data blocks of each map tile based on the resolution of the map tile at the scale level includes:
基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;其中,分辨率越高,数据抽稀程度越低;Based on the resolution of the map tiles at the scale level, determine the data thinning degree at the scale level; wherein, the higher the resolution, the lower the data thinning degree;
基于所述数据抽稀程度,针对所述三维矢量子数据块中除所述目标地理要素点之外的地理要素点,进行抽稀处理。Based on the data thinning degree, thinning processing is performed on geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
可选的,所述三维矢量数据还包括所述地理要素点的地理属性标识。Optionally, the three-dimensional vector data further includes geographic attribute identifiers of the geographic element points.
为实现上述目的,本发明实施例还提供了一种三维矢量地图的三维矢量数据切片装置,所述装置包括:In order to achieve the above purpose, an embodiment of the present invention also provides a three-dimensional vector data slicing device for a three-dimensional vector map, and the device includes:
获取模块,用于获取待切片的三维矢量地图的三维矢量数据,所述三维矢量数据包括所述三维矢量地图中地理要素点的二维地理坐标数据和高程数据;an acquisition module, configured to acquire three-dimensional vector data of a three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map;
第一确定模块,用于确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;a first determination module, configured to determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided under each scale level;
第二确定模块,用于针对每一比例尺级别,基于所述三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;The second determining module is configured to, for each scale level, determine the two-dimensional geographic coordinate range covered by each map tile based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level ;
切分模块,用于针对每一比例尺级别,基于该比例尺级别的每个地图瓦 片覆盖的二维地理坐标范围,对所述三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据;The segmentation module is used for, for each scale level, to segment the three-dimensional vector data based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, to obtain the same scale as the map tile of the scale level. A corresponding three-dimensional vector sub-data block, wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block , and the two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points of the map tile;
其中,所述地图瓦片的边界地理要素点的二维地理坐标数据是根据第一地理要素点的二维地理坐标数据和第二地理要素点的二维地理坐标数据计算得到的,所述地图瓦片的边界地理要素点的高程数据是根据所述第一地理要素点的高程数据和所述第二地理要素点的高程数据计算得到的,所述第一地理要素点和所述第二地理要素点是分别位于所述边界地理要素点两侧、且与所述边界地理要素点同属于同一地理要素的地理要素点。Wherein, the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point, and the map The elevation data of the boundary geographic element points of the tile is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point, the first geographic element point and the second geographic element point The element points are geographic element points that are respectively located on both sides of the boundary geographic element point and belong to the same geographic element as the boundary geographic element point.
可选的,所述切分模块,具体用于:Optionally, the segmentation module is specifically used for:
针对所述三维矢量数据中的每个地理要素点,根据所述地理要素点的二维地理坐标数据以及所述每个地图瓦片覆盖的二维地理坐标范围,确定每个所述地理要素点所属的该比例尺级别下的地图瓦片;For each geographic element point in the three-dimensional vector data, determine each geographic element point according to the two-dimensional geographic coordinate data of the geographic element point and the two-dimensional geographic coordinate range covered by each map tile The map tile at the scale level to which it belongs;
将每个所述地理要素点的二维地理坐标数据和高程数据保存至与该地理要素点所属的该比例尺级别下的地图瓦片对应的三维矢量子数据块中。The two-dimensional geographic coordinate data and elevation data of each of the geographic element points are stored in a three-dimensional vector sub-data block corresponding to the map tile at the scale level to which the geographic element point belongs.
可选的,所述装置还包括:抽稀模块,Optionally, the device further includes: a thinning module,
所述抽稀模块,用于:The thinning module is used for:
确定每一比例尺级别下地图瓦片的分辨率;Determine the resolution of map tiles at each scale level;
针对每一比例尺级别下的地图瓦片,基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理,得到简化三维矢量子数据块。For map tiles at each scale level, based on the resolution of the map tiles at the scale level, thinning processing is performed on the three-dimensional vector sub-data blocks of each map tile to obtain simplified three-dimensional vector sub-data blocks.
可选的,所述抽稀模块,具体用于:Optionally, the thinning module is specifically used for:
基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;Determine the degree of data thinning at the scale level based on the resolution of the map tiles at the scale level;
基于所述数据抽稀程度,按照预设抽稀算法识别每个地图瓦片中冗余的地理要素点,其中,所述冗余的地理要素点为所述地图瓦片中删除后不改变所述地图瓦片中地理要素形状的地理要素点;Based on the data thinning degree, the redundant geographic element points in each map tile are identified according to a preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile and will not be changed. Geographic feature points describing the shape of geographic features in the map tile;
在所述地图瓦片对应的三维矢量子数据块中,将所述冗余的地理要素点的二维地理坐标数据和高程数据删除。In the three-dimensional vector sub-data block corresponding to the map tile, the two-dimensional geographic coordinate data and elevation data of the redundant geographic element points are deleted.
可选的,所述装置还包括:识别模块,Optionally, the device further includes: an identification module,
所述识别模块,用于对所述地图瓦片的三维矢量子数据块进行预设目标的识别,得到一个或多个目标地理要素,并确定组成所述目标地理要素的多个目标地理要素点;所述目标地理要素包含的地理要素点数目小于预设阈值,且所述目标地理要素为规则地理要素;The identification module is used to identify the preset target on the three-dimensional vector sub-data block of the map tile, obtain one or more target geographic elements, and determine a plurality of target geographic element points that constitute the target geographic element ; The number of geographic element points contained in the target geographic element is less than a preset threshold, and the target geographic element is a regular geographic element;
所述抽稀模块,具体用于:The thinning module is specifically used for:
基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;其中,分辨率越高,数据抽稀程度越低;Based on the resolution of the map tiles at the scale level, determine the data thinning degree at the scale level; wherein, the higher the resolution, the lower the data thinning degree;
基于所述数据抽稀程度,针对所述三维矢量子数据块中除所述目标地理要素点之外的地理要素点,进行抽稀处理。Based on the data thinning degree, thinning processing is performed on geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
可选的,所述三维矢量数据还包括所述地理要素点的地理属性标识。Optionally, the three-dimensional vector data further includes geographic attribute identifiers of the geographic element points.
本发明实施例还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线;其中,处理器、通信接口、存储器通过通信总线完成相互间的通信;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:
可见,应用本发明实施例提供的三维矢量地图的三维矢量数据切片方法及装置,获取待切片的三维矢量地图的三维矢量数据;确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;针对每一 比例尺级别,基于三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据。可见可以将三维矢量数据分开存储,实现对三维矢量地图的三维矢量数据进行切分。在绘制三维矢量地图时,仅需要调用特定比例尺级别的特定地图瓦片对应的三维矢量子数据块即可,能够显著降低数据处理量。It can be seen that the method and device for slicing 3D vector data of a 3D vector map provided by the embodiments of the present invention are used to obtain 3D vector data of the 3D vector map to be sliced; the multiple scale levels of the preset 3D vector map and the cut-down of each scale level are determined. The number of divided map tiles; for each scale level, based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile; For each scale level, the 3D vector data is segmented based on the 2D geographic coordinate range covered by each map tile of the scale level, and the 3D vector sub-data blocks corresponding to the map tiles of the scale level are obtained. , wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the boundary of the map tile Two-dimensional geographic coordinate data and elevation data of geographic feature points. It can be seen that the three-dimensional vector data can be stored separately to realize the segmentation of the three-dimensional vector data of the three-dimensional vector map. When drawing a three-dimensional vector map, it is only necessary to call the three-dimensional vector sub-data block corresponding to a specific map tile at a specific scale level, which can significantly reduce the amount of data processing.
当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。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为本发明实施例提供的三维矢量地图的三维矢量数据切片方法的一种流程示意图;1 is a schematic flowchart of a method for slicing three-dimensional vector data of a three-dimensional vector map according to an embodiment of the present invention;
图2为本发明实施例提供的地图瓦片覆盖的二维地理坐标范围的一种示意图;2 is a schematic diagram of a two-dimensional geographic coordinate range covered by a map tile according to an embodiment of the present invention;
图3为本发明实施例提供的对地图瓦片的三维矢量子数据块进行抽稀处理的一种流程示意图;3 is a schematic flowchart of thinning processing of three-dimensional vector sub-data blocks of map tiles according to an embodiment of the present invention;
图4为本发明实施例提供的对地图瓦片的三维矢量子数据块进行抽稀处理的另一种流程示意图;FIG. 4 is another schematic flowchart of thinning processing of three-dimensional vector sub-data blocks of map tiles according to an embodiment of the present invention;
图5为本发明实施例提供的三维矢量地图的三维矢量数据切片装置的一种结构示意图;5 is a schematic structural diagram of a device for slicing three-dimensional vector data of a three-dimensional vector map according to an embodiment of the present invention;
图6为本发明实施例提供的电子设备的一种结构示意图。FIG. 6 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, but not all of 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 map slicing technology cannot perform slicing processing on the 3D vector data of the 3D vector map, an embodiment of the present invention provides a 3D vector data slicing method and device for a 3D vector map, see FIG. 1, the method The following steps can be included:
S101:获取待切片的三维矢量地图的三维矢量数据,三维矢量数据包括三维矢量地图中地理要素点的二维地理坐标数据和高程数据。S101: Acquire three-dimensional vector data of a three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map.
本发明实施例提供的三维矢量地图的三维矢量数据切片方法可以应用于电子终端设备或服务器。以应用于服务器为例进行说明,服务器采用本发明实施例提供的三维矢量地图的三维矢量数据切片方法,可以对三维矢量地图的三维矢量数据进行切片并保存,则其他终端设备在绘制地图或进行相关运算时可以从服务器调用所需要的切片数据。The three-dimensional vector data slicing method of the three-dimensional vector map provided by the embodiment of the present invention can be applied to an electronic terminal device or a server. Taking the application to the server as an example, the server adopts the three-dimensional vector data slicing method of the three-dimensional vector map provided by the embodiment of the present invention, and can slice and save the three-dimensional vector data of the three-dimensional vector map. The required slice data can be called from the server during correlation operations.
步骤S101中,服务器可以通过外部设备获取三维矢量地图的三维矢量数据,例如:从互联网下载三维矢量地图的三维矢量数据。本发明实施例对三维矢量地图所覆盖的区域范围不做限定,例如,可以是针对全世界的三维矢量地图,也可以是针对某个城市的三维矢量地图。In step S101, the server may acquire the three-dimensional vector data of the three-dimensional vector map through an external device, for example, download the three-dimensional vector data of the three-dimensional vector map from the Internet. The embodiment of the present invention does not limit the range of the area covered by the three-dimensional vector map, for example, it may be a three-dimensional vector map for the whole world, or a three-dimensional vector map for a certain city.
本领域技术人员可以理解,矢量地图是通过点、线、面等几何要素,对地理上的道路、河流或建筑物等进行表示所得到的地图。可以将地理上的道路、河流或建筑物等统称为地理要素。这些地理要素可以通过三维矢量地图中的地理要素点表示的。例如,一系列连续的地理要素点可以形成线,用于表示道路。Those skilled in the art can understand that a vector map is a map obtained by representing geographic roads, rivers, buildings, etc. through geometric elements such as points, lines, and surfaces. Geographical roads, rivers, or buildings can be collectively referred to as geographic features. These geographic features can be represented by geographic feature points in a three-dimensional vector map. For example, a series of consecutive geographic feature points can form a line that represents a road.
本发明实施例中,三维矢量地图的三维矢量数据包括地理要素点的二维地理坐标数据,二维地理坐标数据包括地理要素点的横坐标和纵坐标。此外三维矢量数据还包括各个地理要素点的高程数据。即三维矢量地图不仅能表示道路、河流或建筑物的位置,还能表示这些地理要素的高度。In the embodiment of the present invention, the three-dimensional vector data of the three-dimensional vector map includes the two-dimensional geographic coordinate data of the geographic element points, and the two-dimensional geographic coordinate data includes the abscissa and the ordinate of the geographic element points. In addition, the three-dimensional vector data also includes the elevation data of each geographic feature point. That is, a three-dimensional vector map can not only represent the location of roads, rivers or buildings, but also the height of these geographic features.
S102:确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量。S102: Determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided at each scale level.
本发明实施例中,为了便于分块存储和便于后续处理,可以对三维矢量数据进行切片处理。In this embodiment of the present invention, in order to facilitate storage in blocks and facilitate subsequent processing, slice processing may be performed on the three-dimensional vector data.
本发明实施例中,可以根据实际需求确定三维矢量地图的比例尺级别,并确定每个比例尺下切分的地图瓦片的数量。In this embodiment of the present invention, the scale level of the three-dimensional vector map can be determined according to actual requirements, and the number of map tiles divided under each scale can be determined.
其中,地图瓦片(tile)表示三维矢量地图中的一部分,通常每个地图瓦片覆盖的地理范围是规则的长方形。Wherein, a map tile (tile) represents a part of a three-dimensional vector map, and usually the geographic range covered by each map tile is a regular rectangle.
本发明实施例中,比例尺表示地图上一条线段的长度与地面相应线段的实际长度之比,例如1/500、1/1000、1/2000、1/5000等,即比例尺越小,图中一条线段对应的地面相应线段的实际长度越大。In the embodiment of the present invention, the scale bar represents the ratio of the length of a line segment on the map to the actual length of the corresponding line segment on the ground, such as 1/500, 1/1000, 1/2000, 1/5000, etc., that is, the smaller the scale bar, the more The actual length of the corresponding line segment on the ground corresponding to the line segment is larger.
本发明实施例中,比例尺级别与比例尺大小的关系可以为:比例尺越小,则表示比例尺级别越高。则本发明实施例中,可以根据实际需求,设置不同比例尺级别下要切分的地图瓦片的数量。具体的,三维矢量地图的比例尺级别越高,可以设置较少的地图瓦片,进而每个地图瓦片覆盖的地理范围也较大;三维矢量地图的比例尺级别越低,可以设置较多的地图瓦片,进而每个地图瓦片覆盖的地理范围也较小。In this embodiment of the present invention, the relationship between the scale level and the scale size may be: the smaller the scale, the higher the scale level. In this embodiment of the present invention, the number of map tiles to be divided at different scale levels may be set according to actual needs. Specifically, the higher the scale level of the 3D vector map, the fewer map tiles can be set, and the geographic range covered by each map tile is also larger; the lower the scale level of the 3D vector map, the more maps can be set tiles, and thus each map tile covers a smaller geographic area.
S103:针对每一比例尺级别,基于三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围。S103: For each scale level, based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile.
本发明实施例中,针对每一比例尺级别,在确定该比例尺级别的地图瓦片的数量后,即可结合三维矢量地图覆盖的二维地理坐标范围,计算出该比例尺级别下每个地图瓦片覆盖的二维地理坐标范围。In the embodiment of the present invention, for each scale level, after the number of map tiles at the scale level is determined, each map tile at the scale level can be calculated in combination with the two-dimensional geographic coordinate range covered by the three-dimensional vector map Covered 2D geographic coordinate range.
本发明实施例中,三维矢量地图覆盖的二维地理坐标范围可以理解为三维矢量地图覆盖的地理区域的二维地理坐标范围。作为一个示例,参见图2,如果三维矢量地图覆盖的地理区域的最大横坐标为Xmax,最大纵坐标为Ymax,则三维矢量地图覆盖的地理区域的二维地理坐标范围即可表示为:横坐标范围为(0,Xmax),纵坐标范围为(0,Ymax)。In this embodiment of the present invention, the two-dimensional geographic coordinate range covered by the three-dimensional vector map may be understood as the two-dimensional geographic coordinate range of the geographic area covered by the three-dimensional vector map. As an example, referring to Fig. 2, if the maximum abscissa of the geographic area covered by the three-dimensional vector map is Xmax, and the maximum vertical coordinate is Ymax, then the two-dimensional geographic coordinate range of the geographic area covered by the three-dimensional vector map can be expressed as: abscissa The range is (0, Xmax), and the ordinate range is (0, Ymax).
如上文,通常地图瓦片覆盖的地理区域是长方形的,且通常每个地图瓦片覆盖的地理区域的大小是相同的,则承接上例,若在某比例尺级别下划分的地图瓦片的数目为4,则该4个地图瓦片覆盖的地理区域可以是大小 相同的正方形,则在该比例尺级别下,每个地图瓦片覆盖的地理区域的二维地理坐标范围可以依次表示为:As above, the geographic area covered by map tiles is usually rectangular, and usually the size of the geographic area covered by each map tile is the same, then the above example is continued. If the number of map tiles divided under a certain scale level is 4, then the geographic area covered by the four map tiles can be squares of the same size, then at this scale level, the two-dimensional geographic coordinate range of the geographic area covered by each map tile can be expressed as:
横坐标范围为(0,1/2Xmax),纵坐标范围为(1/2Ymax,Ymax);The abscissa range is (0, 1/2Xmax), and the ordinate range is (1/2Ymax, Ymax);
横坐标范围为(1/2Xmax,Xmax),纵坐标范围为(1/2Ymax,Ymax);The abscissa range is (1/2Xmax, Xmax), and the ordinate range is (1/2Ymax, Ymax);
横坐标范围为(0,1/2Xmax),纵坐标范围为(0,1/2Ymax);The abscissa range is (0,1/2Xmax), and the ordinate range is (0,1/2Ymax);
横坐标范围为(1/2Xmax,Xmax),纵坐标范围为(0,1/2Ymax)。The abscissa range is (1/2Xmax, Xmax), and the ordinate range is (0, 1/2Ymax).
S104:针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据。S104: For each scale level, based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, segment the three-dimensional vector data to obtain the three-dimensional vector elements corresponding to the map tiles of the scale level one-to-one A data block, wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the map tile The two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points.
其中,地图瓦片的边界地理要素点的二维地理坐标数据是根据第一地理要素点的二维地理坐标数据和第二地理要素点的二维地理坐标数据计算得到的,地图瓦片的边界地理要素点的高程数据是根据第一地理要素点的高程数据和第二地理要素点的高程数据计算得到的,第一地理要素点和第二地理要素点是分别位于边界地理要素点两侧、且与边界地理要素点同属于同一地理要素的地理要素点。The two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point. The elevation data of the geographic element point is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point. The first geographic element point and the second geographic element point are located on both sides of the boundary geographic element point, respectively. The geographic feature points that belong to the same geographic feature as the boundary geographic feature points.
本发明实施例中,在确定各比例尺级别下每个地图瓦片覆盖的二维地理坐标范围之后,即可对三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块。In the embodiment of the present invention, after the two-dimensional geographic coordinate range covered by each map tile at each scale level is determined, the three-dimensional vector data can be segmented to obtain a three-dimensional map corresponding to the map tiles at the scale level one-to-one. Vector sub-blocks.
如上文,每个比例尺级别下,每个地图瓦片对应一个三维矢量子数据块。也就是说,该三维矢量子数据块中包含该地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据。As above, at each scale level, each map tile corresponds to a 3D vector sub-data block. That is to say, the three-dimensional vector sub-data block contains two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile.
具体的,对于某比例尺级别,可以根据每个地理要素点的二维地理坐标、以及该比例尺级别下各个地图瓦片覆盖的二维地理坐标范围,确定该地理要素点所属的地图瓦片,进而将该地理要素点的二维地理坐标数据和高程数据保存到所属地图瓦片对应的三维矢量子数据块中。Specifically, for a certain scale level, the map tile to which the geographic element point belongs can be determined according to the two-dimensional geographic coordinates of each geographic element point and the two-dimensional geographic coordinate range covered by each map tile under the scale level, and then The two-dimensional geographic coordinate data and elevation data of the geographic feature point are saved into the three-dimensional vector sub-data block corresponding to the map tile to which it belongs.
承接上例,对于上述比例尺级别,某地理要素点的二维地理坐标中横坐标为1/3Xmax,纵坐标为2/3Xmax,则可以判断该地理要素点所属的地图瓦片为第一个地图瓦片,则将该地理要素点的二维地理坐标数据以及该地 理要素点的高程数据保存至第一个地图瓦片对应的三维矢量子数据块中。Continuing the above example, for the scale level above, if the horizontal coordinate of a geographic element point is 1/3Xmax and the vertical coordinate is 2/3Xmax, it can be judged that the map tile to which the geographic element point belongs is the first map. tile, the two-dimensional geographic coordinate data of the geographic element point and the elevation data of the geographic element point are saved in the three-dimensional vector sub-data block corresponding to the first map tile.
上述仅作为一个示例,在实际应用中,可以判断各比例尺级别下每个地理要素点所属的地图瓦片,并将地理要素点的二维地理坐标数据和高程数据保存至所属地图瓦片对应的三维矢量子数据中,进而实现了对三维矢量数据进行划分,得到多个三维矢量子数据块。The above is just an example. In practical applications, it is possible to determine the map tile to which each geographic element point belongs at each scale level, and save the two-dimensional geographic coordinate data and elevation data of the geographic element point to the corresponding map tile. In the three-dimensional vector sub-data, the three-dimensional vector data is further divided to obtain a plurality of three-dimensional vector sub-data blocks.
在本发明实施例中,对于每个三维矢量子数据块,除了保存该三维矢量子数据块对应的地图瓦片所覆盖的地理要素点的二维地理坐标数据和高程数据之外,还可以包括地图瓦片的边界地理要素点。其中,边界地理要素点是由于数据切分产生的额外需要保存的地理要素点,即边界地理要素点在数据切分之前是不存在的。In this embodiment of the present invention, for each three-dimensional vector sub-data block, in addition to saving the two-dimensional geographic coordinate data and elevation data of the geographic element points covered by the map tile corresponding to the three-dimensional vector sub-data block, it may also include The bounding geographic feature points of the map tile. The boundary geographic element points are additional geographic element points that need to be saved due to data segmentation, that is, the boundary geographic element points do not exist before the data segmentation.
本发明实施例中,边界地理要素点的数据也包含二维地理坐标数据和高程数据,其中边界地理要素点的二维地理坐标数据是根据第一地理要素点的二维地理坐标和第二地理要素点的二维地理坐标数据计算得到的,其中第一地理要素点和第二地理要素点是分别位于边界地理要素点两侧、且与边界地理要素点同属于同一地理要素的地理要素点,相应的,边界地理要素点的高程数据是根据第一地理要素点的高程数据和第二地理要素点的高程数据计算得到的。In this embodiment of the present invention, the data of the boundary geographic element points also includes two-dimensional geographic coordinate data and elevation data, wherein the two-dimensional geographic coordinate data of the boundary geographic element points are based on the two-dimensional geographic coordinates of the first geographic element point and the second geographic coordinate data of the first geographic element point. Calculated from the two-dimensional geographic coordinate data of the feature point, wherein the first geographic feature point and the second geographic feature point are geographic feature points that are located on both sides of the boundary geographic feature point and belong to the same geographic feature as the border geographic feature point, Correspondingly, the elevation data of the boundary geographic element point is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point.
具体的,当一个地理要素例如道路被切分到两个相邻的地图瓦片时,会产生地图瓦片的边界地理要素点,该边界地理要素点可以同时保存在该相邻的两个地图瓦片对应的三维矢量子数据块中。Specifically, when a geographic element such as a road is divided into two adjacent map tiles, a boundary geographic element point of the map tile is generated, and the boundary geographic element point can be stored in the two adjacent maps at the same time. In the three-dimensional vector sub-data block corresponding to the tile.
承接上例,若第一地理要素点的横坐标为47/100Xmax,纵坐标为47/100Ymax,第二地理要素点的横坐标为53/100Xmax,纵坐标为45/100Ymax,在数据切片之前,第一地理要素点和第二地理要素点同属于同一地理要素且为相邻的地理要素点,则在数据切分过程中,第一地理要素点被切分至第三个地图瓦片,第二地理要素点被切分至第四个地图瓦片,显然,第三个地图瓦片和第四个地图瓦片的分界线为x=1/2Xmax,产生的边界地理要素点的二维地理坐标中的横坐标即为1/2Xmax,此外根据几何运算,可以得到边界地理要素点的二维地理坐标中的纵坐标为46/100Ymax。Following the above example, if the abscissa of the first geographic element point is 47/100Xmax, the ordinate is 47/100Ymax, the abscissa of the second geographic element point is 53/100Xmax, and the ordinate is 45/100Ymax, before data slicing, The first geographic element point and the second geographic element point belong to the same geographic element and are adjacent geographic element points, then during the data segmentation process, the first geographic element point is segmented into the third map tile, and the first geographic element point is segmented into the third map tile. The two geographic element points are divided into the fourth map tile. Obviously, the dividing line between the third map tile and the fourth map tile is x=1/2Xmax. The abscissa in the coordinates is 1/2Xmax. In addition, according to geometric operations, the ordinate in the two-dimensional geographic coordinates of the boundary geographic element points can be obtained as 46/100Ymax.
进一步的,可以根据空间几何运算,基于第一地理要素点的高程数据和第二地理要素点的高程数据,计算边界地理要素点的高程数据。Further, the elevation data of the boundary geographic element point may be calculated based on the elevation data of the first geographic element point and the elevation data of the second geographic element point according to the spatial geometry operation.
进而可以将边界地理要素点的二维地理坐标数据和高程数据分别保存 至上述两个相邻的地图瓦片对应的三维矢量子数据块中。Furthermore, the two-dimensional geographic coordinate data and the elevation data of the boundary geographic element points can be stored in the three-dimensional vector sub-data blocks corresponding to the above-mentioned two adjacent map tiles, respectively.
值的说明的是,本发明实施例中,也可以不保存边界地理要素点的二维地理坐标数据和高程数据,具体可以根据需求进行设置。例如,若对三维矢量地图的精确度有很高的需求,则可以额外保存边界地理要素点的二维地理坐标数据和高程数据,反之则不需要保存。The description of the value is that, in this embodiment of the present invention, the two-dimensional geographic coordinate data and the elevation data of the boundary geographic element points may not be saved, which may be specifically set according to requirements. For example, if there is a high demand for the accuracy of the three-dimensional vector map, the two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points can be additionally saved, otherwise, it is not necessary to save.
可见,应用本发明实施例提供的三维矢量地图的三维矢量数据切片方法,获取待切片的三维矢量地图的三维矢量数据;确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;针对每一比例尺级别,基于三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据。可见可以将三维矢量数据分开存储,实现对三维矢量地图的三维矢量数据进行切分。在绘制三维矢量地图时,仅需要调用特定比例尺级别的特定地图瓦片对应的三维矢量子数据块即可,能够显著降低数据处理量。It can be seen that the three-dimensional vector data slicing method of the three-dimensional vector map provided by the embodiment of the present invention is applied to obtain the three-dimensional vector data of the three-dimensional vector map to be sliced; the multiple scale levels of the preset three-dimensional vector map and the segmented data at each scale level are determined. The number of map tiles; for each scale level, based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile; for each At a scale level, based on the two-dimensional geographic coordinate range covered by each map tile at the scale level, segment the three-dimensional vector data to obtain three-dimensional vector sub-data blocks corresponding to the map tiles at the scale level, wherein Each three-dimensional vector sub-data block includes the two-dimensional geographic coordinate data and elevation data of the geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the boundary geographic elements of the map tile. Two-dimensional geographic coordinate data and elevation data for points. It can be seen that the three-dimensional vector data can be stored separately to realize the segmentation of the three-dimensional vector data of the three-dimensional vector map. When drawing a three-dimensional vector map, it is only necessary to call the three-dimensional vector sub-data block corresponding to a specific map tile at a specific scale level, which can significantly reduce the amount of data processing.
在本发明的一种实施例中,为了进一步优化切分得到的三维矢量子数据块,参见图3,在图1所示方法的基础上,还可以包括以下步骤:In an embodiment of the present invention, in order to further optimize the three-dimensional vector sub-data block obtained by segmentation, referring to FIG. 3, on the basis of the method shown in FIG. 1, the following steps may be further included:
步骤S301:确定每一比例尺级别下地图瓦片的分辨率。Step S301: Determine the resolution of map tiles at each scale level.
本发明实施例中,不同的比例尺级别下,地图瓦片的分辨率可以是不同的。具体的,当比例尺级别较大时,电子屏幕上显示的三维矢量地图覆盖的地理区域较大,例如,电子屏幕上显示世界地图,则地图瓦片较低的分辨率即可满足显示需求。当比例尺级别较小时,电子屏幕上显示的三维矢量地图覆盖的地理区域也较小,例如,电子屏幕上显示城镇地图,则地图瓦片需要较高的分辨率才能满足显示需求。In this embodiment of the present invention, under different scale levels, the resolutions of map tiles may be different. Specifically, when the scale level is large, the geographic area covered by the three-dimensional vector map displayed on the electronic screen is large. For example, if a world map is displayed on the electronic screen, the lower resolution of the map tiles can meet the display requirements. When the scale level is small, the geographic area covered by the three-dimensional vector map displayed on the electronic screen is also small. For example, if a town map is displayed on the electronic screen, the map tiles need a higher resolution to meet the display requirements.
基于上述分析,本发明实施例中,可以确定每一比例尺级别下地图瓦片的分辨率。比例尺级别越大,则该比例尺级别下地图瓦片的分辨率可以越小;比例尺级别越小,则该比例尺级别下地图瓦片的分辨率可以越大。Based on the above analysis, in this embodiment of the present invention, the resolution of map tiles at each scale level can be determined. The larger the scale level, the smaller the resolution of the map tiles at the scale level; the smaller the scale level, the larger the resolution of the map tiles under the scale level.
本发明实施例中,可以根据实际需求设置不同比例尺级别下地图瓦片的分辨率。In this embodiment of the present invention, the resolutions of map tiles at different scale levels can be set according to actual requirements.
步骤S302:针对每一比例尺级别下的地图瓦片,基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理,得到简化三维矢量子数据块。Step S302: For the map tiles at each scale level, based on the resolution of the map tiles at the scale level, perform thinning processing on the three-dimensional vector sub-data blocks of each map tile to obtain simplified three-dimensional vector sub-data yuan.
在本发明的一种实施例中,参见图4,步骤S302中对每个地图瓦片的三维矢量子数据块进行抽稀处理的步骤,可以包括以下细化步骤:In an embodiment of the present invention, referring to FIG. 4 , the step of thinning the three-dimensional vector sub-data blocks of each map tile in step S302 may include the following refinement steps:
S401:基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度。S401: Determine the data thinning degree at the scale level based on the resolution of the map tiles at the scale level.
本发明实施例中,可以基于比例尺级别下的地图瓦片的分辨率,确定该比例级别下的数据抽稀程度,其中,分辨率越高,数据抽稀程度越低。In the embodiment of the present invention, the data thinning degree at the scale level may be determined based on the resolution of the map tiles at the scale level, wherein the higher the resolution, the lower the data thinning degree.
本发明实施例中,当比例尺级别较大时,地图瓦片的分辨率要求较低,则可以确定较大的数据抽稀程度,即抽取较多的冗余数据;当比例尺级别较小时,地图瓦片的分辨率要求较高,可以确定较小的数据抽稀程度,即抽取较少的冗余数据。In the embodiment of the present invention, when the scale level is relatively large, the resolution requirements of the map tiles are relatively low, and a relatively large data thinning degree can be determined, that is, more redundant data is extracted; when the scale level is relatively small, the map tile The resolution of the tile is required to be higher, and a smaller degree of data thinning can be determined, that is, less redundant data is extracted.
特别的,对于最小的比例尺级别,地图瓦片的分辨率要求最高,则可以不对该比例尺级别的地图瓦片的三维矢量子数据块进行抽稀处理。In particular, for the minimum scale level, the resolution requirement of the map tile is the highest, so the thinning processing may not be performed on the three-dimensional vector sub-data block of the map tile at the scale level.
S402:基于数据抽稀程度,按照预设抽稀算法识别每个地图瓦片中冗余的地理要素点,其中,冗余的地理要素点为地图瓦片中删除后不改变地图瓦片中地理要素形状的地理要素点。S402: Identify redundant geographic element points in each map tile based on the data thinning degree according to a preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile without changing the geographic location in the map tile The geographic feature point of the feature shape.
本发明实施例中,冗余的地理要素点为地图瓦片中删除后不改变地图瓦片中地理要素形状的地理要素点,例如通过直线表示某一条道路时,删除起点和终点之间的一个或多个点,仍可以通过渲染的方法,连接起点、终点以及剩余的点,模拟出一条线来表示该道路,而通过模拟出的道路的形状和原道路的形状可以基本保持不变。In this embodiment of the present invention, redundant geographic element points are geographic element points that do not change the shape of geographic elements in the map tile after deletion. Or multiple points, you can still connect the starting point, the ending point and the remaining points by means of rendering, and simulate a line to represent the road, and the shape of the simulated road and the shape of the original road can remain basically unchanged.
本发明实施例中,可以通过多种方法识别冗余的地理要素点。例如,通过步长法、线段过滤法、道格拉斯-普克算法等方法识别冗余的地理要素点。以步长法为例,可以根据当前比例尺级别下地图瓦片的分辨率计算得到当前地图瓦片的目标步长,分辨率越低,则步长越大,在待处理的线条中每间隔目标步长选取一个地理要素点,而起点和终点之间未选取的地理要素点均标记为冗余的地理要素点。In this embodiment of the present invention, redundant geographic element points may be identified through various methods. For example, redundant geographic feature points are identified by methods such as step size method, line segment filtering method, and Douglas-Pucker algorithm. Taking the step size method as an example, the target step size of the current map tile can be calculated according to the resolution of the map tile at the current scale level. The lower the resolution, the larger the step size. The step selects one geographic feature point, and the unselected geographic feature points between the start and end points are marked as redundant geographic feature points.
S403:在地图瓦片对应的三维矢量子数据块中,将冗余的地理要素点的二维地理坐标数据和高程数据删除。S403: Delete the two-dimensional geographic coordinate data and elevation data of redundant geographic element points in the three-dimensional vector sub-data block corresponding to the map tile.
在确定地图瓦片中冗余的地理要素点之后,即可从地图瓦片对应的三维矢量子数据块中,将冗余的地理要素点的二维地理坐标数据和高程数据删除。After determining the redundant geographic element points in the map tile, the two-dimensional geographic coordinate data and elevation data of the redundant geographic element points can be deleted from the three-dimensional vector sub-data block corresponding to the map tile.
本发明实施例中,抽稀处理后的三维矢量子数据块可以记为简化三维矢量子数据块。In the embodiment of the present invention, the thinned-out three-dimensional vector sub-data block may be recorded as a simplified three-dimensional vector sub-data block.
可见,本发明实施例中,对于不同比例尺级别,均可以实现对地图瓦片对应的三维矢量子数据块中冗余的地理要素点的数据进行删除,进而在满足不同比例尺级别展示精度的前提下,对三维矢量数据进行压缩处理,能够进一步降低绘制三维矢量地图的数据处理量。It can be seen that, in the embodiment of the present invention, for different scale levels, it is possible to delete the data of redundant geographic element points in the three-dimensional vector sub-data blocks corresponding to the map tiles, and then under the premise of satisfying the display accuracy of different scale levels , compressing the three-dimensional vector data can further reduce the amount of data processing for drawing a three-dimensional vector map.
在本发明的一种实施例中,在对每个地图瓦片的三维矢量子数据块进行抽稀处理之前,方法还可以包括以下步骤:In an embodiment of the present invention, before thinning the three-dimensional vector sub-data blocks of each map tile, the method may further include the following steps:
对地图瓦片的三维矢量子数据块进行预设目标的识别,得到一个或多个目标地理要素,并确定组成目标地理要素的多个目标地理要素点,目标地理要素包含的地理要素点数目小于预设阈值,且目标地理要素为规则地理要素。Identify the preset target on the three-dimensional vector sub-data block of the map tile, obtain one or more target geographic elements, and determine multiple target geographic element points that constitute the target geographic element, and the number of geographic element points contained in the target geographic element is less than Preset thresholds, and the target geographic features are regular geographic features.
其中,上述预设目标可以是预先设定的,无需进行抽稀的地理要素。例如,交通标识牌等,当对交通标识牌进行抽稀后可能会影响用户的识别。也可以为尺寸较小的地理要素等,由于尺寸较小地理要素对应的矢量地图中的地理要素点较少,若对其进行抽稀,可能会出现变形,如对于充电桩,在矢量地图中一般只包含八个角所对应的点,若抽稀后,可能会造成某一点的缺失,从而出现结构的变形。Wherein, the above-mentioned preset target may be preset, and there is no need for thinning geographic elements. For example, traffic signs, etc., when the traffic signs are thinned, the user's recognition may be affected. It can also be a geographical element with a small size, etc. Since there are fewer geographical element points in the vector map corresponding to the geographical element with a small size, if it is thinned, it may be deformed. For example, for a charging pile, in the vector map Generally, it only contains the points corresponding to the eight corners. If it is thinned, a certain point may be missing, resulting in structural deformation.
本发明实施例中,可以通过预先训练的网络模型对地图瓦片的三维矢量子数据块进行预设目标的识别。其中上述网络模型可以是循环神经网络(Recurrent Neural Network,RNN),也可以是卷积神经网络(Convolutional Neural Networks,CNN)等,具体可以根据需求进行选择。该预先训练的网络模型可以为由大量预设地理要素的地理要素点数据训练得到的网络模型。例如,通过预设的无需进行抽稀的地理要素的地理要素点数据对网络模型进行训练,得到训练后的网络模型,并通过训练后的网络模型依次对地图瓦片的三维矢量子数据块进行预设目标的识别。In the embodiment of the present invention, a pre-trained network model may be used to identify the preset target for the three-dimensional vector sub-data block of the map tile. The above network model may be a Recurrent Neural Network (RNN), or a Convolutional Neural Network (CNN), etc., which can be selected according to requirements. The pre-trained network model may be a network model obtained by training a large number of geographic element point data of preset geographic elements. For example, the network model is trained through the preset geographic element point data that does not need to be thinned to obtain a trained network model, and the three-dimensional vector sub-data blocks of the map tiles are sequentially processed through the trained network model. Recognition of preset targets.
则在完成预设目标的识别之后,可以确定各比例尺级别下的瓦片地图中不需要进行抽稀的地理要素。Then, after the identification of the preset target is completed, the geographic elements that do not need to be thinned in the tile map at each scale level can be determined.
相应的,基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理的步骤,可以包括:Correspondingly, based on the resolution of the map tiles at the scale level, the step of thinning the three-dimensional vector sub-data blocks of each map tile may include:
基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;Determine the degree of data thinning at the scale level based on the resolution of the map tiles at the scale level;
基于数据抽稀程度,针对三维矢量子数据块中除目标地理要素点之外的地理要素点,进行抽稀处理。Based on the data thinning degree, thinning processing is performed for the geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
可见,通过对各图层的瓦片地图进行预设目标的识别,得到一个或多个目标地理要素,进而对除目标地理要素的目标地理要素点之外的三维矢量子数据块进行抽稀,防止目标地理要素出现严重变形。It can be seen that one or more target geographic elements are obtained by identifying the preset targets on the tile map of each layer, and then the three-dimensional vector sub-data blocks except the target geographic element points of the target geographic elements are thinned out. Prevents severe deformation of target geographic features.
在本发明的一种实施例中,三维矢量数据中包括有包括地理要素点的地理属性标识。地理属性标识包括河流、街道和建筑物等。则在生成三维矢量地图时,可以根据地理要素点的地理属性标识对地理要素点进行渲染。In an embodiment of the present invention, the three-dimensional vector data includes geographic attribute identifiers including geographic element points. Geographic attribute identifiers include rivers, streets, and buildings. Then, when the three-dimensional vector map is generated, the geographic feature points can be rendered according to the geographic attribute identifiers of the geographic feature points.
基于相同的发明构思,根据上述三维矢量地图的三维矢量数据切片方法实施例,本发明实施例还提供了一种三维矢量地图的三维矢量数据切片装置,参见图5,可以包括以下模块:Based on the same inventive concept, according to the above-mentioned embodiment of the three-dimensional vector data slicing method for a three-dimensional vector map, an embodiment of the present invention also provides a three-dimensional vector data slicing device for a three-dimensional vector map. Referring to FIG. 5 , the following modules may be included:
获取模块501,用于获取待切片的三维矢量地图的三维矢量数据,三维矢量数据包括三维矢量地图中地理要素点的二维地理坐标数据和高程数据;an acquisition module 501, configured to acquire three-dimensional vector data of a three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map;
第一确定模块502,用于确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;A first determining module 502, configured to determine multiple scale levels of a preset three-dimensional vector map and the number of map tiles divided under each scale level;
第二确定模块503,用于针对每一比例尺级别,基于三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;The second determining module 503 is configured to, for each scale level, determine the two-dimensional geographic coordinate range covered by each map tile based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level;
切分模块504,用于针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据;The segmentation module 504 is configured to, for each scale level, segment the three-dimensional vector data based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, and obtain the map tiles of the scale level one by one. Corresponding three-dimensional vector sub-data blocks, wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points of the map tile;
其中,地图瓦片的边界地理要素点的二维地理坐标数据是根据第一地 理要素点的二维地理坐标数据和第二地理要素点的二维地理坐标数据计算得到的,地图瓦片的边界地理要素点的高程数据是根据第一地理要素点的高程数据和第二地理要素点的高程数据计算得到的,第一地理要素点和第二地理要素点是分别位于边界地理要素点两侧、且与边界地理要素点同属于同一地理要素的地理要素点。The two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point. The elevation data of the geographic element point is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point. The first geographic element point and the second geographic element point are located on both sides of the boundary geographic element point, respectively. The geographic feature points that belong to the same geographic feature as the boundary geographic feature points.
可见,应用本发明实施例提供的三维矢量地图的三维矢量数据切片装置,获取待切片的三维矢量地图的三维矢量数据;确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;针对每一比例尺级别,基于三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据。可见可以将三维矢量数据分开存储,实现对三维矢量地图的三维矢量数据进行切分。在绘制三维矢量地图时,仅需要调用特定比例尺级别的特定地图瓦片对应的三维矢量子数据块即可,能够显著降低数据处理量。It can be seen that the three-dimensional vector data slicing device of the three-dimensional vector map provided by the embodiment of the present invention is used to obtain the three-dimensional vector data of the three-dimensional vector map to be sliced; and the preset three scale levels of the three-dimensional vector map and the sliced scale levels at each scale level are determined. The number of map tiles; for each scale level, based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile; for each At a scale level, based on the two-dimensional geographic coordinate range covered by each map tile at the scale level, segment the three-dimensional vector data to obtain three-dimensional vector sub-data blocks corresponding to the map tiles at the scale level, wherein Each three-dimensional vector sub-data block includes the two-dimensional geographic coordinate data and elevation data of the geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the boundary geographic elements of the map tile. Two-dimensional geographic coordinate data and elevation data for points. It can be seen that the three-dimensional vector data can be stored separately to realize the segmentation of the three-dimensional vector data of the three-dimensional vector map. When drawing a three-dimensional vector map, it is only necessary to call the three-dimensional vector sub-data block corresponding to a specific map tile at a specific scale level, which can significantly reduce the amount of data processing.
在本发明的一种实施例中,切分模块504,具体可以用于:In an embodiment of the present invention, the segmentation module 504 may be specifically used for:
针对三维矢量数据中的每个地理要素点,根据地理要素点的二维地理坐标数据以及每个地图瓦片覆盖的二维地理坐标范围,确定每个地理要素点所属的该比例尺级别下的地图瓦片;For each geographic feature point in the three-dimensional vector data, determine the map at the scale level to which each geographic feature point belongs according to the two-dimensional geographic coordinate data of the geographic feature point and the two-dimensional geographic coordinate range covered by each map tile tile;
将每个地理要素点的二维地理坐标数据和高程数据保存至与该地理要素点所属的该比例尺级别下的地图瓦片对应的三维矢量子数据块中。The two-dimensional geographic coordinate data and elevation data of each geographic feature point are saved into a three-dimensional vector sub-data block corresponding to the map tile at the scale level to which the geographic feature point belongs.
在本发明的一种实施例中,在图5所示装置基础上,装置还包括:抽稀模块,In an embodiment of the present invention, on the basis of the device shown in FIG. 5 , the device further includes: a thinning module,
抽稀模块,具体可以用于:The thinning module can be used for:
确定每一比例尺级别下地图瓦片的分辨率;Determine the resolution of map tiles at each scale level;
针对每一比例尺级别下的地图瓦片,基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理,得到简化 三维矢量子数据块。For map tiles at each scale level, based on the resolution of the map tiles at the scale level, thinning processing is performed on the 3D vector sub-data blocks of each map tile to obtain simplified 3-D vector sub-data blocks.
在本发明的一种实施例中,抽稀模块,具体可以用于:In an embodiment of the present invention, the thinning module can be specifically used for:
基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;Determine the degree of data thinning at the scale level based on the resolution of the map tiles at the scale level;
基于数据抽稀程度,按照预设抽稀算法识别每个地图瓦片中冗余的地理要素点,其中,冗余的地理要素点为地图瓦片中删除后不改变地图瓦片中地理要素形状的地理要素点;Based on the degree of data thinning, the redundant geographic element points in each map tile are identified according to the preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile and do not change the shape of the geographic elements in the map tile. the geographical feature points;
在地图瓦片对应的三维矢量子数据块中,将冗余的地理要素点的二维地理坐标数据和高程数据删除。In the three-dimensional vector sub-data block corresponding to the map tile, the two-dimensional geographic coordinate data and elevation data of redundant geographic feature points are deleted.
在本发明的一种实施例中,在图5所示装置基础上,装置还可以包括:识别模块,In an embodiment of the present invention, on the basis of the device shown in FIG. 5 , the device may further include: an identification module,
识别模块,用于对地图瓦片的三维矢量子数据块进行预设目标的识别,得到一个或多个目标地理要素,并确定组成目标地理要素的多个目标地理要素点;目标地理要素包含的地理要素点数目小于预设阈值,且目标地理要素为规则地理要素;The identification module is used to identify the preset target of the three-dimensional vector sub-data block of the map tile, obtain one or more target geographic elements, and determine multiple target geographic element points that compose the target geographic element; the target geographic elements include The number of geographic feature points is less than the preset threshold, and the target geographic feature is a regular geographic feature;
抽稀模块,具体可以用于:The thinning module can be used for:
基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;其中,分辨率越高,数据抽稀程度越低;Based on the resolution of the map tiles at the scale level, determine the data thinning degree at the scale level; wherein, the higher the resolution, the lower the data thinning degree;
基于数据抽稀程度,针对三维矢量子数据块中除目标地理要素点之外的地理要素点,进行抽稀处理。Based on the data thinning degree, thinning processing is performed for the geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
在本发明的一种实施例中,三维矢量数据还包括地理要素点的地理属性标识。In an embodiment of the present invention, the three-dimensional vector data further includes geographic attribute identifiers of geographic element points.
本发明实施例还提供了一种电子设备,如图6所示,包括处理器601、通信接口602、存储器603和通信总线604,其中,处理器601,通信接口602,存储器603通过通信总线604完成相互间的通信,An embodiment of the present invention further provides an electronic device, as shown in FIG. 6 , including a processor 601 , a communication interface 602 , a memory 603 and a communication bus 604 , wherein the processor 601 , the communication interface 602 , and the memory 603 pass through the communication bus 604 complete communication with each other,
存储器603,用于存放计算机程序;a memory 603 for storing computer programs;
处理器601,用于执行存储器603上所存放的程序时,实现如下步骤:When the processor 601 is used to execute the program stored in the memory 603, the following steps are implemented:
获取待切片的三维矢量地图的三维矢量数据,三维矢量数据包括三维矢量地图中地理要素点的二维地理坐标数据和高程数据;Acquiring 3D vector data of the 3D vector map to be sliced, where the 3D vector data includes 2D geographic coordinate data and elevation data of geographic element points in the 3D vector map;
确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;Determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided under each scale level;
针对每一比例尺级别,基于三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;For each scale level, based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile;
针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据;For each scale level, the 3D vector data is segmented based on the 2D geographic coordinate range covered by each map tile of the scale level, and the 3D vector sub-data blocks corresponding to the map tiles of the scale level are obtained. , wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the boundary of the map tile Two-dimensional geographic coordinate data and elevation data of geographic feature points;
其中,地图瓦片的边界地理要素点的二维地理坐标数据是根据第一地理要素点的二维地理坐标数据和第二地理要素点的二维地理坐标数据计算得到的,地图瓦片的边界地理要素点的高程数据是根据第一地理要素点的高程数据和第二地理要素点的高程数据计算得到的,第一地理要素点和第二地理要素点是分别位于边界地理要素点两侧、且与边界地理要素点同属于同一地理要素的地理要素点。The two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point. The elevation data of the geographic element point is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point. The first geographic element point and the second geographic element point are located on both sides of the boundary geographic element point, respectively. The geographic feature points that belong to the same geographic feature as the boundary geographic feature points.
上述电子设备提到的通信总线可以是外设部件互连标准(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.
应用本发明实施例提供的电子设备,获取待切片的三维矢量地图的三维矢量数据;确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;针对每一比例尺级别,基于三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据。可见可以将三维矢量数据分开存储,实现对三维矢量地图的三维矢量数据进行切分。在绘制三维矢量地图时,仅需要调用特定比例尺级别的特定地图瓦片对应的三维矢量子数据块即可,能够显著降低数据处理量。Apply the electronic device provided by the embodiment of the present invention to obtain three-dimensional vector data of the three-dimensional vector map to be sliced; determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided at each scale level; for each scale level Scale level, based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, to determine the two-dimensional geographic coordinate range covered by each map tile; for each scale level, based on the scale level In the two-dimensional geographic coordinate range covered by each map tile, the three-dimensional vector data is segmented to obtain three-dimensional vector sub-data blocks corresponding to the map tiles at the scale level, wherein each three-dimensional vector sub-data block includes the The two-dimensional geographic coordinate data and elevation data of the geographic feature points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, as well as the two-dimensional geographic coordinate data and elevation of the boundary geographic feature points of the map tile data. It can be seen that the three-dimensional vector data can be stored separately to realize the segmentation of the three-dimensional vector data of the three-dimensional vector map. When drawing a three-dimensional vector map, it is only necessary to call the three-dimensional vector sub-data block corresponding to a specific map tile at a specific scale level, which can significantly reduce the amount of data processing.
在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现上述任一三维矢量地图的三维矢量数据切片方法的步骤。In another embodiment provided by the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium. Steps of the vector data slicing 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 of the three-dimensional vector data slicing methods of the three-dimensional vector map in the above-mentioned embodiments. step.
在本发明提供的又一实施例中,还提供了一种运行指令的芯片,芯片包括存储器、处理器,存储器中存储代码和数据,存储器与处理器耦合,处理器运行存储器中的代码使得芯片用于执行上述实施例中任一三维矢量地图的三维矢量数据切片方法的步骤。In another embodiment provided by the present invention, a chip for running instructions is also provided. 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 to make the chip Steps for executing the three-dimensional vector data slicing method for any three-dimensional vector map in the above embodiments.
在本发明提供的又一实施例中,本发明实施例还提供了一种计算机程序,当所述计算机程序被处理器执行时,用于实现上述任一方法步骤。In another embodiment provided by the present invention, the 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.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存 储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(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. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。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. Especially, for the embodiments of the three-dimensional vector data slicing apparatus, electronic equipment, computer-readable storage medium and computer program product of the three-dimensional vector map, since they are basically similar to the three-dimensional vector data slicing method embodiments of the three-dimensional vector map, the description It is relatively simple, and for relevant details, please refer to the partial description of the embodiment of the three-dimensional vector data slicing method of the three-dimensional vector map.
以上所述仅为本发明的较佳实施例,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。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 three-dimensional vector data slicing method for a three-dimensional vector map, characterized in that the method comprises:
    获取待切片的三维矢量地图的三维矢量数据,所述三维矢量数据包括所述三维矢量地图中地理要素点的二维地理坐标数据和高程数据;obtaining three-dimensional vector data of the three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map;
    确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;Determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided under each scale level;
    针对每一比例尺级别,基于所述三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;For each scale level, based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level, determine the two-dimensional geographic coordinate range covered by each map tile;
    针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对所述三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据;For each scale level, the three-dimensional vector data is segmented based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, and the three-dimensional vector data corresponding to the map tiles of the scale level are obtained one-to-one. A data block, wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block, and the map tile The two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points;
    其中,所述地图瓦片的边界地理要素点的二维地理坐标数据是根据第一地理要素点的二维地理坐标数据和第二地理要素点的二维地理坐标数据计算得到的,所述地图瓦片的边界地理要素点的高程数据是根据所述第一地理要素点的高程数据和所述第二地理要素点的高程数据计算得到的,所述第一地理要素点和所述第二地理要素点是分别位于所述边界地理要素点两侧、且与所述边界地理要素点同属于同一地理要素的地理要素点。Wherein, the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point, and the map The elevation data of the boundary geographic element points of the tile is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point, the first geographic element point and the second geographic element point The element points are geographic element points that are respectively located on both sides of the boundary geographic element point and belong to the same geographic element as the boundary geographic element point.
  2. 根据权利要求1所述的方法,其特征在于,所述基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对所述三维矢量数据进行切分,包括:The method according to claim 1, wherein the dividing the three-dimensional vector data based on the two-dimensional geographic coordinate range covered by each map tile at the scale level comprises:
    针对所述三维矢量数据中的每个地理要素点,根据所述地理要素点的二维地理坐标数据以及所述每个地图瓦片覆盖的二维地理坐标范围,确定每个所述地理要素点所属的该比例尺级别下的地图瓦片;For each geographic element point in the three-dimensional vector data, determine each geographic element point according to the two-dimensional geographic coordinate data of the geographic element point and the two-dimensional geographic coordinate range covered by each map tile The map tile at the scale level to which it belongs;
    将每个所述地理要素点的二维地理坐标数据和高程数据保存至与该地理要素点所属的该比例尺级别下的地图瓦片对应的三维矢量子数据块中。The two-dimensional geographic coordinate data and elevation data of each of the geographic element points are stored in a three-dimensional vector sub-data block corresponding to the map tile at the scale level to which the geographic element point belongs.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    确定每一比例尺级别下地图瓦片的分辨率;Determine the resolution of map tiles at each scale level;
    针对每一比例尺级别下的地图瓦片,基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理,得到简化三维矢量子数据块。For map tiles at each scale level, based on the resolution of the map tiles at the scale level, thinning processing is performed on the three-dimensional vector sub-data blocks of each map tile to obtain simplified three-dimensional vector sub-data blocks.
  4. 根据权利要求3所述的方法,其特征在于,所述基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理的步骤,包括:The method according to claim 3, wherein the step of thinning the three-dimensional vector sub-data blocks of each map tile based on the resolution of the map tile at the scale level comprises:
    基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;Determine the degree of data thinning at the scale level based on the resolution of the map tiles at the scale level;
    基于所述数据抽稀程度,按照预设抽稀算法识别每个地图瓦片中冗余的地理要素点,其中,所述冗余的地理要素点为所述地图瓦片中删除后不改变所述地图瓦片中地理要素形状的地理要素点;Based on the data thinning degree, the redundant geographic element points in each map tile are identified according to a preset thinning algorithm, wherein the redundant geographic element points are deleted from the map tile and will not be changed. Geographic feature points describing the shape of geographic features in the map tile;
    在所述地图瓦片对应的三维矢量子数据块中,将所述冗余的地理要素点的二维地理坐标数据和高程数据删除。In the three-dimensional vector sub-data block corresponding to the map tile, the two-dimensional geographic coordinate data and elevation data of the redundant geographic element points are deleted.
  5. 根据权利要求3所述的方法,其特征在于,在所述对每个地图瓦片的三维矢量子数据块进行抽稀处理之前,所述方法还包括:The method according to claim 3, wherein before the thinning processing is performed on the three-dimensional vector sub-data blocks of each map tile, the method further comprises:
    对所述地图瓦片的三维矢量子数据块进行预设目标的识别,得到一个或多个目标地理要素,并确定组成所述目标地理要素的多个目标地理要素点;所述目标地理要素包含的地理要素点数目小于预设阈值,且所述目标地理要素为规则地理要素;Identifying a preset target on the three-dimensional vector sub-data block of the map tile, obtaining one or more target geographic elements, and determining a plurality of target geographic element points that form the target geographic element; the target geographic element includes The number of geographic element points is less than a preset threshold, and the target geographic element is a regular geographic element;
    所述基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理的步骤,包括:The step of thinning the three-dimensional vector sub-data blocks of each map tile based on the resolution of the map tile at the scale level includes:
    基于该比例尺级别下的地图瓦片的分辨率,确定该比例尺级别下的数据抽稀程度;其中,分辨率越高,数据抽稀程度越低;Based on the resolution of the map tiles at the scale level, determine the data thinning degree at the scale level; wherein, the higher the resolution, the lower the data thinning degree;
    基于所述数据抽稀程度,针对所述三维矢量子数据块中除所述目标地理要素点之外的地理要素点,进行抽稀处理。Based on the data thinning degree, thinning processing is performed on geographic element points other than the target geographic element point in the three-dimensional vector sub-data block.
  6. 根据权利要求1所述的方法,其特征在于,所述三维矢量数据还包括所述地理要素点的地理属性标识。The method according to claim 1, wherein the three-dimensional vector data further includes geographic attribute identifiers of the geographic element points.
  7. 一种三维矢量地图的三维矢量数据切片装置,其特征在于,所述装置包括:A three-dimensional vector data slicing device for three-dimensional vector maps, characterized in that the device comprises:
    获取模块,用于获取待切片的三维矢量地图的三维矢量数据,所述三维矢量数据包括所述三维矢量地图中地理要素点的二维地理坐标数据和高程数据;an acquisition module, configured to acquire three-dimensional vector data of a three-dimensional vector map to be sliced, where the three-dimensional vector data includes two-dimensional geographic coordinate data and elevation data of geographic element points in the three-dimensional vector map;
    第一确定模块,用于确定预设的三维矢量地图的多个比例尺级别和各比例尺级别下切分的地图瓦片的数量;a first determination module, configured to determine multiple scale levels of the preset three-dimensional vector map and the number of map tiles divided under each scale level;
    第二确定模块,用于针对每一比例尺级别,基于所述三维矢量地图覆盖的二维地理坐标范围,以及该比例尺级别的地图瓦片数量,确定每个地图瓦片覆盖的二维地理坐标范围;The second determining module is configured to, for each scale level, determine the two-dimensional geographic coordinate range covered by each map tile based on the two-dimensional geographic coordinate range covered by the three-dimensional vector map and the number of map tiles at the scale level ;
    切分模块,用于针对每一比例尺级别,基于该比例尺级别的每个地图瓦片覆盖的二维地理坐标范围,对所述三维矢量数据进行切分,得到与该比例尺级别的地图瓦片一一对应的三维矢量子数据块,其中每个三维矢量子数据块包括该三维矢量子数据块对应的地图瓦片覆盖的二维地理坐标范围内的地理要素点的二维地理坐标数据和高程数据,以及该地图瓦片的边界地理要素点的二维地理坐标数据和高程数据;The segmentation module is used for, for each scale level, to segment the three-dimensional vector data based on the two-dimensional geographic coordinate range covered by each map tile of the scale level, to obtain the same scale as the map tile of the scale level. A corresponding three-dimensional vector sub-data block, wherein each three-dimensional vector sub-data block includes two-dimensional geographic coordinate data and elevation data of geographic element points within the two-dimensional geographic coordinate range covered by the map tile corresponding to the three-dimensional vector sub-data block , and the two-dimensional geographic coordinate data and elevation data of the boundary geographic feature points of the map tile;
    其中,所述地图瓦片的边界地理要素点的二维地理坐标数据是根据第一地理要素点的二维地理坐标数据和第二地理要素点的二维地理坐标数据计算得到的,所述地图瓦片的边界地理要素点的高程数据是根据所述第一地理要素点的高程数据和所述第二地理要素点的高程数据计算得到的,所述第一地理要素点和所述第二地理要素点是分别位于所述边界地理要素点两侧、且与所述边界地理要素点同属于同一地理要素的地理要素点。Wherein, the two-dimensional geographic coordinate data of the boundary geographic element points of the map tile is calculated according to the two-dimensional geographic coordinate data of the first geographic element point and the two-dimensional geographic coordinate data of the second geographic element point, and the map The elevation data of the boundary geographic element points of the tile is calculated according to the elevation data of the first geographic element point and the elevation data of the second geographic element point, the first geographic element point and the second geographic element point The element points are geographic element points that are respectively located on both sides of the boundary geographic element point and belong to the same geographic element as the boundary geographic element point.
  8. 根据权利要求7所述的装置,其特征在于,所述切分模块,具体用于:The device according to claim 7, wherein the segmentation module is specifically used for:
    针对所述三维矢量数据中的每个地理要素点,根据所述地理要素点的二维地理坐标数据以及所述每个地图瓦片覆盖的二维地理坐标范围,确定每个所述地理要素点所属的该比例尺级别下的地图瓦片;For each geographic element point in the three-dimensional vector data, determine each geographic element point according to the two-dimensional geographic coordinate data of the geographic element point and the two-dimensional geographic coordinate range covered by each map tile The map tile at the scale level to which it belongs;
    将每个所述地理要素点的二维地理坐标数据和高程数据保存至与该地理要素点所属的该比例尺级别下的地图瓦片对应的三维矢量子数据块中。The two-dimensional geographic coordinate data and elevation data of each of the geographic element points are stored in a three-dimensional vector sub-data block corresponding to the map tile at the scale level to which the geographic element point belongs.
  9. 根据权利要求7所述的装置,其特征在于,所述装置还包括:抽稀模块,The device according to claim 7, wherein the device further comprises: a thinning module,
    所述抽稀模块,用于:The thinning module is used for:
    确定每一比例尺级别下地图瓦片的分辨率;Determine the resolution of map tiles at each scale level;
    针对每一比例尺级别下的地图瓦片,基于该比例尺级别下的地图瓦片的分辨率,对每个地图瓦片的三维矢量子数据块进行抽稀处理,得到简化三维矢量子数据块。For map tiles at each scale level, based on the resolution of the map tiles at the scale level, thinning processing is performed on the 3D vector sub-data blocks of each map tile to obtain simplified 3-D vector sub-data blocks.
  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-6任一所述的方法步骤。The processor is configured to implement the method steps described in any one of claims 1-6 when executing the program stored in the memory.
  11. 一种运行指令的芯片,其特征在于,所述芯片包括存储器、处理器,所述存储器中存储代码和数据,所述存储器与所述处理器耦合,所述处理器运行所述存储器中的代码使得所述芯片用于执行权利要求1-6任一所述的方法步骤。A chip for running instructions, characterized in that the chip includes a memory and a processor, wherein code and data are stored in the memory, the memory is coupled to the processor, and the processor runs the code in the memory The chip is made to perform the method steps of any one of claims 1-6.
  12. 一种包含指令的程序产品,其特征在于,当所述程序产品在计算机上运行时,使得所述计算机执行权利要求1-6任一所述的方法步骤。A program product comprising instructions, characterized in that, when the program product is run on a computer, the computer is made to execute the method steps of any one of claims 1-6.
  13. 一种计算机程序,其特征在于,当所述计算机程序被处理器执行时,用于执行权利要求1-6任一所述的方法步骤。A computer program, characterized in that, when the computer program is executed by a processor, it is used to execute the method steps of any one of claims 1-6.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1-6任一所述的方法步骤。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, is used to implement any one of claims 1-6. method steps.
PCT/CN2021/117100 2020-10-29 2021-09-08 Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device WO2022089018A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011179019.9 2020-10-29
CN202011179019.9A CN112233240B (en) 2020-10-29 2020-10-29 Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022089018A1 true WO2022089018A1 (en) 2022-05-05

Family

ID=74110422

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/117100 WO2022089018A1 (en) 2020-10-29 2021-09-08 Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device

Country Status (2)

Country Link
CN (1) CN112233240B (en)
WO (1) WO2022089018A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114611036A (en) * 2022-05-10 2022-06-10 北京航空航天大学杭州创新研究院 Gis data processing and rendering method
CN115292305A (en) * 2022-10-09 2022-11-04 交通运输部科学研究院 Method and device for extracting and diluting ground objects
CN115952244A (en) * 2022-08-08 2023-04-11 中国城市规划设计研究院 Online loading method, device and medium for vector slicing service in drawing software
CN116310166A (en) * 2023-02-08 2023-06-23 长江信达软件技术(武汉)有限责任公司 Water conservancy map plotting method, device and storage device
CN116612207A (en) * 2023-04-12 2023-08-18 北京龙软科技股份有限公司 Method and system for annotation and dilution of space point elements of vector map of open-air mining area

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190894A (en) * 2018-11-15 2020-05-22 阿里巴巴集团控股有限公司 Map display method and device, related storage medium and client
CN112233240B (en) * 2020-10-29 2021-10-22 湖北亿咖通科技有限公司 Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment
CN112802143A (en) * 2021-01-26 2021-05-14 北京世纪高通科技有限公司 Spherical map drawing method, spherical map drawing device and storage medium
CN113689512A (en) * 2021-08-23 2021-11-23 北京搜狗科技发展有限公司 Element point coding method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050285876A1 (en) * 2004-06-29 2005-12-29 Piotr Balaga Composition of raster and vector graphics in geographical information systems
CN106384371A (en) * 2016-09-20 2017-02-08 国家基础地理信息中心 Map drawing method based on vector tile
CN111552893A (en) * 2020-04-26 2020-08-18 中国电建集团中南勘测设计研究院有限公司 Method, plug-in and system for realizing online loading of multi-source geographic information data in AutoCAD
CN112233240A (en) * 2020-10-29 2021-01-15 湖北亿咖通科技有限公司 Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101659779B1 (en) * 2016-02-23 2016-09-27 (주)이지스 Method for Constructing Three Dimentional Drawing of GIS
CN110059210A (en) * 2019-03-14 2019-07-26 中国人民解放军92859部队 A kind of map vector tile method for organizing of band topology
CN110347769B (en) * 2019-07-09 2021-03-30 东方网力科技股份有限公司 Processing method, device, equipment and storage medium for multi-level map tiles
CN111161428B (en) * 2019-12-13 2023-04-11 深圳大学 Three-dimensional map vector tile data generation method, storage medium and terminal
CN111090716B (en) * 2019-12-31 2023-05-05 方正国际软件(北京)有限公司 Vector tile data processing method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050285876A1 (en) * 2004-06-29 2005-12-29 Piotr Balaga Composition of raster and vector graphics in geographical information systems
CN106384371A (en) * 2016-09-20 2017-02-08 国家基础地理信息中心 Map drawing method based on vector tile
CN111552893A (en) * 2020-04-26 2020-08-18 中国电建集团中南勘测设计研究院有限公司 Method, plug-in and system for realizing online loading of multi-source geographic information data in AutoCAD
CN112233240A (en) * 2020-10-29 2021-01-15 湖北亿咖通科技有限公司 Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114611036A (en) * 2022-05-10 2022-06-10 北京航空航天大学杭州创新研究院 Gis data processing and rendering method
CN114611036B (en) * 2022-05-10 2022-10-21 北京航空航天大学杭州创新研究院 Gis data processing and rendering method
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
CN115292305A (en) * 2022-10-09 2022-11-04 交通运输部科学研究院 Method and device for extracting and diluting ground objects
CN116310166A (en) * 2023-02-08 2023-06-23 长江信达软件技术(武汉)有限责任公司 Water conservancy map plotting method, device and storage device
CN116310166B (en) * 2023-02-08 2024-03-15 长江信达软件技术(武汉)有限责任公司 Water conservancy map plotting method, device and storage device
CN116612207A (en) * 2023-04-12 2023-08-18 北京龙软科技股份有限公司 Method and system for annotation and dilution of space point elements of vector map of open-air mining area
CN116612207B (en) * 2023-04-12 2024-01-09 北京龙软科技股份有限公司 Method and system for annotation and dilution of space point elements of vector map of open-air mining area

Also Published As

Publication number Publication date
CN112233240B (en) 2021-10-22
CN112233240A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
WO2022089018A1 (en) Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device
CN111090716B (en) Vector tile data processing method, device, equipment and storage medium
CN110990516A (en) Map data processing method and device and server
CN107741964A (en) A kind of interest point indication method, device, equipment and medium
CN111967341A (en) Method for identifying contour of target object in satellite map
CN114627239B (en) Bounding box generation method, device, equipment and storage medium
CN117315406B (en) Sample image processing method, device and equipment
CN111026987A (en) Multi-layer polymerization method and system for displaying mass vehicle position distribution information
CN108280887B (en) Shadow map determination method and device
CN112395375B (en) Map presentation method, terminal and computer readable storage medium
CN117152333A (en) Building side texture construction method based on satellite image live-action three-dimensional model
CN116091709A (en) Three-dimensional reconstruction method and device for building, electronic equipment and storage medium
CN112669426B (en) Three-dimensional geographic information model rendering method and system based on generation countermeasure network
CN111870954B (en) Altitude map generation method, device, equipment and storage medium
CN111783180B (en) Drawing splitting method and related device
CN116994122A (en) Building pickup method, device, equipment and storage medium
US20230196674A1 (en) Method and apparatus for processing three dimentional graphic data, device, storage medium and product
CN113362421B (en) Drawing method and device of diversion area in map and electronic equipment
CN116561081B (en) Data processing method, device, electronic equipment, storage medium and program product
CN108062793A (en) Processing method, device, equipment and storage medium at the top of object based on elevation
CN116302579B (en) Space-time big data efficient loading rendering method and system for Web end
WO2022246659A1 (en) Map data loading method and apparatus, map data updating method and apparatus, device, and storage medium
CN116843534A (en) Method, equipment and storage medium for determining road red line offset value
CN116380045A (en) Stylized map generation method, device, equipment and medium
CN112161623A (en) Longitude and latitude positioning method and device

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: 21884748

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: 21884748

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21884748

Country of ref document: EP

Kind code of ref document: A1