Map data compression method, device, equipment and storage medium

By converting and compressing map data, it solves the storage and transmission difficulties caused by the large amount of map data, achieves the effect of saving storage resources and improving transmission efficiency, and avoids block edge and edge connection problems.

CN114663276BActive Publication Date: 2024-08-27BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210301938.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2024-08-27
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

The large amount of map data makes storage and transmission difficult. Block edge and edge problems may occur when storing and transmitting data in blocks.

Method used

By obtaining the actual coordinate values ​​of the map points, determining the conversion formula, converting the coordinate storage value into a value with a smaller number of bytes, and using the reference code relationship mapping table to compress the map data to reduce storage and transmission requirements.

Benefits of technology

Save storage resources, improve data transmission efficiency, avoid block edge and edge connection problems, while retaining data recoverability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114663276B
    Figure CN114663276B
Patent Text Reader

Abstract

The present disclosure provides a map data compression method, device, equipment and storage medium. The present disclosure relates to the field of computer technology, specifically to the field of data processing, and can be applied to map data compression scenarios. The specific implementation scheme is: obtaining the actual coordinate values ​​of each dimension of each map point within a preset map range; determining the conversion formula of the actual coordinate value of each dimension of the map point; based on the conversion formula of each actual coordinate value of the map point, calculating the coordinate storage value corresponding to each actual coordinate value, wherein the number of bytes of the coordinate storage value is less than the number of bytes of the corresponding actual coordinate value; determining the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table; using the reference code of the map point and the coordinate storage values ​​of each dimension as the compressed coordinate data of the map point. The above method can save storage resources and improve data transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to the field of data processing, and can be applied to scenarios of map data compression. Background Art

[0002] The amount of map data is large, which brings great difficulties to the storage and transmission of map data. In the related art, the map data within a map range is usually stored and transmitted in blocks, so as to reduce the space occupied by the map data on storage resources and improve the transmission efficiency of the map data. However, dividing the map data into blocks will cause problems with the edges and joints of the blocks on the map. Summary of the invention

[0003] The present disclosure provides a map data compression method, device, equipment and storage medium.

[0004] According to a first aspect of the present disclosure, a method for compressing map data is provided, comprising:

[0005] Get the actual coordinate values ​​of each dimension of each map point within the preset map range;

[0006] Determine the conversion formula for the actual coordinate value of each dimension of the map point;

[0007] Based on the conversion formula of each actual coordinate value of the map point, the coordinate storage value corresponding to each actual coordinate value is calculated, wherein the number of bytes of the coordinate storage value is less than the number of bytes of the corresponding actual coordinate value;

[0008] Determine the reference code corresponding to the operator of the conversion formula of the map point from the preset reference code relationship mapping table;

[0009] The reference code of the map point and the coordinate storage values ​​of each dimension are used as the compressed coordinate data of the map point.

[0010] According to a second aspect of the present disclosure, there is provided a map data compression device, comprising:

[0011] A coordinate acquisition module, used to obtain the actual coordinate values ​​of each dimension of each map point within a preset map range;

[0012] A coordinate conversion module is used to determine the conversion formula of the actual coordinate value of each dimension of the map point;

[0013] A storage value calculation module, used to calculate the coordinate storage value corresponding to each actual coordinate value based on a conversion formula of each actual coordinate value of the map point, wherein the number of bytes of the coordinate storage value is less than the number of bytes of the corresponding actual coordinate value;

[0014] A reference code determination module, used to determine the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table;

[0015] The compressed data determination module is used to store the reference code of the map point and the coordinates of each dimension as the compressed coordinate data of the map point.

[0016] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0017] at least one processor; and a memory communicatively coupled to the at least one processor;

[0018] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the map data compression method provided in the first aspect.

[0019] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the map data compression method provided by the first aspect above.

[0020] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the map data compression method provided in the first aspect is implemented.

[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description.

[0022] The beneficial effects of the technical solution provided by the present disclosure are:

[0023] In the technical solution disclosed in the present invention, the actual coordinate value of the map point is converted into a coordinate storage value with a smaller number of bytes, and the coordinate storage value can be stored and transmitted as compressed coordinate data of the map point, which can save storage resources and improve data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0025] Figure 1 A schematic diagram showing a flow chart of a map data compression method provided by an embodiment of the present disclosure;

[0026] Figure 2 A schematic diagram showing a flow chart of another map data compression method provided by an embodiment of the present disclosure;

[0027] Figure 3 A schematic diagram of a map data compression device provided by an embodiment of the present disclosure is shown;

[0028] Figure 4 A schematic block diagram of an example electronic device that can be used to implement the map data compression method provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0029] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0030] The amount of map data is large, which brings great difficulties to the storage and transmission of map data. In the related art, the map data within a map range is usually stored and transmitted in blocks, so as to reduce the space occupied by the map data on storage resources and improve the transmission efficiency of the map data. However, dividing the map data into blocks will cause problems with the edges and joints of the blocks on the map.

[0031] The map data compression method, device, equipment and storage medium provided in the embodiments of the present disclosure are intended to solve at least one of the above technical problems in the prior art.

[0032] Figure 1 A schematic diagram of a map data compression method provided by an embodiment of the present disclosure is shown. Figure 1 The method may mainly include the following steps:

[0033] S110: Acquire the actual coordinate values ​​of each dimension of each map point within a preset map range.

