Data processing method, device, equipment, storage medium and program product
By obtaining and dividing marked location areas of map data in intelligent connected cars, geofence data is generated, which solves the problem of leakage of sensitive geographical data, achieves accurate identification and protection of sensitive data, and ensures the security and accuracy of data. sex.
Patent Information
- Application Number
- CN202410850750.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In intelligent connected cars, sensitive geographic data collected by on-board sensors is easily leaked without strict security protection and compliance processing. Existing technologies cannot effectively identify and prevent the leakage of sensitive geographic data.
By obtaining the map data of the target area, it is divided into marked location areas, and geofence data is generated based on the mapping relationship of these areas, which is used to mark and protect sensitive geographic data to ensure that the safe area does not contain sensitive data.
It achieves accurate identification and protection of sensitive geographic data areas, prevents sensitive data leakage, and ensures the accuracy and accuracy of generated geofence data.
Smart Images

Figure CN118397732B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent connected vehicle technology, and in particular to a data processing method, device, equipment, storage medium and program product. Background Art
[0002] With the rapid development of the intelligent connected vehicle industry, the accuracy of various on-board sensors such as cameras and radars is getting higher and higher, and the on-board sensors can collect more and more data, including environmental data during vehicle driving, vehicle body status, and driving data.
[0003] However, in the process of data collection, it is inevitable to capture sensitive geographic data such as spatial coordinates of road facilities around the vehicle, point cloud data and its attribute data. If these sensitive geographic data are not strictly protected and handled in compliance, they are very likely to be leaked. Therefore, there is currently no effective solution to accurately identify and determine whether geographic data is sensitive and prevent the leakage of sensitive geographic data. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, apparatus, device, storage medium and program product for accurately identifying areas where sensitive geographic data are located and preventing leakage of sensitive geographic data.
[0005] In a first aspect, an embodiment of the present application provides a data processing method, including:
[0006] Acquire map data of a target area, wherein the map data includes location data of each location point in the target area;
[0007] Mapping the location data of the location point to the marked location area contained in the target area to obtain a mapping relationship between the marked location area and the location point corresponding to the map data, wherein the marked location area is a geographic fence area obtained by dividing the target area;
[0008] Based on the mapping relationship between the marked position area and the position point, marking the marked position area as a safe area;
[0009] Based on the mark of the security area of the marked location area, geographic fence data for the target area is generated, and the geographic fence data is used for protecting sensitive geographic data.
[0010] In a possible implementation, the map data includes map data from different data sources, and marking the marked position area as a safe area based on a mapping relationship between the marked position area and the position point includes:
[0011] Based on the mapping relationship between the marked position areas and the position points respectively corresponding to the map data from different data sources, determining the marks of the map data from different data sources corresponding to the marked position areas;
[0012] According to the marks in the map data of different data sources corresponding to the marked position area, the marked position area is marked as a safe area.
[0013] In a possible implementation, marking the marked position area as a safe area according to the marks in the map data of different data sources corresponding to the marked position area includes:
[0014] Obtaining weight values corresponding to different data sources, wherein the weight values are determined according to the type and reliability of the map data;
[0015] Based on the marks in the map data of different data sources corresponding to the marked position area and the weight values corresponding to the different data sources, the marked position area is marked as a safe area.
[0016] In a possible implementation manner, mapping the position data of the position point to the marked position area included in the target area to obtain a mapping relationship between the marked position area and the position point corresponding to the map data includes:
[0017] Classify the map data to obtain a data set of corresponding data types, wherein the data type includes at least one of point data, line data and surface data, wherein the point data corresponds to a location point, the line data corresponds to a plurality of ordered location points, and the surface data corresponds to a polygonal ring formed by a plurality of ordered location points;
[0018] For any location point included in the data set, the location data of the location point is mapped to the marked location area included in the target area to obtain a mapping relationship between the marked location area and the location point corresponding to the map data.
[0019] In a possible implementation manner, marking the marked position area as a safe area based on the mapping relationship between the marked position area and the position point includes:
[0020] Based on the mapping relationship between the marked position area and the position points, determining a set of position points mapped to the marked position area;
[0021] Based on each location point in the location point set, the attribute data corresponding to each location point in the location point set is queried, and based on the attribute data corresponding to each location point in the location point set, whether the marked location area is a safe area is marked, the attribute data corresponding to the location point is the attribute data of the geographic element of the corresponding data type, and the attribute data of the geographic element includes the name and / or type of the geographic element.
[0022] In a possible implementation, querying the attribute data corresponding to each location point in the location point set based on each location point in the location point set includes:
[0023] If the location point is a location point in point data, querying the corresponding attribute data of the point data to obtain the attribute data corresponding to the location point;
[0024] If the location point is a location point in line data, querying the corresponding attribute data of the line data to obtain the attribute data corresponding to the location point;
[0025] If the location point is a location point in the surface data, the attribute data corresponding to the surface data is queried to obtain the attribute data corresponding to the location point.
[0026] In a possible implementation, marking whether the marked location area is a safe area based on the attribute data corresponding to each location point in the location point set includes:
[0027] If the attribute data corresponding to each position point in the position point set does not include sensitive attribute data, the marked position area is marked as a safe area.
[0028] In a possible implementation, the method further includes:
[0029] The geo-fence data is processed in blocks to obtain corresponding block files;
[0030] The block files corresponding to the geo-fence data are merged to generate an index file corresponding to the geo-fence data, wherein the index file contains a corresponding relationship between the block files and the geo-fence data stored therein.
[0031] In a second aspect, an embodiment of the present application provides another data processing method, including:
[0032] Get the current driving position of the vehicle;
[0033] If the current driving position is within the target area, obtaining the geo-fence data of the area where the current driving position is located from the geo-fence data of the target area, wherein the geo-fence data of the target area is generated based on the first aspect and / or various possible implementation methods of the first aspect;
[0034] Based on the geo-fence data of the area where the current driving position is located, determining whether the area where the current driving position is located is a safe area;
[0035] According to the judgment result, it is determined that the vehicle collects environmental data of the area where the current driving position is located.
[0036] In a possible implementation manner, the geo-fence data of the target area is stored in multiple block files, and if the current driving position is within the target area, the geo-fence data of the area where the current driving position is located is obtained from the geo-fence data of the target area, including:
[0037] If the current driving position is within the target area, then the geo-fence data of all block files are loaded or the geo-fence data of the target block file is loaded according to the current memory resource status of the device, and the target block file is a block file storing the geo-fence data of the area where the current driving position is located;
[0038] The geo-fence data of the area where the current driving position is located is obtained from the geo-fence data of the target block file.
[0039] In a possible implementation, the loading of the geo-fence data of the target segment file includes:
[0040] Acquire the position data of the current driving position;
[0041] According to the position data of the current driving position, determining a target mark position area mapped to the current driving position among a plurality of mark position areas included in the target area;
[0042] Obtaining an index file of the target area, wherein the index file includes a correspondence between the block files and the geo-fence data stored therein;
[0043] Query the index file, and determine, from among all the block files, the block file storing the geo-fence data of the target mark location area as the target block file;
[0044] Load the geo-fence data of the target segment file.
[0045] In a possible implementation manner, obtaining the geo-fence data of the area where the current driving position is located from the geo-fence data of the target segment file includes:
[0046] Acquire the position data of the current driving position;
[0047] According to the position data of the current driving position, determining a target mark position area mapped to the current driving position among a plurality of mark position areas included in the target area;
[0048] The geo-fence data of the target mark position area is obtained from the geo-fence data of the target block file as the geo-fence data of the area where the current driving position is located.
[0049] In a third aspect, an embodiment of the present application provides a data processing device, including:
[0050] An acquisition module, used to acquire map data of a target area, wherein the map data includes location data of each location point in the target area;
[0051] A mapping module, used to map the location data of the location point to a marked location area contained in the target area, to obtain a mapping relationship between the marked location area and the location point corresponding to the map data, wherein the marked location area is a geographic fence area obtained by dividing the target area;
[0052] A marking module, used for marking the marked position area as a safe area based on the mapping relationship between the marked position area and the position point;
[0053] A generating module is used to generate geographic fence data for the target area according to the mark of the security area of the marked location area, and the geographic fence data is used for protecting sensitive geographic data.
[0054] In a fourth aspect, an embodiment of the present application provides another data processing device, including:
[0055] A first acquisition module is used to acquire the current driving position of the vehicle;
[0056] A second acquisition module is used for acquiring geo-fence data of the area where the current driving position is located from the geo-fence data of the target area if the current driving position is within the range of the target area, wherein the geo-fence data of the target area is generated based on the first aspect and / or various possible implementation methods of the first aspect;
[0057] A judgment module, used for judging whether the area where the current driving position is located is a safe area based on the geographical fence data of the area where the current driving position is located;
[0058] The determination module is used to determine, based on the judgment result, that the vehicle collects environmental data of the area where the current driving position is located.
[0059] In a fifth aspect, an embodiment of the present application provides a data processing device, including: a memory, a processor;
[0060] The memory stores computer-executable instructions;
[0061] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect, or is used to implement the above second aspect and / or various possible implementations of the second aspect.
[0062] In a sixth aspect, an embodiment of the present application provides a data processing system, including a vehicle and a data processing device;
[0063] The data processing device is used to obtain map data of a target area, wherein the map data includes location data of each location point in the target area; map the location data of the location point to a marked location area included in the target area to obtain a mapping relationship between the marked location area and the location point corresponding to the map data, wherein the marked location area is a geographic fence area obtained by dividing the target area; based on the mapping relationship between the marked location area and the location point, mark the marked location area as a security area; and generate geographic fence data for the target area according to the marking of the security area of the marked location area, wherein the geographic fence data is used for protecting sensitive geographic data;
[0064] The vehicle is used to obtain the current driving position of the vehicle; if the current driving position is within the target area, the geo-fence data of the area where the current driving position is located is obtained from the geo-fence data of the target area; based on the geo-fence data of the area where the current driving position is located, it is determined whether the area where the current driving position is located is a safe area; based on the judgment result, it is determined that the vehicle collects environmental data of the area where the current driving position is located.
[0065] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-readable storage medium is stored computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the first aspect and / or various possible implementation methods of the first aspect as above, or to implement the second aspect and / or various possible implementation methods of the second aspect as above.
[0066] In an eighth aspect, an embodiment of the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the first aspect above and / or various possible implementations of the first aspect, or is used to implement the second aspect above and / or various possible implementations of the second aspect.
[0067] The data processing method, device, equipment, storage medium and program product provided in the embodiments of the present application can obtain the map data of the target area, the map data contains the location data of each location point in the target area, and the target area can be divided into multiple marked location areas. By mapping the location data of the location point to each marked location area, the mapping relationship between the marked location area and the location point corresponding to the map data can be obtained, that is, the location points contained in each marked location area are determined, and based on the location points contained in each marked location area, each marked location area can be marked as a safe area, thereby generating geographic fence data for the entire target area. That is, the entire target area is divided into a safe area and an unsafe area, wherein the safe area does not contain sensitive geographic data, while the unsafe area may contain sensitive geographic data. Since the geographic fence data is automatically generated based on the map data, the accuracy and precision of the generated geographic fence data are ensured, and the area where the sensitive geographic data is located can be accurately identified to prevent the leakage of sensitive geographic data. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0069] Figure 1 A scenario diagram of a data processing method provided in this application Figure 1 ;
[0070] Figure 2 A schematic diagram of a data processing method provided for this application Figure 1 ;
[0071] Figure 3 A schematic diagram of a data processing method provided for this application Figure 2 ;
[0072] Figure 4 A flowchart for classifying map data from different data sources according to the present application;
[0073] Figure 5 Flowchart for storing geo-fence data for this application;
[0074] Figure 6 A schematic diagram of a data processing method provided for this application Figure 3 ;
[0075] Figure 7 A scenario diagram of a data processing method provided in this application Figure 2 ;
[0076] Figure 8 A schematic diagram of a data processing method provided for this application Figure 4 ;
[0077] Fig. 9 Flowchart for loading geo-fence data for this application;
[0078] Fig.10 A flowchart for querying whether the area where the current geographical location is located is a safe area for this application;
[0079] Fig.11 A schematic diagram of the structure of a data processing device provided in this application Figure 1 ;
[0080] Fig.12 A schematic diagram of the structure of a data processing device provided in this application Figure 2 ;
[0081] Fig.13 A structural diagram of a data processing device provided for this application;
[0082] Fig.14 A schematic diagram of the structure of a data processing system provided for this application.
[0083] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0084] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0085] Figure 1 A scenario diagram of a data processing method provided in this application Figure 1 ,like Figure 1As shown, the application scenario of the present application is specifically a scenario in which environmental data of the area where the current driving position of the vehicle is located is collected while the vehicle is driving. When the vehicle is driving, the on-board sensor collects environmental data of the area where the current driving position of the vehicle is located, and transmits the collected environmental data to the vehicle control center to provide a decision-making basis for driving the vehicle.
[0086] In view of the above scenario, in the prior art, when vehicle-mounted sensors collect data about the vehicle's surrounding environment, they will inevitably capture sensitive geographic data, causing leakage of sensitive geographic data.
[0087] The data processing method provided by the present application divides an area into multiple marked position areas, and maps the position points in the map data of the area to the multiple marked position areas, and determines whether each marked position area in the area is a safe area that does not contain sensitive geographic data based on each position point that falls into the marked position area, and generates geographic fence data for the area. When a vehicle travels to the area, the geographic fence data of the area is used to assist the vehicle in deciding whether to collect environmental data, thereby solving the technical problem that sensitive geographic data may be leaked when the vehicle collects environmental data.
[0088] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0089] Figure 2 A schematic diagram of a data processing method provided for this application Figure 1 , the data processing method can be applied to terminal devices, such as Figure 2 As shown, the method includes:
[0090] S201. Obtain map data of a target area, where the map data includes location data of each location point in the target area.
[0091] A data processing method provided in an embodiment of the present application can be applied to a terminal device, which may be a desktop computer, a laptop computer, a tablet computer, a smart phone, etc., which can perform human-computer interaction with a user through input devices such as a keyboard, a virtual keyboard, a touchpad, a touch screen, and a voice control device.
[0092] In an embodiment of the present application, when it is necessary to generate geo-fence data for a target area, map data of the target area may be obtained, and the map data may include location data of each location point in the target area. For example, the location point may be a coordinate point, and the location data may be longitude and latitude data.
[0093] S202, mapping the location data of the location point to the marked location area included in the target area, and obtaining a mapping relationship between the marked location area and the location point corresponding to the map data, wherein the marked location area is a geographic fence area obtained by dividing the target area.
[0094] In an embodiment of the present application, the target area can be divided into multiple geo-fence areas, that is, divided into multiple mark location areas. For example, the target area can be divided into several rectangular mark location areas, or the target area can be divided into several triangular mark location areas. The embodiment of the present application does not impose any specific restrictions on the way of dividing the target area.
[0095] Then, the location data of the location point can be mapped to the marked location area in the target area, wherein a marked location area may be mapped with the location data of one location point, a marked location area may also be mapped with the location data of multiple location points, and in addition, a marked location area may not have a location point mapped with it.
[0096] S203: Based on the mapping relationship between the marked position area and the position point, mark the marked position area as a safe area.
[0097] Based on the location points falling into the marked location area, the marked location area is marked as a safe area, wherein the safe area may refer to an area that does not contain sensitive geographic data.
[0098] S204. Generate geographic fence data for the target area based on the mark of the security area of the marked location area. The geographic fence data is used to protect sensitive geographic data.
[0099] Each marked location area in the target area is marked, which completes the marking of the entire target area. That is, it is possible to know which part of the target area is a safe area that does not contain sensitive geographic data, and generate geographic fence data for the entire target area.
[0100] The data processing method provided in the embodiment of the present application can obtain the map data of the target area, the map data contains the location data of each location point in the target area, and the target area can be divided into multiple marked location areas. By mapping the location data of the location point to each marked location area, the mapping relationship between the marked location area and the location point corresponding to the map data can be obtained, that is, the location points contained in each marked location area are determined, and based on the location points contained in each marked location area, each marked location area can be marked as a safe area, thereby generating geographic fence data for the entire target area. That is, the entire target area is divided into a safe area and an unsafe area, wherein the safe area does not contain sensitive geographic data, while the unsafe area may contain sensitive geographic data. Since the geographic fence data is automatically generated based on the map data, the accuracy and precision of the generated geographic fence data are ensured, and the area where the sensitive geographic data is located can be accurately identified to prevent the leakage of sensitive geographic data.
[0101] Figure 3 A schematic diagram of a data processing method provided for this application Figure 2 ,like Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, a data processing method is described in detail. The data processing method can be applied to a terminal device. The method includes:
[0102] S301. Obtain map data of a target area, where the map data includes location data of each location point in the target area.
[0103] S302, mapping the location data of the location point to the marked location area included in the target area, and obtaining a mapping relationship between the marked location area and the location point corresponding to the map data, wherein the marked location area is a geographic fence area obtained by dividing the target area.
[0104] In a possible implementation manner, before mapping the position data of the position point to the marked position area included in the target area, the data processing method may further specifically include:
[0105] Divide the target area into multiple marked position areas.
[0106] In a possible implementation, mapping the location data of the location point to the marked location area included in the target area to obtain a mapping relationship between the marked location area and the location point corresponding to the map data may specifically include:
[0107] Based on the set accuracy, the location data of the location point is mapped to the marked location area contained in the target area, and a mapping relationship between the marked location area and the location point corresponding to the map data is obtained.
[0108] In the embodiment of the present application, the location data of the location point can be mapped to the corresponding marked location area based on the set accuracy, wherein the set accuracy defines the area size of each marked location area. By providing marked location areas of various accuracies, diverse data mapping requirements can be met.
[0109] For example, for a certain coordinate point, its longitude data is 116.577891 and its latitude data is 40.00201. Based on the longitude and latitude data, the coordinate point can be mapped to the marked position area (116.567891~116.590012, 40.00001~40.03001). For the convenience of calculation and use, the marked position area can also be expressed as (12123, 13245).
[0110] The mapping process can be abstracted into the following function (the codes of the formula are represented by serial numbers ①②③, which will continue to be used below):
[0111] ①
[0112] Among them, Longitude represents the longitude data of the location point; Latitude represents the latitude data of the location point; Accuracy represents the set accuracy; Position represents the marked location area after mapping.
[0113] In a possible implementation, mapping the location data of the location point to the marked location area included in the target area to obtain a mapping relationship between the marked location area and the location point corresponding to the map data may specifically include:
[0114] Classify the map data to obtain a data set of corresponding data types, where the data type includes at least one of point data, line data and surface data, where the point data corresponds to a location point, the line data corresponds to a plurality of ordered location points, and the surface data corresponds to a polygonal ring formed by a plurality of ordered location points;
[0115] For any location point included in the data set, the location data of the location point is mapped to the marked location area included in the target area, and a mapping relationship between the marked location area and the location point corresponding to the map data is obtained.
[0116] In the embodiment of the present application, the map data can be classified and processed to obtain a data set of corresponding data types, and the data type includes at least one of point data, line data and surface data. The map data from different data sources are classified and standardized according to the data type, which can eliminate the influence caused by different measurement units and dimensions between the map data from different data sources.
[0117] Point data corresponds to a location point. Point data can be a POI (Point of Interest), which refers to an information point with a specific geographical location and attributes, and is used to represent common point-shaped geographic features. In a geographic information system, the location data of the center point and the corresponding attribute data are usually provided.
[0118] Line data corresponds to multiple ordered location points and is used to represent common linear geographic features. In geographic information systems, line data is usually road network data, which provides location data of all location points between the starting position and the ending position of the road, as well as attribute data such as road width.
[0119] Surface data corresponds to a polygonal ring formed by multiple ordered location points, which is used to represent common surface geographic features. In a geographic information system, it can provide location data and corresponding attribute data of multiple location points constituting a polygon for forest data, grassland data, etc.
[0120] Map data contains map data from different data sources. Figure 4 As shown, it is a flowchart of the present application for classifying and processing map data from different data sources, and corresponding data preprocessing is performed on map data of different data types, that is, point data is preprocessed to obtain a data set of preprocessed point data; line data is preprocessed to obtain a data set of preprocessed line data; and surface data is preprocessed to obtain a data set of preprocessed surface data.
[0121] The process of data preprocessing can be abstracted into the following functions:
[0122] ②
[0123] Among them, GeoShape src Represents map data before classification processing; GeoShape post Represents a data set of corresponding data types obtained after classification processing, which may include the following: a data set of point data, a data set of line data, and a data set of surface data.
[0124] GeoShape in formula ② post No matter point data, line data or surface data, they are all composed of location points, so the GeoShape in formula ② post Combined with formula ①, GeoShape post Convert to DigitalShape, where DigitalShape is GeoShape post The data set of point data, the data set of line data, and the data set of surface data after the location points in the map are mapped.
[0125] S303: Determine the mark of the map data from different data sources corresponding to the marked position area based on the mapping relationship between the marked position areas and the position points respectively corresponding to the map data from different data sources.
[0126] In an embodiment of the present application, for any marked position area, the mark of the marked position area in the map data of a data source can be first determined, and then the marks of the map data of multiple data sources can be integrated to generate the final mark of the marked position area, so that the generated final mark has high reliability.
[0127] The process of marking map data in a data source can be abstracted into the following functions:
[0128] ③
[0129] Among them, DigitalShape represents GeoShape post The location points in the data set are the data set of point data, the data set of line data, and the data set of surface data after mapping processing; Position represents the marked position area; i represents the i-th data source, and there are n data sources in total; SingleFlag represents the mark of the marked position area in the map data of the corresponding data source, and the mark can be 0 or 1, 0 represents safe, and 1 represents sensitive.
[0130] For any marked position area, determine the mark of the marked position area in the map data of a data source, specifically, based on the mapping relationship between the marked position area and the position point corresponding to the map data of the data source, mark the marked position area as a safe area to obtain the mark of the marked position area in the map data of the data source.
[0131] In a possible implementation, based on the mapping relationship between the marked position area and the position point, marking the marked position area as a safe area may specifically include:
[0132] Based on the mapping relationship between the marked position area and the position points, determining a set of position points mapped to the marked position area;
[0133] Based on each location point in the location point set, the attribute data corresponding to each location point in the location point set is queried. Based on the attribute data corresponding to each location point in the location point set, whether the marked location area is a safe area is marked. The attribute data corresponding to the location point is the attribute data of the geographic element of the corresponding data type. The attribute data of the geographic element includes the name and / or type of the geographic element.
[0134] In an embodiment of the present application, by querying the attribute data corresponding to each location point in the location point set, the marked location area is marked as a safe area, that is, in the present application, based on the attribute data of the location points falling into the marked location area, a mark for the marked location area can be automatically generated, and the efficiency of generating the mark is high. Among them, the attribute data corresponding to the location point is the attribute data of the corresponding geographic element, and the attribute data of the geographic element includes the name of the geographic element or the type of the geographic element. For example, the name of the geographic element can be XX building, YY lake, etc., and the type of the geographic element can be grassland, woodland, etc. Geographic elements include geographic elements of point data type, geographic elements of line data type, and geographic elements of surface data type.
[0135] In a possible implementation, based on each location point in the location point set, querying the attribute data corresponding to each location point in the location point set may specifically include:
[0136] If the location point is a location point in the point data, query the attribute data of the corresponding point data to obtain the attribute data corresponding to the location point;
[0137] If the location point is a location point in the line data, query the attribute data of the corresponding line data to obtain the attribute data corresponding to the location point;
[0138] If the location point is a location point in the surface data, the attribute data of the corresponding surface data is queried to obtain the attribute data corresponding to the location point.
[0139] The attribute data of a location point is specifically the attribute data of the geographical element corresponding thereto.
[0140] In a possible implementation, based on the attribute data corresponding to each location point in the location point set, marking whether the marked location area is a safe area may specifically include:
[0141] If the attribute data corresponding to each location point in the location point set does not contain sensitive attribute data, the marked location area is marked as a safe area.
[0142] If the attribute data corresponding to each location point in the location point set does not contain sensitive attribute data, the corresponding marked location area can be marked as a safe area; if the attribute data corresponding to each location point in the location point set contains sensitive attribute data, the corresponding marked location area can be marked as a non-safe area; or, if the attribute data corresponding to each location point in the location point set contains questionable attribute data, the corresponding marked location area can be marked as a questionable area.
[0143] S304: Mark the marked position area as a safe area according to the marks in the map data of different data sources corresponding to the marked position area.
[0144] In a possible implementation, marking the marked position area as a safe area according to marks in map data of different data sources corresponding to the marked position area may specifically include:
[0145] Obtain the weight values corresponding to different data sources. The weight values are determined according to the type and reliability of map data.
[0146] Based on the marks in the map data of different data sources corresponding to the marked position area and the weight values corresponding to the different data sources, the marked position area is marked as a safe area.
[0147] The marking process of comprehensively marking the marked location area in the map data of different data sources to determine whether the marked location area is a safe area can be abstracted into the following function④:
[0148]
[0149] Among them, SingeleFlag represents the mark of the marked location area in the map data of the corresponding data source; Indicates the weight value of the corresponding data source; FlagValue indicates the final mark of the marked position area.
[0150] In the embodiment of the present application, the final mark of the marked position area can be determined by weighted summation.
[0151] Exemplarily, the marked position area may be marked as a safe area, a non-safe area or a questionable area, etc. The above method of generating the final mark ensures the reliability of the generated final mark.
[0152] S305. Generate geographic fence data for the target area based on the mark of the security area of the marked location area. The geographic fence data is used to protect sensitive geographic data.
[0153] In a possible implementation manner, the data processing method of the present application may further include:
[0154] Process the geo-fence data in blocks to obtain corresponding block files;
[0155] The block files corresponding to the geo-fence data are merged to generate an index file corresponding to the geo-fence data, where the index file contains a corresponding relationship between the block files and the geo-fence data stored therein.
[0156] After marking of each marked position area in the target area, that is, generating geo-fence data for the target area, the generated geo-fence data needs to be stored for subsequent use.
[0157] In an embodiment of the present application, the generated geo-fence data may be processed in blocks, and then each data block may be compressed separately, and the compressed data blocks may be stored in the form of block files.
[0158] Block processing can bring the following effects:
[0159] Reduce memory consumption. After processing the current data block, the data corresponding to the data block can be reused. Concurrent processing is convenient. Each data block can start a separate thread for processing, reducing the time consumption of data processing. Positioning can be performed according to the blocks, which brings convenience to use.
[0160] By merging the block files corresponding to the geo-fence data and generating the index files corresponding to the geo-fence data, subsequent query applications can be facilitated. Figure 5 As shown, this is a flow chart for storing geo-fence data in the present application. As shown in the figure, the generated geo-fence data is segmented to obtain corresponding data blocks, the data blocks corresponding to the geo-fence data are compressed to obtain compressed data blocks, and then the compressed data blocks are stored on the disk. The compressed data blocks are stored in the form of segmented files, and the segmented files corresponding to the geo-fence data are merged to generate corresponding index files.
[0161] The data processing method provided in the embodiment of the present application can obtain the map data of the target area, the map data contains the location data of each location point in the target area, and the target area can be divided into multiple marked location areas. By mapping the location data of the location point to each marked location area, the mapping relationship between the marked location area and the location point corresponding to the map data can be obtained, that is, the location points contained in each marked location area are determined, and based on the location points contained in each marked location area, each marked location area can be marked as a safe area, thereby generating geographic fence data for the entire target area. That is, the entire target area is divided into a safe area and an unsafe area, wherein the safe area does not contain sensitive geographic data, while the unsafe area may contain sensitive geographic data. Since the geographic fence data is automatically generated based on the map data, the accuracy and precision of the generated geographic fence data are ensured, and the area where the sensitive geographic data is located can be accurately identified to prevent the leakage of sensitive geographic data.
[0162] Furthermore, the data processing method of the embodiment of the present application automatically generates geo-fence data of the corresponding area based on real and accurate map data, which improves the efficiency of geo-fence data generation while ensuring the accuracy and reliability of geo-fence data. The geo-fence data generated in this way can ensure coverage and identification of all public geographic data.
[0163] The above-mentioned embodiment explains the technical solution of the present application from the perspective of generating geo-fence data. The following embodiment explains the technical solution of the present application from the perspective of applying geo-fence data.
[0164] Figure 6 A schematic diagram of a data processing method provided for this application Figure 3 , the data processing method can be applied to the vehicle side, or to the cloud side, or to the road side side, such as Figure 6 As shown, the method includes:
[0165] S601. Obtain the current driving position of the vehicle.
[0166] S602: If the current driving position is within the target area, the geo-fence data of the area where the current driving position is located is obtained from the geo-fence data of the target area.
[0167] The geographic fence data of the target area is generated based on the first embodiment, or the second embodiment, or various possible implementations of the second embodiment as described above.
[0168] In an embodiment of the present application, the current driving position of the vehicle can be obtained. If the current driving position of the vehicle is within the target area, the geo-fence data of the target area can be obtained, and the geo-fence data of the area where the current driving position is located can be obtained from the geo-fence data of the target area.
[0169] S603: Based on the geographic fence data of the area where the current driving position is located, determine whether the area where the current driving position is located is a safe area.
[0170] S604: According to the judgment result, determine that the vehicle collects environmental data of the area where the current driving position is located.
[0171] Reference Figure 7 As shown, it is a scenario diagram of a data processing method provided by this application. Figure 2 In this scenario, the data processing method of this embodiment can be applied to the cloud, such as Figure 7As shown, when the vehicle is driving, the current driving position of the vehicle is sent to the cloud. Based on the current driving position of the vehicle, the cloud determines the target area to which the current driving position of the vehicle belongs, obtains the geo-fence data of the target area, and then obtains the geo-fence data of the area where the current driving position is located, and determines whether the area where the current driving position of the vehicle is located is a safe area that does not contain sensitive geographic data. If the area where the current driving position is located is a safe area, the vehicle is allowed to collect environmental data of the area where the current driving position is located. If the area where the current driving position is located is not a safe area, the vehicle is prohibited from collecting environmental data of the area where the current driving position is located. The geo-fence data of the target area can be generated on the data processing platform of the terminal device.
[0172] The data processing method provided in the embodiment of the present application can obtain the map data of the target area, the map data contains the location data of each location point in the target area, and the target area can be divided into multiple marked location areas. By mapping the location data of the location point to each marked location area, the mapping relationship between the marked location area and the location point corresponding to the map data can be obtained, that is, the location points contained in each marked location area are determined, and based on the location points contained in each marked location area, each marked location area can be marked as a safe area, thereby generating geographic fence data for the entire target area. That is, the entire target area is divided into a safe area and an unsafe area, wherein the safe area does not contain sensitive geographic data, while the unsafe area may contain sensitive geographic data. Since the geographic fence data is automatically generated based on the map data, the accuracy and precision of the generated geographic fence data are ensured, and the area where the sensitive geographic data is located can be accurately identified to prevent the leakage of sensitive geographic data.
[0173] Figure 8 A schematic diagram of a data processing method provided for this application Figure 4 ,like Figure 8 As shown, in this embodiment Figure 6 Based on the embodiment, the data processing method is described in detail. The method can be applied to the vehicle side, or can be applied to the cloud side, or can be applied to the road side side. The method includes:
[0174] S801. Obtain the current driving position of the vehicle.
[0175] S802. If the current driving position is within the target area, the geofence data of all block files are loaded or the geofence data of the target block file is loaded according to the current memory resource status of the device. The target block file is a block file storing the geofence data of the area where the current driving position is located. The geofence data blocks of the target area are stored in multiple block files.
[0176] The geographic fence data of the target area is generated based on the first embodiment, or the second embodiment, or various possible implementations of the second embodiment as described above.
[0177] In an embodiment of the present application, the geo-fence data of the target area is stored in multiple data blocks, and the data blocks are stored in the form of block files. If the current driving position of the vehicle is within the target area, the geo-fence data of all block files can be loaded based on the current memory resource status of the device, or only the geo-fence data of the target block file can be loaded, wherein the target block file is a block file storing the geo-fence data of the area where the current driving position is located.
[0178] In a possible implementation, loading the geo-fence data of the target segment file may specifically include:
[0179] Get the location data of the current driving position;
[0180] According to the position data of the current driving position, determining a target mark position area mapped to the current driving position from among the multiple mark position areas included in the target area;
[0181] Get the index file of the target area, which contains the correspondence between the block files and the geo-fence data stored in them;
[0182] Query the index file and determine, from among all the block files, the block file storing the geo-fence data of the target mark location area as the target block file;
[0183] Load the geofence data of the target tile file.
[0184] In the embodiment of the present application, two loading methods are provided, including a dynamic loading method and a full loading method. Fig. 9 As shown, this is the loading flow chart of the geo-fence data of the present application. You can choose between dynamic loading mode and full loading mode. When loading dynamically, determine whether there is a trigger event. If so, you can determine the data block to be queried based on the location of the trigger event, and load it based on the storage location and size of the data block recorded in the index file. When loading, you need to decompress the corresponding data block first, and then save the decompressed data block and the corresponding index to the memory for subsequent query use. When loading in full, traverse the index file, for the currently traversed index data, obtain the storage location and size of the corresponding data block according to the index data and load it, and load each data block. When loading, you also need to decompress the data block first, and then save the decompressed data block and the corresponding index to the memory for subsequent query use.
[0185] Dynamic loading is suitable for environments with less memory resources, such as the vehicle side. There is no need to load the geo-fence data corresponding to all data blocks on the vehicle side. It only needs to determine which data block to load the geo-fence data corresponding to the trigger event location, which can reduce memory consumption. In addition, dynamic loading is also suitable for cloud environments with limited memory.
[0186] The full loading method is suitable for environments with sufficient memory resources. It reduces the waiting time for temporary loading from disk, speeds up response speed and improves throughput.
[0187] S803: Obtain the geo-fence data of the area where the current driving position is located from the geo-fence data of the target block file.
[0188] In a possible implementation, obtaining the geo-fence data of the area where the current driving position is located from the geo-fence data of the target segment file may specifically include:
[0189] Get the location data of the current driving position;
[0190] According to the position data of the current driving position, determining a target mark position area mapped to the current driving position from among the multiple mark position areas included in the target area;
[0191] From the geo-fence data of the target block file, the geo-fence data of the target mark position area is obtained as the geo-fence data of the area where the current driving position is located.
[0192] S804: Based on the geographic fence data of the area where the current driving position is located, determine whether the area where the current driving position is located is a safe area.
[0193] If the geo-fence data of the target mark position area obtained indicates that the target mark position area is a safe area, then the area where the current driving position is located can be determined to be a safe area; if the geo-fence data of the target mark position area obtained indicates that the target mark position area is an unsafe area, then the area where the current driving position is located can be determined to be an unsafe area; if the geo-fence data of the target mark position area obtained indicates that the target mark position area is a doubtful area, then the area where the current driving position is located can be determined to be a doubtful area.
[0194] S805: According to the judgment result, determine that the vehicle collects environmental data of the area where the current driving position is located.
[0195] If the judgment result indicates that the area where the current driving position is located is a safe area, the vehicle is allowed to collect environmental data of the area where the current driving position is located. If the judgment result indicates that the area where the current driving position is located is an unsafe area, the vehicle is prohibited from collecting environmental data of the area where the current driving position is located; or the environmental data of the area where the current driving position is located collected by the vehicle is deleted.
[0196] Reference Fig.10 As shown, this is a flowchart of the present application for querying whether the area where the current geographic location is located is a safe area, obtaining the location data of the current geographic location to be queried, mapping the location data of the current geographic location based on the set accuracy, determining the target mark location area where the current geographic location falls, and judging whether there is a corresponding data block storing the geographic fence data corresponding to the target mark location area. If so, searching for the corresponding data block, searching for the mark of the target mark location area in the corresponding data block, obtaining and returning the mark. If the corresponding data block is not found, a special mark can be returned.
[0197] The data processing method provided in the embodiment of the present application can obtain the map data of the target area, the map data contains the location data of each location point in the target area, and the target area can be divided into multiple marked location areas. By mapping the location data of the location point to each marked location area, the mapping relationship between the marked location area and the location point corresponding to the map data can be obtained, that is, the location points contained in each marked location area are determined, and based on the location points contained in each marked location area, each marked location area can be marked as a safe area, thereby generating geographic fence data for the entire target area. That is, the entire target area is divided into a safe area and an unsafe area, wherein the safe area does not contain sensitive geographic data, while the unsafe area may contain sensitive geographic data. Since the geographic fence data is automatically generated based on the map data, the accuracy and precision of the generated geographic fence data are ensured, and the area where the sensitive geographic data is located can be accurately identified to prevent the leakage of sensitive geographic data.
[0198] Fig.11 A schematic diagram of the structure of a data processing device provided in this application Figure 1 ,like Fig.11 As shown, the data processing device 110 provided in this embodiment includes:
[0199] An acquisition module 1101 is used to acquire map data of a target area, where the map data includes location data of each location point in the target area;
[0200] A mapping module 1102 is used to map the location data of the location point to the marked location area included in the target area, and obtain a mapping relationship between the marked location area and the location point corresponding to the map data, where the marked location area is a geographic fence area obtained by dividing the target area;
[0201] A marking module 1103 is used to mark the marked position area as a safe area based on the mapping relationship between the marked position area and the position point;
[0202] The generating module 1104 is used to generate geographic fence data for the target area according to the mark of the security area of the marked location area, and the geographic fence data is used to protect sensitive geographic data.
[0203] In a possible implementation, the map data includes map data from different data sources, and the marking module is specifically used for:
[0204] Based on the mapping relationship between the marked position areas and the position points respectively corresponding to the map data from different data sources, determining the marks of the map data from different data sources corresponding to the marked position areas;
[0205] According to the marks in the map data of different data sources corresponding to the marked position area, the marked position area is marked as a safe area.
[0206] In a possible implementation, the marking module is specifically used for:
[0207] Obtain the weight values corresponding to different data sources. The weight values are determined according to the type and reliability of map data.
[0208] Based on the marks in the map data of different data sources corresponding to the marked position area and the weight values corresponding to the different data sources, the marked position area is marked as a safe area.
[0209] In a possible implementation, the mapping module is specifically used for:
[0210] Classify the map data to obtain a data set of corresponding data types, where the data type includes at least one of point data, line data and surface data, where the point data corresponds to a location point, the line data corresponds to a plurality of ordered location points, and the surface data corresponds to a polygonal ring formed by a plurality of ordered location points;
[0211] For any location point included in the data set, the location data of the location point is mapped to the marked location area included in the target area, and a mapping relationship between the marked location area and the location point corresponding to the map data is obtained.
[0212] In a possible implementation, the marking module is specifically used for:
[0213] Based on the mapping relationship between the marked position area and the position points, determining a set of position points mapped to the marked position area;
[0214] Based on each location point in the location point set, the attribute data corresponding to each location point in the location point set is queried. Based on the attribute data corresponding to each location point in the location point set, whether the marked location area is a safe area is marked. The attribute data corresponding to the location point is the attribute data of the geographic element of the corresponding data type. The attribute data of the geographic element includes the name and / or type of the geographic element.
[0215] In a possible implementation, the marking module is specifically used for:
[0216] If the location point is a location point in the point data, query the attribute data of the corresponding point data to obtain the attribute data corresponding to the location point;
[0217] If the location point is a location point in the line data, query the attribute data of the corresponding line data to obtain the attribute data corresponding to the location point;
[0218] If the location point is a location point in the surface data, the attribute data of the corresponding surface data is queried to obtain the attribute data corresponding to the location point.
[0219] In a possible implementation, the marking module is specifically used for:
[0220] If the attribute data corresponding to each location point in the location point set does not contain sensitive attribute data, the marked location area is marked as a safe area.
[0221] In a possible implementation manner, the data processing device is further configured to:
[0222] Process the geo-fence data in blocks to obtain corresponding block files;
[0223] The block files corresponding to the geo-fence data are merged to generate an index file corresponding to the geo-fence data, where the index file contains a corresponding relationship between the block files and the geo-fence data stored therein.
[0224] A data processing device provided in this embodiment can execute the method provided in the above corresponding method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0225] Fig.12 A schematic diagram of the structure of a data processing device provided in this application Figure 2 ,like Fig.12 As shown, the data processing device 120 provided in this embodiment includes:
[0226] The first acquisition module 1201 is used to acquire the current driving position of the vehicle;
[0227] The second acquisition module 1202 is used to acquire the geo-fence data of the area where the current driving position is located from the geo-fence data of the target area if the current driving position is within the target area, the geo-fence data of the target area being generated based on the data processing method as described above;
[0228] A judgment module 1203, used to judge whether the area where the current driving position is located is a safe area based on the geo-fence data of the area where the current driving position is located;
[0229] The determination module 1204 is used to determine, based on the judgment result, the environmental data of the area where the vehicle collects the current driving position.
[0230] In a possible implementation, the geo-fence data of the target area is stored in multiple block files, and the second acquisition module is specifically used to:
[0231] If the current driving position is within the target area, the geo-fence data of all block files or the geo-fence data of the target block file is loaded according to the current memory resource status of the device. The target block file is the block file storing the geo-fence data of the area where the current driving position is located.
[0232] Get the geofence data of the area where the current driving location is located from the geofence data of the target block file.
[0233] In a possible implementation, the second acquisition module is specifically used to:
[0234] Get the location data of the current driving position;
[0235] According to the position data of the current driving position, determining a target mark position area mapped to the current driving position from among the multiple mark position areas included in the target area;
[0236] Get the index file of the target area, which contains the correspondence between the block files and the geo-fence data stored in them;
[0237] Query the index file and determine, from among all the block files, the block file storing the geo-fence data of the target mark location area as the target block file;
[0238] Load the geofence data of the target tile file.
[0239] In a possible implementation, the second acquisition module is specifically used to:
[0240] Get the location data of the current driving position;
[0241] According to the position data of the current driving position, determining a target mark position area mapped to the current driving position from among the multiple mark position areas included in the target area;
[0242] From the geo-fence data of the target block file, the geo-fence data of the target mark position area is obtained as the geo-fence data of the area where the current driving position is located.
[0243] A data processing device provided in this embodiment can execute the method provided in the above corresponding method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0244] Fig.13 This is a schematic diagram of the structure of a data processing device provided by this application. Fig.13 As shown, the data processing device 130 provided in this embodiment includes: at least one processor 1301 and a memory 1302. Optionally, the device 130 also includes a communication component 1303. The processor 1301, the memory 1302 and the communication component 1303 are connected via a bus.
[0245] In a specific implementation process, at least one processor 1301 executes the computer-executable instructions stored in the memory 1302, so that at least one processor 1301 executes the above method.
[0246] The specific implementation process of the processor 1301 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0247] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.
[0248] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
[0249] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0250] The present application also provides a data processing system, Fig.14 This is a structural diagram of a data processing system provided by the present application. The data processing system 140 includes a vehicle 1401 and a data processing device 1402, wherein:
[0251] The data processing device 1402 is used to obtain map data of the target area, the map data includes the location data of each location point in the target area; map the location data of the location point to the marked location area included in the target area, and obtain a mapping relationship between the marked location area and the location point corresponding to the map data, the marked location area being a geo-fenced area obtained by dividing the target area; based on the mapping relationship between the marked location area and the location point, mark the marked location area as a security area; generate geo-fenced data for the target area according to the marking of the security area of the marked location area, and the geo-fenced data is used to protect sensitive geographic data;
[0252] Vehicle 1401 is used to obtain the current driving position of the vehicle; if the current driving position is within the target area, the geo-fence data of the area where the current driving position is located is obtained from the geo-fence data of the target area; based on the geo-fence data of the area where the current driving position is located, it is determined whether the area where the current driving position is located is a safe area; based on the judgment result, it is determined that the vehicle collects environmental data of the area where the current driving position is located.
[0253] A data processing system provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail in this embodiment.
[0254] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0255] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0256] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0257] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A data processing method, characterized in that: include: Acquire map data of a target area, wherein the map data includes location data of each location point in the target area; Mapping the location data of the location point to the marked location area contained in the target area to obtain a mapping relationship between the marked location area and the location point corresponding to the map data, wherein the marked location area is a geographic fence area obtained by dividing the target area; Based on the mapping relationship between the marked position area and the position point, marking the marked position area as a safe area; Generating geo-fence data for the target area according to the mark of the security area of the marked location area, wherein the geo-fence data is used for protecting sensitive geographic data; The map data includes map data from different data sources, and the marking of the marked position area as a safe area based on the mapping relationship between the marked position area and the position point includes: Based on the mapping relationship between the marked position areas and the position points respectively corresponding to the map data from different data sources, determining the marks of the map data from different data sources corresponding to the marked position areas; Obtaining weight values corresponding to different data sources, wherein the weight values are determined according to the type and reliability of the map data; Based on the marks in the map data of different data sources corresponding to the marked position area and the weight values corresponding to the different data sources, the marked position area is marked as a safe area.
2. The data processing method according to claim 1, characterized in that: The step of mapping the position data of the position point to the marked position area contained in the target area to obtain a mapping relationship between the marked position area and the position point corresponding to the map data includes: Classify the map data to obtain a data set of corresponding data types, wherein the data type includes at least one of point data, line data and surface data, wherein the point data corresponds to a location point, the line data corresponds to a plurality of ordered location points, and the surface data corresponds to a polygonal ring formed by a plurality of ordered location points; For any location point included in the data set, the location data of the location point is mapped to the marked location area included in the target area to obtain a mapping relationship between the marked location area and the location point corresponding to the map data.
3. The data processing method according to claim 2, characterized in that: The marking of the marked position area as a safety area based on the mapping relationship between the marked position area and the position point includes: Based on the mapping relationship between the marked position area and the position points, determining a set of position points mapped to the marked position area; Based on each location point in the location point set, the attribute data corresponding to each location point in the location point set is queried, and based on the attribute data corresponding to each location point in the location point set, whether the marked location area is a safe area is marked, the attribute data corresponding to the location point is the attribute data of the geographic element of the corresponding data type, and the attribute data of the geographic element includes the name and / or type of the geographic element.
4. The data processing method according to claim 3, characterized in that: The querying, based on each location point in the location point set, the attribute data corresponding to each location point in the location point set includes: If the location point is a location point in point data, querying the corresponding attribute data of the point data to obtain the attribute data corresponding to the location point; If the location point is a location point in line data, querying the corresponding attribute data of the line data to obtain the attribute data corresponding to the location point; If the location point is a location point in the surface data, the attribute data corresponding to the surface data is queried to obtain the attribute data corresponding to the location point.
5. The data processing method according to claim 3, characterized in that: The marking of whether the marked position area is a safe area based on the attribute data corresponding to each position point in the position point set includes: If the attribute data corresponding to each position point in the position point set does not include sensitive attribute data, the marked position area is marked as a safe area.
6. The data processing method according to claim 1, characterized in that: The method further comprises: The geo-fence data is processed in blocks to obtain corresponding block files; The block files corresponding to the geo-fence data are merged to generate an index file corresponding to the geo-fence data, wherein the index file contains a corresponding relationship between the block files and the geo-fence data stored therein.
7. A data processing method, characterized in that: include: Get the current driving position of the vehicle; If the current driving position is within the target area, obtaining the geo-fence data of the area where the current driving position is located from the geo-fence data of the target area, wherein the geo-fence data of the target area is generated based on the data processing method according to any one of claims 1 to 6; Based on the geo-fence data of the area where the current driving position is located, determining whether the area where the current driving position is located is a safe area; According to the judgment result, it is determined that the vehicle collects environmental data of the area where the current driving position is located.
8. The data processing method according to claim 7, characterized in that: The geo-fence data of the target area is stored in multiple block files, and if the current driving position is within the target area, the geo-fence data of the area where the current driving position is located is obtained from the geo-fence data of the target area, including: If the current driving position is within the target area, then the geo-fence data of all block files are loaded or the geo-fence data of the target block file is loaded according to the current memory resource status of the device, and the target block file is a block file storing the geo-fence data of the area where the current driving position is located; The geo-fence data of the area where the current driving position is located is obtained from the geo-fence data of the target block file.
9. The data processing method according to claim 8, characterized in that: The geo-fence data of the target block file is loaded, including: Acquire the position data of the current driving position; According to the position data of the current driving position, determining a target mark position area mapped to the current driving position among a plurality of mark position areas included in the target area; Obtaining an index file of the target area, wherein the index file includes a correspondence between the block files and the geo-fence data stored therein; Query the index file and determine, from among all the block files, the block file storing the geo-fence data of the target mark location area as the target block file; Load the geo-fence data of the target segment file.
10. The data processing method according to claim 8, characterized in that: The step of obtaining the geo-fence data of the area where the current driving position is located from the geo-fence data of the target block file includes: Acquire the position data of the current driving position; According to the position data of the current driving position, determining a target mark position area mapped to the current driving position among a plurality of mark position areas included in the target area; The geo-fence data of the target mark position area is obtained from the geo-fence data of the target block file as the geo-fence data of the area where the current driving position is located.
11. A data processing device, characterized in that: include: An acquisition module, used to acquire map data of a target area, wherein the map data includes location data of each location point in the target area; A mapping module, used to map the location data of the location point to a marked location area contained in the target area, to obtain a mapping relationship between the marked location area and the location point corresponding to the map data, wherein the marked location area is a geographic fence area obtained by dividing the target area; A marking module, used for marking the marked position area as a safe area based on the mapping relationship between the marked position area and the position point; A generating module, configured to generate geo-fence data for the target area according to the mark of the security area of the marked location area, wherein the geo-fence data is used for protecting sensitive geographic data; The map data includes map data from different data sources; The marking module is specifically used to determine the marking of the map data of different data sources corresponding to the marked position area based on the mapping relationship between the marked position areas and the position points respectively corresponding to the map data of different data sources; Obtain weight values corresponding to different data sources, where the weight values are determined based on the type and reliability of the map data; based on the marks in the map data of different data sources corresponding to the marked position area, and the weight values corresponding to the different data sources, mark whether the marked position area is a safe area.
12. A data processing device, characterized in that: include: A first acquisition module is used to acquire the current driving position of the vehicle; A second acquisition module is used for acquiring the geo-fence data of the area where the current driving position is located from the geo-fence data of the target area if the current driving position is within the range of the target area, wherein the geo-fence data of the target area is generated based on the data processing method according to any one of claims 1 to 6; A judgment module, used for judging whether the area where the current driving position is located is a safe area based on the geographical fence data of the area where the current driving position is located; The determination module is used to determine, based on the judgment result, that the vehicle collects environmental data of the area where the current driving position is located.
13. A data processing device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method according to any one of claims 1 to 6, and / or the processor executes the method according to any one of claims 7 to 10.
14. A data processing system, characterized in that: including vehicles and data processing equipment; The data processing device is used to obtain map data of the target area, wherein the map data includes position data of each position point in the target area; Mapping the location data of the location point to the marked location area contained in the target area to obtain a mapping relationship between the marked location area and the location point corresponding to the map data, wherein the marked location area is a geographic fence area obtained by dividing the target area; Based on the mapping relationship between the marked position area and the position point, marking the marked position area as a safe area; According to the marking of the security area of the marked location area, geographic fence data for the target area is generated, and the geographic fence data is used for protecting sensitive geographic data; the map data includes map data from different data sources, and the marking of the marked location area as a security area based on the mapping relationship between the marked location area and the location point includes: determining the marking of the map data of the marked location area corresponding to different data sources based on the mapping relationship between the marked location area and the location point respectively corresponding to the map data of different data sources; obtaining weight values corresponding to different data sources, and the weight values are determined according to the type and reliability of the map data; marking whether the marked location area is a security area based on the markings in the map data of different data sources corresponding to the marked location area and the weight values corresponding to the different data sources; The vehicle is used to obtain the current driving position of the vehicle; if the current driving position is within the target area, the geo-fence data of the area where the current driving position is located is obtained from the geo-fence data of the target area; based on the geo-fence data of the area where the current driving position is located, it is determined whether the area where the current driving position is located is a safe area; based on the judgment result, it is determined that the vehicle collects environmental data of the area where the current driving position is located.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method according to any one of claims 1 to 6, and / or, the computer-executable instructions, when executed by a processor, are used to implement the method according to any one of claims 7 to 10.
16. A computer program product, characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 6 when executed by a processor, and / or the computer program implements the method according to any one of claims 7 to 10 when executed by a processor.
