A method for spatial coordinate nonlinear bias and related equipment

By constructing a combined algorithm of offset trigonometric functions and multiple combination functions, nonlinear offset of geographic coordinate data is performed, which solves the problems of large coordinate transformation errors and insufficient protection in existing technologies, and achieves high security and flexible encryption effect.

CN122174255APending Publication Date: 2026-06-09湖南省第三测绘院

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
湖南省第三测绘院
Filing Date
2026-03-09
Publication Date
2026-06-09

Smart Images

  • Figure CN122174255A_ABST
    Figure CN122174255A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of geographic data encryption, and provides a spatial coordinate nonlinear offset method and related equipment, which comprises the following steps: obtaining target geographic coordinate data; constructing an offset trigonometric function for the target geographic coordinate data; setting an offset change constraint, and constructing a periodic change formula and an amplitude offset formula based on the offset change constraint; constructing a multiple combination offset function and a smoothness control function, and combining the offset trigonometric function, the periodic change formula, the amplitude offset formula, the multiple combination offset function and the smoothness control function to obtain a final offset amount algorithm; and offsetting the target geographic coordinate data based on the final offset amount algorithm to obtain offset geographic coordinate data. The method can meet the strict protection requirements of different users on real coordinates of geographic information data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of geographic data encryption technology, and in particular to a method and related equipment for nonlinear offset of spatial coordinates. Background Technology

[0002] Existing spatial coordinate offset algorithms mainly consist of non-public geographic information confidentiality processing algorithms. A small number of researchers have studied coordinate processing methods for electronic maps and 3D models, primarily for the spatial location protection of local geographic information data.

[0003] Current coordinate transformation algorithms convert coordinates between different coordinate systems, resulting in significant discrepancies between the offset and original coordinates, ranging from tens to hundreds of meters. While publicly available transformation formulas exist online, they offer insufficient protection for large quantities of real-world coordinates. Furthermore, the algorithms cannot directly modify parameters to change the offset amount, lacking flexible control over the offset period.

[0004] This shows that current nonlinear spatial coordinate offset methods have the problem that different users cannot independently and rigorously protect the true coordinates of geographic information data. Summary of the Invention

[0005] This application provides a spatial coordinate nonlinear offset method and related equipment, which can solve the problem that different users have difficulty in independently and rigorously protecting the true coordinates of geographic information data.

[0006] In a first aspect, embodiments of this application provide a spatial coordinate nonlinear offset method, which includes: Obtain the target geographic coordinate data; Construct offset trigonometric functions for the target geographic coordinate data; Set offset variation constraints, and construct period variation formulas and amplitude offset formulas based on offset variation constraints; A multi-combination offset function and a smoothness control function are constructed, and the final offset algorithm is obtained based on the offset trigonometric function, the period variation formula, the amplitude offset formula, the multi-combination offset function, and the smoothness control function. The target geographic coordinate data is offset based on the final offset algorithm to obtain the offset geographic coordinate data.

[0007] Optionally, the offset trigonometric function is:

[0008]

[0009]

[0010] in, Indicates the overall offset. This indicates the offset along the horizontal axis. This indicates the offset along the vertical axis. This represents the x-axis data in the target geographic coordinate data. This represents the ordinate data in the target geographic coordinate data. , , , , , , , , , , , These represent the offsets in the x and y directions as a function of the period and phase control coefficients of x and y, respectively. , , , All are maximum offset control coefficients:

[0011]

[0012]

[0013] in, This indicates the upper limit of the offset in the horizontal direction. This indicates the upper limit of the offset in the vertical direction.

[0014] Optionally, the offset variation constraint is:

[0015]

[0016] in, This represents the maximum range of change in offset within a monotonic interval. Indicates the maximum offset. Indicates the minimum offset. This represents the periodic control coefficient.

[0017] Optionally, the formula for periodic variation is:

[0018]

[0019] in, This indicates the offset along the horizontal axis. This represents the x-axis data in the target geographic coordinate data. This indicates the offset along the vertical axis. This represents the vertical coordinate data in the target geographic coordinate data; The formula for amplitude offset is:

[0020]

[0021] in, This represents the amplitude coefficient.

[0022] Optionally, construct multiple combined offset functions and smoothness control functions, including: Construct exponential and sigmoid functions, and combine them with offset trigonometric functions to obtain a multi-combined offset function; Construct a smoothness control function based on the properties of trigonometric functions.