[0034] In the disclosed embodiment, the preset map range is a map area in the map whose data is expected to be compressed, for example, it can be a map range corresponding to a prefecture-level city. The disclosed embodiment presets a coordinate system, where the coordinates of the map point in the coordinate system are defined as actual coordinates. It can be understood that each map point in the map range has actual coordinate values ​​of at least two dimensions. For example, when the coordinate system has two coordinate axes, the map points have actual coordinate values ​​of two dimensions (X, Y); when the coordinate system has two coordinate axes, the map points have actual coordinate values ​​of three dimensions (X, Y, Z).

[0035] Optionally, the actual coordinate value of the map point includes the actual coordinate value of the first dimension, the actual coordinate value of the second dimension, and the actual coordinate value of the third dimension. The coordinate system preset in the embodiment of the present disclosure may be a global coordinate system having three coordinate axes, namely, an X-axis, a Y-axis, and a Z-axis. The actual coordinate value of the first dimension, the actual coordinate value of the second dimension, and the actual coordinate value of the third dimension are the coordinate values ​​on the X-axis, the Y-axis, and the Z-axis, respectively. The value range on the X-axis is (-40075452.73, 40075452.73), the value range on the Y-axis is (-19928981.88, 19928981.88), and the value range on the Z-axis is (-2000.0, 8845.5). It can be understood that the value range on each axis is the range of the actual coordinate value of the corresponding dimension.

[0036] S120: Determine a conversion formula for the actual coordinate value of each dimension of the map point.

[0037] The embodiment of the present disclosure configures a corresponding conversion formula for the actual coordinate value of each dimension of the map point, and based on the conversion formula, the actual coordinate value can be converted into a corresponding value that occupies less storage space. Here, the conversion formula for the actual coordinate value of each dimension is one of the following two:

[0038] Conversion formula 1: a = (AB) / C;

[0039] Conversion formula 2: a=(A+B) / C.

[0040] In the above conversion formula, A is the actual coordinate value of one dimension of the map point, B is the reference coordinate value corresponding to the preset map range, C is the precision corresponding to the actual coordinate value of the dimension, and a is the coordinate storage value corresponding to the actual coordinate value of the dimension. It should be noted that within the preset map range, the reference coordinate value corresponding to the actual coordinate value of the same dimension of each map point is the same, and the precision corresponding to the actual coordinate value of the same dimension of each map point is the same.

[0041] Optionally, for the actual coordinate value of a dimension of the map point, when it is determined that the value of (AB) does not exceed the coordinate value range corresponding to the actual coordinate value of the dimension, conversion formula 1 is determined as the conversion formula for the actual coordinate value of the dimension; when it is determined that the value of (AB) exceeds the coordinate value range corresponding to the actual coordinate value of the dimension, conversion formula 2 is determined as the conversion formula for the actual coordinate value of the dimension.

[0042] Optionally, the actual coordinate value of the map point includes the actual coordinate value of the first dimension, the actual coordinate value of the second dimension, and the actual coordinate value of the third dimension; the coordinate storage value of the map point includes the coordinate storage value of the first dimension, the coordinate storage value of the second dimension, and the coordinate storage value of the third dimension. As described above, the coordinate system preset in the embodiment of the present disclosure can be a global coordinate system, which has three coordinate axes. The coordinate value range corresponding to the actual coordinate value of the X-axis dimension is (-40075452.73, 40075452.73), the coordinate value range corresponding to the actual coordinate value of the Y-axis dimension is (-19928981.88, 19928981.88), and the coordinate value range corresponding to the actual coordinate value of the Z-axis dimension is (-2000.0, 8845.5).

[0043] Optionally, when the coordinate system has three coordinate axes, the map points have actual coordinate values ​​of three dimensions (X, Y, Z), and the conversion formula of the actual coordinate value of each dimension is as follows:

[0044] x=(X(+or-)X_offset) / x_scale;

[0045] y=(Y(+or-)Y_offset) / y_scale;

[0046] z=(Z(+or-)Z_offset) / z_scale.

[0047] X is the actual coordinate value of one dimension of the map point, X_offset is the reference coordinate value corresponding to the preset map range, x_scale is the accuracy corresponding to the actual coordinate value of the dimension, and x is the coordinate storage value corresponding to the actual coordinate value of the dimension. Here, x_scale is 0.01.

[0048] Y is the actual coordinate value of one dimension of the map point, Y_offset is the reference coordinate value corresponding to the preset map range, y_scale is the accuracy corresponding to the actual coordinate value of this dimension, and y is the coordinate storage value corresponding to the actual coordinate value of this dimension. Here, y_scale is 0.01.

[0049] Z is the actual coordinate value of one dimension of the map point, Z_offset is the reference coordinate value corresponding to the preset map range, z_scale is the accuracy corresponding to the actual coordinate value of this dimension, and z is the coordinate storage value corresponding to the actual coordinate value of this dimension. Here, z_scale is 0.1.

[0050] It should be noted here that in each conversion formula, "+" and "-" are used selectively. For the conversion formula x = (X (+or-) X_offset) / x_scale, "-" is used by default. If the actual coordinate value X exceeds the coordinate value range (-40075452.73, 40075452.73) at this time, "+" is used. For the conversion formula y = (Y (+or-) Y_offset) / y_scale, "-" is used by default. If the actual coordinate value Y exceeds the coordinate value range (-19928981.88, 19928981.88), "+" is used. For the conversion formula z = (Z (+or-) Z_offset) / z_scale, "-" is used by default. If the actual coordinate value Z exceeds the coordinate value range (-2000.0, 8845.5), "+" is used.

