A method, device, equipment and medium for desensitizing land plot coordinate data

By mapping the parcel coordinate data to the plane rectangular coordinate system, calculating the number of tiles and converting it into a background image, the problem of parcel data sensitivity is solved, a balance between data security and the user's right to know is achieved, and an efficient Data desensitization methods.

CN117974925BActive Publication Date: 2024-10-15湖北省自然资源厅 +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410230491.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2024-10-15
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

In the field of natural resources, data such as the longitude, latitude, nature and purpose of land parcel information are highly sensitive. How to retain users' right to know while protecting data security in public applications is a challenge.

Method used

By mapping the coordinate data of the target plot to the preset plane rectangular coordinate system, determining the minimum circumscribed rectangle, calculating the number of tiles based on the zoom level and aspect ratio, converting them into background image pixels, and generating desensitized plot data picture.

Benefits of technology

On the premise of retaining the scope and appearance of the plot, it effectively erases sensitive information such as longitude and latitude coordinates, achieves data dimensionality reduction, ensures data security and irreversible reasoning, is easy to operate, and has good desensitization effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117974925B_ABST
    Figure CN117974925B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for desensitizing the coordinate data of a plot of land. The method includes mapping the coordinate data of the target plot of land in a preset plane rectangular coordinate system to obtain the mapped coordinates of the target plot of land; determining the coordinates of the minimum bounding rectangle of the target plot of land according to the mapped coordinates of the target plot of land; determining the number of tiles that the minimum bounding rectangle of the target plot of land spans horizontally and vertically in the map image according to the coordinates of the minimum bounding rectangle and the preset zoom level; wherein the map image contains multiple tiles; obtaining a background image according to the specified aspect ratio and the number of tiles that the minimum bounding rectangle of the minimum bounding rectangle spans horizontally and vertically; converting the coordinate data of the target plot of land into corresponding pixel points in the background image, and connecting adjacent pixel points to obtain a desensitized plot data image. The method erases all sensitive information such as longitude and latitude coordinates while retaining the shape of the target plot of land and the surrounding appearance, thereby achieving data desensitization and guaranteeing the user's right to know.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a method, device, equipment and medium for desensitizing plot coordinate data. Background Art

[0002] In the field of natural resources, land information, including its longitude and latitude, land nature and use, are all highly sensitive data. However, at the application level, relevant information has to be provided to the public. Therefore, a solution is needed that can both make the data public to ensure the public's right to know and hide sensitive information to ensure data security. Summary of the invention

[0003] In order to better achieve the desensitization of plot coordinate data, the embodiments of the present application provide a method, device, equipment and medium for desensitizing plot coordinate data.

[0004] In a first aspect, an embodiment of the present application provides a method for desensitizing plot coordinate data, the method comprising:

[0005] Mapping the coordinate data of the target plot into a preset plane rectangular coordinate system to obtain the mapped coordinates of the target plot;

[0006] Determine the coordinates of the minimum circumscribed rectangle of the target plot according to the mapped coordinates of the target plot;

[0007] Determining the number of tiles that the minimum bounding rectangle spans horizontally and vertically in a map image according to the coordinates of the minimum bounding rectangle and a preset zoom level; wherein the map image includes a plurality of tiles;

[0008] Obtaining a background image according to a specified aspect ratio and the number of tiles that the minimum circumscribed rectangle spans horizontally and vertically;

[0009] The coordinate data of the target plot is converted into corresponding pixel points in the background image, and adjacent pixel points are connected to obtain a desensitized plot data image.

[0010] In an optional implementation of the embodiment of the present application, determining the coordinates of the minimum circumscribed rectangle of the target plot according to the mapped coordinates of the target plot includes:

[0011] Obtaining a minimum circumscribed rectangle of the target plot; the length and width of the minimum circumscribed rectangle are parallel to the horizontal axis and the vertical axis in the preset plane rectangular coordinate system;

[0012] The coordinates of the minimum circumscribed rectangle of the target land parcel are determined according to the smallest horizontal coordinate and the largest horizontal coordinate and the largest vertical coordinate in the mapped coordinates of the target land parcel.

[0013] In an optional implementation of the embodiment of the present application, the tiles are numbered in a horizontal direction of the map image; and according to the coordinates of the minimum bounding rectangle and a preset zoom level, determining the number of tiles that the minimum bounding rectangle spans in a horizontal direction includes:

[0014] Determine, according to the coordinates of the minimum circumscribed rectangle and the preset zoom level, the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located and the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex is located;

[0015] According to the horizontal number of tiles where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located, and the horizontal number of tiles where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located, the number of tiles horizontally spanned by the minimum circumscribed rectangle is determined by the following formula 1:

[0016] count x =rowDownRight-rowUpLeft+1 Formula 1;

[0017] In the formula, count x is the number of tiles that the minimum bounding rectangle spans horizontally; rowDownRight is the horizontal number of tiles where the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle is located; rowUpLeft is the horizontal number of tiles where the horizontal coordinate of the upper left corner vertex of the minimum bounding rectangle is located.

[0018] In an optional implementation of the embodiment of the present application, determining the horizontal number of tiles where the horizontal coordinates of the lower right corner vertex of the minimum enclosing rectangle are located and the horizontal number of tiles where the horizontal coordinates of the upper left corner vertex are located according to the coordinates of the minimum enclosing rectangle and the preset zoom level includes:

[0019] According to the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle and the preset zoom level, the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle is located is determined by the following formula 2:

[0020]

[0021] Wherein, rowDownRight is the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located; x is the horizontal coordinate of the origin; maxX is the horizontal coordinate of the lower right corner of the minimum circumscribed rectangle; resolution i The scale of the preset zoom level; tile width is the number of tiles contained horizontally in the map image;

[0022] According to the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle and the preset zoom level, the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located is determined by the following formula 3:

[0023]

[0024] Wherein, rowUpLeft is the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located; x is the horizontal coordinate of the origin; minX is the horizontal coordinate of the upper left corner of the minimum circumscribed rectangle; resolution i The scale of the preset zoom level; tile width is the number of tiles contained in the map image in the horizontal direction.

[0025] In an optional implementation of the embodiment of the present application, the tiles are numbered in the vertical direction of the map image; and according to the coordinates of the minimum bounding rectangle and a preset zoom level, the number of tiles vertically spanned by the minimum bounding rectangle is determined, including:

[0026] According to the coordinates of the minimum circumscribed rectangle and the preset zoom level, determine the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located and the vertical number of the tile where the vertical coordinate of the upper left corner vertex is located;

