A method and apparatus for data processing

By converting geofence data into geofence images and enabling user editing, the security and flexibility issues in geofence data display are resolved, achieving both data protection and flexible use.

CN117827938BActive Publication Date: 2026-11-17BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211179721.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2026-11-17
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

Existing technologies for displaying geofence data pose security risks and make it difficult for users to flexibly edit and process geofence information.

Method used

By converting geofence data into geofence images for display, and supporting user editing of these images, geofence data can be protected and used flexibly.

Benefits of technology

It improves the security of geofencing data, reduces the risk of data leakage, and meets users' needs for flexibility in geofencing data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117827938B_ABST
    Figure CN117827938B_ABST
Patent Text Reader

Abstract

This invention discloses a data processing method and apparatus, relating to the field of computer technology. One specific embodiment of the method includes: responding to a received geofence image retrieval request from a client, parsing a geofence identifier from the retrieval request; retrieving a geofence image corresponding to the geofence identifier, wherein the geofence image is generated based on geofence data corresponding to the geofence identifier; and sending the geofence image to the client so that the client can display the geofence image. This embodiment achieves protection of geofence data and improves data security by graphically displaying geofence images based on geofence data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for data processing. Background Technology

[0002] With the continuous development of geographic information digitization, more and more internet applications are based on geographic information. The current implementation of geofence information display function is to send geofence data to the front end, and the front end uses the geofence data to draw the specific geofence information on the map for display. However, this method can lead to the leakage of geofence data, which poses a significant security risk to the data. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a data processing method and apparatus that can display geofence images graphically based on geofence data, thereby protecting geofence data and improving data security.

[0004] To achieve the above objectives, according to one aspect of the present invention, a data processing method is provided, comprising:

[0005] In response to receiving a geofence image retrieval request from a client, the geofence identifier is parsed from the retrieval request;

[0006] Obtain the geofence image corresponding to the geofence identifier, wherein the geofence image is generated based on the geofence data corresponding to the geofence identifier;

[0007] The geofence image is sent to the client so that the client can display the geofence image.

[0008] Optionally, obtaining the geofence image corresponding to the geofence identifier includes:

[0009] Generate a geofence based on the geofence data;

[0010] Determine a preset frame that includes the geofence;

[0011] The geofence image is generated based on the geofence and the preset frame.

[0012] Optionally, after generating the geofence image based on the geofence and the preset frame, the method further includes:

[0013] Determine at least one geographic coordinate data of the preset frame, and use the geographic coordinate data as the location information of the geofence image, so that the client can display the geofence image based on the location information.

[0014] Optionally, the method further includes: after sending the geofence image to the client,

[0015] Receive user editing operation data for the geofence image sent by the client;

[0016] The updated geofence image is determined based on the edit operation data and the geofence data;

[0017] The updated geofence image is sent to the client so that the client can display the updated geofence image.

[0018] Optionally, determining the updated geofence image based on the edit operation data and the geofence data includes:

[0019] Obtain the start and end positions corresponding to the edit operation data;

[0020] Determine the geographic data in the geofence data corresponding to the starting point location;

[0021] The modified geographic data is determined based on the starting point location, the ending point location, and the geographic data.

[0022] The updated geofence data is determined based on the modified geographic data.

[0023] Optionally, determining the updated geofence data based on the edit operation data and the geofence data includes:

[0024] Obtain the starting position, editing direction, and editing distance corresponding to the editing operation data;

[0025] Determine the geographic data in the geofence data corresponding to the starting location;

[0026] The modified geographical data is determined based on the editing operation direction, editing operation distance, and geographical data.

[0027] The updated geofence data is determined based on the modified geographic data.

[0028] Optionally, determining the geographic data in the geofence data corresponding to the starting location includes:

[0029] Determine the distance between each geographic data point in the geofence data and the starting location;

[0030] The geographic data with the smallest distance from the starting position is taken as the geographic data corresponding to the starting position of the drag.

[0031] According to another aspect of the present invention, a data processing apparatus is provided, comprising:

[0032] The parsing module, in response to receiving a geofence image retrieval request from a client, parses the geofence identifier from the retrieval request;

[0033] The acquisition module acquires a geofence image corresponding to the geofence identifier, wherein the geofence image is generated based on the geofence data corresponding to the geofence identifier.

[0034] The sending module sends the geofence image to the client so that the client can display the geofence image.

[0035] According to another aspect of the present invention, an electronic device is provided, comprising:

[0036] One or more processors;

[0037] Storage device for storing one or more programs.

[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by the present invention.

[0039] According to another aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the data processing method provided by the present invention.

[0040] One embodiment of the above invention has the following advantages or beneficial effects: upon receiving a geofence image retrieval request from a client, the geofence image is obtained based on the geofence identifier parsed from the request, and the geofence image is sent to the client, allowing the client to display the geofence image and thus displaying geofence information. The geofence image is generated based on geofence data. The data processing method of this invention, by converting geofence data into images, can protect geofence data, improve data security, and reduce the risk of data leakage.

[0041] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description

[0042] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:

[0043] Figure 1 This is a schematic diagram of the main flow of a data processing method according to an embodiment of the present invention;

[0044] Figure 2 This is a schematic diagram of the main flow of another data processing method according to an embodiment of the present invention;

[0045] Figure 3 This is a schematic diagram of a geofence and a preset frame containing the geofence according to an embodiment of the present invention;

[0046] Figure 4 This is a schematic diagram of the main flow of another data processing method according to an embodiment of the present invention;

[0047] Figure 5 This is a schematic diagram of the main modules of a data processing apparatus according to an embodiment of the present invention;

[0048] Figure 6 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;

[0049] Figure 7 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0050] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0051] Geofencing primarily uses a virtual fence to enclose a virtual geographical boundary. When a terminal enters or leaves this virtual geographical boundary, or moves within it, it can receive automatic notifications or warnings. Taking the order distribution scenario in the express delivery industry as an example, express orders need to be assigned to specific delivery stations based on the delivery address. The underlying logic is to set corresponding geofence information with the station as the "center," and determine the delivery station based on the relationship between the "point" information of the order's delivery address and the "area" information of the geofence. In existing technologies, the display of geofence information on the front end involves the server sending geofence data to the front end, and the front end displaying the geofence information based on this data. This method poses significant data security risks. Even if the geofence data is sent to the front end after conversion to a different coordinate system or encryption of network communication data, data security cannot be guaranteed. Leaks could occur through data reuse within the same coordinate system or by using data exposed by the front end to perform calculations, thereby decrypting encrypted data. Furthermore, users need to reprocess geofence information according to business requirements to obtain geofence data that meets specific needs, which is difficult to achieve with existing technologies. To address the aforementioned issues, embodiments of the present invention provide a data processing method to improve the security of geofence data and provide users with editing functions for geofence data, thereby increasing data flexibility.

[0052] Figure 1 This is a schematic diagram of the main flow of a data processing method according to an embodiment of the present invention, as shown below. Figure 1 As shown, this method is applied to the server side and includes the following steps:

[0053] Step S101: In response to receiving a geofence image retrieval request from the client, parse the geofence identifier from the retrieval request;

[0054] Step S102: Obtain the geofence image corresponding to the geofence identifier, wherein the geofence image is generated based on the geofence data corresponding to the geofence identifier;

[0055] Step S103: Send the geofence image to the client so that the client can display the geofence image.

[0056] In this embodiment of the invention, geofence data can be geographic coordinate data representing various locations, such as longitude and latitude coordinate data, also known as GIS (Geographic Information System) data. The server receives a geofence information retrieval request sent by the client. This request includes a geofence identifier, which identifies the geofence data and the geofence image generated based on that data. In other words, the geofence identifier corresponds to both the geofence data and the geofence image. Upon receiving the retrieval request, the server can parse the geofence identifier from it, retrieve the corresponding geofence image, and return it to the client, thus displaying the geofence information. By visualizing the data, the server protects the data and overcomes the problem of data leakage caused by existing technologies that use coordinate system conversions or network communication data encryption.