[0051] Optionally, the reference coordinate value is the actual coordinate value of the dimension corresponding to the center point of the preset map range. For example, the reference coordinate value can be the reference coordinate value of the center point of a prefecture-level city. It can be understood that the actual coordinate values ​​of the dimensions corresponding to the center point of the preset map range are (X_offset, Y_offset, Z_offset). Setting the actual coordinate value of the dimension corresponding to the center point of the map range to the reference coordinate value can ensure that the calculated coordinate storage value will not have a large extreme value.

[0052] S130: Calculate the coordinate storage value corresponding to each actual coordinate value based on the conversion formula of each actual coordinate value of the map point.

[0053] In the disclosed embodiment, the first coordinate storage value can be calculated based on the conversion formula of the actual coordinate value of the first dimension of the map point, the second coordinate storage value can be calculated based on the conversion formula of the actual coordinate value of the second dimension of the map point, and the third coordinate storage value can be calculated based on the conversion formula of the actual coordinate value of the third dimension of the map point. As mentioned above, when the coordinate system has three coordinate axes, the map point has three-dimensional actual coordinate values ​​(X, Y, Z), and the conversion formula of the actual coordinate value of each dimension is as follows:

[0054] x=(X(+or-)X_offset) / x_scale;

[0055] y=(Y(+or-)Y_offset) / y_scale;

[0056] z=(Z(+or-)Z_offset) / z_scale.

[0057] It can be understood that the actual coordinate values ​​(X, Y, Z) of the three dimensions are substituted into the above conversion formulas to obtain the coordinate storage values ​​(x, y, z) of the three dimensions. Here, the number of bytes of the coordinate storage value is smaller than the number of bytes of the corresponding actual coordinate value, so that the storage space required to store the actual coordinate value is smaller, storage resources are saved, and data transmission is convenient.

[0058] In the embodiment of the present disclosure, the actual coordinate value is a decimal, and the coordinate storage value obtained after the actual coordinate value is calculated by the conversion formula is an integer. The actual coordinate value is of double type and has 8 bytes, and the coordinate storage value is of uint32 type and has 4 bytes.

[0059] S140: Determine the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table.

[0060] In the disclosed embodiment, corresponding reference codes can be configured for operators of all conversion formulas corresponding to a map point, and corresponding operator combinations and reference codes can be stored in a reference code relationship mapping table. In this way, all conversion formulas corresponding to a map point can be inferred through the reference code.

[0061] It can be seen from the conversion formulas of the actual coordinate values ​​of the three dimensions disclosed above that the three conversion formulas all have the operator " / ", and the three may contain different operators "+" or "-". Therefore, the embodiment of the present disclosure can form a plus-minus sign set with the operators "+" and "-" of all conversion formulas of the map point, pre-configure the reference code corresponding to each plus-minus sign set, and save the corresponding plus-minus sign set and reference code in the reference code relationship mapping table. When determining the reference code corresponding to the operator of the conversion formula of the map point, the embodiment of the present disclosure can count the plus-minus sign sets in all conversion formulas of the map point, and determine the reference code corresponding to the plus-minus sign set of the map point from the preset reference code relationship mapping table.

[0062] The reference code relationship mapping table is shown in Table 1. The operator "+" and the operator "-" of the three conversion formulas of the map point can form 8 sets of plus and minus signs, and the 8 sets of plus and minus signs correspond to reference codes 1 to 8.

[0063] Plus and minus sign set +++ ++- +-- +-+ -++ -+- --+ --- Reference Code 1 2 3 4 5 6 7 8

[0064] Table 1

[0065] When the reference code corresponding to a certain map point is 1, it can be determined that the plus and minus sign set of the three conversion formulas of the map point is "+++", and further it can be determined that the three conversion formulas of the map point are:

[0066] x = (X + X_offset) / x_scale;

[0067] y = (Y + Y_offset) / y_scale;

[0068] z=(Z+Z_offset) / z_scale.

[0069] When the reference code corresponding to a certain map point is 2, it can be determined that the plus and minus sign set of the three conversion formulas of the map point is "++-", and further it can be determined that the three conversion formulas of the map point are:

[0070] x = (X + X_offset) / x_scale;

[0071] y = (Y + Y_offset) / y_scale;

[0072] z=(Z-Z_offset) / z_scale.

[0073] S150: The reference code of the map point and the coordinate storage values ​​of each dimension are used as the compressed coordinate data of the map point.

[0074] The map data compression method provided by the embodiment of the present disclosure converts the actual coordinate value of the map point into a coordinate storage value with a smaller number of bytes, and the coordinate storage value can be used as the coordinate data of the map point after compression for storage and transmission, which can save storage resources and improve data transmission efficiency. It can be understood that when there is a coordinate storage value of a map point, if the conversion formula of the map point is further determined, the actual coordinate value can be inferred from the coordinate storage value and the conversion formula to restore the usability of the map data.

[0075] Optionally, in the case where a map point has three-dimensional coordinate storage values, the reference code and the third coordinate storage value of the map point can be merged into a new third coordinate storage value, and then the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the map point are used as compressed coordinate data of the map point. The disclosed embodiment merges the reference code and the third coordinate storage value, does not need to store the reference code separately, simplifies the complexity of the compressed coordinate data of the map point, and facilitates the storage and transmission of coordinate data.

