Highway traffic meteorological data display method, device and electronic equipment based on highway traffic network
Patent Information
- Application Number
- CN202411097901.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-12
Smart Images

Figure CN118626543B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method, device and electronic equipment for displaying highway traffic meteorological data based on a highway traffic network. Background Art
[0002] With the development of social economy and the acceleration of urbanization, road traffic has become a common means of travel for the public, while unfavorable weather conditions will bring many inconveniences to people's travel. At present, road traffic meteorological monitoring and forecasting services are mainly based on gridded numerical simulation products, lacking the representation and display of real-time road traffic meteorological conditions in the form of road traffic networks; in addition, with the "explosive" growth of road traffic network mileage and the continuous density of road networks, the refinement of the spatiotemporal resolution of road traffic meteorological products has gradually increased, and the data volume of a single product is large. There are problems such as lag in the real-time and rapid digital loading and layer drawing of road traffic meteorological monitoring and forecasting products into the road traffic network. Therefore, it is impossible to realize the intelligent display and management of road traffic meteorological data based on the road traffic network and the forecast data for the next few days, hour by hour or three hours by hour. The display efficiency of road traffic meteorological data is low, which reduces the service effect and user experience.
[0003] Therefore, it is of great significance and necessity to develop a method that can quickly load highway traffic meteorological product data in real time and draw it to the highway traffic network, and effectively monitor and optimize it.
[0004] In summary, how to efficiently and quickly display highway traffic meteorological data in the form of a highway traffic network has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a method, device and electronic device for displaying highway traffic meteorological data based on a highway traffic network, so as to alleviate the technical problem that the prior art cannot efficiently and quickly display highway traffic meteorological data in the form of a highway traffic network.
[0006] In a first aspect, an embodiment of the present invention provides a method for displaying road traffic meteorological data based on a road traffic network, which is applied to a road traffic meteorological data display system. The method includes:
[0007] Acquire highway traffic network data, and project and transform the highway traffic network data into a preset coordinate system to obtain the highway traffic network data in the preset coordinate system, wherein the highway traffic network data includes: attribute information of each of the multiple road sections constituting the highway traffic network, start endpoint information and end endpoint information of each road section;
[0008] Splicing and fusing the road sections with the same attribute information and connected endpoints in the highway traffic network data under the preset coordinate system to obtain the spliced and fused highway traffic network data, wherein the attribute information includes: the code of each road section, and the province, city, district and county information where each road section is located;
[0009] Performing centerline extraction on a first target road section in the spliced and fused highway traffic network data to obtain highway traffic network data after centerline extraction, wherein the first target road section is a road section in the spliced and fused highway traffic network data whose interval is less than a preset distance threshold and whose attribute information is the same;
[0010] Performing a duplicate road section check on the highway traffic network data after the center line is extracted, and deleting the duplicate road sections obtained by the check, so as to obtain the highway traffic network data after the duplicate road sections are deleted;
[0011] The highway traffic network data after the duplicate road sections are deleted is segmented according to the spatial accuracy of the highway traffic meteorological data to obtain the highway traffic network data after the segment interruption;
[0012] Constructing a topological structure for the highway traffic network data after the road sections are interrupted, and obtaining passable road network topological structure data with weight values of the road sections;
[0013] Constructing a spatial index of each endpoint in the road network topology structure data, and slicing the road network topology structure data with the spatial index according to a vector slicing data standard to obtain sliced road network topology structure data;
[0014] The sliced road network topology data are superimposed and displayed in a GIS map, and the legend corresponding to the meteorological elements of the acquired highway traffic meteorological data and the coding of the road section are drawn on the second target road section of the displayed sliced road network topology data, wherein the second target road section is the road section corresponding to the coding of the road section corresponding to the highway traffic meteorological data in the sliced road network topology data.
[0015] Furthermore, the road sections with the same attribute information and connected endpoints in the highway traffic network data under the preset coordinate system are spliced and merged, including:
[0016] Determine the endpoint information of each road section according to the highway traffic network data in the preset coordinate system, and determine the intersecting road section of the current road section according to the endpoint information of each road section, wherein the current road section is all the road sections in the highway traffic network data in the preset coordinate system;
[0017] Determine whether the attribute information of the current road section is the same as the intersecting road section;
[0018] If they are the same, the current road section and the intersecting road section are spliced and merged until all the road sections are traversed to obtain the spliced and merged highway traffic network data.
[0019] Furthermore, the centerline of the first target road section in the spliced and fused highway traffic network data is extracted, including:
[0020] Using spatial analysis software to read the spliced and fused highway traffic network data;
[0021] The centerline of the first target road section in the spliced and fused highway traffic network data is extracted according to the centerline extraction rule set in the spatial analysis software, and the first target road section is deleted to obtain the highway traffic network data after the centerline extraction, wherein the centerline extraction rule is a rule for extracting the centerline of sections in the spliced and fused highway traffic network data whose intervals are less than a preset distance threshold and whose attribute information is the same.
[0022] Furthermore, the highway traffic network data after the centerline extraction is subjected to repeated road section inspection, including:
[0023] The spatial analysis software is used to construct the network topology of the highway traffic network data after the center line is extracted, and the constructed network topology is checked for repeated sections according to the set repeated section checking rules to obtain the repeated sections.
[0024] Furthermore, the highway traffic network data after the duplicate road sections are deleted is segmented according to the spatial accuracy of the highway traffic meteorological data, including:
[0025] Determining the starting and ending point information of each road section in the highway traffic network data after deleting the duplicate road sections;
[0026] Taking the starting endpoint information of each of the road sections as the starting point and the spatial accuracy as the interval, the coordinates of the break points of each of the road sections are determined;
[0027] The corresponding road sections in the highway traffic network data after the duplicate road sections are deleted are interrupted according to the coordinates of the interruption points of each road section to obtain the highway traffic network data after the road sections are interrupted.
[0028] Furthermore, a topological structure is constructed for the highway traffic network data after the road section is interrupted, including:
[0029] Using spatial analysis software to construct a topological structure of the highway traffic network data after the road section is interrupted, and obtaining initial road network topological structure data;
[0030] In the spatial analysis software, the endpoint connectivity setting and the weight attribute setting of the road section are performed on the initial road network topology data, so as to obtain the road network topology data that is passable and has the weight value of the road section.
[0031] Furthermore, the road network topology data with spatial index is sliced according to the vector slice data standard, including:
[0032] Using a geographic service program to read the road network topology data with spatial index;
[0033] Data slicing service is published for the road network topology structure data with spatial index according to the spatial coordinate system set in the geographic service program and the publishing service cache data type, so that the geographic service program obtains the road network topology structure data with spatial index in a preset geographic range, and slices the road network topology structure data with spatial index in the preset geographic range according to a preset slice size to obtain the sliced road network topology structure data.
[0034] Furthermore, the method further comprises:
[0035] Get the query date, query time and query geographic range parameters entered by the user;
[0036] Determine the road network topology data after the corresponding target slice according to the query geographic scope parameter, and obtain the target highway traffic meteorological data according to the query geographic scope parameter, the query date and the query time;
[0037] The road network topology data after the target slicing is superimposed and displayed in the GIS map, and the target legend corresponding to the meteorological elements of the target highway traffic meteorological data and the target code of the section are drawn on the third target section of the road network topology data after the target slicing, wherein the third target section is the section corresponding to the target code of the section corresponding to the target highway traffic meteorological data in the road network topology data after the target slicing.
[0038] In a second aspect, an embodiment of the present invention further provides a highway traffic meteorological data display device based on a highway traffic network, which is applied to a highway traffic meteorological data display system, and the device includes:
[0039] An acquisition and projection conversion unit is used to acquire highway traffic network data, and project and convert the highway traffic network data into a preset coordinate system to obtain the highway traffic network data in the preset coordinate system, wherein the highway traffic network data includes: attribute information of each of the multiple road sections constituting the highway traffic network, start endpoint information and end endpoint information of each road section;
[0040] A splicing and fusing unit is used to splice and fuse the road sections with the same attribute information and connected endpoints in the highway traffic network data under the preset coordinate system to obtain the spliced and fused highway traffic network data, wherein the attribute information includes: the code of each road section, and the province, city, district and county information of each road section;
[0041] A centerline extraction unit is used to extract the centerline of a first target road section in the spliced and fused highway traffic network data to obtain highway traffic network data after centerline extraction, wherein the first target road section is a road section in the spliced and fused highway traffic network data whose interval is less than a preset distance threshold and whose attribute information is the same;
[0042] A duplicate road section checking and deleting unit is used to check the road traffic network data after the center line is extracted for duplicate roads, and delete the duplicate roads obtained by the check to obtain the road traffic network data after the duplicate roads are deleted;
[0043] A road segment interruption unit, used for performing road segment interruption on the highway traffic network data after the duplicate road segments are deleted according to the spatial accuracy of the highway traffic meteorological data, so as to obtain the highway traffic network data after the road segment interruption;
[0044] A topology structure construction unit is used to construct a topology structure for the highway traffic network data after the road sections are interrupted, so as to obtain the road network topology structure data which is passable and has the weight values of the road sections;
[0045] A data slicing unit is used to construct a spatial index of each endpoint in the road network topology structure data, and slice the road network topology structure data with the spatial index according to the vector slicing data standard to obtain the sliced road network topology structure data;
[0046] A display and drawing unit is used to overlay and display the sliced road network topology data in a GIS map, and to draw a legend corresponding to the meteorological elements of the acquired highway traffic meteorological data and the coding of the road section on the second target road section of the sliced road network topology data displayed, wherein the second target road section is the road section corresponding to the coding of the road section corresponding to the highway traffic meteorological data in the sliced road network topology data.
[0047] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0048] In an embodiment of the present invention, a method for displaying road traffic meteorological data based on a road traffic network is provided, which is applied to a road traffic meteorological data display system. The method comprises: acquiring road traffic network data, and projecting and converting the road traffic network data into a preset coordinate system to obtain road traffic network data under the preset coordinate system, wherein the road traffic network data comprises: attribute information of each section of a plurality of sections constituting the road traffic network, starting endpoint information and ending endpoint information of each section; splicing and fusing sections with the same attribute information and connected endpoints in the road traffic network data under the preset coordinate system to obtain spliced and fused road traffic network data, wherein the attribute information comprises: the code of each section, and the province, city, district and county information where each section is located; extracting the centerline of a first target section in the spliced and fused road traffic network data to obtain road traffic network data after centerline extraction, wherein the first target section is a section in the spliced and fused road traffic network data with an interval less than a preset distance threshold and the same attribute information; extracting the centerline of the first target section; The highway traffic network data after duplicate sections are checked, and the duplicate sections obtained by the check are deleted to obtain the highway traffic network data after duplicate sections are deleted; the highway traffic network data after duplicate sections are deleted are segmented according to the spatial accuracy of the highway traffic meteorological data to obtain the highway traffic network data after segment interruption; a topological structure is constructed for the highway traffic network data after segment interruption to obtain a passable road network topological structure data with weight values of the sections; a spatial index of each endpoint in the road network topological structure data is constructed, and the road network topological structure data with spatial index is sliced according to the vector slice data standard to obtain the sliced road network topological structure data; the sliced road network topological structure data is superimposed and displayed in the GIS map, and the legend corresponding to the meteorological elements of the obtained highway traffic meteorological data and the code of the section are drawn on the second target section of the displayed sliced road network topological structure data, wherein the second target section is the section corresponding to the code of the section corresponding to the highway traffic meteorological data in the sliced road network topological structure data.It can be seen from the above description that in the highway traffic meteorological data display method based on the highway traffic network of the present invention, the highway traffic network data that must be displayed can be minimized through splicing and fusion, centerline extraction, and deletion of repeated sections. In addition, after the section is interrupted, the road section in the highway traffic network data after the section is interrupted has the same spatial accuracy as the highway traffic meteorological data, which is more convenient for subsequent accurate drawing of the legend corresponding to the meteorological elements of the highway traffic meteorological data on each section. Subsequently, the constructed road network topological structure data is also sliced. The data volume of the sliced road network topological structure data is small and can be rendered quickly, which speeds up the efficiency of superimposing and displaying the sliced road network topological structure data in the GIS map. Finally, it realizes the real-time digitalization and layered rendering display of highway traffic meteorological data across a large time range, multiple meteorological elements and multiple forecast periods in the highway traffic network, improves the efficiency of displaying highway traffic meteorological data in the form of a highway traffic network, and alleviates the technical problem that the existing technology cannot display highway traffic meteorological data efficiently and quickly in the form of a highway traffic network. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A flowchart of a method for displaying highway traffic meteorological data based on a highway traffic network provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a marked repeated road section provided in an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of a road network topology structure data after a client calls a slice provided by an embodiment of the present invention;
[0053] Figure 4 A schematic diagram of real-time rendering and visualization of highway traffic meteorological products provided by an embodiment of the present invention;
[0054] Figure 5 A schematic diagram of a highway traffic weather data display device based on a highway traffic network provided by an embodiment of the present invention;
[0055] Figure 6 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] Traditional technologies cannot efficiently and quickly display highway traffic meteorological data in the form of highway traffic networks.
[0058] Based on this, in the highway traffic meteorological data display method based on the highway traffic network of the present invention, the highway traffic network data that must be displayed can be minimized through splicing and fusion, centerline extraction, and deletion of duplicate sections. In addition, after the section is interrupted, the road section in the highway traffic network data after the section is interrupted has the same spatial accuracy as the highway traffic meteorological data, which is more convenient for subsequent accurate drawing of legends corresponding to the meteorological elements of the highway traffic meteorological data on each section. Subsequently, the constructed road network topological structure data is also sliced. The data volume of the sliced road network topological structure data is small and can be rendered quickly, which speeds up the efficiency of superimposing and displaying the sliced road network topological structure data in the GIS map. Finally, it realizes the real-time digitization and layered rendering display of highway traffic meteorological data across a large time range, multiple meteorological elements and multiple forecast periods in the highway traffic network, which improves the efficiency of displaying highway traffic meteorological data in the form of a highway traffic network.
[0059] To facilitate understanding of this embodiment, a method for displaying highway traffic meteorological data based on a highway traffic network disclosed in an embodiment of the present invention is first introduced in detail.
[0060] Embodiment 1:
[0061] According to an embodiment of the present invention, an embodiment of a method for displaying highway traffic meteorological data based on a highway traffic network is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0062] Figure 1 is a flow chart of a method for displaying highway traffic meteorological data based on a highway traffic network according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0063] Step S102, obtaining highway traffic network data, and projecting and transforming the highway traffic network data into a preset coordinate system to obtain the highway traffic network data in the preset coordinate system, wherein the highway traffic network data includes: attribute information of each of the multiple road sections constituting the highway traffic network, start endpoint information and end endpoint information of each road section;
[0064] In an embodiment of the present invention, the above-mentioned highway traffic meteorological data display method based on the highway traffic network can be applied to a highway traffic meteorological data display system.
[0065] Specifically, first collect highway traffic network data from transportation departments, surveying and mapping departments, etc. In order to serve a wider range of highway traffic meteorological data, highway traffic network data from different types of highways such as national highways, national expressways, expressways, provincial highways, county roads, and township roads can be collected as needed. The data must be collected in accordance with national data standards to ensure the accuracy and timeliness of the data and avoid the situation where the location of highway traffic network data is inaccurate or has been abandoned.
[0066] After obtaining the highway traffic network data, all types of collected highway traffic network data are uniformly classified and processed according to the specified data coordinate system (i.e., the preset coordinate system). Currently, the national 2000 coordinate system (i.e., the preset coordinate system) is used as the data processing coordinate by default, and the present invention does not impose specific restrictions on the preset coordinate system. Highway traffic network data not in this coordinate system will be converted to this coordinate system through projection conversion operations, and then, highway traffic network data in the preset coordinate system can be uniformly operated and displayed in this coordinate system.
[0067] The above-mentioned starting endpoint information includes: the stake number of the starting endpoint and / or the longitude and latitude of the starting endpoint; the above-mentioned terminating endpoint information includes: the stake number of the terminating endpoint and / or the longitude and latitude of the terminating endpoint.
[0068] Step S104, in the highway traffic network data under the preset coordinate system, the road sections with the same attribute information and connected endpoints are spliced and merged to obtain the spliced and merged highway traffic network data, wherein the attribute information includes: the code of each road section, and the province, city, district, and county information of each road section;
[0069] Specifically, the highway traffic network data in the preset coordinate system is spliced and fused, that is, the road sections with the same attribute information and connected endpoints are spliced and fused, which can avoid the existence of fragmented sections and reduce the amount of highway traffic network data that needs to be processed later. After splicing and fusion, multiple small fragmented sections (which are originally connected sections) will be merged into a long single section.
[0070] Step S106, extracting the centerline of the first target road section in the spliced and fused highway traffic network data to obtain highway traffic network data after centerline extraction, wherein the first target road section is a road section in the spliced and fused highway traffic network data whose interval is less than a preset distance threshold and whose attribute information is the same;
[0071] Specifically, there are many double-line or multi-line states (i.e., two lanes or multiple lanes) in the highway traffic network, which will undoubtedly increase the processing volume for the display and production of the road network topology structure, and also increase the pressure of drawing highway traffic meteorological data on the above multiple lines. In addition, the existence of more double-line and multi-line states is meaningless for the display of highway traffic meteorological data on them, that is, for a two-lane or multi-lane road network, it is not necessary to draw the legend corresponding to the meteorological elements of highway traffic meteorological data on each lane. For this reason, the data trunk line is extracted (i.e., center line extraction) for the highway traffic network data in the double-line and multi-line states, thereby greatly reducing the amount of highway traffic network data that needs to be processed later and the highway traffic network data that needs to be drawn and rendered.
[0072] The above-mentioned first target road section is a road section in the spliced and fused highway traffic network data, whose interval is less than the preset distance threshold and whose attribute information is the same. Specifically, it may refer to a lane line / road section line in the spliced and fused highway traffic network data, whose interval is less than the preset distance threshold and whose attribute information is the same.
[0073] Step S108, performing a duplicate road section check on the highway traffic network data after the centerline is extracted, and deleting the duplicate road sections obtained by the check, to obtain the highway traffic network data after the duplicate road sections are deleted;
[0074] Specifically, in the acquired highway traffic network data, there are cases where the corresponding road sections are repeatedly entered. Since the splicing and fusion step mainly fuses the data for the road sections that are connected end to end and have the same attribute information, and the repeated road sections have completely the same spatial position, but the attribute information may be inconsistent. Therefore, it is necessary to screen the road network path (i.e., check the repeated road sections) for the highway traffic network data after the centerline extraction that has been processed above, determine whether there are repeated or overlapping road sections in the path, interrupt and delete the data of the repeated road sections, and avoid subsequent processing of the repeated road sections, which increases the amount of data processing.
[0075] Step S110, the highway traffic network data after the duplicated road sections are deleted is segmented according to the spatial accuracy of the highway traffic meteorological data to obtain the highway traffic network data after the segmentation;
[0076] Specifically, after completing the process of the above step S108, a continuous single-lane road network without duplication and overlap is formed, but the route lengths are different. In order to meet the meteorological service needs of the traffic management department and the public, the spatial accuracy of the highway traffic meteorological monitoring and forecasting products (i.e., highway traffic meteorological data) is the highway traffic network sections at intervals of 3 kilometers or 1 kilometer. Therefore, it is necessary to interrupt the sections in the highway traffic network data after the repeated sections are deleted according to the specified spatial accuracy of the service requirements, such as the 3-kilometer interval, 1-kilometer interval, etc., and generate the network section data with the interval specified spatial accuracy (i.e., the highway traffic network data after the sections are interrupted).
[0077] Step S112, constructing a topological structure for the highway traffic network data after the road sections are interrupted, and obtaining the road network topological structure data that is passable and has weight values of the road sections;
[0078] Specifically, GIS spatial topology analysis technology is used to construct the topological structure of highway traffic network data after road sections are interrupted, to realize the traversable path analysis from endpoint A to endpoint B (endpoint A and endpoint B are used to illustrate any two endpoints in the topological structure), and to support the configuration of weight attributes of each road section.
[0079] Step S114, constructing a spatial index of each endpoint in the road network topology data, and slicing the road network topology data with the spatial index according to the vector slicing data standard to obtain the sliced road network topology data;
[0080] Specifically, the road network topology data is stored in a spatial geographic database, a spatial geographic index is constructed for the road network topology data, the road network topology data with spatial index is sliced according to the vector tile data standard (MVT, mapbox vector tile), and network services are published.
[0081] The construction of the above spatial geographic index is to add a column in the spatial geographic database, which is a spatial attribute, indicating the spatial attribute information of each endpoint in the road network topology data, which can be used as an index reference. The above grid-based spatial index is used to improve the query and retrieval speed of data. Specifically, it includes two columns of information: geometry_id and cad. Geometry_id corresponds to the unique code value of the spatial element, and cad is the spatial range of the corresponding spatial element.
[0082] Step S116, superimpose and display the sliced road network topology data in the GIS map, and draw a legend for the legend corresponding to the meteorological elements of the acquired highway traffic meteorological data and the coding of the road section on the second target section of the displayed sliced road network topology data, wherein the second target road section is the section corresponding to the coding of the road section corresponding to the highway traffic meteorological data in the sliced road network topology data.
[0083] Specifically, by calling the MVT layer data (i.e., the sliced road network topology data) through the network service, the sliced road network topology data can be loaded and displayed in an overlay in the GIS map. At the same time, by calling the background road traffic meteorological product data interface through the network to obtain the road traffic meteorological data, the acquisition of the road traffic meteorological data of the query date and query time can be realized. By specifying the legend logo and the coding of the road section through the meteorological elements, the legend can be drawn in real time on the second target road section of the displayed sliced road network topology data, wherein the second target road section is the road section corresponding to the coding of the road section corresponding to the road traffic meteorological data in the sliced road network topology data. The coding of the road section in the road traffic meteorological product and the processed sliced road network topology data can be automatically realized for product digitization, layer drawing, display, and switching.
[0084] In an embodiment of the present invention, a method for displaying road traffic meteorological data based on a road traffic network is provided, which is applied to a road traffic meteorological data display system. The method comprises: acquiring road traffic network data, and projecting and converting the road traffic network data into a preset coordinate system to obtain road traffic network data under the preset coordinate system, wherein the road traffic network data comprises: attribute information of each section of a plurality of sections constituting the road traffic network, starting endpoint information and ending endpoint information of each section; splicing and fusing sections with the same attribute information and connected endpoints in the road traffic network data under the preset coordinate system to obtain spliced and fused road traffic network data, wherein the attribute information comprises: the code of each section, and the province, city, district and county information where each section is located; extracting the centerline of a first target section in the spliced and fused road traffic network data to obtain road traffic network data after centerline extraction, wherein the first target section is a section in the spliced and fused road traffic network data with an interval less than a preset distance threshold and the same attribute information; extracting the centerline of the first target section; The highway traffic network data after duplicate sections are checked, and the duplicate sections obtained by the check are deleted to obtain the highway traffic network data after duplicate sections are deleted; the highway traffic network data after duplicate sections are deleted are segmented according to the spatial accuracy of the highway traffic meteorological data to obtain the highway traffic network data after segment interruption; a topological structure is constructed for the highway traffic network data after segment interruption to obtain a passable road network topological structure data with weight values of the sections; a spatial index of each endpoint in the road network topological structure data is constructed, and the road network topological structure data with spatial index is sliced according to the vector slice data standard to obtain the sliced road network topological structure data; the sliced road network topological structure data is superimposed and displayed in the GIS map, and the legend corresponding to the meteorological elements of the obtained highway traffic meteorological data and the code of the section are drawn on the second target section of the displayed sliced road network topological structure data, wherein the second target section is the section corresponding to the code of the section corresponding to the highway traffic meteorological data in the sliced road network topological structure data.It can be seen from the above description that in the highway traffic meteorological data display method based on the highway traffic network of the present invention, the highway traffic network data that must be displayed can be minimized through splicing and fusion, centerline extraction, and deletion of repeated sections. In addition, after the section is interrupted, the road section in the highway traffic network data after the section is interrupted has the same spatial accuracy as the highway traffic meteorological data, which is more convenient for subsequent accurate drawing of the legend corresponding to the meteorological elements of the highway traffic meteorological data on each section. Subsequently, the constructed road network topological structure data is also sliced. The data volume of the sliced road network topological structure data is small and can be rendered quickly, which speeds up the efficiency of superimposing and displaying the sliced road network topological structure data in the GIS map. Finally, it realizes the real-time digitalization and layered rendering display of highway traffic meteorological data across a large time range, multiple meteorological elements and multiple forecast periods in the highway traffic network, improves the efficiency of displaying highway traffic meteorological data in the form of a highway traffic network, and alleviates the technical problem that the existing technology cannot display highway traffic meteorological data efficiently and quickly in the form of a highway traffic network.
[0085] The above content briefly introduces the highway traffic meteorological data display method based on the highway traffic network of the present invention. The specific contents involved are described in detail below.
[0086] In an optional embodiment of the present invention, the road segments with the same attribute information and connected endpoints in the highway traffic network data in the preset coordinate system are spliced and merged, which specifically includes the following steps:
[0087] (1) determining the endpoint information of each road section according to the highway traffic network data in a preset coordinate system, and determining the intersecting road section of the current road section according to the endpoint information of each road section, wherein the current road section is all the road sections in the highway traffic network data in the preset coordinate system;
[0088] (2) Determine whether the attribute information of the current road segment and its intersecting road segment is the same;
[0089] (3) If they are the same, the current road section and its intersecting road section are spliced and fused until all road sections are traversed to obtain the spliced and fused highway traffic network data.
[0090] The following is a detailed introduction to the above process:
[0091] Read the highway traffic network data (i.e., the road section data set) in the preset coordinate system, starting from the first road section data to the last road section data;
[0092] Get the endpoint information (latitude and longitude information) of the current road segment, the road segment code (such as G3), and the province, city, district and county information where the road segment is located;
[0093] Perform spatial data query based on the endpoint information of all road segments found in the previous step to obtain the intersecting road segments that intersect with the current road segment. If there is no intersection, proceed directly to the next road segment;
[0094] Query the coding information of the province, city, district, county and section where the intersecting section is located. If the attribute information of the intersecting section matches that of the current section, append the spatial information of the intersecting section to the current section (i.e., splice and merge the current section with its intersecting section, and the spliced and merged section is the original current section and its intersecting section, that is, replace the original current section and its intersecting section with the spliced and merged section). At the same time, add the ID of the intersecting section to the processed section ID set;
[0095] Continue processing the next road segment. If its ID is already in the processing road segment ID set, directly skip processing the next road segment data.
[0096] Until all the segment data are processed, the segments in the processed segment ID set are deleted because they have been added to the segments with the same attributes;
[0097] Export the final fused road network data (i.e. the spliced and fused highway traffic network data).
[0098] In an optional embodiment of the present invention, the centerline of the first target road section in the spliced and fused highway traffic network data is extracted, which specifically includes the following steps:
[0099] (1) Use spatial analysis software to read the spliced and fused highway traffic network data;
[0100] (2) Extracting the centerline of the first target road section in the spliced and fused highway traffic network data according to the centerline extraction rule set in the spatial analysis software, and deleting the first target road section to obtain the highway traffic network data after centerline extraction, wherein the centerline extraction rule is a rule for extracting the centerline of the road sections in the spliced and fused highway traffic network data whose intervals are less than a preset distance threshold and whose attribute information is the same.
[0101] Specifically, the double-line or multi-line state is multi-lane, has the same attribute information, is relatively close, and one may be up or down. For this reason, the "Extract Centerline" algorithm in the spatial analysis software ArcGIS is used to extract the centerline of the first target section in the spliced and fused highway traffic network data, wherein the preset distance threshold is set to 50 meters, and the code of the section and the province, city, district and county where it is located are the same value. When the lines of two or more sections exceed the preset distance threshold or the code and location information of the section do not match, they are defaulted to separate sections and the centerline extraction is not performed; for sections that meet the preset distance threshold and have the same attribute information, their centerlines are extracted, and the original first target section is deleted. The extracted centerline is the new section, replacing the above-mentioned first target section.
[0102] In an optional embodiment of the present invention, the repeated road section check is performed on the highway traffic network data after the centerline is extracted, which specifically includes the following steps:
[0103] Spatial analysis software is used to construct the network topology of the highway traffic network data after the centerline is extracted, and the constructed network topology is checked for duplicate sections according to the set duplicate section checking rules to obtain duplicate sections.
[0104] Specifically, the spatial analysis software ArcGIS is used to construct a network topology for the highway traffic network data after the centerline is extracted, and then the network topology check is performed. The topology rule setting checks that there should be no overlap between sections (specifically, when the interval between two sections is less than the second preset distance threshold, the two sections are determined to be repeated sections). The topology check will obtain all the spatially repeated intersecting sections and mark them, such as Figure 2 As shown in the figure, select and delete the marked repeated sections one by one.
[0105] In an optional embodiment of the present invention, the road network data after the duplicate road sections are deleted is segmented according to the spatial accuracy of the road weather data, which specifically includes the following steps:
[0106] (1) Determine the starting and ending point information of each road section in the highway traffic network data after the duplicate road sections are deleted;
[0107] (2) Taking the starting and ending points of each road segment as the starting point and the spatial accuracy as the interval, the coordinates of the break points of each road segment are determined;
[0108] (3) According to the coordinates of the interruption points of each road section, the corresponding road sections in the highway traffic network data after the duplicate road sections are deleted are interrupted to obtain the highway traffic network data after the road sections are interrupted.
[0109] The following is a detailed introduction to the above process:
[0110] According to the starting endpoint information of the road section (e.g., G1 Beijing-Harbin Expressway) (i.e., taking the starting endpoint information as the starting point), calculate the longitude and latitude coordinates of the break point on the road section based on the distance of 3 kilometers or 1 kilometer (i.e., the spatial accuracy is the interval);
[0111] When the remaining distance is still greater than 3 km or 1 km of spatial accuracy, the next longitude and latitude coordinate value is calculated according to the calculated longitude and latitude coordinate value until the distance of the road section is less than the set spatial accuracy;
[0112] The latitude and longitude coordinates of the starting endpoint involved in the calculation process, the latitude and longitude coordinates of the road section at a distance of 3 kilometers or 1 kilometer, and the latitude and longitude coordinates of the ending endpoint are all stored in a point data set;
[0113] After the calculation is completed, a coordinate data set of the breakpoints of all road segments broken according to the specified spatial accuracy will be generated;
[0114] According to the coordinate data set of the interruption point, the corresponding section in the highway traffic network data after the duplicate sections are deleted is interrupted to generate multiple new section data, and the attribute information of the section inherits all the attribute information of the original section to obtain the highway traffic network data after the section is interrupted.
[0115] In an optional embodiment of the present invention, constructing a topological structure for highway traffic network data after the road segments are interrupted specifically includes the following steps:
[0116] (1) Use spatial analysis software to construct the topological structure of the highway traffic network data after the road sections are interrupted to obtain the initial road network topological structure data;
[0117] (2) In the spatial analysis software, the endpoint connectivity settings and the weight attributes of the road segments are set for the initial road network topology data, thereby obtaining the traversable road network topology data with the weight values of the road segments.
[0118] The following is a detailed introduction to the above process:
[0119] Initial road network topology data construction: Based on the spatial analysis software - ArcGIS software, right-click and select "New Network Dataset" to generate the initial road network topology data;
[0120] Path analysis between the AB endpoint road network: Select "endpoint" in the connectivity of the spatial analysis software, so that the system will automatically determine the passability between A and B based on whether the endpoints are connected;
[0121] Configuration of weight attributes of each road segment: Add samples with current distance length in meters to the path cost of the spatial analysis software. The system uses the distance in meters as the weight value of the road segment by default for subsequent path judgment, that is, when planning subsequent paths, the shortest path is solved based on this weight value;
[0122] After final confirmation that there are no problems, click "build" to generate a passable road network topology data with weight values of the road segments.
[0123] The above-mentioned process of path analysis between the AB endpoint road networks and configuration of weight attributes of each road section is mainly used for subsequent path planning.
[0124] In an optional embodiment of the present invention, the road network topology data with spatial index is sliced according to the vector slice data standard, which specifically includes the following steps:
[0125] (1) Use geographic service program to read road network topology data with spatial index;
[0126] (2) Data slicing service is published for road network topology data with spatial index according to the spatial coordinate system set in the geographic service program and the publishing service cache data type, so that the geographic service program obtains the road network topology data with spatial index within a preset geographic range, and slices the road network topology data with spatial index within a preset geographic range according to a preset slice size to obtain the sliced road network topology data.
[0127] The following is a detailed introduction to the above process:
[0128] Build the geographic service program--GeoServer application and deploy the vector plug-in;
[0129] Select the road network topology data that has been processed and stored in the spatial geographic database;
[0130] Add spatial indexes to the spatial storage fields in the database table to build spatial geographic indexes for each endpoint in the road network topology data;
[0131] Publish the selected road network topology data with spatial index, and set the spatial coordinate systems used to include: ESPG:4326 and ESPG:3857;
[0132] Check the Publish service cache data type Mapbox vector tile;
[0133] Confirm to publish the vector tile service. After the publishing is successful, the system will obtain the road network topology data with spatial index under the called geographic range row and column number and layer number (x, y, z) (i.e. the preset geographic range), cut the data according to its range, and slice it according to its specified slice size (i.e. the preset slice size, such as 256*256), generate the sliced road network topology data and attribute information, and save it to the pbf file. At the same time, the file is transmitted back to the client for rendering the road network topology structure, such as Figure 3 shown.
[0134] In an optional embodiment of the present invention, the method further comprises the following steps:
[0135] (1) Obtain the query date, query time, and query geographic range parameters entered by the user;
[0136] (2) Determine the road network topology data after the corresponding target slice according to the query geographic range parameters, and obtain the target highway traffic meteorological data according to the query geographic range parameters, query date and query time;
[0137] (3) The road network topology data after the target slicing is superimposed and displayed in the GIS map, and the target legend corresponding to the meteorological elements of the acquired target highway traffic meteorological data and the target code of the road section are drawn on the third target road section of the road network topology data after the target slicing is displayed, wherein the third target road section is the road section corresponding to the target code of the road section corresponding to the target highway traffic meteorological data in the road network topology data after the target slicing.
[0138] Specifically, Figure 4 As shown, the road network topology structure data after target slicing and the target highway traffic meteorological data are retrieved according to the query needs (since the road network topology structure data is in the form of slices, the data volume is reduced and the retrieval speed is greatly accelerated), thereby realizing the real-time rendering of highway traffic meteorological data in the form of highway traffic network. As the geographical location and highway traffic meteorological data change, the display screen of the highway traffic meteorological data in the form of rendered highway traffic network can be switched in real time, thereby realizing the analysis, display, quick query and quick switching of meteorological data of highway traffic meteorological products in the form of highway traffic network.
[0139] The highway traffic meteorological data display method based on the highway traffic network of the present invention can process highway traffic network data, and is applied to the real-time rapid loading and display of various meteorological element data of highway traffic meteorological data products in the form of highway traffic networks, so as to facilitate accurate monitoring and prediction of highway traffic meteorological status, thereby providing a scientific basis for highway traffic dispatch management and disaster prevention and mitigation. The MVT vector slicing technology is adopted, and for highway traffic sections, from highway traffic network data collection - data processing (projection conversion, splicing fusion, centerline extraction and duplicate section deletion) - section interruption - spatial topological structure analysis - data slicing release - product to highway network drawing and display and other steps, it realizes the processing and front-end display of highway traffic meteorological products across a large time range, multiple meteorological elements and multiple forecast periods.
[0140] It can quickly and accurately display highway traffic meteorological products across a large time range, multiple meteorological elements and multiple forecast periods, as well as real-time digitalization and layered rendering of products in highway networks, and query, call and quickly switch them. It has the following advantages:
[0141] (1) Improving meteorological service efficiency and reducing platform operating costs: The invention improves the efficiency of producing, displaying, transmitting and rendering meteorological data based on highway networks, and solves the problems of low display efficiency, poor service effect and user experience of highway traffic meteorological service data. It enables traffic management and operation departments, the public and other service users to use highway traffic meteorological products with higher efficiency, more intuitive viewing and better experience, and reduces manual operations and unnecessary waiting time.
[0142] (2) Improving the security of data products and promoting sustainable development: The invention has the advantages of ensuring the independence of highway traffic meteorological product data and styles. When changing the data display layout plan, there is no need to re-make the collage, the display quality is high, and it can well support high-resolution display. It supports fast and accurate display, calling, switching monitoring and prediction of highway traffic meteorological conditions, and provides timely and accurate highway traffic meteorological guarantee services for traffic management and operation departments to carry out highway traffic advance dispatch, emergency response and other measures, and for the public to adjust travel modes and travel times, thereby effectively reducing the probability of reduced traffic efficiency and traffic accidents caused by adverse meteorological conditions.
[0143] Embodiment 2:
[0144] An embodiment of the present invention also provides a highway traffic meteorological data display device based on a highway traffic network. The highway traffic meteorological data display device based on a highway traffic network is mainly used to execute the highway traffic meteorological data display method based on a highway traffic network provided in the first embodiment of the present invention. The following is a specific introduction to the highway traffic meteorological data display device based on a highway traffic network provided in the embodiment of the present invention.
[0145] Figure 5 is a schematic diagram of a highway traffic weather data display device based on a highway traffic network according to an embodiment of the present invention, such as Figure 5 As shown, the device mainly includes: an acquisition and projection conversion unit 10, a splicing and fusion unit 20, a centerline extraction unit 30, a repeated road section inspection and deletion unit 40, a road section interruption unit 50, a topological structure construction unit 60, a data slicing unit 70, and a display and drawing unit 80, wherein:
[0146] An acquisition and projection conversion unit is used to acquire highway traffic network data, and project and convert the highway traffic network data into a preset coordinate system to obtain the highway traffic network data in the preset coordinate system, wherein the highway traffic network data includes: attribute information of each of the multiple road sections constituting the highway traffic network, start endpoint information and end endpoint information of each road section;
[0147] The splicing and fusion unit is used to splice and fuse the road sections with the same attribute information and connected endpoints in the highway traffic network data under the preset coordinate system to obtain the spliced and fused highway traffic network data, wherein the attribute information includes: the code of each road section, and the province, city, district and county information of each road section;
[0148] A centerline extraction unit is used to extract the centerline of a first target road section in the spliced and fused highway traffic network data to obtain highway traffic network data after centerline extraction, wherein the first target road section is a road section in the spliced and fused highway traffic network data whose interval is less than a preset distance threshold and whose attribute information is the same;
[0149] A duplicate road section checking and deleting unit is used to check the duplicate road sections of the highway traffic network data after the center line is extracted, and delete the duplicate road sections obtained by the check to obtain the highway traffic network data after the duplicate road sections are deleted;
[0150] A road segment interruption unit is used to interrupt the road segment of the highway traffic network data after the duplicate road segments are deleted according to the spatial accuracy of the highway traffic meteorological data, so as to obtain the highway traffic network data after the road segment interruption;
[0151] A topology structure construction unit is used to construct a topology structure for the highway traffic network data after the road sections are interrupted, so as to obtain the road network topology structure data which is passable and has the weight value of the road sections;
[0152] A data slicing unit is used to construct a spatial index of each endpoint in the road network topology data, and to slice the road network topology data with the spatial index according to the vector slicing data standard to obtain the sliced road network topology data;
[0153] A display and drawing unit is used to overlay and display the sliced road network topology data in the GIS map, and to draw the legend corresponding to the meteorological elements of the acquired highway traffic meteorological data and the coding of the road section on the second target road section of the displayed sliced road network topology data, wherein the second target road section is the road section corresponding to the coding of the road section corresponding to the highway traffic meteorological data in the sliced road network topology data.
[0154] In an embodiment of the present invention, a highway traffic meteorological data display device based on a highway traffic network is provided, which is applied to a highway traffic meteorological data display system. The device comprises: obtaining highway traffic network data, and projecting and converting the highway traffic network data into a preset coordinate system to obtain highway traffic network data under the preset coordinate system, wherein the highway traffic network data comprises: attribute information of each section of a plurality of sections constituting the highway traffic network, starting endpoint information and ending endpoint information of each section; splicing and fusing sections with the same attribute information and connected endpoints in the highway traffic network data under the preset coordinate system to obtain spliced and fused highway traffic network data, wherein the attribute information comprises: the code of each section, and the province, city, district and county information where each section is located; extracting the centerline of a first target section in the spliced and fused highway traffic network data to obtain highway traffic network data after centerline extraction, wherein the first target section is a section in the spliced and fused highway traffic network data with an interval less than a preset distance threshold and the same attribute information; extracting the centerline of the first target section; The highway traffic network data after duplicate sections are checked, and the duplicate sections obtained by the check are deleted to obtain the highway traffic network data after duplicate sections are deleted; the highway traffic network data after duplicate sections are deleted are segmented according to the spatial accuracy of the highway traffic meteorological data to obtain the highway traffic network data after segment interruption; a topological structure is constructed for the highway traffic network data after segment interruption to obtain a passable road network topological structure data with weight values of the sections; a spatial index of each endpoint in the road network topological structure data is constructed, and the road network topological structure data with spatial index is sliced according to the vector slice data standard to obtain the sliced road network topological structure data; the sliced road network topological structure data is superimposed and displayed in the GIS map, and the legend corresponding to the meteorological elements of the obtained highway traffic meteorological data and the code of the section are drawn on the second target section of the displayed sliced road network topological structure data, wherein the second target section is the section corresponding to the code of the section corresponding to the highway traffic meteorological data in the sliced road network topological structure data.It can be seen from the above description that in the highway traffic meteorological data display device based on the highway traffic network of the present invention, the highway traffic network data that must be displayed can be minimized through splicing and fusion, centerline extraction, and deletion of duplicate sections. In addition, after the section is interrupted, the road section in the highway traffic network data after the section is interrupted has the same spatial accuracy as the highway traffic meteorological data, which is more convenient for subsequent accurate drawing of the legend corresponding to the meteorological elements of the highway traffic meteorological data on each section. Subsequently, the constructed road network topological structure data is also sliced. The data volume of the sliced road network topological structure data is small and can be rendered quickly, which speeds up the efficiency of superimposing and displaying the sliced road network topological structure data in the GIS map. Finally, it realizes the real-time digitalization and layered rendering display of highway traffic meteorological data across a large time range, multiple meteorological elements and multiple forecast periods in the highway traffic network, improves the efficiency of displaying highway traffic meteorological data in the form of a highway traffic network, and alleviates the technical problem that the prior art cannot display highway traffic meteorological data efficiently and quickly in the form of a highway traffic network.
[0155] Optionally, the splicing and fusion unit is also used to: determine the endpoint information of each road section based on the highway traffic network data in a preset coordinate system, and determine the intersecting section of the current road section based on the endpoint information of each road section, wherein the current road section is all the road sections in the highway traffic network data in the preset coordinate system that are traversed; determine whether the attribute information of the current road section and the intersecting road section are the same; if they are the same, splicing and fusion the current road section and the intersecting road section until all the road sections are traversed to obtain the spliced and fused highway traffic network data.
[0156] Optionally, the centerline extraction unit is also used to: use spatial analysis software to read the spliced and fused highway traffic network data; extract the centerline of the first target section in the spliced and fused highway traffic network data according to the centerline extraction rules set in the spatial analysis software, and delete the first target section to obtain the highway traffic network data after centerline extraction, wherein the centerline extraction rules are rules for extracting the centerlines of sections in the spliced and fused highway traffic network data whose intervals are less than a preset distance threshold and whose attribute information is the same.
[0157] Optionally, the duplicate road section checking and deleting unit is also used to: construct a network topology for the highway traffic network data after the centerline is extracted using spatial analysis software, and perform a duplicate road section check on the constructed network topology according to the set duplicate road section checking rules to obtain duplicate road sections.
[0158] Optionally, the road segment interruption unit is also used to: determine the starting endpoint information of each road segment in the highway traffic network data after the duplicate road segments are deleted; determine the coordinates of the interruption points of each road segment with the starting endpoint information of each road segment as the starting point and the spatial accuracy as the interval; interrupt the corresponding road segments in the highway traffic network data after the duplicate road segments are deleted according to the coordinates of the interruption points of each road segment, and obtain the highway traffic network data after the road segments are interrupted.
[0159] Optionally, the topology structure construction unit is also used to: use spatial analysis software to construct the topology structure of the highway traffic network data after the road sections are interrupted, and obtain initial road network topology structure data; set the endpoint connectivity and the weight attributes of the sections for the initial road network topology structure data in the spatial analysis software, and then obtain passable road network topology structure data with weight values of the sections.
[0160] Optionally, the data slicing unit is further used to: read the road network topology data with spatial index using a geographic service program;
[0161] Data slicing service is published for road network topology data with spatial index according to the spatial coordinate system set in the geographic service program and the publishing service cache data type, so that the geographic service program obtains road network topology data with spatial index within a preset geographic range, and slices the road network topology data with spatial index within a preset geographic range according to the preset slice size to obtain the sliced road network topology data.
[0162] Optionally, the device is also used to: obtain the query date, query time and query geographic range parameters input by the user; determine the road network topology data after the corresponding target slicing according to the query geographic range parameters, and obtain the target highway traffic meteorological data according to the query geographic range parameters, query date and query time; overlay and display the road network topology data after the target slicing in the GIS map, and draw the target legend corresponding to the meteorological elements of the obtained target highway traffic meteorological data and the target code of the section on the third target section of the road network topology data after the displayed target slicing, wherein the third target section is the section corresponding to the target code of the section corresponding to the target highway traffic meteorological data in the road network topology data after the target slicing.
[0163] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0164] like Figure 6As shown, an electronic device 600 provided in an embodiment of the present application includes: a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device is running, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the above-mentioned method for displaying highway traffic meteorological data based on a highway traffic network.
[0165] Specifically, the above-mentioned memory 602 and processor 601 can be general-purpose memory and processor, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, it can execute the above-mentioned highway traffic meteorological data display method based on the highway traffic network.
[0166] The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 601. The above processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.
[0167] Corresponding to the above-mentioned method for displaying highway traffic meteorological data based on a highway traffic network, an embodiment of the present application also provides a computer-readable storage medium, which stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned method for displaying highway traffic meteorological data based on a highway traffic network.
[0168] The highway traffic meteorological data display device based on the highway traffic network provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiment of the present application, its implementation principle and the technical effect produced are the same as those in the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.
[0169] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0170] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0171] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0172] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0173] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the road traffic meteorological data display method based on the road traffic network described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0174] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0175] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for displaying highway traffic meteorological data based on highway traffic network, It is characterized in that Applied to a highway traffic meteorological data display system, the method comprises: Acquire highway traffic network data, and project and transform the highway traffic network data into a preset coordinate system to obtain the highway traffic network data in the preset coordinate system, wherein the highway traffic network data includes: attribute information of each of the multiple road sections constituting the highway traffic network, start endpoint information and end endpoint information of each road section; Splicing and fusing the road sections with the same attribute information and connected endpoints in the highway traffic network data under the preset coordinate system to obtain the spliced and fused highway traffic network data, wherein the attribute information includes: the code of each road section, and the province, city, district and county information where each road section is located; Performing centerline extraction on a first target road section in the spliced and fused highway traffic network data to obtain highway traffic network data after centerline extraction, wherein the first target road section is a road section in the spliced and fused highway traffic network data whose interval is less than a preset distance threshold and whose attribute information is the same; Performing a duplicate road section check on the highway traffic network data after the center line is extracted, and deleting the duplicate road sections obtained by the check, so as to obtain the highway traffic network data after the duplicate road sections are deleted; The highway traffic network data after the duplicate road sections are deleted is segmented according to the spatial accuracy of the highway traffic meteorological data to obtain the highway traffic network data after the segment interruption; Constructing a topological structure for the highway traffic network data after the road sections are interrupted, and obtaining passable road network topological structure data with weight values of the road sections; Constructing a spatial index of each endpoint in the road network topology structure data, and slicing the road network topology structure data with the spatial index according to a vector slicing data standard to obtain sliced road network topology structure data; The sliced road network topology data are superimposed and displayed in a GIS map, and the legend corresponding to the meteorological elements of the acquired highway traffic meteorological data and the coding of the road section are drawn on the second target road section of the displayed sliced road network topology data, wherein the second target road section is the road section corresponding to the coding of the road section corresponding to the highway traffic meteorological data in the sliced road network topology data.
2. The method according to claim 1, It is characterized in that The road segments with the same attribute information and connected endpoints in the highway traffic network data under the preset coordinate system are spliced and merged, including: Determine the endpoint information of each road section according to the highway traffic network data in the preset coordinate system, and determine the intersecting road section of the current road section according to the endpoint information of each road section, wherein the current road section is all the road sections in the highway traffic network data in the preset coordinate system; Determine whether the attribute information of the current road section is the same as the intersecting road section; If they are the same, the current road section and the intersecting road section are spliced and merged until all the road sections are traversed to obtain the spliced and merged highway traffic network data.
3. The method according to claim 1, It is characterized in that Extracting the centerline of the first target road section in the spliced and fused highway traffic network data includes: Using spatial analysis software to read the spliced and fused highway traffic network data; The centerline of the first target road section in the spliced and fused highway traffic network data is extracted according to the centerline extraction rule set in the spatial analysis software, and the first target road section is deleted to obtain the highway traffic network data after the centerline extraction, wherein the centerline extraction rule is a rule for extracting the centerline of sections in the spliced and fused highway traffic network data whose intervals are less than a preset distance threshold and whose attribute information is the same.
4. The method according to claim 1, It is characterized in that The highway traffic network data after the centerline extraction is subjected to repeated road section inspection, including: The spatial analysis software is used to construct the network topology of the highway traffic network data after the center line is extracted, and the constructed network topology is checked for repeated sections according to the set repeated section checking rules to obtain the repeated sections.
5. The method according to claim 1, It is characterized in that The highway traffic network data after the duplicate road sections are deleted is segmented according to the spatial accuracy of the highway traffic meteorological data, including: Determining the starting and ending point information of each road section in the highway traffic network data after deleting the duplicate road sections; Taking the starting endpoint information of each of the road sections as the starting point and the spatial accuracy as the interval, the coordinates of the break points of each of the road sections are determined; The corresponding road sections in the highway traffic network data after the duplicate road sections are deleted are interrupted according to the coordinates of the interruption points of each road section to obtain the highway traffic network data after the road sections are interrupted.
6. The method according to claim 1, It is characterized in that Constructing a topological structure of the highway traffic network data after the road section is interrupted, including: Using spatial analysis software to construct a topological structure of the highway traffic network data after the road section is interrupted, and obtaining initial road network topological structure data; In the spatial analysis software, the endpoint connectivity setting and the weight attribute setting of the road section are performed on the initial road network topology data, so as to obtain the road network topology data that is passable and has the weight value of the road section.
7. The method according to claim 1, It is characterized in that The road network topology data with spatial index is sliced according to the vector slice data standard, including: Using geographic service program to read the road network topology data with spatial index; Data slicing service is published for the road network topology structure data with spatial index according to the spatial coordinate system set in the geographic service program and the publishing service cache data type, so that the geographic service program obtains the road network topology structure data with spatial index in a preset geographic range, and slices the road network topology structure data with spatial index in the preset geographic range according to a preset slice size to obtain the sliced road network topology structure data.
8. The method according to claim 1, It is characterized in that The method further comprises: Get the query date, query time and query geographic range parameters entered by the user; Determine the road network topology data after the corresponding target slice according to the query geographic scope parameter, and obtain the target highway traffic meteorological data according to the query geographic scope parameter, the query date and the query time; The road network topology data after the target slicing is superimposed and displayed in the GIS map, and the target legend corresponding to the meteorological elements of the target highway traffic meteorological data and the target code of the section are drawn on the third target section of the road network topology data after the target slicing, wherein the third target section is the section corresponding to the target code of the section corresponding to the target highway traffic meteorological data in the road network topology data after the target slicing.
9. A highway traffic meteorological data display device based on a highway traffic network, It is characterized in that Applied to a highway traffic meteorological data display system, the device comprises: An acquisition and projection conversion unit is used to acquire highway traffic network data, and project and convert the highway traffic network data into a preset coordinate system to obtain the highway traffic network data in the preset coordinate system, wherein the highway traffic network data includes: attribute information of each of the multiple road sections constituting the highway traffic network, start endpoint information and end endpoint information of each road section; A splicing and fusing unit is used to splice and fuse the road sections with the same attribute information and connected endpoints in the highway traffic network data under the preset coordinate system to obtain the spliced and fused highway traffic network data, wherein the attribute information includes: the code of each road section, and the province, city, district and county information of each road section; A centerline extraction unit is used to extract the centerline of a first target road section in the spliced and fused highway traffic network data to obtain highway traffic network data after centerline extraction, wherein the first target road section is a road section in the spliced and fused highway traffic network data whose interval is less than a preset distance threshold and whose attribute information is the same; A duplicate road section checking and deleting unit is used to check the road traffic network data after the center line is extracted for duplicate roads, and delete the duplicate roads obtained by the check to obtain the road traffic network data after the duplicate roads are deleted; A road segment interruption unit, used for performing road segment interruption on the highway traffic network data after the duplicate road segments are deleted according to the spatial accuracy of the highway traffic meteorological data, so as to obtain the highway traffic network data after the road segment interruption; A topology structure construction unit is used to construct a topology structure for the highway traffic network data after the road sections are interrupted, so as to obtain the road network topology structure data which is passable and has the weight values of the road sections; A data slicing unit is used to construct a spatial index of each endpoint in the road network topology structure data, and slice the road network topology structure data with the spatial index according to the vector slicing data standard to obtain the sliced road network topology structure data; A display and drawing unit is used to overlay and display the sliced road network topology data in a GIS map, and to draw a legend corresponding to the meteorological elements of the acquired highway traffic meteorological data and the coding of the road section on the second target road section of the sliced road network topology data displayed, wherein the second target road section is the road section corresponding to the coding of the road section corresponding to the highway traffic meteorological data in the sliced road network topology data.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method and system for acquiring road traffic weather information
CN109360435A
Method and device for acquiring traffic congestion state
CN109461303A