[0023] Optional, the smoothness control function is:

[0024]

[0025] in, This indicates the offset along the horizontal axis. Indicates the amplitude coefficient. This represents the x-axis data in the target geographic coordinate data. This represents the ordinate data in the target geographic coordinate data. This represents a constant that satisfies the smoothness condition when the control function undergoes periodic changes.

[0026] Optionally, the target geographic coordinate data is offset based on the final offset algorithm to obtain the offset geographic coordinate data, including: The final horizontal and vertical offsets of the target geographic coordinate data are calculated based on the final offset algorithm. The offset geographic coordinate data is obtained by offsetting the target geographic coordinate data based on the final horizontal axis offset and the final vertical axis offset.

[0027] Secondly, embodiments of this application provide a spatial coordinate nonlinear offset device, comprising: The acquisition module is used to acquire the target geographic coordinate data; The building block is used to construct offset trigonometric functions for target geographic coordinate data; The setting module is used to set offset variation constraints and construct period variation formulas and amplitude offset formulas based on the offset variation constraints; The combination module is used to construct multiple combined offset functions and smoothness control functions, and obtain the final offset algorithm based on the combination of offset trigonometric functions, period variation formula, amplitude offset formula, multiple combined offset functions and smoothness control functions; The offset module is used to offset the target geographic coordinate data based on the final offset algorithm to obtain the offset geographic coordinate data.

[0028] Thirdly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the aforementioned nonlinear spatial coordinate offset method.

[0029] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned nonlinear spatial coordinate offset method.

[0030] The above-mentioned solution in this application has the following beneficial effects: In the embodiments of this application, target geographic coordinate data is acquired, then an offset trigonometric function is constructed for the target geographic coordinate data, offset variation constraints are set, and periodic variation formulas and amplitude offset formulas are constructed based on the offset variation constraints. Then, multiple combined offset functions and smoothness control functions are constructed, and the final offset algorithm is obtained by combining the offset trigonometric function, periodic variation formula, amplitude offset formula, multiple combined offset function, and smoothness control function. Finally, the target geographic coordinate data is offset based on the final offset algorithm to obtain the offset geographic coordinate data. The encryption of geographic coordinates based on offset variation constraints can constrain the value of the offset, reducing the error between the offset geographic coordinate data and the original geographic coordinate data. The final offset algorithm is obtained by combining multiple formulas and functions, avoiding the use of a single formula to encrypt geographic coordinate data, thus improving encryption security. Furthermore, the combination method and parameters in the formulas can be modified according to different user needs to meet the protection requirements of different users, effectively improving the flexibility of encryption.

[0031] Other beneficial effects of this application will be described in detail in the following detailed description section. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 A flowchart of a spatial coordinate nonlinear offset method provided in an embodiment of this application; Figure 2 This is a schematic diagram illustrating the variation of x-direction offset with longitude according to an embodiment of this application; Figure 3 A schematic diagram illustrating the variation of offset as a function of latitude for a multiple combined offset function provided in an embodiment of this application; Figure 4 A schematic diagram showing the variation of x-direction offset with longitude obtained by the final offset algorithm provided in an embodiment of this application; Figure 5 A schematic diagram comparing the offset direction before and after optimization of the period coefficient provided in an embodiment of this application; Figure 6 This is a schematic diagram illustrating the effect before and after offset according to an embodiment of this application; Figure 7 This is a schematic diagram of the offset direction and offset amount provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of a spatial coordinate nonlinear offset device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation

[0034] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0035] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0036] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0037] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0038] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0039] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0040] To address the challenge of ensuring robust and independent protection of the true coordinates of geographic information data for different users, this application provides a nonlinear spatial coordinate offset method. This method acquires target geographic coordinate data, constructs an offset trigonometric function for the target geographic coordinate data, sets offset variation constraints, and builds periodic variation formulas and amplitude offset formulas based on these constraints. It then constructs multiple combined offset functions and a smoothness control function, and finally obtains the final offset algorithm based on the combination of the offset trigonometric function, periodic variation formula, amplitude offset formula, multiple combined offset function, and smoothness control function. Finally, the target geographic coordinate data is offset using the final offset algorithm to obtain the offset geographic coordinate data. The method of encrypting the geographic coordinates based on offset variation constraints constrains the offset value, reducing the error between the offset geographic coordinate data and the original geographic coordinate data. The final offset algorithm is obtained through a combination of multiple formulas and functions, avoiding the use of a single formula for encrypting geographic coordinate data, thus improving encryption security. Furthermore, the combination method and parameters in the formulas can be modified according to different user needs, meeting the protection requirements of different users and effectively improving the flexibility of encryption.