[0076] Optionally, the disclosed embodiment may store the reference code in the third coordinate storage value by borrowing, where the reference code is m, the third coordinate storage value is z, and the new third coordinate storage value may be obtained by the following formula: new third coordinate storage value z=z*10+m. In the new third coordinate storage value, the unit digit is the reference code m, and the number represented by the other digits except the unit digit is the original third coordinate storage value z.

[0077] Optionally, the map points in the map data include independent points and associated points. An independent point is a map point corresponding to an independent location in the real world, for example, an independent point can be a map point corresponding to a street lamp or a bus stop. An associated point belongs to a preset map point set, which is a point set of a line segment (such as a road) or a point set on a surface.

[0078] For step S150, when the map point is an independent point, the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the independent point are used as the compressed coordinate data of the independent point. When the map point is an associated point in a preset map point set, the difference between the coordinate storage values ​​of each dimension of adjacent associated points in the map point set is calculated; the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the first associated point in the map point set are used as the compressed coordinate data of the first associated point; the difference between the coordinate storage values ​​of each dimension corresponding to the (N+1)th associated point in the map point set is used as the compressed coordinate data of the (N+1)th associated point, where N is a positive integer.

[0079] Figure 2 A schematic diagram of a flow chart of another map data compression method provided by an embodiment of the present disclosure is shown. Figure 2 The method may mainly include the following steps:

[0080] S210: Obtain the actual coordinate values ​​of each dimension of each map point within a preset map range.

[0081] S220: Determine a conversion formula for the actual coordinate value of each dimension of the map point.

[0082] S230: Calculate the coordinate storage value corresponding to each actual coordinate value based on the conversion formula of each actual coordinate value of the map point.

[0083] S240: Determine the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table.

[0084] S250: Merge the reference code of the map point and the third coordinate storage value into a new third coordinate storage value.

[0085] The specific contents of step S210 to step S250 can refer to the above contents, which will not be repeated here. After step S250, at least one of step S260 and step S270 is executed.

[0086] S260: When the map point is an independent point, the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the independent point are used as compressed coordinate data of the independent point.

[0087] S270: When the map point is an associated point in a preset map point set, the difference between the coordinate storage values ​​of adjacent associated points in the map point set in each dimension is calculated.

[0088] As mentioned above, an independent point is a map point corresponding to an independent location in the real world. For example, an independent point may be a map point corresponding to a street lamp or a bus stop.

[0089] In this step, the calculation starts from the second associated point of the map point set, and the difference between the coordinate storage values ​​of each associated point and the previous associated point in each dimension is calculated. The associated points of the map point set have a first coordinate storage value, a second coordinate storage value, and a new third coordinate storage value. After that, the difference between the first coordinate storage value of the (N+1)th associated point and the Nth associated point can be calculated, and the difference can be used as the first dimension coordinate difference storage value of the (N+1)th associated point; the difference between the second coordinate storage value of the (N+1)th associated point and the Nth associated point is calculated, and the difference can be used as the second dimension coordinate difference storage value of the (N+1)th associated point; the difference between the third coordinate storage value of the (N+1)th associated point and the Nth associated point is calculated, and the difference can be used as the third dimension coordinate difference storage value of the (N+1)th associated point. Here, N is a positive integer.

[0090] S280: The first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the first associated point in the map point set are used as compressed coordinate data of the first associated point.

[0091] As mentioned above, the associated point belongs to a preset map point set, which is a point set of a line segment (such as a road) and a point set on a surface. Each map point set contains multiple associated points, and each associated point has three coordinate storage values, namely a first coordinate storage value, a second coordinate storage value and a third coordinate storage value. Here, for the first associated point in the map point set, its first coordinate storage value, the second coordinate storage value and the new third coordinate storage value can be directly used as compressed coordinate data. For other associated points in the map point set except the first associated point, their coordinate data can be further reduced. For example, the difference between the coordinate storage value of each associated point and the previous associated point can be calculated, as shown in step S290.

[0092] S290: Using the difference between the coordinate storage values ​​of each dimension corresponding to the (N+1)th associated point in the map point set as the compressed coordinate data of the (N+1)th associated point.

[0093] Specifically, step S290 can use the first dimension coordinate difference storage value, the second dimension coordinate difference storage value, and the third dimension coordinate difference storage value of the (N+1)th associated point in the map point set as the compressed coordinate data of the (N+1)th associated point. It can be understood that the amount of information of each coordinate difference storage value is smaller than the coordinate storage value of the opposite dimension, which achieves further compression of the coordinate data of the map point. Specifically, the coordinate storage value of the map point is of uint32 type and has 4 bytes, and the coordinate difference storage value corresponding to the coordinate storage value of the map point is of uint16 type and has 2 bytes.

[0094] Optionally, the disclosed embodiment may perform digit splitting on the first dimension coordinate difference storage value and the second dimension coordinate difference storage value, and merge a portion of the digits obtained after the splitting into the third dimension coordinate difference storage value, thereby reducing the number of bytes of the remaining digits of the first dimension coordinate difference storage value and the second dimension coordinate difference storage value. Specifically, the first dimension coordinate difference storage value of the (N+1)th associated point in the map point set is digit split, and the first front row digit and the first rear row digit of the first dimension coordinate difference storage are stored. The second dimension coordinate difference storage value of the (N+1)th associated point in the map point set is digit split, and the second front row digit and the second rear row digit of the second dimension coordinate difference storage are stored. The first rear row digit, the second rear row digit and the third dimension coordinate difference storage value of the (N+1)th associated point in the map point set are merged into a new third dimension coordinate difference storage value. The first front row digit, the second front row digit and the new third dimension coordinate difference storage value of the (N+1)th associated point in the map point set are used as the compressed coordinate data of the (N+1)th associated point.