[0027] According to the longitudinal number of tiles where the ordinate of the lower right corner vertex of the minimum circumscribed rectangle is located, and the longitudinal number of tiles where the ordinate of the upper left corner vertex of the minimum circumscribed rectangle is located, the number of tiles horizontally spanned by the minimum circumscribed rectangle is determined by the following formula 4:

[0028] count y =colDownRight-colUpLeft+1 Formula 4;

[0029] In the formula, count y is the number of tiles that the minimum bounding rectangle spans vertically; colDownRight is the vertical number of tiles where the vertical coordinate of the lower right corner vertex of the minimum bounding rectangle is located; colUpLeft is the vertical number of tiles where the vertical coordinate of the upper left corner vertex of the minimum bounding rectangle is located.

[0030] In an optional implementation of the embodiment of the present application, determining the longitudinal number of tiles where the longitudinal coordinates of the lower right corner vertex of the minimum enclosing rectangle are located and the longitudinal number of tiles where the longitudinal coordinates of the upper left corner vertex are located according to the coordinates of the minimum enclosing rectangle and the preset zoom level includes:

[0031] According to the vertical coordinate of the vertex of the lower right corner of the minimum bounding rectangle and the preset zoom level, the vertical number of the tile where the vertical coordinate of the vertex of the lower right corner of the minimum bounding rectangle is located is determined by the following formula 5:

[0032]

[0033] Wherein, colDownRight is the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located; y is the ordinate of the origin; minY is the ordinate of the lower right corner of the minimum circumscribed rectangle; resolution i The scale of the preset zoom level; tile height is the number of tiles contained vertically in the map image;

[0034] According to the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle and the preset zoom level, the vertical number of the tile where the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located is determined by the following formula 6:

[0035]

[0036] Wherein, colUpLeft is the vertical number of the tile where the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located; y is the ordinate of the origin; maxY is the ordinate of the upper left corner of the minimum circumscribed rectangle; resolution i The scale of the preset zoom level; tile height is the number of tiles contained vertically in the map image.

[0037] In an optional implementation of the embodiment of the present application, the coordinate data of the target plot is converted into corresponding pixel points in the background image, and adjacent pixel points are connected to obtain a desensitized plot data image, including:

[0038] Determine the coordinates of the upper left corner vertex and the lower right corner vertex of the background image according to the horizontal number and the vertical number of the tile where the upper left corner vertex and the lower right corner vertex of the minimum circumscribed rectangle are located;

[0039] Determine the pixel point corresponding to the coordinate point of the target plot in the background image according to the horizontal and vertical proportions of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image;

[0040] The adjacent pixel points are connected to obtain the converted target plot, and a desensitized plot data image is obtained.

[0041] In an optional implementation of the embodiment of the present application, determining the pixel point corresponding to the coordinate point of the target plot in the background image according to the sum of the horizontal and vertical proportions of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image includes:

[0042] According to the horizontal proportion of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image, the horizontal coordinate corresponding to the coordinate point of the target plot in the background image is determined by the following formula 7:

[0043]

[0044] In the formula, transfer x The horizontal coordinate of a certain coordinate point of the target plot in the background image; width result is the length of the background image; p x is the horizontal coordinate of a certain coordinate point of the target plot; tileRectMin x is the horizontal coordinate of the upper left corner of the background image; tileRectMax x is the horizontal coordinate of the lower right corner vertex of the background image;

[0045] According to the vertical proportion of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image, the vertical coordinate corresponding to the coordinate point of the target plot in the background image is determined by the following formula 8:

[0046]

[0047] In the formula, transfer y is the ordinate corresponding to a coordinate point of the target plot in the background image; height result is the width of the background image; p y is the vertical coordinate of a certain coordinate point of the target plot; tileRectMin y The vertical coordinate of the upper left corner of the background image; tileRectMax y is the ordinate of the lower right corner vertex of the background image.

[0048] In an optional implementation of the embodiment of the present application, determining all background tiles according to the specified aspect ratio and the number of tiles spanned horizontally and vertically by the minimum circumscribed rectangle to obtain a background image includes:

[0049] Determine whether the number of tiles spanned horizontally and vertically by the minimum circumscribed rectangle satisfies the specified aspect ratio;

[0050] If yes, determine that the tiles spanned horizontally and vertically by the minimum circumscribed rectangle are all background tiles, and obtain the background image;

[0051] If not, tiles are obtained horizontally or vertically according to the specified aspect ratio until the specified aspect ratio is met, and all background tiles are determined to obtain a background image.

[0052] In an optional implementation of the embodiment of the present application, determining the coordinates of the upper left corner vertex and the lower right corner vertex of the background image according to the horizontal number and the vertical number of the tiles where the upper left corner vertex and the lower right corner vertex of the minimum circumscribed rectangle are located includes:

[0053] According to the horizontal number of the tile where the upper left corner vertex of the minimum circumscribed rectangle is located, the horizontal (longitude) coordinate of the upper left corner vertex of the background image is determined by the following formula 9:

[0054]

[0055] In the formula, tileRectMin x is the horizontal coordinate of the upper left corner vertex of the background image; rowUpLeft is the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located; x is the horizontal coordinate of the origin; tile width The number of tiles contained in the map image horizontally; resolution i is the scale at the i-th preset zoom level;

[0056] According to the longitudinal number of the tile where the upper left corner vertex of the minimum circumscribed rectangle is located, the longitudinal (latitude) coordinate of the upper left corner vertex of the background image is determined by the following formula 10:

[0057]

[0058] In the formula, tileRectMax y colUpLeft is the vertical coordinate of the top left corner of the background image; colUpLeft is the vertical number of the tile where the vertical coordinate of the top left corner of the minimum circumscribed rectangle is located; y is the ordinate of the origin; tile height The number of tiles contained vertically in the map image; resolution i is the scale at the i-th preset zoom level;

[0059] According to the horizontal number of the tile where the lower right corner vertex of the minimum circumscribed rectangle is located, the horizontal (longitude) coordinate of the lower right corner vertex of the background image is determined by the following formula 11:

[0060]

[0061] In the formula, tileRectMax x is the horizontal coordinate of the lower right corner vertex of the background image; rowDownRight is the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located; x is the horizontal coordinate of the origin; tile width The number of tiles contained in the map image horizontally; resolution i is the scale at the i-th preset zoom level;

[0062] According to the longitudinal number of the tile where the lower right corner vertex of the minimum circumscribed rectangle is located, the longitudinal (latitude) coordinate of the lower right corner vertex of the background image is determined by the following formula 12:

[0063]

[0064] In the formula, tileRectMin y colDownRight is the vertical coordinate of the lower right corner vertex of the background image; colDownRight is the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located; y is the ordinate of the origin; tile height The number of tiles contained vertically in the map image; resolution i The scale at the i-th preset zoom level.

[0065] In a second aspect, an embodiment of the present application provides a device for desensitizing land coordinate data, the device comprising:

[0066] A mapping module, used to map the coordinate data of the target plot into a preset plane rectangular coordinate system to obtain the mapped coordinates of the target plot;

[0067] A first determination module is used to determine the coordinates of the minimum circumscribed rectangle of the target plot according to the mapped coordinates of the target plot;

[0068] A second determination module is used to determine the number of tiles that the minimum bounding rectangle spans horizontally and vertically in a map image according to the coordinates of the minimum bounding rectangle and a preset zoom level; wherein the map image includes a plurality of tiles;

[0069] A third determination module is used to obtain a background image according to a specified aspect ratio and the number of tiles that the minimum circumscribed rectangle spans horizontally and vertically;

[0070] The desensitization module is used to convert the coordinate data of the target plot into corresponding pixel points in the background image, and connect adjacent pixel points to obtain a desensitized plot data image.

[0071] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned method for desensitizing land coordinate data.

[0072] In a fourth aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for desensitizing plot coordinate data when executing the computer program.

[0073] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer device, enables the computer device to execute the above-mentioned method for desensitizing the plot coordinate data.

[0074] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the above-mentioned method for desensitizing land coordinate data.

[0075] The beneficial effects of the above technical solution provided by the embodiment of the present application include at least:

[0076] The plot coordinate data desensitization method provided in the embodiment of the present application obtains the minimum bounding rectangle of the target plot, and then, according to the specified aspect ratio of the current device, determines the tile corresponding to the minimum bounding rectangle in the map image, thereby obtaining a background image, and finally, converts the coordinate data of the target plot into the corresponding pixel points in the background image, thereby drawing the plot on the background image to obtain a desensitized plot data image. This method erases all sensitive information such as longitude and latitude coordinates on the premise of retaining the shape of the target plot range and the surrounding appearance, and reduces the coordinate data and vector map of the plot to a picture including the plot and its surrounding specified range, so that the detailed coordinate data of the plot is desensitized. This method not only realizes data desensitization but also guarantees the user's right to know, and is easy to operate, has a small amount of calculation, and can achieve rapid desensitization. In addition, since the coordinate data of the target plot has been reduced in dimension, its longitude and latitude and other sensitive data are only left with one picture, so the entire desensitization process is irreversible, and it is impossible to reversely infer the specific longitude and latitude represented by the plot through the picture, and the desensitization effect is good.

[0077] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.

[0078] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:

[0080] Figure 1 A schematic diagram of the steps of the method for desensitizing the plot coordinate data provided in an embodiment of the present application;

[0081] Figure 2 A schematic diagram of a non-rotating minimum circumscribed rectangle of a target plot provided in an embodiment of the present application;

[0082] Figure 3 A schematic diagram of the number of tiles corresponding to the minimum bounding rectangle of a target plot in the horizontal and vertical directions at a preset zoom level provided in an embodiment of the present application;

[0083] Figure 4 A schematic diagram of the number of tiles that can achieve a specified aspect ratio after the minimum circumscribed rectangle of a target plot is filled in an embodiment of the present application;

[0084] Figure 5 An output image including a target plot and a specified surrounding area with an aspect ratio of 2:1 provided in the embodiment of the present application;

[0085] Figure 6 A schematic diagram of the structure of the plot coordinate data desensitization device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0086] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

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

[0088] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0089] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0090] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0091] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0092] It should be understood that the size of the serial numbers of the steps in the following embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0093] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

[0094] The inventors found that in the prior art, data desensitization is generally performed in the following manner:

[0095] (1) Data replacement: Replace sensitive information with other specific information. For example, the common practice is to use “*” to desensitize mobile phone numbers or ID card numbers.

[0096] (2) Randomization. Randomly generate other information, for example, it is common to use a "pseudonym" instead of a real name.

[0097] (3) Data mapping: Create a data mapping table to map data into other data.

[0098] (4) Data encryption and decryption.

[0099] However, the above-mentioned general desensitization algorithm completely hides sensitive information, which cannot meet the needs of the natural resources field to ensure the user's right to know after desensitizing the plots, and does not meet the inventor's expectations. Based on this, the inventor has made this application after further research and development, providing a method, device, equipment and medium for desensitizing plot coordinate data.

[0100] Embodiment 1

[0101] The present application embodiment provides a method for desensitizing land block coordinate data, referring to Figure 1 As shown, the method includes the following steps S101 to S105:

[0102] S101: Mapping the coordinate data of the target plot in a preset plane rectangular coordinate system to obtain the mapped coordinates of the target plot.

[0103] S102: Determine the coordinates of the minimum circumscribed rectangle of the target land parcel according to the mapped coordinates of the target land parcel.

[0104] S103: Determine the number of tiles that the minimum bounding rectangle spans horizontally and vertically in the map image according to the coordinates of the minimum bounding rectangle and a preset zoom level; wherein the map image includes a plurality of tiles.

[0105] S104: Obtain a background image according to the specified aspect ratio and the number of tiles that the minimum circumscribed rectangle spans horizontally and vertically.

[0106] S105: Convert the coordinate data of the target plot of land into corresponding pixel points in the background image, and connect adjacent pixel points to obtain a desensitized plot data image.

[0107] The plot coordinate data desensitization method provided in the embodiment of the present application obtains the minimum bounding rectangle of the target plot, and then, according to the specified aspect ratio of the current device, determines the tile corresponding to the minimum bounding rectangle in the map image, thereby obtaining a background image, and finally, converts the coordinate data of the target plot into the corresponding pixel points in the background image, thereby drawing the plot on the background image, and obtaining a desensitized plot data image. This method erases all sensitive information such as longitude and latitude coordinates on the premise of retaining the shape of the target plot range and the surrounding appearance, and reduces the coordinate data and vector map of the plot to include the plot and its surrounding specified range. The detailed coordinate data of the plot is desensitized. This method not only realizes data desensitization but also guarantees the user's right to know, and is easy to operate, has a small amount of calculation, and can achieve rapid desensitization. In addition, since the coordinate data of the target plot has been reduced in dimension, its longitude and latitude and other sensitive data are only left with one picture, therefore, the entire desensitization process is irreversible, and the specific longitude and latitude represented by the plot cannot be reversely inferred through the picture, and the desensitization effect is good.