[0057] In embodiments of the present invention, such as Figure 2 As shown, before obtaining the geofence image corresponding to the geofence identifier, the following steps are included:

[0058] Step S201: Generate a geofence based on the geofence data;

[0059] Step S202: Determine the preset frame containing the geofence;

[0060] Step S203: Generate a geofence image based on the geofence and the preset frame.

[0061] In this embodiment of the invention, after parsing the geofence identifier from the acquisition request, the corresponding geofence data is obtained based on the geofence identifier. Then, based on the geofence, a preset frame containing the geofence is determined, i.e., the geofence is within the area enclosed by the preset frame. Finally, a geofence image is generated based on the geofence and the rectangular frame. The preset frame can be of any shape, such as a rectangle, circle, polygon, etc. Figure 3 The diagram illustrates a geofence and a preset frame containing the geofence, according to an embodiment of the present invention. The preset frame is a rectangle. The rectangle can be determined based on the geographic coordinates of points in the four directions of the geofence. For example, the positions of the left and right borders of the rectangle can be determined based on the geographic coordinates of the leftmost and rightmost points of the geofence and a preset distance. The positions of the top and bottom borders of the rectangle can be determined based on the geographic coordinates of the topmost and bottommost points of the geofence and a preset distance. The rectangle can be defined based on the four borders. The preset distance can be customized.

[0062] In this embodiment of the invention, after generating a geofence image based on the geofence and a preset frame, the method further includes: determining at least one geographic coordinate data of the preset frame, and using the geographic coordinate data as the location information of the geofence image, so that the client can display the geofence image based on the location information. The at least one geographic coordinate data can be the geographic coordinates of any point on the preset frame. By determining the preset frame containing the geofence, the geofence can be located, i.e., the geofence image can be overlaid onto the corresponding location on the map. For example, after determining the rectangular frame, the geographic coordinates of the four vertices of the rectangle can be determined based on the geofence data, and the geographic coordinates of any one of the four vertices of the rectangle can be used as the location information of the geofence image. When sending the geofence image to the client, the location information of the geofence image is also sent to the client, so that the client can display the geofence image based on the location information.

[0063] After generating a geofence image based on the geofence and preset frame, and determining the location information of the geofence image, the geofence identifier, the geofence image, and the location information of the geofence image are stored in the database.

[0064] In this embodiment of the invention, after generating a geofence image based on the geofence and a preset frame, the portion of the geofence image other than the geofence lines is set to transparent. This ensures that when the geofence image is overlaid on a map, the geofence lines are displayed on the map without obscuring other information, allowing it to continue to be displayed. For example, when the preset frame is a rectangle and the location information is the geographic coordinates of the lower left corner of the rectangle, after receiving the geofence image and its location information, the client overlays the geofence image onto the map with the lower left corner of the rectangle as the origin. This aligns the lower left corner coordinates of the rectangle with the map's origin, allowing the geofence lines to be displayed on the map without affecting the display of other information.

[0065] In this embodiment of the invention, obtaining the geofence image corresponding to the geofence identifier further includes: retrieving the corresponding geofence image from a database based on the geofence identifier. The geofence identifier and the geofence image are stored correspondingly in the database, and the location information of the geofence image is also included. That is, the geofence image can be pre-generated based on geofence data and then stored in the database. Specifically, the generation process includes: generating a geofence based on the geofence data, determining a preset frame containing the geofence, generating a geofence image based on the geofence and the preset frame, determining the location information of the geofence image based on the geofence data, and storing the geofence identifier, geofence image, and geofence image location information correspondingly in the database. When a request to obtain geofence information is received from a client, the corresponding geofence image and its location information can be directly retrieved from the database based on the geofence identifier. The database can be a cached database, such as a Redis cached database, which can improve the efficiency of geofence image retrieval.