[0095] The following describes a specific process of digit splitting of the first dimension coordinate difference storage value and the second dimension coordinate difference storage value, and merging a portion of the digits obtained after the splitting into the third dimension coordinate difference storage value. In the following content, function floor(n) refers to the maximum integer not greater than n, function abs(n) means taking the absolute value of n, and the first dimension coordinate difference storage value, the second dimension coordinate difference storage value, and the third dimension coordinate difference storage value are dx, dy, and dz, respectively.

[0096] For the first-dimensional coordinate difference storage value dx, it can be split into the first front-row digit dx1 and the first rear-row digit dx2, where dx1=floor(abs(dx) / 100), dx2=abs(dx)%100, for example: dx=345678, then dx1=3456, dx2=78. Here, the first front-row digit dx1 of the associated point can be used as a compressed coordinate data of the associated point. It should be noted here that if the first-dimensional coordinate difference storage value dx is less than zero, the first-dimensional coordinate difference storage value dx can be converted into a positive integer, and then the positive integer is used as a compressed coordinate data of the associated point. Specifically, the positive integer is: 10000+abs(dx1).

[0097] The second-dimensional coordinate difference storage value dy can be split into the second front-row digit dy1 and the second rear-row digit dy2, where dy1=floor(abs(dy) / 100), dy2=abs(dy)%100, for example: dy=345678, then dy1=3456, dy2=78. It should be noted here that if the second-dimensional coordinate difference storage value dy is less than zero, the second-dimensional coordinate difference storage value dy can be converted into a positive integer, and then the positive integer is used as a compressed coordinate data of the associated point. Specifically, the positive integer is: 10000+abs(dy1).

[0098] After obtaining the first rear-row digit dx2 and the second rear-row digit dy2, the first rear-row digit dx2, the second rear-row digit dy2 and the third-dimensional coordinate difference storage value dz can be merged into a new third-dimensional coordinate difference storage value. Here, if the third-dimensional coordinate difference storage value dz is greater than 0, the first rear-row digit dx2, the second rear-row digit dy2 and the third-dimensional coordinate difference storage value dz can be directly merged into a new third-dimensional coordinate difference storage value. The new third-dimensional coordinate difference storage value is: dx2*1000000+dy2*10000+dz.

[0099] If the third-dimensional coordinate difference storage value dz is less than 0, the third-dimensional coordinate difference storage value dz can be directly converted to a positive number, and then the first rear-row digit dx2, the second rear-row digit dy2 and the third-dimensional coordinate difference storage value converted to a positive number are merged into a new third-dimensional coordinate difference storage value. Here, the third-dimensional coordinate difference storage value converted to a positive number is: 1000000000+abs(dz); the new third-dimensional coordinate difference storage value is: dx2*1000000+dy2*10000+positive third-dimensional coordinate difference storage value.

[0100] There may be singular points in the map point set, where the difference between the coordinate storage value of at least one dimension of the singular point and the coordinate storage value corresponding to the previous associated point is greater than the preset difference. For example, the difference between the coordinate storage value of each dimension of an associated point and the coordinate storage value corresponding to the previous associated point is the first dimension coordinate difference storage value dx, the second dimension coordinate difference storage value dy, and the third dimension coordinate difference storage value dz. If fabs(dx)>999999, or fabs(dy)>999999, or fabs(dz)>9999, then the associated point is determined to be a singular point. When determining that an associated point in the map point set is a singular point, the coordinate storage values ​​of each dimension of the singular point can be stored in the singular point coordinate set. At the same time, the first dimension coordinate difference storage value dx and the second dimension coordinate difference storage value dy of the singular point are recorded as preset fixed values, thereby indicating that the point is a singular point. Here, the third-dimensional coordinate difference storage value is of uint32 type and has 4 bytes, and the maximum value of the third-dimensional coordinate difference storage value is 4294967295. In the disclosed embodiment, the first-dimensional coordinate difference storage value dx and the second-dimensional coordinate difference storage value dy of the singular point can be recorded as 0, and the third-dimensional coordinate difference storage value dz can be recorded as 4294967296, thereby indicating that the point is a singular point.

[0101] It can be understood that based on the compressed coordinate data of the associated points, the corresponding actual coordinate values ​​can be inferred through corresponding conversion methods to restore the usability of the map data.

[0102] Based on the same principle as the above-mentioned map data compression method, the embodiment of the present disclosure provides a map data compression device. Figure 3 FIG. 1 is a schematic diagram showing a map data compression device provided by an embodiment of the present disclosure. Figure 3 As shown, the map data compression device 300 includes a coordinate acquisition module 310 , a coordinate conversion module 320 , a storage value calculation module 330 , a reference code determination module 340 and a compression data determination module 350 .

[0103] The coordinate acquisition module 310 is used to obtain the actual coordinate values ​​of each dimension of each map point within a preset map range.

[0104] The coordinate conversion module 320 is used to determine the conversion formula of the actual coordinate value of each dimension of the map point;