[0041] The following is an exemplary description of the spatial coordinate nonlinear offset method provided in this application.

[0042] like Figure 1 As shown, the spatial coordinate nonlinear offset method provided in this application includes the following steps: Step 11: Obtain the target geographic coordinate data.

[0043] The aforementioned target geographic coordinate data can be Geographic Information System (GIS) data for a certain region, including the horizontal and vertical coordinate data of each location in the region. In the Earth coordinate system, the horizontal coordinate data is the longitude coordinate and the vertical coordinate data is the latitude coordinate.

[0044] In some embodiments of this application, target geographic coordinate data can be obtained through user uploads, local reading, or other methods.

[0045] Step 12: Construct offset trigonometric functions for the target geographic coordinate data.

[0046] The aforementioned offset trigonometric functions are used to describe the deviation calculated using trigonometric functions.

[0047] Specifically, the offset trigonometric function is:

[0048]

[0049]

[0050] in, Indicates the overall offset. This indicates the offset along the horizontal axis. This indicates the offset along the vertical axis. This represents the x-axis data in the target geographic coordinate data. This represents the ordinate data in the target geographic coordinate data. , , , , , , , , , , , These represent the offsets in the x and y directions as a function of the period and phase control coefficients of x and y, respectively. , , , All are maximum offset control coefficients:

[0051]

[0052]

[0053] in, This indicates the upper limit of the offset in the horizontal direction. This indicates the upper limit of the offset in the vertical direction.

[0054] For example, the primary form of the offset function can be simulated as dx = A*sin(a*x + b*y + c). A controls the overall offset distance, and a controls the period of the offset variation with the x-coordinate. The offset remains inconsistent across different longitudes and latitudes, and the periods of variation with x and y differ. Adding an irregular constant c increases the complexity of the function. In the case of a single latitude, the initially fitted x-direction offset varies with longitude as follows: Figure 2 The figure shown is a single sine wave. Figure 2 The horizontal axis represents longitude (i.e., the x-direction), and the vertical axis represents the offset in the x-direction.

[0055] Step 13: Set offset variation constraints, and construct the period variation formula and amplitude offset formula based on the offset variation constraints.

[0056] The above offset variation constraint is used to describe the constraint on the change of offset amount, the above period variation formula is used to describe the change of offset amount with the change period, and the above amplitude offset formula is used to describe the change of offset amplitude.

[0057] Specifically, the offset variation constraint is as follows:

[0058]

[0059] in, This represents the maximum range of change in offset within a monotonic interval. Indicates the maximum offset. Indicates the minimum offset. This represents the periodic control coefficient.

[0060] For example, the above formula ensures that the features are not stretched or compressed before and after the offset, the offset direction of the features remains consistent overall, and a function that maintains continuous monotonicity is used. The offset difference over short distances should not be too large, otherwise it will cause feature deformation, as well as large changes in the length of line features and the area of ​​surface features.

[0061] The formula for periodic change is:

[0062]

[0063] in, This indicates the offset along the horizontal axis. This represents the x-axis data in the target geographic coordinate data. This indicates the offset along the vertical axis. This represents the vertical coordinate data in the target geographic coordinate data.

[0064] The formula for amplitude offset is:

[0065]

[0066] in, This represents the amplitude coefficient.

[0067] Step 14: Construct multiple combined offset functions and smoothness control functions, and obtain the final offset algorithm based on the combination of offset trigonometric functions, period variation formula, amplitude offset formula, multiple combined offset functions and smoothness control functions.

[0068] The aforementioned multi-combination offset function describes the offset calculated using multiple functions such as the exponential function and the sigmoid function. The aforementioned smoothness control function describes the periodic variation of the offset, ensuring a smooth transition of the offset. The aforementioned final offset algorithm describes the offset of the coordinate data in the x-direction and the y-direction.

