A method for processing geographic coordinates based on flexible configuration of streaming data
Through streaming data transmission and graphical drag-and-drop configuration interface, combined with geographical coordinate processing components, it solves the challenges of geographical coordinate data processing in the Internet of Things era, achieving real-time, flexible and universal processing solutions to meet diverse needs.
Patent Information
- Application Number
- CN202410162516.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-02-05
AI Technical Summary
In the era of the Internet of Things, rapid processing and analysis of real-time geographical coordinates and location-related data have become a key challenge. Existing technologies are difficult to meet the diverse needs of personalized scenarios and business needs.
By establishing a streaming data transmission channel, real-time geographical data streams are obtained, and longitude and dimensional information are automatically matched based on the world's universal map projection standards, a graphical drag and drop configuration interface is created, geographical coordinate processing components are defined and assembled, and coordinate mapping, conversion and distance are realized Calculation, adapting to different processing tasks, forming a complete geographical coordinate processing solution.
It realizes the timely processing of geographical coordinate information, improves the intuitiveness and convenience of the processing process, enhances the scalability and applicability of the system, meets diverse geographical data processing needs, and takes into account flexibility, intuitiveness and versatility. Suitable for coordinate operation analysis in multiple scenarios.
Smart Images

Figure CN117972005B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of geographic coordinate processing, and in particular to a method for processing geographic coordinates based on flexible configuration of streaming data. Background Art
[0002] With the rapid development of the Internet of Things (IoT) and the popularization of positioning functions of various mobile devices and systems, the collection and processing of real-time geographic coordinates and location-related data has become an important part of meeting personalized scenarios and business needs. The rapid growth of this demand has not only benefited from the widespread deployment of IoT devices, but also from people's continuous pursuit of smarter and more personalized services.
[0003] In the context of the Internet of Things, various smart devices such as smartphones, smart vehicles, and smart homes are equipped with positioning functions, generating a large amount of geographic coordinates and location-related data in real time. These data cover information such as the user's real-time location, movement trajectory, and length of stay, providing rich materials for personalized scenarios and services. For example, in the smart navigation system, personalized route planning and traffic information can be provided based on the user's real-time location and destination; in smart health monitoring, health status can be analyzed based on the user's movement trajectory.
[0004] In order to meet this demand, it is necessary to establish an efficient real-time geographic coordinate and location data collection system. Various sensors, GPS devices, Wi-Fi positioning and other technologies are widely used to ensure the accuracy and real-time nature of geographic coordinate data. At the same time, rapid processing and analysis of this data has become a key challenge. The richness and diversity of personalized scenarios have also promoted the deep mining and analysis of data. Through deep learning and pattern recognition of real-time geographic coordinate data, more intelligent personalized recommendations and customized services can be achieved.
[0005] Therefore, in the era of the Internet of Things, the demand for real-time geographic coordinates and location-related data is increasing. In order to meet the needs of personalized scenarios and businesses, it is necessary to establish an efficient data collection, processing and analysis system, and at the same time develop advanced algorithms and technologies to achieve smarter and more personalized services. Summary of the invention
[0006] Based on this, it is necessary to provide a method for flexibly configuring and processing geographic coordinates based on streaming data to address the above technical issues.
[0007] The present invention provides a method for processing geographic coordinates based on flexible configuration of streaming data, the method comprising:
[0008] S1. Obtain real-time data streams through a streaming data transmission channel established between a mobile terminal and the Internet, and automatically match longitude and latitude information based on the world's universal map projection standard;
[0009] S2. Create a graphic drag configuration interface, and configure the processing flow of geographic coordinates by dragging graphic elements, wherein the processing flow includes coordinate mapping, coordinate conversion, and distance calculation;
[0010] S3, define geographic coordinate processing components and assign independent component numbers according to different processing tasks;
[0011] S4. Select the appropriate processing component based on the configured processing flow, and then connect each processing component in the order of the flow by dragging the graphic elements to form a complete geographic coordinate processing solution;
[0012] S5. Input the real-time data stream into the processing solution, call the processing component to perform the configuration processing of the geographic coordinates for different reference systems, and output the geographic coordinate processing results.
[0013] Furthermore, through the streaming data transmission channel established between the mobile terminal and the Internet, real-time data streams are obtained, and based on the world's universal map projection standards, longitude and latitude information are automatically matched, including:
[0014] S11, based on the streaming data transmission interface reserved by the mobile terminal, establish a streaming data transmission channel for real-time communication with the Internet, and obtain a real-time data stream uploaded in real time and containing geographic information;
[0015] S12, parsing the real-time data stream, and based on the data classification energy-saving strategy, splitting the real-time data stream into different types, and storing them in different areas respectively;
[0016] S13. Create a coordinate database based on the world's universal map projection standard, and automatically match the longitude and latitude information corresponding to the geographic information contained in the real-time data stream.
[0017] Furthermore, based on the data classification energy-saving strategy, the real-time data stream is divided into different types and stored in different areas, including:
[0018] S121, dividing the memory of the Internet system end into a real-time file area and a duplicate file area, storing the real-time data stream with position change in the real-time file area according to the analysis result of the real-time data stream, and storing the real-time data stream with no position change in the duplicate file area;
[0019] S122, dividing the real-time file area into an active file area and a regular file area according to the activity factor of the real-time data stream and the frequency of change of the geographic information, wherein the real-time data stream in the active file area is stored in the active area, and the real-time data stream in the regular file area is stored in the dormant area for dormant processing;
[0020] S123. The duplicate data in the duplicate file area is filtered through a Bloom filter.
[0021] Furthermore, geographic coordinate processing components are defined, and independent component numbers are assigned according to different processing tasks, including:
[0022] S31. Based on the processing flow, three types of geographic coordinate processing components are created, the processing components including a coordinate mapping type, a coordinate conversion type, and a distance calculation type;
[0023] S32, for the coordinate mapping type, defining a plurality of polygon mapping processing tasks for mapping geographic information data in the real-time data stream into polygonal geometric figures;
[0024] S33, for the coordinate conversion type, define multiple coordinate reference system conversion processing tasks for converting geographic information data in the real-time data stream into different coordinates and reference systems;
[0025] S34, for the distance calculation type, define multiple coordinate distance calculation processing tasks for calculating the distance and motion data in the spatial coordinates according to the geographic information in the real-time data stream;
[0026] S35, assigning independent component numbers to processing tasks that belong to different processing component types and perform different functions, and each processing component can be used for the dragging operation of the graphic element.
[0027] Furthermore, a plurality of polygon mapping processing tasks are defined for mapping geographic information data in a real-time data stream into polygonal geometric figures, including:
[0028] S321, extracting the longitude and latitude information contained in the real-time data stream, inputting the set geographic coordinate reference identifier, the end style and the connection style, using the image mapping algorithm to transform the geographic coordinates corresponding to the longitude and latitude information into polygons, and generating polygonal geometric figures with the specified style;
[0029] S322. Based on the longitude and latitude information of the real-time data stream, combined with the set buffer distance around the geometric body, the end style and the quadrant segment, a buffer zone is created for each geographic coordinate point according to the buffer distance around the geometric body, and the shape of the buffer zone is adjusted according to the quadrant segment. Each geographic coordinate point is then mapped into a polygon to generate a polygonal geometry with the specified style and quadrant segment.
[0030] Furthermore, multiple coordinate reference system conversion processing tasks are defined to convert geographic information data in real-time data streams into different coordinate and reference systems, including:
[0031] S331, extracting the longitude and latitude information matched by the real-time data stream, and mapping the longitude and latitude information to a specific city and its city coordinate position using a coordinate reference system and a geographic information database;
[0032] S332, based on the longitude and latitude information of the real-time data stream, a source coordinate system is selected in combination with a coordinate database, and the longitude and latitude information is converted into a corresponding EPSG coordinate system;
[0033] S333. Analyze the geographic information in the real-time data stream and map it from the source coordinate reference system to the target coordinate reference system.
[0034] Furthermore, multiple coordinate distance calculation processing tasks are defined to calculate the distance and motion data in the spatial coordinates according to the geographic information in the real-time data stream, including:
[0035] S341, based on the longitude and latitude information matched by the current real-time data stream, obtain the longitude and latitude information of the target geographic coordinates, and calculate the distance between the two spatial coordinate points;
[0036] S342, generating a visual motion trajectory graph based on the longitude and latitude information of the real-time data stream and the coordinate data of multiple historical coordinate points input;
[0037] S343. Based on the longitude and latitude information of the real-time data stream and the timestamp information, calculate the movement speed of the geographical coordinate point where the current real-time data stream is located.
[0038] Furthermore, based on the longitude and latitude information of the real-time data stream, combined with the coordinate data of multiple historical coordinate points input, a visual motion trajectory graph is generated, including:
[0039] S3421, setting the interval period for generating trajectory points, periodically obtaining the geographic coordinate points corresponding to the real-time data stream, and combining the historical coordinate points of the previous n interval periods to generate a trajectory point set;
[0040] S3422, using a curve to sequentially connect all geographic coordinate points in the trajectory point set to generate a trajectory curve, and using a curve interpolation algorithm to interpolate the trajectory curve to obtain a smooth and complete motion trajectory graph;
[0041] S3423, using a clustering algorithm to perform cluster analysis on the trajectory point set, and extracting geographic feature information contained in the real-time data stream during the movement;
[0042] S3424. Use different colors to distinguish different motion trajectory graphics, and use a combination of maps and heat maps to reflect the spatial aggregation of motion trajectory graphics corresponding to all real-time data streams.
[0043] Furthermore, clustering algorithms are used to perform cluster analysis on the trajectory point set to extract the geographic feature information contained in the real-time data stream during the movement process, including:
[0044] S34231, calculating the Euclidean distance between each trajectory point in the trajectory point set and all other trajectory points, and then calculating the k distance value of each trajectory point and determining the value of the neighborhood radius;
[0045] S34232, calculating the core point based on the pre-configured k value and the numerical value of the neighborhood radius;
[0046] S34233, calculating the core points that can be connected, obtaining the noise points, and then merging the core points that can be connected and the points whose distances to the core points are less than the neighborhood radius to form a cluster;
[0047] S34235. Select different neighborhood radii, use clustering algorithms to obtain a set of clusters and their noise points, and use scatter plots to compare the clustering results.
[0048] Furthermore, the real-time data stream is input into the processing scheme, and the processing component is called to perform the configuration processing of the geographic coordinates for different reference systems. The output geographic coordinate processing results include:
[0049] S51, inputting the real-time data stream into the processing scheme, and calling the processing components included in the processing scheme;
[0050] S52, verify the coordinate database to verify the validity of the geographic coordinates and coordinate reference system;
[0051] S53, obtaining parameter values required for the real-time data stream to be processed;
[0052] S54, obtaining the configuration information of the coordinate reference system from the coordinate database in real time, and using the processing components to sequentially perform the data stream parsing and geographic coordinate processing tasks.
[0053] The beneficial effects of the present invention are:
[0054] 1. Real-time data stream acquisition through streaming data transmission channel ensures the timeliness of geographic coordinate information; through the constructed graphic drag configuration interface, the processing flow of geographic coordinates is more intuitive and easy to operate, which improves the convenience of configuration; in addition, the definition and assembly of geographic coordinate processing components have good scalability and flexibility, and can adapt to different processing tasks; through automatic matching of longitude and latitude information and configuration processing of different reference systems, the versatility and adaptability are improved; the present invention takes into account flexibility, intuitiveness and versatility in real-time geographic coordinate processing, and provides an effective and convenient solution for coordinate operation and analysis in multiple scenarios such as factories and mobile terminals.
[0055] 2. By creating various types of processing components, including coordinate mapping, coordinate conversion and distance calculation, the classification and modularization of different geographic coordinate processing tasks are realized; multiple specific processing tasks are defined for coordinate mapping type, coordinate conversion type and distance calculation type, which increases the flexibility and applicability of the system and can meet the diverse geographic data processing needs; at the same time, each processing component is given an independent number so that they can be clearly identified and selected in the graphical drag configuration interface, which is convenient for users to assemble and configure the geographic coordinate processing process on demand, thereby improving the maintainability and scalability of the geographic coordinate processing system, and also allowing users to operate and customize the geographic data processing process more intuitively.
[0056] 3. Based on the flexible configuration and processing of geographic coordinates based on streaming data, combined with the graphic drag configuration interface, automatic matching of longitude and latitude information, configuration processing of different reference systems, and corresponding data processing procedures, it realizes intuitive and convenient rapid processing and analysis of geographic coordinates obtained by each mobile terminal, which greatly caters to the increasing demand for real-time geographic coordinates and location-related data in the era of the Internet of Things, while meeting the needs of personalized scenarios and businesses. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0058] Figure 1 The present invention is a flowchart of a method for processing geographic coordinates based on flexible configuration of streaming data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0060] See also Figure 1 , provides a method for processing geographic coordinates based on streaming data with flexible configuration, the method comprising:
[0061] S1. Obtain real-time data streams through the streaming data transmission channel established between the mobile terminal and the Internet, and automatically match longitude and latitude information based on the world's universal map projection standards.
[0062] In the description of the present invention, a streaming data transmission channel is established between a mobile terminal and the Internet to obtain a real-time data stream, and based on the world's universal map projection standard, the longitude and latitude information are automatically matched, including:
[0063] S11. Based on the streaming data transmission interface reserved by the mobile terminal, a streaming data transmission channel for real-time communication with the Internet is established to obtain a real-time data stream uploaded in real time and containing geographic information.
[0064] Among them, the mobile terminal reserves a streaming data transmission interface to ensure that it complies with security standards and communication protocols; set the format of the real-time data stream, including the data structure of geographic information, and adopt common geographic information standards such as longitude and latitude. At the same time, it is necessary to ensure the security of the streaming data transmission channel and implement identity authentication and authorization mechanisms to prevent unauthorized access.
[0065] The mobile terminal establishes a real-time communication connection with the Internet through a reserved interface, which involves the use of protocols such as Secure Sockets Layer (SSL / TLS) to ensure the security of communication. The mobile terminal uploads a data stream containing geographic information in real time, and transmits the data to the Internet through the established channel, either periodically or based on event-triggered real-time data transmission.
[0066] S12. Analyze the real-time data stream, and based on the data classification energy-saving strategy, split the real-time data stream into different types and store them in different areas respectively.
[0067] In the description of the present invention, based on the data classification energy-saving strategy, the real-time data stream is split into different types and stored in different areas respectively, including:
[0068] S121. Divide the memory of the Internet system end into a real-time file area and a duplicate file area. According to the analysis result of the real-time data stream, the real-time data stream with position change is stored in the real-time file area, and the real-time data stream with no position change is stored in the duplicate file area.
[0069] S122. Divide the real-time file area into an active file area and a regular file area according to the activity factor of the real-time data stream and the frequency of geographic information change, wherein the real-time data stream in the active file area is stored in the active area, and the real-time data stream in the regular file area is stored in the dormant area for dormant processing.
[0070] Specifically, on the basis of the real-time file area, it is further divided into an active file area and a regular file area according to the activity factor of the real-time data stream and the frequency of change of geographic information.
[0071] Active file area: stores active real-time data streams, that is, data with frequent geographic information changes, and keeps them in the active area.
[0072] Conventional file area: stores real-time data streams with low frequency of geographic information changes, and stores them in the dormant area for dormant processing to reduce energy consumption.
[0073] S123. The duplicate data in the duplicate file area is filtered through a Bloom filter.
[0074] Among them, Bloom filter is a data structure used to determine whether an element belongs to a set. It uses multiple hash functions and a bit array to represent the set, which can efficiently check whether an element may exist in the set, but there is a certain false positive rate.
[0075] Introducing a Bloom filter into the duplicate file area for filtering includes the following steps:
[0076] 1. Create a Bloom filter: initialize a bit array and set multiple hash functions.
[0077] 2. Data filtering: For each real-time data stream, the data is hashed multiple times using a hash function before passing through the Bloom filter.
[0078] 3. Check the filter: Check whether the bit corresponding to each hash result has been set to 1. If all are 1, it means that the data may exist in the set and needs further verification; if one bit is 0, it can be determined that the data does not exist in the set and can be filtered directly.
[0079] Through the above steps, effective classification and storage management of real-time data streams are achieved, which can not only save system resources and reduce energy consumption, but also improve the response speed and efficiency to changes in geographic information. The use of energy-saving strategies helps to optimize system performance, especially in large-scale real-time data processing scenarios, with better maintainability and resource utilization efficiency.
[0080] S13. Create a coordinate database based on the world's universal map projection standard, and automatically match the longitude and latitude information corresponding to the geographic information contained in the real-time data stream.
[0081] First, in the system initialization phase, select the appropriate EPSG map projection standard. Secondly, in the database design, establish a geographic information storage table, including fields such as longitude, latitude, geographic coordinate type, etc. Subsequently, through the real-time data stream parsing module, extract the geographic information in each data, and in the extracted geographic information, automatically match and ensure that the format of longitude and latitude meets the selected standard through the EPSG map projection standard. Store the matched geographic information in the geographic information table in the coordinate database, and update the index to improve retrieval efficiency. Finally, monitor the changes in the data stream in real time to ensure that the geographic information in the coordinate database remains synchronized with the real-time data stream.
[0082] S2. Create a graphic drag configuration interface, and configure the processing flow of geographic coordinates by dragging graphic elements, wherein the processing flow includes coordinate mapping, coordinate conversion, and distance calculation.
[0083] Among them, the design of the graphic drag configuration interface includes a visual work area and a graphic element library. The work area is used to configure the processing flow of geographic coordinates, and the graphic element library includes draggable graphic elements representing different geographic coordinate processing components.
[0084] In the graphic element library, design and add graphic elements representing geographic coordinate processing components such as coordinate mapping, coordinate conversion and distance calculation, and implement the dragging function of graphic elements, so that users can drag different components from the graphic element library to the work area.
[0085] In the work area, connecting lines or arrows are designed to indicate the flow direction of the geographic coordinate processing process. Users can connect different geographic coordinate processing components by dragging connecting lines to form a complete processing process. A configurable parameter interface is designed for each geographic coordinate processing component, so that users can configure the specific parameters of each component through a graphical interface.
[0086] Finally, the functionality of saving and loading configurations is implemented, allowing users to save configured geo-coordinate processing flows and reload them when needed.
[0087] S3. Define geographic coordinate processing components and assign independent component numbers according to different processing tasks.
[0088] In the description of the present invention, geographic coordinate processing components are defined, and independent component numbers are assigned according to different processing tasks, including:
[0089] S31. Based on the processing flow, three types of geographic coordinate processing components are created. The processing components include a coordinate mapping type, a coordinate conversion type, and a distance calculation type.
[0090] S32. For the coordinate mapping type, define a plurality of polygon mapping processing tasks for mapping geographic information data in the real-time data stream into polygonal geometric figures.
[0091] In the description of the present invention, a plurality of polygon mapping processing tasks are defined for mapping geographic information data in a real-time data stream into polygonal geometric figures, including:
[0092] S321. Extract the longitude and latitude information contained in the real-time data stream, input the set geographic coordinate reference identifier, end style and connection style, use the image mapping algorithm to convert the geographic coordinates corresponding to the longitude and latitude information into polygons, and generate polygonal geometric figures with the specified style.
[0093] After extracting the longitude and latitude information from the real-time data stream, the user enables the image mapping algorithm by inputting the set geographic coordinate reference identifier, end style and connection style, maps the longitude and latitude information into geographic coordinates, and creates polygonal geometric figures with the specified style.
[0094] Specifically, first, the longitude and latitude information in the real-time data stream is extracted, and the user can set the geographic coordinate reference identifier, end cap style and joint style required for processing. Subsequently, the longitude and latitude information is mapped to the corresponding geographic coordinates through the image mapping algorithm to ensure that it accurately corresponds to the location on the map. Next, based on the mapped geographic coordinates, the polygon generation algorithm is used to create polygonal geometries with the user-specified style. Finally, according to the set end cap style and joint style, the corresponding style attributes such as color, line type, fill, etc. are applied to the generated polygonal geometries.
[0095] The function of the above steps is to realize the visualization processing of real-time geographic coordinate data. Through the parameters input by the user and the specified style, the extracted longitude and latitude information is converted into polygonal geometric figures of geographic coordinates and given personalized appearance characteristics. Such a processing process is of great significance for the real-time analysis and visualization of a large amount of geographic coordinate data generated by the positioning function of mobile devices and systems in the Internet of Things, meeting personalized scenarios and business needs, and providing users with intuitive geographic information display.
[0096] S322. Based on the longitude and latitude information of the real-time data stream, combined with the set buffer distance around the geometric body, the end style and the quadrant segment, a buffer zone is created for each geographic coordinate point according to the buffer distance around the geometric body, and the shape of the buffer zone is adjusted according to the quadrant segment. Each geographic coordinate point is then mapped into a polygon to generate a polygonal geometry with the specified style and quadrant segment.
[0097] The specific implementation process involves key steps such as buffer creation, shape adjustment, and polygon mapping of geographic coordinate points. By setting the buffer distance around the geometry, the system creates a buffer for each geographic coordinate point. The shape of the buffer is affected by the adjustment of the quadrant segment, achieving flexible shape changes. Subsequently, the adjusted geographic coordinate point is mapped to a polygonal geometry with a specified style and quadrant segment through a mapping algorithm.
[0098] The functional role of the above steps is also to generate polygonal geometry from real-time geographic coordinate data, each polygon has a specified buffer distance, end style and quadrant segment, suitable for fine processing and analysis of geographic space. This process can be used in various application scenarios, such as definition of geographic fences, regional analysis, etc., to meet the needs of users for personalized configuration and visualization of geographic information.
[0099] S33. For the coordinate conversion type, define multiple coordinate reference system conversion processing tasks to convert geographic information data in the real-time data stream into different coordinates and reference systems.
[0100] In the description of the present invention, multiple coordinate reference system conversion processing tasks are defined to convert geographic information data in a real-time data stream into different coordinate and reference systems, including:
[0101] S331, extracting the longitude and latitude information matched by the real-time data stream, and mapping the longitude and latitude information to a specific city and its city coordinate position using a coordinate reference system and a geographic information database.
[0102] S332. Based on the longitude and latitude information of the real-time data stream, a source coordinate system is selected in combination with the coordinate database, and the longitude and latitude information is converted into the corresponding EPSG coordinate system.
[0103] Specifically, source coordinate system information is selected from a coordinate database according to the configuration of the user or the system.
[0104] Determine the target EPSG coordinate system: The user or system selects the target EPSG coordinate system as the coordinate system after conversion as needed.
[0105] Coordinate conversion algorithm: Use the coordinate conversion algorithm to convert the extracted latitude and longitude information from the selected source coordinate system to the target EPSG coordinate system.
[0106] Generate converted coordinates: After being processed by the coordinate conversion algorithm, the longitude and latitude information corresponding to the target EPSG coordinate system is generated.
[0107] S333. Analyze the geographic information in the real-time data stream and map it from the source coordinate reference system to the target coordinate reference system.
[0108] S34. For the distance calculation type, define multiple coordinate distance calculation processing tasks for calculating the distance and motion data in the spatial coordinates based on the geographic information in the real-time data stream.
[0109] In the description of the present invention, multiple coordinate distance calculation processing tasks are defined, which are used to calculate the distance and motion data in the spatial coordinates according to the geographic information in the real-time data stream, including:
[0110] S341. Based on the longitude and latitude information matched by the current real-time data stream, the longitude and latitude information of the target geographic coordinates is obtained, and the distance between the two spatial coordinate points is calculated.
[0111] S342. Generate a visual motion trajectory graph based on the longitude and latitude information of the real-time data stream and the coordinate data of multiple input historical coordinate points.
[0112] In the description of the present invention, based on the longitude and latitude information of the real-time data stream, combined with the coordinate data of multiple historical coordinate points input, generating a visual motion trajectory graph includes:
[0113] S3421. Set the interval period for generating trajectory points, periodically obtain the geographic coordinate points corresponding to the real-time data stream, and generate a trajectory point set by combining the historical coordinate points of the previous n interval periods.
[0114] S3422. Use a curve to sequentially connect all geographic coordinate points in the trajectory point set to generate a trajectory curve, and use a curve interpolation algorithm to interpolate the trajectory curve to obtain a smooth and complete motion trajectory graph.
[0115] S3423. Use a clustering algorithm to perform cluster analysis on the trajectory point set to extract the geographic feature information contained in the real-time data stream during the movement process.
[0116] The present invention adopts the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm. The DBSCAN algorithm is a density clustering algorithm used to divide data points into different clusters with similar density and can effectively process noisy data.
[0117] DBSCAN defines density through two parameters, namely the neighborhood radius (ε, eps) and the minimum number of points (MinPts). For a data point, if its neighborhood radius contains at least MinPts data points, then the point is called a core point. A core point refers to a point that contains at least MinPts data points within a given neighborhood radius. Core points are the basis of clustering, and they are usually the center of a cluster.
[0118] If a data point is within the neighborhood radius of another data point and the data point is a core point, then the two points are directly density reachable. If there is a sequence of data points such that every data point in the sequence is directly density reachable, then the start and end of the sequence are also density reachable. If there is a core point such that both data points are density reachable, then the two points are density connected.
[0119] According to the density reachability property, starting from the core point, the adjacent data points are divided into a cluster through the density reachability relationship. Finally, all the visited points are assigned to a cluster, and the points that do not belong to any cluster are marked as noise.
[0120] In the description of the present invention, clustering analysis is performed on the trajectory point set using a clustering algorithm to extract geographic feature information contained in the real-time data stream during the movement process, including:
[0121] S34231. Calculate the Euclidean distance between each trajectory point in the trajectory point set and all other trajectory points, then calculate the k distance value of each trajectory point and determine the value of the neighborhood radius.
[0122] The calculation of the k-distance value helps to identify density accessibility, that is, to determine whether a point is a core point. In the DBSCAN algorithm, a point must meet two conditions to be a core point:
[0123] There are at least MinPts points in its ε neighborhood, where MinPts is a pre-set threshold.
[0124] The k distance value (i.e., the distance to the MinPtsth nearest neighbor) is less than or equal to ε.
[0125] S34232. Calculate the core point based on the pre-configured k value and the numerical value of the neighborhood radius.
[0126] S34233. Calculate the core points that can be connected, obtain the noise points, and then merge the core points that can be connected and the points whose distances to the core points are less than the neighborhood radius to form a cluster.
[0127] S34235. Select different neighborhood radii, use clustering algorithms to obtain a set of clusters and their noise points, and use scatter plots to compare the clustering results.
[0128] Among them, by clustering the movement process and movement trajectory of the real-time data stream through the above clustering algorithm, effective classification and induction of geographic movement data can be achieved. This analysis method can reveal the patterns, trends and anomalies in the data, which helps to deeply understand the characteristics and laws of geographic movement data. Through clustering, we can identify clusters, agglomeration points and possible abnormal trajectories in the movement, thus providing a basis for further data interpretation and application.
[0129] The effects of cluster analysis are reflected in the following aspects:
[0130] 1. Pattern recognition and classification: Clustering algorithms can classify similar trajectory points into the same category, thereby identifying different movement patterns. This helps to effectively classify and label geographic movement data.
[0131] 2. Anomaly detection: Through cluster analysis, abnormal trajectories that are significantly different from other trajectories can be detected, helping users discover possible abnormal movement behaviors, such as abnormal paths or trajectories.
[0132] 3. Cluster analysis: Identifying cluster points in trajectory data helps to discover specific geographical phenomena such as crowd gathering and traffic congestion, and provides important reference for urban planning, traffic management and other fields.
[0133] 4. Movement trend analysis: Clustering can be used to discover trends in movement trajectories, including common paths, stop points and other information, providing strong support for decision-making based on geographic movement data.
[0134] In summary, cluster analysis provides a means of deep mining for geographic movement data, helps to extract useful information from large amounts of real-time data, and provides a scientific basis for decision-making and problem solving in various fields.
[0135] S3424. Use different colors to distinguish different motion trajectory graphics, and use a combination of maps and heat maps to reflect the spatial aggregation of motion trajectory graphics corresponding to all real-time data streams.
[0136] S343. Based on the longitude and latitude information of the real-time data stream and the timestamp information, calculate the movement speed of the geographical coordinate point where the current real-time data stream is located.
[0137] S35, assigning independent component numbers to processing tasks that belong to different processing component types and perform different functions, and each processing component can be used for the dragging operation of the graphic element.
[0138] S4. Select the appropriate processing components based on the configured processing flow, and then connect the various processing components in the order of the process by dragging and dropping graphic elements to form a complete geographic coordinate processing solution.
[0139] S5. Input the real-time data stream into the processing solution, call the processing component to perform the configuration processing of the geographic coordinates for different reference systems, and output the geographic coordinate processing results.
[0140] In the description of the present invention, the real-time data stream is input into the processing scheme, the processing component is called to perform the configuration processing of the geographic coordinates for different reference systems, and the output geographic coordinate processing results include:
[0141] S51, input the real-time data stream into the processing scheme, and call the processing components included in the processing scheme.
[0142] S52. Verify the coordinate database to verify the validity of the geographic coordinates and coordinate reference system.
[0143] S53: Obtain parameter values required for the real-time data stream to be processed.
[0144] S54, obtaining the configuration information of the coordinate reference system from the coordinate database in real time, and using the processing components to sequentially perform the data stream parsing and geographic coordinate processing tasks.
[0145] Among them, the configuration information of the coordinate reference system obtained from the coordinate database in real time, including the parameters, conversion rules, projection information, etc. of various coordinate reference systems, is used to guide the processing component to perform key information for data stream parsing and geographic coordinate processing tasks. By obtaining these configurations, the processing component can understand how to parse the geographic coordinate information in the real-time data stream and how to perform corresponding processing according to different coordinate reference systems, such as coordinate conversion, projection transformation, etc. Finally, the processing component can correctly perform the geographic coordinate processing task according to the configuration information and the requirements set by the user.
[0146] In summary, with the help of the above-mentioned technical scheme of the present invention, the data stream is obtained in real time through the streaming data transmission channel, which ensures the timeliness of the geographic coordinate information; through the constructed graphical drag configuration interface, the processing flow of the geographic coordinates is made more intuitive and easy to operate, which improves the convenience of configuration; in addition, the definition and assembly of geographic coordinate processing components have good scalability and flexibility, and can adapt to different processing tasks; through automatic matching of longitude and latitude information and configuration processing of different reference systems, the improvement of versatility and adaptability is achieved; the present invention takes into account flexibility, intuitiveness and versatility in real-time geographic coordinate processing, and provides an effective and convenient solution for coordinate operation and analysis in multiple scenarios such as factories and mobile terminals. By creating various types of processing components, including coordinate mapping, coordinate conversion and distance calculation, the classification and modularization of different geographic coordinate processing tasks are achieved; multiple specific processing tasks are defined for coordinate mapping type, coordinate conversion type and distance calculation type, which increases the flexibility and applicability of the system and can meet diverse geographic data processing needs; at the same time, each processing component is given an independent number so that they can be clearly identified and selected in the graphical drag configuration interface, which is convenient for users to assemble and configure the geographic coordinate processing process on demand, thereby improving the maintainability and scalability of the geographic coordinate processing system, and also allowing users to operate and customize the geographic data processing process more intuitively.
[0147] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
Claims
1. A method for processing geographic coordinates based on flexible configuration of streaming data, characterized in that: The method includes: S1. Obtain real-time data streams through the streaming data transmission channel established between the mobile terminal and the Internet, and create a coordinate database based on the world's universal map projection standard to automatically match longitude and latitude information; S2. Create a graphic drag configuration interface, and configure the processing flow of geographic coordinates by dragging graphic elements, wherein the processing flow includes coordinate mapping, coordinate conversion, and distance calculation; Specifically, a graphic drag configuration interface is designed, including a visual work area and a graphic element library; the work area is used to configure the processing flow of geographic coordinates, and the graphic element library includes draggable graphic elements representing different geographic coordinate processing components; S3, define geographic coordinate processing components and assign independent component numbers according to different processing tasks; Specifically, the definition of geographic coordinate processing components and assigning independent component numbers according to different processing tasks include: S31, based on the processing flow, creating three types of geographic coordinate processing components, the processing components including a coordinate mapping type, a coordinate conversion type and a distance calculation type; S32, for the coordinate mapping type, defining a plurality of polygon mapping processing tasks, for mapping the geographic information data in the real-time data stream into polygonal geometric figures; S33, for the coordinate conversion type, defining a plurality of coordinate reference system conversion processing tasks, for converting the geographic information data in the real-time data stream into different coordinates and reference systems; S34, for the distance calculation type, defining a plurality of coordinate distance calculation processing tasks, which are used to calculate the distance and motion data in the spatial coordinates according to the geographic information in the real-time data stream; S35, assigning independent component numbers to processing tasks that belong to different processing component types and perform different functions, and each of the processing components can be used for the dragging operation of the graphic element; S4. Select the appropriate processing component based on the configured processing flow, and then connect each processing component in the order of the flow by dragging the graphic elements to form a complete geographic coordinate processing solution; S5. Input the real-time data stream into the processing solution, call the processing component to execute the configuration processing of geographic coordinates for different reference systems, and output the geographic coordinate processing result.
2. A method for processing geographic coordinates based on flexible configuration of streaming data according to claim 1, characterized in that: The method of acquiring real-time data streams through a streaming data transmission channel established between a mobile terminal and the Internet, and creating a coordinate database based on a universal map projection standard to automatically match longitude and latitude information includes: S11, based on the streaming data transmission interface reserved by the mobile terminal, establish a streaming data transmission channel for real-time communication with the Internet, and obtain a real-time data stream uploaded in real time and containing geographic information; S12, parsing the real-time data stream, and based on the data classification energy-saving strategy, splitting the real-time data stream into different types, and storing them in different areas respectively; S13. Based on the universal map projection standard, a coordinate database is created, and the longitude and latitude information corresponding to the geographic information contained in the real-time data stream is automatically matched.
3. A method for processing geographic coordinates based on flexible configuration of streaming data according to claim 2, characterized in that: The energy-saving strategy based on data classification, splitting the real-time data stream into different types and storing them in different areas respectively, includes: S121, dividing the memory of the Internet system end into a real-time file area and a duplicate file area, and according to the analysis result of the real-time data stream, storing the real-time data stream with a position change in the real-time file area, and storing the real-time data stream with no position change in the duplicate file area; S122, dividing the real-time file area into an active file area and a regular file area according to the activity factor of the real-time data stream and the frequency of geographic information change, wherein the real-time data stream in the active file area is stored in the active area, and the real-time data stream in the regular file area is stored in the dormant area for dormant processing; S123: The duplicate data in the duplicate file area is filtered through a Bloom filter.
4. The method for processing geographic coordinates based on flexible configuration of streaming data according to claim 1, characterized in that: The processing task of defining a plurality of polygon mappings for mapping the geographic information data in the real-time data stream into polygonal geometric figures comprises: S321, extracting the longitude and latitude information contained in the real-time data stream, inputting the set geographic coordinate reference identifier, the end style and the connection style, using the image mapping algorithm to transform the geographic coordinates corresponding to the longitude and latitude information into polygons, and generating polygonal geometric figures with the specified style; S322. Based on the longitude and latitude information of the real-time data stream, combined with the set buffer distance around the geometric body, the end style and the quadrant segment, a buffer zone is created for each geographic coordinate point according to the buffer distance around the geometric body, and the shape of the buffer zone is adjusted according to the quadrant segment. Each geographic coordinate point is then mapped into a polygon to generate a polygonal geometry with a specified style and quadrant segment.
5. The method for processing geographic coordinates based on flexible configuration of streaming data according to claim 1, characterized in that: The processing task of defining multiple coordinate reference system conversions, which is used to convert geographic information data in the real-time data stream into different coordinate and reference systems, includes: S331, extracting the longitude and latitude information matched by the real-time data stream, and mapping the longitude and latitude information to a specific city and its city coordinate position using a coordinate reference system and a geographic information database; S332, based on the longitude and latitude information of the real-time data stream, a source coordinate system is selected in combination with the coordinate database, and the longitude and latitude information is converted into a corresponding EPSG coordinate system; S333, parsing the geographic information in the real-time data stream, and mapping the source coordinate reference system to the target coordinate reference system.
6. The method for processing geographic coordinates based on flexible configuration of streaming data according to claim 1, characterized in that: The processing task of defining multiple coordinate distance calculations, which is used to calculate distance and motion data in spatial coordinates based on geographic information in the real-time data stream, includes: S341, based on the longitude and latitude information matched by the current real-time data stream, obtaining the longitude and latitude information of the target geographic coordinates, and calculating the distance between the two spatial coordinate points; S342, generating a visual motion trajectory graph based on the longitude and latitude information of the real-time data stream and the coordinate data of multiple input historical coordinate points; S343. Calculate the movement speed of the geographical coordinate point where the real-time data stream is currently located based on the longitude and latitude information and timestamp information of the real-time data stream.
7. A method for processing geographic coordinates based on flexible configuration of streaming data according to claim 6, characterized in that: The generating of a visual motion trajectory graph based on the longitude and latitude information of the real-time data stream and the coordinate data of multiple input historical coordinate points includes: S3421, setting a trajectory point generation interval period, periodically obtaining geographic coordinate points corresponding to the real-time data stream, and combining historical coordinate points of the previous n interval periods to generate a trajectory point set; S3422, using a curve to sequentially connect all geographic coordinate points in the trajectory point set to generate a trajectory curve, and using a curve difference algorithm to interpolate the trajectory curve to obtain a smooth and complete motion trajectory graph; S3423, performing cluster analysis on the trajectory point set using a clustering algorithm to extract geographic feature information contained in the real-time data stream during movement; S3424. Use different colors to distinguish different motion trajectory graphics, and use a combination of maps and heat maps to reflect the spatial aggregation of motion trajectory graphics corresponding to all real-time data streams.
8. The method for processing geographic coordinates based on flexible configuration of streaming data according to claim 7, characterized in that: The clustering analysis of the trajectory point set by using a clustering algorithm to extract geographic feature information contained in the real-time data stream during the movement process includes: S34231, calculating the Euclidean distance between each trajectory point in the trajectory point set and all other trajectory points, and then calculating the k distance value of each trajectory point and determining the value of the neighborhood radius; S34232, calculating the core point based on the pre-configured k value and the numerical value of the neighborhood radius; S34233, calculating the core points that can be connected, obtaining the noise points, and then merging the core points that can be connected and the points whose distances to the core points are less than the neighborhood radius to form a cluster; S34235. Select different neighborhood radii, use clustering algorithms to obtain a set of clusters and their noise points, and use scatter plots to compare the clustering results.
9. The method for processing geographic coordinates based on flexible configuration of streaming data according to claim 1, characterized in that: The step of inputting the real-time data stream into the processing scheme, calling the processing component to perform configuration processing of geographic coordinates for different reference systems, and outputting geographic coordinate processing results includes: S51, inputting the real-time data stream into the processing scheme, and calling the processing components included in the processing scheme; S52, verifying the coordinate database to verify the validity of the geographic coordinates and the coordinate reference system; S53, obtaining parameter values required for processing the real-time data stream; S54, acquiring the configuration information of the coordinate reference system from the coordinate database in real time, and using the processing component to sequentially perform the parsing of the data stream and the processing tasks of the geographic coordinates.
