Data processing method and device, server, storage medium and product
By filtering and reducing non-key points in geographic unit data, the computational burden caused by excessive geographic unit data is solved, and efficient data rendering and analysis are achieved.
Patent Information
- Application Number
- CN202411655663.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-03-07
AI Technical Summary
The excessive and dense geographic unit data leads to excessive burden on subsequent data analysis and application calculations, and requires efficient processing to reduce the amount of data.
By obtaining the pending data associated with the target area, calculating the angle and curvature of each data point, filtering out data points that meet the preset conditions as the target data, and randomly deleting some data points to reduce the amount of data.
The amount of data to be processed associated with the target area is reduced, the data rendering efficiency is improved, and the computing burden of subsequent data analysis and application is reduced.
Smart Images

Figure CN119576914A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular, to a data processing method, device, server, storage medium and product. Background Art
[0002] In practical applications, after the geographical location information such as coasts, islands, and man-made buildings is digitized, it is generally presented in the form of ordered array data. The data in the ordered array is mostly represented in the form of longitude and latitude. Optionally, the longitude and latitude data in the ordered array can be: (118.887, 36.666), (118.888, 36.667), (118.889, 36.668), ... An ordered array can correspond to a geographical area, that is, the ordered array corresponding to a geographical area can be called geographical unit data.
[0003] Geographic unit data describes various geographic affairs through a finite number of dense and continuous coordinate points. Too much and too dense data imposes a very heavy computational burden on subsequent data analysis and application. Therefore, the processing of geographic unit data is an urgent problem to be solved. Summary of the invention
[0004] The embodiments of the present invention provide a data processing method, device, server, storage medium and product, which achieve the technical effect of eliminating part of the data to be processed associated with the target area so as to improve the rendering efficiency when rendering the target area based on the remaining target data.
[0005] In a first aspect, an embodiment of the present invention provides a data processing method, the method comprising:
[0006] Acquire at least two pieces of data to be processed corresponding to the target area, wherein the data to be processed include longitude and latitude data;
[0007] For the at least two data to be processed, determining the angle and curvature of the current data to be processed according to the longitude and latitude values of the current data to be processed and the longitude and latitude values of the previous data to be processed;
[0008] The data to be processed whose angle and curvature both meet the preset conditions are taken as the target data associated with the target area.
[0009] Further, the determining the angle and curvature of the current data to be processed based on the latitude and longitude values of the current data to be processed and the latitude and longitude values of the previous data to be processed includes:
[0010] Processing each piece of data to be processed in sequence according to the coordinate order of the at least two pieces of data to be processed;
[0011] For the current data to be processed, obtaining the first longitude and latitude value of the current data to be processed and the second longitude and latitude value of the previous data to be processed;
[0012] Determine a first direction vector according to the first longitude and latitude values, and determine a second direction vector according to the second longitude and latitude values;
[0013] The angle and curvature of the current data to be processed are determined according to the first direction vector and the second direction vector.
[0014] Further, determining the angle and curvature of the current data to be processed according to the first direction vector and the second direction vector includes:
[0015] Determine the angle between the first direction vector and the second direction vector, and use the angle as the angle of the current data to be processed;
[0016] Determine an absolute value of a vector difference according to the first direction vector and the second direction vector;
[0017] The curvature of the current data to be processed is determined according to the absolute value of the vector difference and the angle.
[0018] Furthermore, the method of taking the data to be processed whose angle and curvature both meet the preset conditions as target data associated with the target area includes:
[0019] For each data to be processed, if the angle of the current data to be processed is smaller than a preset angle threshold, and the curvature is smaller than a preset curvature threshold, the current data to be processed is used as the target data.
[0020] Furthermore, the method further comprises:
[0021] Randomly deleting a piece of data to be processed from the target data to obtain a plurality of data to be used;
[0022] Determine an area difference between a first area formed by the plurality of data to be used and a target area formed by the target data;
[0023] The updated target data is determined according to the area difference.
[0024] Further, determining updated target data according to the area difference includes:
[0025] If the area difference is less than the preset difference threshold, the data to be used is used as the target data, and the step of randomly deleting a piece of data to be processed from the target data is repeated until the area difference is greater than or equal to the preset difference threshold, and the obtained data to be used is used as the target data.
[0026] Furthermore, the method further comprises:
[0027] If the shape of the target area is a preset shape type, the plurality of data to be used are obtained by collecting equally divided points and removing the data to be processed.
[0028] Furthermore, the method further comprises:
[0029] By rendering the target data, a target view corresponding to the target area is obtained.
[0030] In a second aspect, an embodiment of the present invention further provides a data processing device, the device comprising:
[0031] A to-be-processed data acquisition module, used to acquire at least two to-be-processed data corresponding to the target area, wherein the to-be-processed data include latitude and longitude data;
[0032] A processing module for data to be processed, used for determining the angle and curvature of the current data to be processed according to the latitude and longitude values of the current data to be processed and the latitude and longitude values of the previous data to be processed for the at least two data to be processed;
[0033] The target data determination module is used to use the data to be processed whose angle and curvature both meet preset conditions as the target data associated with the target area.
[0034] In a third aspect, an embodiment of the present invention provides a server, which includes:
[0035] one or more processors;
[0036] A memory for storing one or more programs;
[0037] 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 any embodiment of the present invention.
[0038] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a data processing method as provided in any embodiment of the present invention.
[0039] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements the data processing method as described in any one of the embodiments of the present invention.
[0040] The technical solution provided by the embodiment of the present invention can analyze and process two adjacent data to be processed in sequence according to the coordinate order of the data to be processed before obtaining the data to be processed corresponding to the target area and rendering it, so as to determine whether the data to be processed needs to be retained. Based on the above method, the amount of data to be processed corresponding to the target area can be reduced as much as possible, and then, when rendering based on the processed target data, the effect of improving the efficiency of data rendering can be achieved while ensuring that the error between the rendering result and the actual result is as small as possible. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A flowchart of a data processing method provided by an embodiment of the present invention;
[0043] Figure 2 A flowchart of a data processing method provided by an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of determining a curvature provided by an embodiment of the present invention;
[0045] Figure 4 A schematic diagram of an equally divided point removal method provided by an embodiment of the present invention;
[0046] Figure 5 A schematic diagram of the structure of a data processing device provided by an embodiment of the present invention;
[0047] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0049] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0050] Before introducing the technical solution provided by the embodiment of the present invention, an application scenario may be exemplified first.
[0051] Usually, during the course of a ship's travel, it may pass by coasts, islands, various buildings, etc., which can be regarded as an area. Geographic coordinate data corresponding to the area can be collected, and subsequent data analysis and application can be performed based on the geographic coordinate data.
[0052] In practical applications, if you want to render a target area, you can first obtain the geographic location information data corresponding to the target area and use it as the data to be processed. After obtaining the data to be processed, you can analyze and process the data to be processed to filter out the target data from the data to be processed. The target data is data related to the target area, and after rendering the target data, the target area can be rendered. Moreover, the amount of target data is less than the data to be processed. Therefore, when rendering the target area based on the target data, the required rendering resources are far less than the resources used when rendering the data to be processed. Therefore, the computational burden caused by subsequent data analysis and application can be reduced, and the rendering efficiency can be improved.
[0053] Figure 1 A flowchart of a data processing method provided in an embodiment of the present invention. This embodiment can be applied to the analysis and processing of the data to be processed associated with the target area to obtain a scenario related to the target area that can participate in subsequent data processing. The data processing method provided in this embodiment can be executed by a data processing device integrated in the client and / or server.
[0054] like Figure 1 As shown, the method specifically comprises the following steps:
[0055] S110, obtaining at least two pieces of data to be processed corresponding to the target area, wherein the data to be processed include longitude and latitude data.
[0056] The geographical location information data corresponding to the target area can be collected based on existing devices. The geographical location information data can be the longitude and latitude data corresponding to the edge of the target area. The longitude and latitude data corresponding to the edge of the target area collected above are used as the data to be processed. The target area is any area that needs to be processed at present. Optionally, the target area can be a coast, an island, an island reef, a bridge, etc. The longitude and latitude data associated with the target area collected are used as the data to be processed.
[0057] It should be noted that the data to be processed may be the longitude and latitude data corresponding to the edge of the target area, or may be the longitude and latitude data corresponding to any position collected in the target area.
[0058] Specifically, pre-collected data to be processed associated with the target area may be obtained. The data to be processed may be longitude and latitude data constituting the target area.
[0059] S120 . For at least two data to be processed, determine the angle and curvature of the current data to be processed according to the longitude and latitude values of the current data to be processed and the longitude and latitude values of the previous data to be processed.
[0060] In order to improve the efficiency of subsequent processing of data corresponding to the target area, subsequent processing may be performed on the data to be processed to filter out the target data from the data to be processed.
[0061] Among them, for the data to be processed, the longitude and latitude coordinates of the data to be processed are in order, so the two adjacent data to be processed can be determined according to the longitude and latitude values of the data to be processed. After analyzing and processing the two adjacent data to be processed, it can be determined which data may have no effect on the subsequent processing of the target area, and then it can be deleted, so that the effect of subsequent data processing can be achieved based on the limited data associated with the target area.
[0062] In this embodiment, each data to be processed can be processed in turn according to the longitude and latitude values, and accordingly, the data to be processed currently being processed can be used as the current data to be processed. From the perspective of longitude and latitude values, the next data to be processed associated with the longitude and latitude of the current data to be processed is used as the next data to be processed, or the previous data to be processed associated with the longitude and latitude values of the current data to be processed is the migration data to be processed. The angle is the angle value between the current data to be processed and the migration data to be processed. The curvature can be the curvature value obtained after processing the current data to be processed.
[0063] Specifically, from the order of the longitude and latitude values, two adjacent data to be processed can be analyzed and processed in sequence to obtain the angle and curvature of the current data to be processed.
[0064] In this embodiment, the angle and curvature of the current data to be processed are determined based on the longitude and latitude values of the current data to be processed and the longitude and latitude values of the previous data to be processed, including: processing each data to be processed in turn according to the coordinate order of at least two data to be processed; for the current data to be processed, obtaining the first longitude and latitude values of the current data to be processed and the second longitude and latitude values of the previous data to be processed; determining a first direction vector based on the first longitude and latitude values, and determining a second direction vector based on the second longitude and latitude values; determining the angle and curvature of the current data to be processed based on the first direction vector and the second direction vector.
[0065] Among them, the longitude and latitude values of the current data to be processed are used as the first longitude and latitude values. The longitude and latitude values of the migrated data to be processed are used as the second longitude and latitude values. The first direction vector can be determined according to the first longitude and latitude values; the second direction vector can be determined according to the second longitude and latitude values. The specific method for determining the direction vector can refer to the existing description. The vector angle between the first direction vector and the second direction vector can be calculated, and the obtained angle is used as the angle of the current data to be processed. At the same time, the curvature of the current data to be processed can be determined based on the first direction vector and the second direction vector.
[0066] Before introducing how to determine the curvature of the current data to be processed based on the first direction vector and the second direction vector, a corresponding introduction to the curvature is first given.
[0067] Among them, curvature is a concept in differential geometry, which reflects the curvature of the curve by the speed of the rotation of the direction vector at a certain point. Figure 2 As shown, for the direction vector α corresponding to point A on the curve and the direction vector β of point B on the curve. Let the angle between vector α and vector β be θ, and let the absolute value of the difference between vector α and β be Δs. When point A and point B are infinitely close, it is called is the curvature at point A. Obviously, if segment AB is a straight line, the curvature is 0. In this embodiment, the angle θ between two adjacent coordinate points and the absolute value Δs of the difference between the two vectors can be used. As an approximation of curvature, it is hereinafter referred to as curvature.
[0068] From the above, we can see that when the curvature of the curve is low, the curvature and angle of the coordinate point are very small, while at the inflection point where the direction of the curve changes rapidly, the curvature value and angle of the coordinate point change greatly. Based on this, the target data can be determined from the data to be processed.
[0069] Based on the above method, the first direction vector and the second direction vector can be processed to obtain the curvature of the current data to be processed.
[0070] In this embodiment, the angle and curvature of the current data to be processed are determined based on the first direction vector and the second direction vector, including: determining the angle between the first direction vector and the second direction vector, and using it as the angle of the current data to be processed; determining the absolute value of the vector difference based on the first direction vector and the second direction vector; determining the curvature of the current data to be processed based on the absolute value of the vector difference and the angle.
[0071] The angle between the first direction vector and the second direction vector can be determined by using an existing method for calculating the angle between vectors. At the same time, the absolute value of the vector difference between the first direction vector and the second direction vector can be calculated. Based on the absolute value of the vector difference and the angle, the curvature of the current data to be processed is calculated.
[0072] Based on the above method, the curvature and angle of all data to be processed can be determined.
[0073] S130: taking the data to be processed whose angle and curvature both meet preset conditions as target data associated with the target area.
[0074] The preset conditions are pre-set conditions for filtering the data to be processed, and the target data are the data to be processed that meet the preset conditions.
[0075] It can be understood as: the angle and curvature of each data to be processed are screened according to preset conditions to obtain the target data.
[0076] In this embodiment, the data to be processed whose angle and curvature satisfy preset conditions are taken as target data associated with the target area, including: for each data to be processed, if the angle of the current data to be processed is greater than a preset angle threshold and / or the curvature is greater than a preset curvature threshold, then the current data to be processed is taken as the target data.
[0077] It can be understood that: for each data to be processed, if the angle corresponding to the data to be processed is greater than the preset angle threshold and / or the curvature value is greater than the preset curvature threshold, it means that the current data to be processed meets the preset conditions, that is, the current data to be processed is a special point constituting the target area, and at this time, the data to be processed can be retained as the target data.
[0078] At the same time, if the current data to be processed does not meet the preset conditions, the data to be processed can be deleted, indicating that it is an ordinary point in the target area and will not cause a certain impact on the target area.
[0079] The reason and benefit of determining the target data in the above manner is that if the angle of the data to be processed is greater than the preset angle threshold and / or the curvature is greater than the preset curvature threshold, it means that the current data to be processed has a large change relative to the previous data to be processed. At this time, the data to be processed needs to be retained so that the shape corresponding to the target area can be rendered later.
[0080] Based on the above method, the target data can be determined. At this time, the target data is highly correlated with the target area, and the data volume is smaller than the data volume of the data to be processed. Therefore, in subsequent data processing, the subsequent data processing burden can be greatly reduced and the data processing efficiency can be improved.
[0081] The technical solution provided by the embodiment of the present invention can analyze and process two adjacent data to be processed in sequence according to the coordinate order of the data to be processed before obtaining the data to be processed corresponding to the target area and rendering it, so as to determine whether the data to be processed needs to be retained. Based on the above method, the amount of data to be processed corresponding to the target area can be reduced as much as possible, and then, when rendering based on the processed target data, the effect of improving the efficiency of data rendering can be achieved while ensuring that the error between the rendering result and the actual result is as small as possible.
[0082] Figure 3 A flow chart of a data processing method provided in an embodiment of the present invention. On the basis of the aforementioned embodiment, in order to further improve the efficiency of subsequent data processing, the target data can be further screened to obtain the target data finally used. The specific implementation method can refer to the detailed description of this embodiment, wherein the technical terms that are the same as or corresponding to the aforementioned embodiment are not repeated in this embodiment.
[0083] like Figure 3 As shown, the method specifically comprises the following steps:
[0084] S210. Randomly delete a piece of data to be processed from the target data to obtain a plurality of data to be used.
[0085] It should be noted that, in order to further filter out redundant data to be processed from the target data, the target data may be further processed to obtain data highly associated with the target area, that is, to obtain the target data associated with the target area that is finally used.
[0086] The data to be processed that meets the above conditions can be used as target data. One target data can be randomly eliminated, that is, one data to be processed can be randomly eliminated to obtain multiple data to be used.
[0087] It can be understood that: one data can be randomly deleted from the target data, and the remaining target data is used as the data to be used.
[0088] S220: Determine an area difference between a first area formed by a plurality of data to be used and a target area formed by the target data.
[0089] It can be understood that: the data to be used can be sequentially connected to obtain the region formed by the data to be used. The area corresponding to the region can be calculated and the area can be used as the first area. At the same time, the target area formed by the target data can be calculated. Next, the area difference between the first area and the target area is calculated.
[0090] S230: Determine updated target data according to the area difference.
[0091] It can be understood that if the area difference satisfies the corresponding conditions, the data to be used can be used as the target data finally associated with the target area.
[0092] On the basis of the above technical solution, the updated target data is determined according to the area difference, including: if the area difference is less than the preset difference threshold, the data to be used is used as the target data, and the step of randomly deleting a piece of data to be processed from the target data is repeated until the area difference is greater than or equal to the preset difference threshold, and the obtained data to be used is used as the target data.
[0093] The preset difference threshold is pre-set and is used to determine whether the deleted data to be processed affects the construction of the target area.
[0094] It can be understood that: if the area difference is less than the preset difference threshold, it means that the deleted data to be processed does not affect the construction of the target area, and the remaining data to be used can be used as the target data. At this time, the process of deleting the data to be processed from the target data can be repeated, and it is determined whether the deleted data to be used meets the corresponding conditions.
[0095] When the difference between the first area constituted by the remaining data to be used and the target area constituted by the target data before the data to be processed was deleted is greater than the preset difference threshold, it means that the deleted data to be processed affects the construction of the target area. The data to be processed that was deleted when the difference was greater than the preset difference threshold can be retained, and the data to be used obtained at this time can be used as the final target data.
[0096] On the basis of the above technical solution, in order to further improve the efficiency of determining the target data, it can be determined how to delete the data to be processed in the target data according to the area shape of the target area to obtain the data to be used.
[0097] Optionally, the method further includes: if the shape of the target area is a preset shape type, collecting equally divided points to remove the data to be processed to obtain the multiple data to be used.
[0098] The preset shape type is a pre-set shape type. Optionally, the preset shape type can be a regular shape type such as a circle, an ellipse, a rectangle, a square, etc. The equally divided point method can be a method of equally dividing points to remove data to be processed.
[0099] Specifically, the data to be processed is eliminated according to the method of equal division point removal to obtain the data to be used. After obtaining the data to be used, the method of determining whether the data to be used can be used as the target data is the same as the above method, which will not be repeated here.
[0100] For example, see 4, the shape corresponding to the target area is a circle, indicating that the shape of the target area is a preset shape type. At this time, the data to be deleted can be removed from the target data by dividing the points equally. After the data to be deleted is removed, the difference between the area of the shape formed by the remaining data to be used and the target area can be determined.
[0101] On the basis of the above technical solution, the method further comprises:
[0102] By rendering the target data, a target view corresponding to the target area is obtained.
[0103] It can be understood that: a limited number of target data can be rendered and processed to obtain a target view of the target area. Since the amount of target data is smaller than the amount of data to be processed, the rendering efficiency can be improved during rendering, that is, the rendering efficiency of data can be improved while reducing the amount of calculation.
[0104] The technical solution provided by the embodiment of the present invention can analyze and process two adjacent data to be processed in sequence according to the coordinate order of the data to be processed before obtaining the data to be processed corresponding to the target area and rendering it, so as to determine whether the data to be processed needs to be retained. Based on the above method, the amount of data to be processed corresponding to the target area can be reduced as much as possible, and then, when rendering based on the processed target data, the effect of improving the efficiency of data rendering can be achieved while ensuring that the error between the rendering result and the actual result is as small as possible.
[0105] As an optional embodiment of the above embodiment, the specific processing method may be:
[0106] After obtaining the geographic coordinate data corresponding to the target area, that is, obtaining the data to be processed, the angle and curvature corresponding to each data to be processed can be determined in the order of coordinate points. The data to be processed is represented by longitude and latitude coordinates, that is, the data to be processed can be referred to as coordinate points.
[0107] Optional, calculated according to the formula Calculate the angle and curvature between each coordinate point and the next coordinate point, where Δθ and Δs are the angle between the point and the next coordinate point and the absolute value of the vector difference between the two points, respectively.
[0108] Next, select specific special points (such as the start and end points of non-closed figures), mark them and retain them.
[0109] Again: set the preset angle threshold of the angle and the curvature threshold of the curvature. Comprehensively filter out the coordinate points with extremely large curvature changes based on the angle changes, remove the points with small angle and curvature changes, and obtain the target data.
[0110] Again, the graphic area processing method is used as a method for processing the target data again to obtain a reduced number of ordered coordinate points.
[0111] The processing method using the graphic area refers to calculating the area of the original closed graphic (the target area constituted by the target data or the target area constituted by the data to be processed), and arranging the coordinate points in order of curvature from small to large, and calculating the area of the graphic after removing the coordinate points in turn, and comparing it with the original graphic. If the area change is within the set parameter range, the point is removed, otherwise it is retained.
[0112] For example, see Figure 4 If a lower curvature filtering parameter is used for filtering, all 359 points on an ellipse cannot be removed, and raising the curvature filtering parameter can only remove a small number of coordinate points. If the method combining the area of the figure is used, the area of the figure after removing the coordinate points is continuously calculated so that the difference between the area and the original area is within the set range. As shown in the right figure, when a larger area difference range is set, it can be reduced to 8 coordinate points. This method is used as a patch to improve the algorithm and process scenes with arcs. Because the calculation efficiency of each coordinate point is extremely low, it is used as a patch only for data with poor performance and further optimization of the above-mentioned method using curvature.
[0113] It should also be noted that fixed parameters cannot adapt to all types of data, and the parameters can be adjusted in the code according to the characteristics of the graphics.
[0114] It should also be noted that the data to be processed can be in the form of two-dimensional coordinates or three-dimensional coordinates, and the specific processing data display form can be set according to actual needs, but the processing method adopted can continue to be implemented by the method provided in the embodiment of the present invention.
[0115] The technical solution provided by the embodiment of the present invention can analyze and process two adjacent data to be processed in sequence according to the coordinate order of the data to be processed before obtaining the data to be processed corresponding to the target area and rendering it, so as to determine whether the data to be processed needs to be retained. Based on the above method, the amount of data to be processed corresponding to the target area can be reduced as much as possible, and then, when rendering based on the processed target data, the effect of improving the efficiency of data rendering can be achieved while ensuring that the error between the rendering result and the actual result is as small as possible.
[0116] The following is an embodiment of a data processing device provided by an embodiment of the present invention. The device and the data processing methods of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the data processing device, reference can be made to the embodiments of the above data processing methods.
[0117] Figure 5This is a structural diagram of a data processing device provided by an embodiment of the present invention. The device specifically includes: a to-be-processed data acquisition module 310, a to-be-processed data processing module 320 and a target data determination module 330.
[0118] Among them, the data acquisition module 310 is used to acquire at least two data to be processed corresponding to the target area, wherein the data to be processed include longitude and latitude data; the data processing module 320 is used to determine the angle and curvature of the current data to be processed according to the longitude and latitude values of the current data to be processed and the longitude and latitude values of the previous data to be processed for the at least two data to be processed; the target data determination module 330 is used to use the data to be processed whose angle and curvature meet the preset conditions as the target data associated with the target area.
[0119] On the basis of the above technical solution, the data processing module to be processed includes:
[0120] A data sequential processing unit is used to process each data to be processed sequentially according to the coordinate sequence of the at least two data to be processed; a longitude and latitude value determination unit is used to obtain, for the current data to be processed, the first longitude and latitude value of the current data to be processed and the second longitude and latitude value of the previous data to be processed; a direction vector determination unit is used to determine a first direction vector according to the first longitude and latitude value, and to determine a second direction vector according to the second longitude and latitude value; a data value determination unit is used to determine the angle and curvature of the current data to be processed according to the first direction vector and the second direction vector.
[0121] On the basis of the above technical solutions, the data value determination unit includes:
[0122] An angle determination subunit is used to determine the angle between the first direction vector and the second direction vector, and use it as the angle of the current data to be processed; an absolute value determination subunit is used to determine the absolute value of the vector difference based on the first direction vector and the second direction vector; a curvature determination subunit is used to determine the curvature of the current data to be processed based on the absolute value of the vector difference and the angle.
[0123] On the basis of the above technical solutions, the target data determination module is also used to, for each data to be processed, if the angle of the current data to be processed is less than a preset angle threshold, and the curvature is less than a preset curvature threshold, then use the current data to be processed as the target data.
[0124] On the basis of the above technical solutions, the device further includes:
[0125] A to-be-used data determination module, used for randomly deleting a to-be-processed data from the target data to obtain a plurality of to-be-used data;
[0126] An area difference determination module, used to determine an area difference between a first area formed by the plurality of data to be used and a target area formed by the target data;
[0127] The target data determination module is used to determine the updated target data according to the area difference.
[0128] On the basis of the above technical solutions, the target data determination module is also used to: if the area difference is less than a preset difference threshold, use the data to be used as the target data, and repeat the step of randomly deleting a piece of data to be processed from the target data until the area difference is greater than or equal to the preset difference threshold, and use the obtained data to be used as the target data.
[0129] On the basis of the above technical solutions, the device further includes:
[0130] If the shape of the target area is a preset shape type, the multiple data to be used are obtained by removing the data to be processed using an equal point method.
[0131] On the basis of the above technical solutions, the device further includes: a target view determination module, which is used to obtain a target view corresponding to the target area by rendering the target data.
[0132] The data processing device provided in the embodiment of the present invention can execute the data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the data processing method.
[0133] It is worth noting that in the embodiment of the above-mentioned data processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0134] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present invention. Figure 6 A block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention is shown. Figure 6 The server 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0135] like Figure 6As shown, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0136] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0137] The server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the server 12, including volatile and non-volatile media, removable and non-removable media.
[0138] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0139] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0140] The server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the server 12, and / or may communicate with any device that enables the server 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the server 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the server 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the server 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0141] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the steps of the data processing method provided in the first embodiment of the present invention, which includes:
[0142] Determine a tool list corresponding to the task to be repaired according to the description text information of the task to be repaired; wherein the tool list includes a tool identifier of at least one tool to be used;
[0143] The tool list and the task identifier of the task to be repaired are sent to the task processing end and the smart box end, so that after the maintenance user corresponding to the task processing end obtains at least one tool to be used in the tool list, the smart box end verifies and processes the tool to be used based on the task identifier and the tool identifier in the tool list;
[0144] The tool verification result fed back by the smart box end is received, and when the tool verification result is verified, notification information of tool verification passing is sent to the task processing end, so that the maintenance user performs the maintenance task based on the notification information.
[0145] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the data processing method provided by any embodiment of the present invention.
[0146] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the data processing method provided in the above embodiment of the present invention are implemented. The method includes:
[0147] Determine a tool list corresponding to the task to be repaired according to the description text information of the task to be repaired; wherein the tool list includes a tool identifier of at least one tool to be used;
[0148] The tool list and the task identifier of the task to be repaired are sent to the task processing end and the smart box end, so that after the maintenance user corresponding to the task processing end obtains at least one tool to be used in the tool list, the smart box end verifies and processes the tool to be used based on the task identifier and the tool identifier in the tool list;
[0149] The tool verification result fed back by the smart box end is received, and when the tool verification result is verified, notification information of tool verification passing is sent to the task processing end, so that the maintenance user performs the maintenance task based on the notification information.
[0150] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0151] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0152] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0153] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0154] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A data processing method, characterized in that: include: Acquire at least two pieces of data to be processed corresponding to the target area, wherein the data to be processed include longitude and latitude data; For the at least two data to be processed, determining the angle and curvature of the current data to be processed according to the longitude and latitude values of the current data to be processed and the longitude and latitude values of the previous data to be processed; The data to be processed whose angle and curvature both meet the preset conditions are taken as the target data associated with the target area.
2. The method according to claim 1, characterized in that Determining the angle and curvature of the current data to be processed based on the latitude and longitude values of the current data to be processed and the latitude and longitude values of the previous data to be processed includes: Processing each piece of data to be processed in sequence according to the coordinate order of the at least two pieces of data to be processed; For the current data to be processed, obtaining the first longitude and latitude value of the current data to be processed and the second longitude and latitude value of the previous data to be processed; Determine a first direction vector according to the first longitude and latitude values, and determine a second direction vector according to the second longitude and latitude values; The angle and curvature of the current data to be processed are determined according to the first direction vector and the second direction vector.
3. The method according to claim 2, characterized in that Determining the angle and curvature of the current data to be processed according to the first direction vector and the second direction vector includes: Determine the angle between the first direction vector and the second direction vector, and use the angle as the angle of the current data to be processed; Determine an absolute value of a vector difference according to the first direction vector and the second direction vector; The curvature of the current data to be processed is determined according to the absolute value of the vector difference and the angle.
4. The method according to claim 1, characterized in that: The method of taking the data to be processed whose angle and curvature both meet the preset conditions as the target data associated with the target area includes: For each data to be processed, if the angle of the current data to be processed is greater than a preset angle threshold, and / or the curvature is greater than a preset curvature threshold, the current data to be processed is used as the target data.
5. The method according to claim 1 or 4, characterized in that: The method further comprises: Randomly deleting a piece of data to be processed from the target data to obtain a plurality of data to be used; Determine an area difference between a first area formed by the plurality of data to be used and a target area formed by the target data; The updated target data is determined according to the area difference.
6. The method according to claim 5, characterized in that Determining updated target data according to the area difference includes: If the area difference is less than the preset difference threshold, the data to be used is used as the target data, and the step of randomly deleting a piece of data to be processed from the target data is repeated until the area difference is greater than or equal to the preset difference threshold, and the obtained data to be used is used as the target data.
7. The method according to claim 5, characterized in that The method further comprises: If the shape of the target area is a preset shape type, the multiple data to be used are obtained by removing the data to be processed using an equal point method.
8. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: By rendering the target data, a target view corresponding to the target area is obtained.
9. A server, characterized in that: The server includes: one or more processors; A memory 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 data processing method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data processing method as described in any one of claims 1 to 8 is implemented.