[0108] In an embodiment of the present application, the sensitive coordinate data of the target plot that needs to be desensitized includes tile data at all scales of the entire map, and a coordinate list of the longitude and latitude coordinate information of all points that make up this plot.

[0109] In the above step S101, in order to simplify subsequent calculations, the coordinate data of the target plot can be mapped in a preset plane rectangular coordinate system, the origin in the preset plane rectangular coordinate system can be defined as (-180, 90), and all the original longitude and latitude coordinates of the target plot can be converted into mapped coordinates relative to the origin in the preset plane rectangular coordinate system.

[0110] In the above step S102, the coordinates of the minimum circumscribed rectangle of the target plot are determined according to the mapped coordinates of the target plot, which specifically includes the following steps S1021 to S1022:

[0111] S1021: Obtain a minimum circumscribed rectangle of the target plot, wherein the length and width of the minimum circumscribed rectangle are parallel to the horizontal axis and the vertical axis in the preset plane rectangular coordinate system.

[0112] S1022: Determine the coordinates of the minimum circumscribed rectangle of the target land parcel according to the smallest horizontal coordinate and the largest vertical coordinate in the mapped coordinates of the target land parcel.

[0113] Generally speaking, the coordinates of the minimum enclosing rectangle of an irregular figure are deflected relative to the origin, and its length and width are not necessarily parallel to the horizontal and vertical axes. However, since the minimum enclosing rectangle is obtained in this application to pave the way for further obtaining tiles, the accuracy requirement for the minimum enclosing rectangle is not absolute.

[0114] In order to achieve simplicity and high efficiency, the minimum non-rotating circumscribed rectangle of the target plot (i.e., the minimum circumscribed rectangle whose length and width are parallel to the horizontal axis and the vertical axis in the preset plane rectangular coordinate system) can be selected. Figure 2 As shown in FIG. 1 , a schematic diagram of a non-rotated minimum circumscribed rectangle of a target land parcel is shown. According to the characteristics of the rectangle itself, only the coordinates (latitude and longitude coordinates or mapped coordinates) of the upper left and lower right vertices of the rectangle are needed to represent the rectangle.

[0115] In one embodiment, the target plot itself contains a list of longitude and latitude coordinates of all points, so the maximum and minimum values ​​of all coordinates in longitude and latitude can be obtained. The minimum longitude is minX, the minimum latitude is minY, the maximum longitude is maxX, and the maximum latitude is maxY, respectively, and the coordinates of the upper left vertex and the lower right vertex of the non-rotating minimum circumscribed rectangle relative to the origin in the preset plane rectangular coordinate system can be obtained as (minX, maxY) and (maxX, minY), respectively.

[0116] In another embodiment, according to the mapped coordinates of all points of the target plot, the maximum and minimum values ​​of all mapped coordinates on the horizontal and vertical axes can be obtained. The minimum horizontal coordinate is recorded as minX, the minimum vertical coordinate is recorded as minY, the maximum horizontal coordinate is recorded as maxX, and the maximum vertical coordinate is recorded as maxY. The coordinates of the upper left vertex and the lower right vertex of the non-rotated minimum circumscribed rectangle relative to the origin in the preset plane rectangular coordinate system can be obtained as (minX, maxY) and (maxX, minY), respectively.

[0117] Generally, maps have a maximum geographical range that can be represented. For example, image maps are taken by satellite and then synthesized. The huge image after synthesis is the maximum range that this map can represent, which is recorded as a map image. Tiles are small images of the same size (usually 256*256) that represent a geographical area within a certain range. In order to facilitate the description of the position of tiles in the map image, the tiles can be numbered according to the horizontal and vertical directions, so that the tiles have horizontal and vertical numbering. For example, the horizontal number of the third tile and the vertical number of the fourth tile in the map image is 3, and the vertical number is 4, which is recorded as tile (3,4).

[0118] In the above step S103, the number of tiles horizontally spanned by the minimum bounding rectangle is determined according to the coordinates of the minimum bounding rectangle and the preset zoom level, which specifically includes the following steps S10311 to S10312:

[0119] S10311: Determine the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located and the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located according to the coordinates of the minimum circumscribed rectangle and the preset zoom level.

[0120] In the above step S10311, the step of determining the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle is located and the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex is located according to the coordinates of the minimum bounding rectangle and the preset zoom level specifically includes:

[0121] According to the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle and the preset zoom level, the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle is located is determined by the following formula 2:

[0122]

[0123] Wherein, rowDownRight is the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located, which can be understood as the position of the rightmost point of the plot in the horizontal direction of the entire map image at the i-th preset zoom level; x is the horizontal coordinate of the origin, i.e. a fixed value of -180; maxX is the horizontal coordinate of the lower right corner of the minimum circumscribed rectangle; resolution i The scale size at the i-th preset zoom level; tile width is the number of tiles contained in the map image horizontally, for example, 256.

[0124] According to the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle and the preset zoom level, the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located is determined by the following formula 3:

[0125]

[0126] Wherein, rowUpLeft is the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located, which can be understood as the position of the tile where the leftmost point of the plot is located horizontally in the entire map image at the i-th preset zoom level; x is the horizontal coordinate of the origin; minX is the horizontal coordinate of the upper left corner of the minimum circumscribed rectangle; resolution i The scale size at the i-th preset zoom level; tile width is the number of tiles contained in the map image in the horizontal direction.

[0127] S10312: According to the horizontal number of tiles where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located, and the horizontal number of tiles where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located, determine the number of tiles that the minimum circumscribed rectangle horizontally spans through the following formula 1:

[0128] count x =rowDownRight-rowUpLeft+1 Formula 1;

[0129] In the formula, count x is the number of tiles that the minimum bounding rectangle spans horizontally; rowDownRight is the horizontal number of tiles where the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle is located; rowUpLeft is the horizontal number of tiles where the horizontal coordinate of the upper left corner vertex of the minimum bounding rectangle is located.

[0130] In the above step S103, the number of tiles vertically spanned by the minimum bounding rectangle is determined according to the coordinates of the minimum bounding rectangle and the preset zoom level, which specifically includes the following steps S10321 to S10322:

[0131] S10321: Determine the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located and the vertical number of the tile where the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located according to the coordinates of the minimum circumscribed rectangle and the preset zoom level.