[0069] In some embodiments of this application, the steps of constructing multiple combined offset functions and smoothness control functions, and obtaining the final offset algorithm based on the combination of offset trigonometric functions, period variation formulas, amplitude offset formulas, multiple combined offset functions, and smoothness control functions include: The first step is to construct the exponential function and the sigmoid function, and then combine the exponential function, the sigmoid function, and the offset trigonometric function to obtain a multi-combined offset function.

[0070] Specifically, the exponential function is:

[0071]

[0072] The Sigmoid function is:

[0073]

[0074] in, These are random coefficients.

[0075] For example, the exponential function, sigmoid function, and offset trigonometric function can be added together and averaged to obtain a multiple combined offset function. The offset of the multiple combined offset function varies with latitude as follows: Figure 3 As shown.

[0076] The second step is to construct a smoothness control function based on the properties of trigonometric functions.

[0077] The smoothness control function is:

[0078]

[0079] in, This indicates the offset along the horizontal axis. Indicates the amplitude coefficient. This represents the x-axis data in the target geographic coordinate data. This represents the ordinate data in the target geographic coordinate data. This represents a constant that satisfies the smoothness condition when the control function undergoes periodic changes.

[0080] The third step involves obtaining the final offset algorithm based on the combination of offset trigonometric functions, period variation formulas, amplitude offset formulas, multiple combined offset functions, and smoothness control functions.

[0081] For example, two or more can be selected from offset trigonometric functions, period variation formulas, amplitude offset formulas, multiple combination offset functions, and smoothness control functions (these can be selected randomly or according to user needs), and then combined using addition, subtraction, or other methods to obtain the final offset algorithm. For example, for the offset in the x-direction... The final offset algorithm is as follows:

[0082] For the offset in the y direction The final offset algorithm is as follows:

[0083] Step 15: Offset the target geographic coordinate data based on the final offset algorithm to obtain the offset geographic coordinate data.

[0084] Specifically, the final horizontal and vertical offsets of the target geographic coordinate data are calculated based on the final offset algorithm; the target geographic coordinate data is offset according to the final horizontal and vertical offsets to obtain the offset geographic coordinate data.

[0085] It should be noted that for each coordinate in the target geographic coordinate data, it is substituted into the final offset algorithm to obtain the final horizontal axis offset and the final vertical axis offset of that coordinate. Then, the final horizontal axis offset is added to the horizontal coordinate of that coordinate, and the final vertical axis offset is added to the vertical coordinate of that coordinate to obtain the encrypted coordinate corresponding to that coordinate. All the encrypted coordinates are integrated into one data to obtain the offset geographic coordinate data.

[0086] For example, with latitude remaining constant, the curve of the x-direction (i.e., longitude) offset calculated by the final offset algorithm as a function of longitude is shown below. Figure 4 As shown.

[0087] It is worth mentioning that the geographic coordinate encryption based on offset variation constraints can constrain the value of the offset, reduce the error between the encrypted geographic coordinate data and the original geographic coordinate data, and obtain the final offset algorithm through a combination of multiple formulas and functions, avoiding the use of a single encryption formula to encrypt geographic coordinate data, thereby improving encryption security. At the same time, the combination method and parameters in the formula can be modified according to user needs, effectively improving the flexibility of encryption.

[0088] The method of this application will be illustrated below with a specific example.

[0089] This application's method was used to conduct an encryption experiment on geographic coordinate data of a certain area. The comparison of the offset directions before and after optimizing the periodic coefficient is shown below. Figure 5 As shown, Figure 5 'a' represents the graph offset before periodicity coefficient optimization, and the arrow indicates the offset direction. Figure 5 b represents the graphic offset after periodicity coefficient optimization, and the arrow indicates the offset direction.

[0090] It can be seen that before optimizing the period coefficient, the graphic is in a compressed state with large deformation in length and area. After adjusting and optimizing the period coefficient, the offset direction of the local range remains consistent and the relative position remains stable.

[0091] Data from 2263 buildings in a certain city was processed. The effect before and after offset is shown below. Figure 6 As shown, Figure 6 The different filled shapes represent the building graphics before and after the offset.

[0092] Statistical calculations were performed on the perimeter, area, and changes in perimeter and area before and after the offset for the original and offset data of 2263 house polygons. The perimeter is in meters, the area is in square meters, and the change rate is in percentage. The statistical results are shown in Table 1. Table 1