[0105] The storage value calculation module 330 is used to calculate the coordinate storage value corresponding to each actual coordinate value based on the conversion formula of each actual coordinate value of the map point, wherein the number of bytes of the coordinate storage value is less than the number of bytes of the corresponding actual coordinate value.

[0106] The reference code determination module 340 is used to determine the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table.

[0107] The compressed data determination module 350 is used to store the reference code of the map point and the coordinate storage values ​​of each dimension as the compressed coordinate data of the map point.

[0108] The map data compression device provided by the embodiment of the present disclosure converts the actual coordinate value of the map point into a coordinate storage value with a smaller number of bytes, and can store and transmit the coordinate storage value as the compressed coordinate data of the map point, which can save storage resources and improve data transmission efficiency. It can be understood that when there is a coordinate storage value of a map point, if the conversion formula of the map point is further determined, the actual coordinate value can be inferred from the coordinate storage value and the conversion formula to restore the usability of the map data.

[0109] In the embodiment of the present disclosure, the conversion formula of the actual coordinate value of each dimension is one of the following two: Conversion formula 1: a=(AB) / C; Conversion formula 2: a=(A+B) / C;

[0110] A is the actual coordinate value of one dimension of the map point, B is the reference coordinate value corresponding to the preset map range, C is the accuracy corresponding to the actual coordinate value of the dimension, and a is the coordinate storage value corresponding to the actual coordinate value of the dimension.

[0111] In the embodiment of the present disclosure, the reference coordinate value is the actual coordinate value of the corresponding dimension of the center point of the preset map range.

[0112] In the embodiment of the present disclosure, the coordinate conversion module 320 is specifically used to determine the conversion formula of the actual coordinate value of each dimension of the map point:

[0113] For the actual coordinate value of one dimension of the map point, when it is determined that the value of (AB) does not exceed the coordinate value range corresponding to the actual coordinate value of the dimension, the conversion formula 1 is determined as the conversion formula of the actual coordinate value of the dimension;

[0114] When it is determined that the value of (AB) exceeds the coordinate value range corresponding to the actual coordinate value of the dimension, the conversion formula 2 is determined as the conversion formula of the actual coordinate value of the dimension.

[0115] In the embodiment of the present disclosure, when the reference code determination module 340 is used to determine the reference code corresponding to the operator of the conversion formula of the map point from the preset reference code relationship mapping table, it is specifically used to:

[0116] Count the plus and minus signs in all conversion formulas of map points;

[0117] From a preset reference code relationship mapping table, determine the reference code corresponding to the plus and minus sign set of the map point.

[0118] In the embodiment of the present disclosure, the actual coordinate value of the map point includes the actual coordinate value of the first dimension, the actual coordinate value of the second dimension, and the actual coordinate value of the third dimension; the coordinate storage value of the map point includes the coordinate storage value of the first dimension, the coordinate storage value of the second dimension, and the coordinate storage value of the third dimension;

[0119] The storage value calculation module 330 is used to calculate the coordinate storage value corresponding to each actual coordinate value based on the conversion formula of each actual coordinate value of the map point, specifically for:

[0120] Calculate the first coordinate storage value based on the conversion formula of the actual coordinate value of the first dimension of the map point;

[0121] Calculate the second coordinate storage value based on the conversion formula of the second dimension actual coordinate value of the map point;

[0122] The third coordinate storage value is calculated based on the conversion formula of the actual coordinate value of the third dimension of the map point.

[0123] In the embodiment of the present disclosure, when the compressed data determination module 350 is used to store the reference code of the map point and the coordinate storage values ​​of each dimension as the compressed coordinate data of the map point, it is specifically used to:

[0124] The reference code of the map point and the third coordinate storage value are merged into a new third coordinate storage value;

[0125] The first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the map point are used as the compressed coordinate data of the map point.

[0126] In the embodiment of the present disclosure, when the compressed data determination module 350 is used to use the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the map point as the compressed coordinate data of the map point, it is specifically used to:

[0127] When the map point is an independent point, the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the independent point are used as compressed coordinate data of the independent point.

[0128] In the embodiment of the present disclosure, when the compressed data determination module 350 is used to use the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the map point as the compressed coordinate data of the map point, it is specifically used to:

[0129] When the map point is an associated point in a preset map point set, the difference between the coordinate storage values ​​of adjacent associated points in the map point set in each dimension is calculated;

[0130] The first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the first associated point in the map point set are used as the compressed coordinate data of the first associated point;

[0131] The difference between the coordinate storage values ​​of each dimension corresponding to the (N+1)th associated point in the map point set is used as the compressed coordinate data of the (N+1)th associated point, where N is a positive integer.

[0132] In the embodiment of the present disclosure, when the compressed data determination module 350 is used to calculate the difference between the coordinate storage values ​​of each dimension of adjacent associated points in the map point set, it is specifically used to:

[0133] Calculate the difference between the first coordinate storage values ​​of the (N+1)th associated point and the Nth associated point, and use the difference as the first dimension coordinate difference storage value of the (N+1)th associated point;

[0134] Calculate the difference between the second coordinate storage values ​​of the (N+1)th associated point and the Nth associated point, and use the difference as the second dimension coordinate difference storage value of the (N+1)th associated point;

[0135] The difference between the third coordinate storage values ​​of the (N+1)th associated point and the Nth associated point is calculated, and the difference is used as the third dimension coordinate difference storage value of the (N+1)th associated point.