[0132] In the above step S10321, the step of determining the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum bounding rectangle is located and the vertical number of the tile where the vertical coordinate of the upper left corner vertex is located according to the coordinates of the minimum bounding rectangle and the preset zoom level specifically includes:

[0133] According to the vertical coordinate of the vertex of the lower right corner of the minimum bounding rectangle and the preset zoom level, the vertical number of the tile where the vertical coordinate of the vertex of the lower right corner of the minimum bounding rectangle is located is determined by the following formula 5:

[0134]

[0135] Wherein, colDownRight is the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located, which can be understood as the vertical position of the tile where the bottom point of the plot is located in the entire map image at the i-th preset zoom level; y is the ordinate of the origin, which is a fixed value of 90; minY is the ordinate of the lower right corner of the minimum circumscribed rectangle; resolution i The scale at the i-th preset zoom level; tile height is the number of tiles contained vertically in the map image, for example, 256.

[0136] According to the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle and the preset zoom level, the vertical number of the tile where the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located is determined by the following formula 6:

[0137]

[0138] Wherein, colUpLeft is the vertical number of the tile where the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located, which can be understood as the position of the tile where the top point of the plot is located in the vertical direction of the entire map image at the i-th preset zoom level; y is the ordinate of the origin; maxY is the ordinate of the upper left corner of the minimum circumscribed rectangle; resolution iThe scale at the i-th preset zoom level; tile height is the number of tiles contained vertically in the map image.

[0139] S10322: According to the longitudinal number of the tile where the longitudinal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located, and the longitudinal number of the tile where the longitudinal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located, determine the number of tiles that the minimum circumscribed rectangle horizontally spans through the following formula 4:

[0140] count y =colDownRight-colUpLeft+1 Formula 4;

[0141] In the formula, count y is the number of tiles that the minimum bounding rectangle spans vertically; colDownRight is the vertical number of tiles where the vertical coordinate of the lower right corner vertex of the minimum bounding rectangle is located; colUpLeft is the vertical number of tiles where the vertical coordinate of the upper left corner vertex of the minimum bounding rectangle is located.

[0142] In one embodiment, Figure 2 Taking the target plot and its non-rotated minimum bounding rectangle as an example, through the above steps S10311-S10312 and S10321-S10322, the number of tiles corresponding to the minimum bounding rectangle in the horizontal and vertical directions at the preset zoom level can be calculated. Figure 3 As shown in the figure, the minimum bounding rectangle of the target plot at the preset zoom level has 3 tiles in the horizontal direction (one grid in the figure is one tile), and the horizontal number is 1, 2, and 3 respectively; the vertical number is 2 tiles, and the vertical number is 2 and 3 respectively. A total of 6 tiles are obtained, including tiles (1, 2), (2, 2), (3, 2), (1, 3), (2, 3), and (3, 3). The tile numbers in the figure are for reference only.

[0143] Through the above step S103, the scope and appearance of the surrounding area of ​​the target plot at the preset zoom level can be located as the background range when displaying the target plot, which can ensure the user's right to know without exposing the specific latitude and longitude data of the target plot.

[0144] In the embodiment of the present application, since the final output result after desensitizing the plot data is a picture, the required output picture size may be different in different application scenarios. For example, when displaying a picture on a mobile device, it is suitable to output a picture with a height greater than the width, and when displaying it on a display, it is more suitable to output a picture with a width greater than the height. Therefore, in order to adaptively generate pictures with better display effects on different devices, when calculating tile data, the aspect ratio of the current device can be obtained first, and the effect of specifying the aspect ratio of the output picture can be achieved by specifying the number of aspect ratios of the tiles.

[0145] For example, the aspect ratio can be specified as 2:1. Based on a large number of test results, it is finally concluded that: through the above formulas 1 to 6, according to the scale from small to large, if the number of horizontal tiles calculated for the first time is greater than 4, or the number of vertical tiles is greater than 2, then the number of tiles at this zoom level is the location of the minimum enclosing rectangle.

[0146] In the above step S104, obtaining the background image according to the specified aspect ratio and the number of tiles spanned horizontally and vertically by the minimum bounding rectangle specifically includes:

[0147] Determine whether the number of tiles spanned horizontally and vertically by the minimum circumscribed rectangle satisfies the specified aspect ratio;

[0148] If yes, determine that the tiles spanned horizontally and vertically by the minimum circumscribed rectangle are all background tiles, and obtain the background image;

[0149] If not, tiles are obtained horizontally or vertically according to the specified aspect ratio until the specified aspect ratio is met, and all background tiles are determined to obtain a background image.

[0150] In an embodiment of the present application, after determining the number of tiles spanned horizontally and vertically by the minimum enclosing rectangle through S103, it is possible to first determine whether the number of tiles spanned horizontally and vertically by the minimum enclosing rectangle meets the specified aspect ratio. If it does, there is no need to obtain tiles for filling, and the tiles spanned horizontally and vertically by the minimum enclosing rectangle are directly used as all background tiles to obtain the background image; if it does not meet the requirement, more tiles can be obtained horizontally or vertically so that the horizontal and vertical number ratio of the background tiles finally determined meets the specified aspect ratio.

[0151] In order to make the plot in the center of the output image as much as possible, when more tiles are obtained horizontally, they can be filled in the order of left and right (or right and left). When more tiles are obtained vertically, they will be filled in the order of top and bottom (or bottom and top) until the specified aspect ratio is met, all background tiles are determined, and the background image is obtained.

[0152] For example, when there are still three tiles missing in the horizontal direction to meet the specified aspect ratio, you can first obtain another tile from the leftmost side of the current tile combination, then obtain another tile from the rightmost side of the current tile combination, and then obtain another tile from the leftmost side of the current tile combination, until the horizontal and vertical number ratio of the obtained tiles meets the specified aspect ratio. For another example, when there are still three tiles missing in the horizontal direction to meet the specified aspect ratio, you can first obtain another tile from the rightmost side of the current tile combination, then obtain another tile from the leftmost side of the current tile combination, and then obtain another tile from the rightmost side of the current tile combination, until the horizontal and vertical number ratio of the obtained tiles meets the specified aspect ratio.

[0153] Similarly, when there are still three tiles missing in the vertical direction to meet the specified aspect ratio, you can first obtain another tile from the top of the current tile combination, then obtain another tile from the bottom of the current tile combination, and then obtain another tile from the top of the current tile combination, until the ratio of the number of tiles from side to side meets the specified aspect ratio. For another example, when there are still three tiles missing in the vertical direction to meet the specified aspect ratio, you can first obtain another tile from the bottom of the current tile combination, then obtain another tile from the top of the current tile combination, and then obtain another tile from the bottom of the current tile combination, until the ratio of the number of tiles from side to side meets the specified aspect ratio.