[0093] Statistical analysis showed that the longest coordinate node offset was 23.1, and the shortest was 10.5. The area of ​​the patch with the largest change was 106 square meters, while the original building area was 81,896 square meters, representing a change rate of 0.13%. The results are shown in Table 2. Table 2

[0094] The smallest area change was 0.099 square meters, with an original area of ​​62.77 square meters, resulting in a change rate of 0.16%. The largest area change rate was 0.22%, the smallest was 0.06%, and the average change rate was 0.16%. The largest change in perimeter was 1.14 meters, with an original perimeter of 811 meters, resulting in a change rate of 0.14%. The smallest change in perimeter was 0.05 meters, with an original perimeter of 180 meters, resulting in a change rate of 0.03%. The average perimeter change rate for all polygons was 0.075%.

[0095] The topological relationships of spatial data are a crucial characteristic of geographic information, and maintaining the relative positions and topological relationships of data from different layers before and after offset is essential. The method in this application is based on a single point-to-point mapping relationship, ensuring that the coordinates of nodes at the same coordinate position in different layers remain consistent after offset. Experiments were conducted using the same parameter algorithm to offset points (points of interest), lines (roads), and polygons (buildings) within the same area, effectively preserving the relative relationships of the original data. This included ensuring that adjacent data did not intersect, previously intersecting data remained intersecting, and that data from different layers maintained consistency in the offset direction and amount at the same coordinate. Figure 7 As shown, Figure 7 The different filled shapes represent the building graphics before and after the offset.

[0096] Therefore, the method described in this application ensures that the original shape and topological relationships of geospatial data remain largely unchanged before and after the transformation. Adjacent graphics exhibit similar transformation directions and distances, and demonstrate continuous smoothness. Based on these characteristics, the study employs multiple mathematical functions, including trigonometric functions, quadratic polynomials, exponential functions, and power functions, for fitting. It utilizes rules such as addition and multiplication to control the offset distance, direction, and period, thereby increasing the algorithm's complexity while autonomously controlling the offset amount and accuracy.

[0097] The following is an exemplary description of the spatial coordinate nonlinear offset device provided in this application.

[0098] like Figure 8 As shown, this application embodiment provides a spatial coordinate nonlinear offset device, the spatial coordinate nonlinear offset device 800 including: Module 801 is used to acquire target geographic coordinate data; Module 802 is used to construct offset trigonometric functions for the target geographic coordinate data; The setting module 803 is used to set offset variation constraints and construct period variation formulas and amplitude offset formulas based on offset variation constraints; The combination module 804 is used to construct multiple combined offset functions and smoothness control functions, and obtain the final offset algorithm based on the combination of offset trigonometric functions, period variation formula, amplitude offset formula, multiple combined offset functions and smoothness control functions; The offset module 805 is used to offset the target geographic coordinate data based on the final offset algorithm to obtain the offset geographic coordinate data.

[0099] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0100] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0101] like Figure 9 As shown, an embodiment of this application provides a terminal device, wherein the terminal device D10 of this embodiment includes: at least one processor D100 ( Figure 9 The diagram shows only one processor, a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, wherein the processor D100 executes the computer program D102 to implement the steps in any of the above method embodiments.

[0102] Specifically, when the processor D100 executes the computer program D102, it acquires the target geographic coordinate data, constructs an offset trigonometric function for the target geographic coordinate data, sets offset variation constraints, and constructs a periodic variation formula and an amplitude offset formula based on the offset variation constraints. Then, it constructs a multi-combination offset function and a smoothness control function, and obtains the final offset algorithm based on the combination of the offset trigonometric function, periodic variation formula, amplitude offset formula, multi-combination offset function, and smoothness control function. Finally, it offsets the target geographic coordinate data based on the final offset algorithm to obtain the offset geographic coordinate data. The encryption of geographic coordinates based on offset variation constraints can constrain the value of the offset, reducing the error between the offset geographic coordinate data and the original geographic coordinate data. Obtaining the final offset algorithm through a combination of multiple formulas and functions avoids using a single formula to encrypt geographic coordinate data, improving encryption security. Furthermore, the combination method and parameters in the formulas can be modified according to different user needs, meeting the protection requirements of different users and effectively improving the flexibility of encryption.

[0103] The processor D100 can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0104] In some embodiments, the memory D101 may be an internal storage unit of the terminal device D10, such as a hard disk or memory of the terminal device D10. In other embodiments, the memory D101 may be an external storage device of the terminal device D10, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the terminal device D10. Furthermore, the memory D101 may include both internal and external storage units of the terminal device D10. The memory D101 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory D101 can also be used to temporarily store data that has been output or will be output.