[0136] In the embodiment of the present disclosure, when the compressed data determination module 350 is used to use the difference between the coordinate storage values ​​of each dimension corresponding to the (N+1)th associated point in the map point set as the compressed coordinate data of the (N+1)th associated point, it is specifically used to:

[0137] The first dimension coordinate difference storage value, the second dimension coordinate difference storage value and the third dimension coordinate difference storage value of the (N+1)th associated point in the map point set are used as the compressed coordinate data of the (N+1)th associated point.

[0138] In the embodiment of the present disclosure, when the compressed data determination module 350 is used to use the first dimension coordinate difference storage value, the second dimension coordinate difference storage value, and the third dimension coordinate difference storage value of the (N+1)th associated point in the map point set as the compressed coordinate data of the (N+1)th associated point, it is specifically used to:

[0139] Digit-splitting the first dimension coordinate difference storage value of the (N+1)th associated point in the map point set, the first front row digit and the first back row digit of the first dimension coordinate difference storage;

[0140] Digit-splitting the stored value of the second dimension coordinate difference of the (N+1)th associated point in the map point set, the second front row digits and the second back row digits of the second dimension coordinate difference storage;

[0141] The first rear digit, the second rear digit and the third dimension coordinate difference storage value of the (N+1)th associated point in the map point set are merged into a new third dimension coordinate difference storage value;

[0142] The first front digit, the second front digit and the new third dimension coordinate difference storage value of the (N+1)th associated point in the map point set are used as the compressed coordinate data of the (N+1)th associated point.

[0143] It is to be understood that the above-mentioned modules of the map data compression device in the embodiment of the present disclosure have the function of implementing the corresponding steps of the above-mentioned map data compression method. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions. The above-mentioned modules can be software and / or hardware, and the above-mentioned modules can be implemented separately or integrated with multiple modules. For the functional description of each module of the above-mentioned map data compression device, please refer to the corresponding description of the above-mentioned map data compression method, which will not be repeated here.

[0144] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0145] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0146] Figure 4 A schematic block diagram of an example electronic device that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0147] like Figure 4As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0148] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0149] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as a compression method for map data. For example, in some embodiments, the compression method for map data may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the compression method for map data described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the compression method for map data in any other appropriate manner (e.g., by means of firmware).

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

[0151] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0152] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

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

[0154] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0155] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0156] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0157] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for compressing map data, comprising: Get the actual coordinate values ​​of each dimension of each map point within the preset map range; Determine a conversion formula for the actual coordinate value of each dimension of the map point; Based on the conversion formula of each actual coordinate value of the map point, calculate the coordinate storage value corresponding to each actual coordinate value, wherein the number of bytes of the coordinate storage value is less than the number of bytes of the corresponding actual coordinate value; Determine the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table; The reference code of the map point and the coordinate storage values ​​of each dimension are used as compressed coordinate data of the map point.

2. According to the method of claim 1, the conversion formula of the actual coordinate value of each dimension is one of the following two: Conversion formula 1: a = (AB) / C; Conversion formula 2: a = (A + B) / C; A is the actual coordinate value of one dimension of the map point, B is the reference coordinate value corresponding to the preset map range, C is the accuracy corresponding to the actual coordinate value of the dimension, and a is the coordinate storage value corresponding to the actual coordinate value of the dimension.

3. According to the method of claim 2, the reference coordinate value is the actual coordinate value of the dimension corresponding to the center point of the preset map range.

4. The method according to claim 2, wherein: The conversion formula for determining the actual coordinate value of each dimension of the map point includes: For the actual coordinate value of one dimension of the map point, when it is determined that the value of (AB) does not exceed the coordinate value range corresponding to the actual coordinate value of the dimension, the conversion formula 1 is determined as the conversion formula of the actual coordinate value of the dimension; When it is determined that the value of (AB) exceeds the coordinate value range corresponding to the actual coordinate value of the dimension, the conversion formula 2 is determined as the conversion formula of the actual coordinate value of the dimension.

5. The method according to claim 1, wherein: The step of determining the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table includes: Counting the sets of plus and minus signs in all the conversion formulas of the map points; The reference code corresponding to the plus and minus sign set of the map point is determined from a preset reference code relationship mapping table.

6. The method according to claim 1, wherein: The actual coordinate value of the map point includes an actual coordinate value of a first dimension, an actual coordinate value of a second dimension, and an actual coordinate value of a third dimension; the coordinate storage value of the map point includes a first coordinate storage value, a second coordinate storage value, and a third coordinate storage value; The calculating the coordinate storage value corresponding to each actual coordinate value based on the conversion formula of each actual coordinate value of the map point includes: Calculate the first coordinate storage value based on a conversion formula of the actual coordinate value of the first dimension of the map point; Calculate the second coordinate storage value based on a conversion formula of the second dimension actual coordinate value of the map point; The third coordinate storage value is calculated based on a conversion formula of the third dimension actual coordinate value of the map point.

7. The method according to claim 6, wherein: The storing the reference code of the map point and the coordinate values ​​of each dimension as the compressed coordinate data of the map point includes: Merging the reference code of the map point and the third coordinate storage value into a new third coordinate storage value; The first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the map point are used as compressed coordinate data of the map point.

8. The method according to claim 7, wherein: The step of using the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the map point as compressed coordinate data of the map point includes: When the map point is an independent point, the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the independent point are used as compressed coordinate data of the independent point.