[0154] In one embodiment, Figure 3 As shown in the figure, the number of tiles corresponding to the horizontal and vertical directions of the minimum bounding rectangle of a target plot at the preset zoom level, where there are 3 tiles horizontally and 2 tiles vertically, and the current aspect ratio is 3:2. If the aspect ratio specified by the current device is 2:1, a tile needs to be filled horizontally so that the horizontal and vertical number ratio of tiles meets the specified aspect ratio of 2:1. At this time, you can Figure 3 On the basis of , get another tile from the rightmost side of each row of the current tile combination for filling, that is, get two rows of tiles numbered 4 for filling, and get the following Figure 4 All the padded background tiles shown include tiles (1,2), (2,2), (3,2), (4,2), (1,3), (2,3), (3,3) and (4,3), resulting in a background image with a tile number of 4×2.

[0155] Through the above step S104, the background image satisfies the specified aspect ratio and can adapt to the different sizes of output images required by the device in different application scenarios. By filling the left and right (or right and left) and the top and bottom (or bottom and top) alternately, the target plot is placed in the center of the background image, allowing the user to view the information of the target plot more intuitively.

[0156] In the above step S105, the coordinate data of the target plot is converted into corresponding pixel points in the background image, and adjacent pixel points are connected to obtain a desensitized plot data image, which specifically includes the following steps S1051 to S1053:

[0157] S1051: Determine the coordinates of the upper left corner vertex and the lower right corner vertex of the background image according to the horizontal number and the vertical number of the tiles where the upper left corner vertex and the lower right corner vertex of the minimum circumscribed rectangle are located.

[0158] In the above step S1051, for the rectangular background image composed of all background tiles, the longitude and latitude coordinates of the upper left corner vertex and the lower right corner vertex of the background image can be determined by the following formulas 9 to 12, where the longitude and latitude coordinates of the upper left corner vertex are marked as (tileRectMin x , tileRectMax y ), the latitude and longitude coordinates of the lower right vertex are marked as (tileRectMax x , tileRectMin y ).

[0159] According to the horizontal number of the tile where the upper left corner vertex of the minimum circumscribed rectangle is located, the horizontal (longitude) coordinate of the upper left corner vertex of the background image is determined by the following formula 9:

[0160]

[0161] In the formula, tileRectMin x is the horizontal coordinate of the upper left corner vertex of the background image; rowUpLeft is the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located; x is the horizontal coordinate of the origin; tile width The number of tiles contained in the map image horizontally; resolution i The scale at the i-th preset zoom level.

[0162] According to the longitudinal number of the tile where the upper left corner vertex of the minimum circumscribed rectangle is located, the longitudinal (latitude) coordinate of the upper left corner vertex of the background image is determined by the following formula 10:

[0163]

[0164] In the formula, tileRectMax y colUpLeft is the vertical coordinate of the top left corner of the background image; colUpLeft is the vertical number of the tile where the vertical coordinate of the top left corner of the minimum circumscribed rectangle is located; y is the ordinate of the origin; tile heightThe number of tiles contained vertically in the map image; resolution i The scale at the i-th preset zoom level.

[0165] According to the horizontal number of the tile where the lower right corner vertex of the minimum circumscribed rectangle is located, the horizontal (longitude) coordinate of the lower right corner vertex of the background image is determined by the following formula 11:

[0166]

[0167] In the formula, tileRectMax x is the horizontal coordinate of the lower right corner vertex of the background image; rowDownRight is the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located; x is the horizontal coordinate of the origin; tile width The number of tiles contained in the map image horizontally; resolution i At the i-th preset zoom level.

[0168] According to the longitudinal number of the tile where the lower right corner vertex of the minimum circumscribed rectangle is located, the longitudinal (latitude) coordinate of the lower right corner vertex of the background image is determined by the following formula 12:

[0169]

[0170] In the formula, tileRectMin y colDownRight is the vertical coordinate of the lower right corner vertex of the background image; colDownRight is the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located; y is the ordinate of the origin; tile height The number of tiles contained vertically in the map image; resolution i The scale at the i-th preset zoom level.

[0171] S1052: Determine the pixel point corresponding to the coordinate point of the target plot in the background image according to the horizontal and vertical proportions of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image.

[0172] In the embodiment of the present application, for each coordinate point of the target plot, the pixel point corresponding to the coordinate point in the output image can be obtained by multiplying the horizontal proportion of the coordinate point in the target plot in the background image by the length of the output image (i.e., the length of the background image), and by multiplying the vertical proportion of the coordinate point in the target plot in the background image by the width of the output image (i.e., the width of the background image). A coordinate point of the target plot before conversion is recorded as (p x , p y), the corresponding coordinate point after conversion is recorded as (transfer x , transfer y ).

[0173] In the above step S1052, the pixel point corresponding to the coordinate point of the target plot in the background image is determined according to the sum of the horizontal and vertical proportions of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image, which specifically includes the following steps S10521 to S10522:

[0174] S10521: According to the horizontal proportion of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image, determine the horizontal coordinate corresponding to the coordinate point of the target plot in the background image by the following formula 7:

[0175]

[0176] In the formula, transfer x The horizontal coordinate of a certain coordinate point of the target plot in the background image; width result is the length of the background image; p x is the horizontal coordinate of a certain coordinate point of the target plot; tileRectMin x is the horizontal coordinate of the upper left corner of the background image; tileRectMax x is the horizontal coordinate of the lower right corner vertex of the background image.

[0177] The horizontal pixel value of the background image, that is, the length of the background image, can be calculated by the following formula 13:

[0178] width result =count x ×tile width Formula 13;

[0179] In the formula, width result is the length of the background image; count x The number of tiles that the minimum bounding rectangle spans horizontally; tile width The number of tiles contained in the map image horizontally.

[0180] S10522: According to the vertical proportion of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image, determine the vertical coordinate corresponding to the coordinate point of the target plot in the background image by the following formula 8:

[0181]

[0182] In the formula, transfer y is the ordinate corresponding to a coordinate point of the target plot in the background image; height result is the width of the background image; p y is the vertical coordinate of a certain coordinate point of the target plot; tileRectMin y The vertical coordinate of the upper left corner of the background image; tileRectMax y is the ordinate of the lower right corner vertex of the background image.

[0183] The vertical pixel value of the background image, that is, the width of the background image, can be calculated by the following formula 14:

[0184] height result =count y ×tile height Formula 14;

[0185] In the formula, height result The width of the background image; count y The number of tiles that the minimum bounding rectangle spans vertically; tile height The number of tiles contained vertically in the map image.

[0186] The above steps S10521 and S10522 can be executed sequentially or in reverse order, or in parallel, and the execution order is not limited.

[0187] S1053: Connect the adjacent pixel points to obtain the converted target plot, and obtain a desensitized plot data image.

[0188] After converting each coordinate point in the target plot into a corresponding pixel point in the background image, adjacent pixel points are connected in pairs into lines to obtain the converted target plot. The target plot is drawn on the background image, and the coordinate data of the target plot can be reduced to an image. The output image obtained is the desensitized plot data image.

[0189] In one embodiment, for Figure 4 The target plot and the obtained tiles are shown in the 2:1 background image. Through the above step S105, the coordinate data of the target plot is converted into corresponding pixel points in the background image, and the adjacent pixel points are connected, that is, the target plot is drawn in the background image, and the following is obtained: Figure 5The output image with an aspect ratio of 2:1 is shown, which contains the target plot and its surrounding specified range. Since the coordinate data of the target plot has been reduced in dimension, its longitude and latitude and other sensitive data are only left in one image. Therefore, the entire desensitization process is irreversible, and the specific longitude and latitude represented by the plot cannot be reversely inferred from the image. The desensitization effect is good.

[0190] In addition, the pixel value of the output image can be calculated according to the horizontal pixel value and the vertical pixel value of the output image by the following formula 15:

[0191] output=width result ×height result Formula 15;

[0192] Where output is the pixel value of the output image; width result is the horizontal pixel value of the output image (the length of the background image); height result It is the vertical pixel value of the output image (the width of the background image).

[0193] Embodiment 2

[0194] Based on the same inventive concept, the present application also provides a plot coordinate data desensitization device, referring to Figure 6 As shown, the device comprises:

[0195] A mapping module 101 is used to map the coordinate data of the target plot into a preset plane rectangular coordinate system to obtain the mapped coordinates of the target plot;

[0196] A first determination module 102 is used to determine the coordinates of the minimum circumscribed rectangle of the target plot according to the mapped coordinates of the target plot;

[0197] A second determination module 103 is used to determine the number of tiles that the minimum bounding rectangle spans horizontally and vertically in a map image according to the coordinates of the minimum bounding rectangle and a preset zoom level; wherein the map image includes a plurality of tiles;

[0198] A third determination module 104 is used to obtain a background image according to a specified aspect ratio and the number of tiles that the minimum bounding rectangle spans horizontally and vertically;

[0199] The desensitizing module 105 is used to convert the coordinate data of the target plot into corresponding pixel points in the background image, and connect adjacent pixel points to obtain a desensitized plot data image.

[0200] Each module 101 to 105 in the above-mentioned plot coordinate data desensitization device can execute the process of steps S101 to S105 of the first embodiment, and the above steps are repeated and will not be repeated here.

[0201] Embodiment 3

[0202] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for desensitizing the plot coordinate data as described in the above embodiment 1 is implemented.

[0203] Embodiment 4

[0204] Based on the same inventive concept, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for desensitizing the plot coordinate data as described in the above-mentioned embodiment 1 is implemented.

[0205] Embodiment 5

[0206] Based on the same inventive concept, an embodiment of the present application also provides a computer program product comprising instructions. When the computer program product is run on a computer device, the computer device executes the method for desensitizing the plot coordinate data as described in the above-mentioned embodiment 1.

[0207] Embodiment 6

[0208] Based on the same inventive concept, an embodiment of the present application also provides a chip, the chip includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the method for desensitizing the plot coordinate data as described in the above embodiment one.

[0209] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0210] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0211] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0212] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0213] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for desensitizing plot coordinate data, characterized in that: include: Mapping the coordinate data of the target plot into a preset plane rectangular coordinate system to obtain the mapped coordinates of the target plot; Determine the coordinates of the minimum circumscribed rectangle of the target plot according to the mapped coordinates of the target plot; the length and width of the minimum circumscribed rectangle are parallel to the horizontal axis and the vertical axis in the preset plane rectangular coordinate system; Determining the number of tiles that the minimum bounding rectangle spans horizontally and vertically in a map image according to the coordinates of the minimum bounding rectangle and a preset zoom level; wherein the map image includes a plurality of tiles; Obtaining a background image according to a specified aspect ratio and the number of tiles that the minimum circumscribed rectangle spans horizontally and vertically; The coordinate data of the target plot is converted into corresponding pixel points in the background image, and adjacent pixel points are connected to obtain a desensitized plot data image.

2. The method according to claim 1, characterized in that The step of determining the coordinates of the minimum circumscribed rectangle of the target plot according to the mapped coordinates of the target plot includes: Obtaining a minimum circumscribed rectangle of the target plot; the length and width of the minimum circumscribed rectangle are parallel to the horizontal axis and the vertical axis in the preset plane rectangular coordinate system; The coordinates of the minimum circumscribed rectangle of the target land parcel are determined according to the smallest horizontal coordinate and the largest horizontal coordinate and the largest vertical coordinate in the mapped coordinates of the target land parcel.

3. The method according to claim 1, characterized in that The tiles are included in the number of tiles in the horizontal direction of the map image; and according to the coordinates of the minimum bounding rectangle and the preset zoom level, the number of tiles that the minimum bounding rectangle spans in the horizontal direction is determined, including: Determine, according to the coordinates of the minimum circumscribed rectangle and the preset zoom level, the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located and the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex is located; According to the horizontal number of tiles where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located, and the horizontal number of tiles where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located, the number of tiles horizontally spanned by the minimum circumscribed rectangle is determined by the following formula 1: count x = rowDownRight-rowUpLeft+1 Formula 1; Where count x is the number of tiles that the minimum bounding rectangle spans horizontally; rowDownRight is the horizontal number of tiles where the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle is located; rowUpLeft is the horizontal number of tiles where the horizontal coordinate of the upper left corner vertex of the minimum bounding rectangle is located.