[0105] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.

[0106] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the various method embodiments above.

[0107] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a spatial coordinate nonlinear offset method apparatus / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0108] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0109] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0110] The above description is the preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this invention, and these improvements and modifications should also be considered within the scope of protection of this invention.

Claims

1. A method for nonlinear spatial coordinate offset, characterized in that, include: Obtain the target geographic coordinate data; Construct an offset trigonometric function for the target geographic coordinate data; Set offset variation constraints, and construct period variation formula and amplitude offset formula based on the offset variation constraints; Construct multiple combined offset functions and smoothness control functions, and obtain the final offset algorithm based on the offset trigonometric function, period variation formula, amplitude offset formula, multiple combined offset functions and smoothness control functions; The target geographic coordinate data is offset based on the final offset algorithm to obtain the offset geographic coordinate data.

2. The spatial coordinate nonlinear offset method according to claim 1, characterized in that, The offset trigonometric function is: in, Indicates the overall offset. This indicates the offset along the horizontal axis. This indicates the offset along the vertical axis. This represents the x-axis data in the target geographic coordinate data. This represents the ordinate data in the target geographic coordinate data. , , , , , , , , , , , These represent the offsets in the x and y directions as a function of the period and phase control coefficients of x and y, respectively. , , , All are maximum offset control coefficients: in, This indicates the upper limit of the offset in the horizontal direction. This indicates the upper limit of the offset in the vertical direction.

3. The spatial coordinate nonlinear offset method according to claim 1, characterized in that, The offset change constraint is: in, This represents the maximum range of change in offset within a monotonic interval. Indicates the maximum offset. Indicates the minimum offset. This represents the periodic control coefficient.

4. The spatial coordinate nonlinear offset method according to claim 3, characterized in that, The formula for the periodic change is: in, This indicates the offset along the horizontal axis. This represents the x-axis data in the target geographic coordinate data. This indicates the offset along the vertical axis. This represents the vertical coordinate data in the target geographic coordinate data; The formula for the amplitude offset is: in, This represents the amplitude coefficient.

5. The spatial coordinate nonlinear offset method according to claim 1, characterized in that, The construction of the multiple combined offset function and smoothness control function includes: Construct an exponential function and a sigmoid function, and combine the exponential function, the sigmoid function and the offset trigonometric function to obtain a multiple combined offset function; Construct a smoothness control function based on the properties of trigonometric functions.

6. The spatial coordinate nonlinear offset method according to claim 5, characterized in that, The smoothness control function is: in, This indicates the offset along the horizontal axis. Indicates the amplitude coefficient. This represents the x-axis data in the target geographic coordinate data. This represents the ordinate data in the target geographic coordinate data. This represents a constant that satisfies the smoothness condition when the control function undergoes periodic changes.

7. The spatial coordinate nonlinear offset method according to claim 1, characterized in that, The process of offsetting the target geographic coordinate data based on the final offset algorithm to obtain the offset geographic coordinate data includes: The final horizontal axis offset and the final vertical axis offset of the target geographic coordinate data are calculated based on the final offset algorithm. The offset geographic coordinate data is obtained by offsetting the target geographic coordinate data based on the final horizontal axis offset and the final vertical axis offset.

8. A spatial coordinate nonlinear offset device, characterized in that, include: The acquisition module is used to acquire the target geographic coordinate data; The construction module is used to construct offset trigonometric functions for the target geographic coordinate data; The setting module is used to set offset variation constraints and construct period variation formulas and amplitude offset formulas based on the offset variation constraints; The combination module is used to construct multiple combined offset functions and smoothness control functions, and obtain the final offset algorithm based on the offset trigonometric function, period variation formula, amplitude offset formula, multiple combined offset functions and smoothness control functions; The offset module is used to offset the target geographic coordinate data based on the final offset algorithm to obtain the offset geographic coordinate data.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the spatial coordinate nonlinear offset method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the spatial coordinate nonlinear offset method as described in any one of claims 1 to 7.