9. The method according to claim 7, wherein: The step of using the first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the map point as compressed coordinate data of the map point includes: When the map point is an associated point in a preset map point set, calculating the difference between the coordinate storage values ​​of each dimension of adjacent associated points in the map point set; The first coordinate storage value, the second coordinate storage value and the new third coordinate storage value of the first associated point in the map point set are used as the compressed coordinate data of the first associated point; The difference between the coordinate storage values ​​of each dimension corresponding to the (N+1)th associated point in the map point set is used as the compressed coordinate data of the (N+1)th associated point, where N is a positive integer.

10. The method according to claim 7, wherein: The calculating the difference between the coordinate storage values ​​of each dimension of adjacent associated points in the map point set includes: Calculate the difference between the first coordinate storage values ​​of the (N+1)th associated point and the Nth associated point, and use the difference as the first dimension coordinate difference storage value of the (N+1)th associated point; Calculate the difference between the second coordinate storage values ​​of the (N+1)th associated point and the Nth associated point, and use the difference as the second dimension coordinate difference storage value of the (N+1)th associated point; The difference between the third coordinate storage values ​​of the (N+1)th associated point and the Nth associated point is calculated, and the difference is used as the third dimension coordinate difference storage value of the (N+1)th associated point.

11. The method according to claim 10, wherein: The step of using the difference between the coordinate storage values ​​of each dimension corresponding to the (N+1)th associated point in the map point set as the compressed coordinate data of the (N+1)th associated point includes: The first dimension coordinate difference storage value, the second dimension coordinate difference storage value and the third dimension coordinate difference storage value of the (N+1)th associated point in the map point set are used as compressed coordinate data of the (N+1)th associated point.

12. The method according to claim 11, wherein: The method of using the first dimension coordinate difference storage value, the second dimension coordinate difference storage value, and the third dimension coordinate difference storage value of the (N+1)th associated point in the map point set as the compressed coordinate data of the (N+1)th associated point includes: Taking the absolute value of the first dimension coordinate difference storage value of the (N+1)th associated point in the map point set to obtain the absolute value of the first dimension coordinate difference storage value, calculating the ratio between the absolute value of the first dimension coordinate difference storage value and a set value, and rounding the ratio result to obtain a first front row digit; calculating the remainder between the absolute value of the first dimension coordinate difference storage value and the set value to obtain a first back row digit; Taking the absolute value of the second dimension coordinate difference storage value of the (N+1)th associated point in the map point set to obtain the absolute value of the second dimension coordinate difference storage value, calculating the ratio between the absolute value of the second dimension coordinate difference storage value and the set value, and rounding the ratio result to obtain the second front row digit; calculating the remainder between the absolute value of the second dimension coordinate difference storage value and the set value to obtain the second back row digit; Merge the first rear-row digit, the second rear-row digit and the third-dimensional coordinate difference storage value of the (N+1)th associated point in the map point set into a new third-dimensional coordinate difference storage value; The first front row digits, the second front row digits and the new third dimension coordinate difference storage value of the (N+1)th associated point in the map point set are used as the compressed coordinate data of the (N+1)th associated point.

13. A map data compression device, comprising: A coordinate acquisition module, used to obtain the actual coordinate values ​​of each dimension of each map point within a preset map range; A coordinate conversion module, used to determine a conversion formula for the actual coordinate value of each dimension of the map point; A storage value calculation module, used for calculating the coordinate storage value corresponding to each actual coordinate value based on the conversion formula of each actual coordinate value of the map point, wherein the number of bytes of the coordinate storage value is less than the number of bytes of the corresponding actual coordinate value; A reference code determination module, used to determine the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table; The compressed data determination module is used to use the reference code of the map point and the coordinate storage values ​​of each dimension as the compressed coordinate data of the map point.

14. The device according to claim 13, wherein the conversion formula of the actual coordinate value of each dimension is one of the following two: Conversion formula 1: a = (AB) / C; Conversion formula 2: a = (A + B) / C; A is the actual coordinate value of one dimension of the map point, B is the reference coordinate value corresponding to the preset map range, C is the accuracy corresponding to the actual coordinate value of the dimension, and a is the coordinate storage value corresponding to the actual coordinate value of the dimension.

15. According to the device of claim 14, the reference coordinate value is the actual coordinate value of the dimension corresponding to the center point of the preset map range.

16. The device according to claim 14, wherein: The coordinate conversion module, when used to determine the conversion formula of the actual coordinate value of each dimension of the map point, is specifically used to: For the actual coordinate value of one dimension of the map point, when it is determined that the value of (AB) does not exceed the coordinate value range corresponding to the actual coordinate value of the dimension, the conversion formula 1 is determined as the conversion formula of the actual coordinate value of the dimension; When it is determined that the value of (AB) exceeds the coordinate value range corresponding to the actual coordinate value of the dimension, the conversion formula 2 is determined as the conversion formula of the actual coordinate value of the dimension.

17. The device according to claim 13, wherein: The reference code determination module, when used to determine the reference code corresponding to the operator of the conversion formula of the map point from a preset reference code relationship mapping table, is specifically used to: Counting the sets of plus and minus signs in all the conversion formulas of the map points; The reference code corresponding to the plus and minus sign set of the map point is determined from a preset reference code relationship mapping table.

18. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 12.

19. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 12.

20. A computer program product, comprising a computer program, which, when executed by a processor, implements the method of any one of claims 1 to 12.