[0066] In this embodiment of the invention, after sending the geofence image to the client, the data processing method further includes: receiving zoom operation data for the geofence image sent by the client; determining an updated geofence image based on the zoom operation data and geofence data; and sending the updated geofence image to the client so that the client can display the updated geofence image. Optionally, the zoom data includes a zoom ratio; the geofence data is updated according to the zoom operation data to obtain updated geofence data; a geofence image is generated based on the updated geofence data and sent to the client.

[0067] In this embodiment of the invention, after the geofence image is sent to the client, as follows: Figure 4 As shown, the data processing method also includes:

[0068] Step S401: Receive user editing operation data for the geofence image sent by the client;

[0069] Step S402: Determine the updated geofence image based on the editing operation data and geofence data;

[0070] Step S403: Send the updated geofence image to the client so that the client can display the updated geofence image.

[0071] When the client displays a geofence image, users can edit the geofence according to their specific business needs to obtain a geofence that meets their requirements. Editing operations can include modifying, cropping, and merging the geofence. The client can collect user editing data in real time and send it to the server. The server updates the geofence image based on the editing data and sends the updated geofence data back to the client for display.

[0072] Before receiving user editing operation data for geofence images sent by the client, the client collects user press actions in real time. If the press action is determined to be for the geofence of the geofence image, the editing operation data is collected and sent to the server. If the press action is not for the geofence, the editing operation data is not collected.

[0073] In this embodiment of the invention, the editing operation data can be user operations such as dragging, clicking, cropping, and merging geofences on a geofence image. For example, the editing operation data can be dragging operation data. Determining the updated geofence data based on the editing operation data and the geofence data includes:

[0074] Obtain the starting position, editing direction, and editing distance corresponding to the drag operation data;

[0075] Identify the geographic data within the geofence data corresponding to the starting location;

[0076] The changed geographic data is determined based on the editing operation direction, editing operation distance, and geographic data.

[0077] The updated geofence data is determined based on the changed geographic data.

[0078] When a user edits a geofence image, such as by dragging it, the client sends the collected drag start position, drag direction, and drag distance to the server. The server then determines the geographic data within the geofence data corresponding to the drag start position. In determining the geographic data within the geofence data corresponding to the drag start position, the distance of each geographic data point in the geofence data to the drag start position can be determined first; the geographic data point with the smallest distance to the drag start position is then selected as the geographic data corresponding to the drag start position. Alternatively, geographic data points within a first preset distance range from the drag start position can also be selected as the geographic data corresponding to the drag start position.

[0079] The first change vector of the geographic data can be determined based on the dragging direction and distance. The updated geographic data can be determined by summing the geographic data with the first change vector. Alternatively, the second change vector can be determined by multiplying the first change vector with a first preset coefficient. The updated geographic data can then be determined by summing the geographic data with the second change vector. The updated geofence data can then be determined based on the updated geographic data. Further, second geographic data located on the geofence within a second preset range from the geographic data is obtained. Third preset coefficients are determined based on the distances between each second geographic data point and the geographic data. A third change vector is determined based on the product of the first change vector or the second change vector and the third preset coefficient. The updated second geographic data can then be determined by summing the second geographic data with the corresponding third change vector. The updated geofence data can then be determined based on the updated geographic data and the updated second geographic data.

[0080] In this embodiment of the invention, the editing operation data can also be click operation data, such as two click operation data within a preset time. When the editing operation data is two click operation data, determining the updated geofence data based on the editing operation data and geofence data includes: obtaining the starting position (e.g., the first click position) and the ending position (e.g., the second click position) corresponding to the click operation data; determining the geographic data in the geofence data corresponding to the starting position; and determining the changed geographic data based on the starting position, the ending position, and the geographic data. The direction and distance of the geographic data change can be determined based on the starting position and the ending position, i.e., the click change vector of the geographic data can be determined. The changed geographic data can be determined by summing the geographic data and the click change vector, thereby determining the updated geofence data.

[0081] After determining the updated geofence data, the updated geofence data and corresponding geofence identifiers are saved to the database. An updated geofence image can be generated based on the updated geofence data and sent to the client. This allows the updated geofence information to be displayed promptly after the user edits the geofence, enabling timely updates of geofence information on the client side and flexible use of geofence data by the user. At the same time, the old geofence image is deleted.