4. The method according to claim 3, characterized in that The step of determining the horizontal number of tiles where the horizontal coordinates of the lower right corner vertex of the minimum circumscribed rectangle are located and the horizontal number of tiles where the horizontal coordinates of the upper left corner vertex of the minimum circumscribed rectangle are located according to the coordinates of the minimum circumscribed rectangle and the preset zoom level includes: According to the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle and the preset zoom level, the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum bounding rectangle is located is determined by the following formula 2: Wherein, rowDownRight is the horizontal number of the tile where the horizontal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located; x is the horizontal coordinate of the origin; maxX is the horizontal coordinate of the lower right corner of the minimum circumscribed rectangle; resolution i The scale of the preset zoom level; tile width is the number of tiles contained in the horizontal direction in the map image; According to the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle and the preset zoom level, the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located is determined by the following formula 3: Wherein, rowUpLeft is the horizontal number of the tile where the horizontal coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located; x is the horizontal coordinate of the origin; minX is the horizontal coordinate of the upper left corner of the minimum circumscribed rectangle; resolution i The scale of the preset zoom level; tile width is the number of tiles contained in the map image in the horizontal direction.

5. The method according to claim 3, characterized in that The tiles are numbered in the vertical direction of the map image; and according to the coordinates of the minimum bounding rectangle and the preset zoom level, the number of tiles spanned in the vertical direction by the minimum bounding rectangle is determined, including: According to the coordinates of the minimum circumscribed rectangle and the preset zoom level, determine the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located and the vertical number of the tile where the vertical coordinate of the upper left corner vertex is located; According to the longitudinal number of tiles where the ordinate of the lower right corner vertex of the minimum circumscribed rectangle is located, and the longitudinal number of tiles where the ordinate of the upper left corner vertex of the minimum circumscribed rectangle is located, the number of tiles horizontally spanned by the minimum circumscribed rectangle is determined by the following formula 4: count y =colDownRight-colUpLeft+1 Formula 4; Where count y is the number of tiles that the minimum bounding rectangle spans vertically; colDownRight is the vertical number of tiles where the vertical coordinate of the lower right corner vertex of the minimum bounding rectangle is located; colUpLeft is the vertical number of tiles where the vertical coordinate of the upper left corner vertex of the minimum bounding rectangle is located.

6. The method according to claim 5, characterized in that The step of determining the longitudinal number of the tile where the longitudinal coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located and the longitudinal number of the tile where the longitudinal coordinate of the upper left corner vertex is located according to the coordinates of the minimum circumscribed rectangle and the preset zoom level includes: According to the vertical coordinate of the vertex of the lower right corner of the minimum bounding rectangle and the preset zoom level, the vertical number of the tile where the vertical coordinate of the vertex of the lower right corner of the minimum bounding rectangle is located is determined by the following formula 5: Wherein, colDownRight is the vertical number of the tile where the vertical coordinate of the lower right corner vertex of the minimum circumscribed rectangle is located; y is the ordinate of the origin; minY is the ordinate of the lower right corner of the minimum circumscribed rectangle; resolution i The scale of the preset zoom level; tile height is the number of tiles contained vertically in the map image; According to the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle and the preset zoom level, the vertical number of the tile where the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located is determined by the following formula 6: Wherein, colUpLeft is the vertical number of the tile where the vertical coordinate of the upper left corner vertex of the minimum circumscribed rectangle is located; y is the ordinate of the origin; maxY is the ordinate of the upper left corner of the minimum circumscribed rectangle; resolution i The scale of the preset zoom level; tile height is the number of tiles contained vertically in the map image.

7. The method according to claim 5, characterized in that The step of converting the coordinate data of the target plot into corresponding pixel points in the background image and connecting adjacent pixel points to obtain a desensitized plot data image includes: Determine the coordinates of the upper left corner vertex and the lower right corner vertex of the background image according to the horizontal number and the vertical number of the tile where the upper left corner vertex and the lower right corner vertex of the minimum circumscribed rectangle are located; Determine the pixel point corresponding to the coordinate point of the target plot in the background image according to the horizontal and vertical proportions of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image; The adjacent pixel points are connected to obtain the converted target plot, and a desensitized plot data image is obtained.

8. The method according to claim 7, characterized in that The step of determining the pixel point corresponding to the coordinate point of the target plot in the background image according to the sum of the horizontal and vertical proportions of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image comprises: According to the horizontal proportion of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image, the horizontal coordinate corresponding to the coordinate point of the target plot in the background image is determined by the following formula 7: In the formula, transfer x The horizontal coordinate of a certain coordinate point of the target plot in the background image; width result is the length of the background image; p x is the horizontal coordinate of a certain coordinate point of the target plot; tileRectMin x is the horizontal coordinate of the upper left corner of the background image; tileRectMax x is the horizontal coordinate of the lower right corner vertex of the background image; According to the vertical proportion of each coordinate point of the target plot in the background image and the coordinates of the upper left corner vertex and the lower right corner vertex of the background image, the vertical coordinate corresponding to the coordinate point of the target plot in the background image is determined by the following formula 8: In the formula, transfer y is the ordinate corresponding to a coordinate point of the target plot in the background image; height result is the width of the background image; p y is the vertical coordinate of a certain coordinate point of the target plot; tileRectMin y The vertical coordinate of the upper left corner of the background image; tileRectMax y is the ordinate of the lower right corner vertex of the background image.

9. The method according to claim 1, characterized in that The step of determining all background tiles according to the specified aspect ratio and the number of tiles that the minimum circumscribed rectangle spans horizontally and vertically to obtain a background image includes: Determine whether the number of tiles spanned horizontally and vertically by the minimum circumscribed rectangle satisfies the specified aspect ratio; If yes, determine that the tiles spanned horizontally and vertically by the minimum circumscribed rectangle are all background tiles, and obtain the background image; If not, tiles are obtained horizontally or vertically according to the specified aspect ratio until the specified aspect ratio is met, and all background tiles are determined to obtain a background image.

10. A plot coordinate data desensitization device, characterized in that: include: A mapping module, used to map the coordinate data of the target plot into a preset plane rectangular coordinate system to obtain the mapped coordinates of the target plot; A first determination module is used to determine the coordinates of the minimum circumscribed rectangle of the target plot according to the mapped coordinates of the target plot; the length and width of the minimum circumscribed rectangle are parallel to the horizontal axis and the vertical axis in the preset plane rectangular coordinate system; A second determination module is used to determine the number of tiles that the minimum bounding rectangle spans horizontally and vertically in the map image according to the coordinates of the minimum bounding rectangle and a preset zoom level; Wherein the map image comprises a plurality of tiles; A third determination module is used to obtain a background image according to a specified aspect ratio and the number of tiles that the minimum circumscribed rectangle spans horizontally and vertically; The desensitization module is used to convert the coordinate data of the target plot into corresponding pixel points in the background image, and connect adjacent pixel points to obtain a desensitized plot data image.