[0082] The data processing method provided in this invention displays geofence information and protects geofence data by sending geofence data as geofence images to the client. Furthermore, by collecting user editing data of the geofence images, the method modifies the geofence data and sends the updated geofence images to the client to display the updated geofence information. This allows users to edit and process geofence data, meeting data flexibility requirements and enabling flexible use of the geofence data. The method of this invention improves data security and meets data flexibility requirements, and can be extended to other fields involving data processing.

[0083] like Figure 5 As shown, another aspect of the present invention provides a data processing apparatus 500, comprising:

[0084] The parsing module 501, in response to receiving a geofence image retrieval request from the client, parses the geofence identifier from the retrieval request;

[0085] The acquisition module 502 acquires the geofence image corresponding to the geofence identifier, wherein the geofence image is generated based on the geofence data corresponding to the geofence identifier;

[0086] The sending module 503 sends the geofence image to the client so that the client can display the geofence image.

[0087] In this embodiment of the invention, the acquisition module 502 is further configured to: generate a geofence based on geofence data; determine a preset frame containing the geofence; and generate a geofence image based on the geofence and the preset frame.

[0088] In this embodiment of the invention, the acquisition module 502 is further configured to: after generating a geofence image based on the geofence and the preset frame, determine at least one geographic coordinate data of the preset frame, and use the geographic coordinate data as the location information of the geofence image, so that the client can display the geofence image based on the location information.

[0089] In this embodiment of the invention, the sending module 503 is further configured to: after sending the geofence image to the client, receive user editing operation data for the geofence image sent by the client; determine the updated geofence image based on the editing operation data and the geofence data; and send the updated geofence image to the client so that the client can display the updated geofence image.

[0090] In this embodiment of the invention, the sending module 503 is further configured to: obtain the starting position and the ending position corresponding to the editing operation data; determine the geographic data in the geofence data corresponding to the starting position; determine the changed geographic data based on the starting position, the clicked ending position and the geographic data; and determine the updated geofence data based on the changed geographic data.

[0091] In this embodiment of the invention, the sending module 503 is further configured to: obtain the starting position, editing operation direction, and editing operation distance corresponding to the editing operation data; determine the geographic data in the geofence data corresponding to the starting position; determine the changed geographic data based on the editing direction, editing distance, and geographic data; and determine the updated geofence data based on the changed geographic data.

[0092] In this embodiment of the invention, the sending module 503 is further configured to: determine the distance between each geographic data in the geofence data and the starting position; and select the geographic data with the smallest distance from the starting position as the geographic data corresponding to the starting position.

[0093] Another aspect of the present invention provides an electronic device, including: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method of the present invention.

[0094] Another aspect of the present invention provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the data processing method of the present invention.

[0095] Figure 6 An exemplary system architecture 600 is shown, in which a data processing method or data processing apparatus to which embodiments of the present invention can be applied is illustrated.

[0096] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, and 603, a network 604, and a server 605. Network 604 serves as the medium for providing communication links between terminal devices 601, 602, and 603 and server 605. Network 604 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.

[0097] Users can use terminal devices 601, 602, and 603 to interact with server 605 via network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).

[0098] Terminal devices 601, 602, and 603 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0099] Server 605 can be a server that provides various services, such as a backend management server that supports shopping websites browsed by users using terminal devices 601, 602, and 603 (for example only). The backend management server can analyze and process data such as received product information query requests, and feed back the processing results (such as target push information, product information - for example only) to the terminal devices.

[0100] It should be noted that the data processing method provided in the embodiments of the present invention is generally executed by server 605, and correspondingly, the data processing device is generally disposed in server 605.

[0101] It should be understood that Figure 6 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0102] The following is for reference. Figure 7 It shows a schematic diagram of the structure of a computer system 700 suitable for implementing a terminal device of the present invention. Figure 7 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0103] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 702 or programs loaded from storage section 708 into random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the system 700. The CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0104] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.

[0105] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit (CPU) 701, it performs the functions defined above in the system of this invention.

[0106] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0108] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor can be described as including a parsing module, an acquisition module, and a sending module. The names of these modules do not necessarily limit the module itself; for example, the parsing module can also be described as "a module that, in response to receiving a geofence image acquisition request from a client, parses out the geofence identifier from the acquisition request."

[0109] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs that, when executed by the device, cause the device to: parse a geofence identifier from a request for obtaining a geofence image in response to receiving a request from a client; obtain a geofence image corresponding to the geofence identifier, wherein the geofence image is generated based on geofence data corresponding to the geofence identifier; and send the geofence image to the client so that the client can display the geofence image.

[0110] According to the technical solution of the embodiments of the present invention, the data processing method provided by the embodiments of the present invention protects geofence data by sending geofence data to the client as geofence images for display. Furthermore, by collecting user editing operation data of the geofence images, the geofence data is modified, and the updated geofence images are sent to the client for display, enabling users to edit and process the geofence data, meeting the requirements of data flexibility, and allowing users to use the geofence data flexibly. The method of the embodiments of the present invention can improve data security and meet the requirements of data flexibility, and the method can be extended to other fields involving data processing.

[0111] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A data processing method, characterized in that, include: In response to receiving a geofence image retrieval request from a client, the geofence identifier is parsed from the retrieval request; Obtain the geofence image corresponding to the geofence identifier, wherein the geofence image is generated based on the geofence data corresponding to the geofence identifier; The geofence image is sent to the client so that the client can display the geofence image. The step of obtaining the geofence image corresponding to the geofence identifier includes: generating a geofence based on the geofence data; determining a preset frame containing the geofence; and generating the geofence image based on the geofence and the preset frame.

2. The method according to claim 1, characterized in that, After generating the geofence image based on the geofence and the preset frame, the method further includes: Determine at least one geographic coordinate data of the preset frame, and use the geographic coordinate data as the location information of the geofence image, so that the client can display the geofence image based on the location information.

3. The method according to claim 1, characterized in that, The method further includes: after sending the geofence image to the client... Receive user editing operation data for the geofence image sent by the client; The updated geofence image is determined based on the edit operation data and the geofence data; The updated geofence image is sent to the client so that the client can display the updated geofence image.

4. The method according to claim 3, characterized in that, The updated geofence image is determined based on the edit operation data and the geofence data, including: Obtain the start and end positions corresponding to the edit operation data; Determine the geographic data in the geofence data corresponding to the starting point location; The modified geographic data is determined based on the starting point location, the ending point location, and the geographic data. The updated geofence image is determined based on the modified geographic data.

5. The method according to claim 3, characterized in that, The updated geofence image is determined based on the edit operation data and the geofence data, including: Obtain the starting position, editing direction, and editing distance corresponding to the editing operation data; Determine the geographic data in the geofence data corresponding to the starting location; The modified geographical data is determined based on the editing operation direction, editing operation distance, and geographical data. The updated geofence image is determined based on the modified geographic data.

6. The method according to claim 5, characterized in that, Determining the geographic data in the geofence data corresponding to the starting location includes: Determine the distance between each geographic data point in the geofence data and the starting location; The geographic data that is closest to the starting position is taken as the geographic data corresponding to the starting position.

7. A data processing apparatus, characterized in that, include: The parsing module, in response to receiving a geofence image retrieval request from a client, parses the geofence identifier from the retrieval request; The acquisition module acquires a geofence image corresponding to the geofence identifier, wherein the geofence image is generated based on the geofence data corresponding to the geofence identifier. The sending module sends the geofence image to the client so that the client can display the geofence image. The acquisition module is further configured to: generate a geofence based on the geofence data; determine a preset frame containing the geofence; and generate a geofence image based on the geofence and the preset frame.

8. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.

9. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Geo-fence setting method and method for limiting motion of robot

    CN108829095A

  • Vehicle route information display method and device, electronic equipment and readable medium

    CN113190613A