Map display method and system for risk early warning of chemical industry park, terminal and medium

By combining the map mouse drawing library and GIS engine with access to multiple data sources, the chemical park risk warning system can achieve real-time response and data standardization, solving the problems of delayed dynamic risk response and irregular data storage in traditional systems, and improving the efficiency of risk positioning and information collection.

CN120705243APending Publication Date: 2025-09-26INSPUR YUNZHOU (SHANDONG) IND INTERNET CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510879091.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

Traditional chemical park risk warning systems are unable to respond to dynamic risk events in real time and lack convenient user interaction methods, resulting in delayed risk information collection. In addition, there is a lack of standardized storage for labeled data of different levels and types, which increases the cost of system integration and data sharing, making it difficult to quickly locate micro-risk details.

Method used

Based on the map mouse drawing library and GIS engine, combined with access to multiple data sources, it can achieve real-time response to dynamic risk events, perform standardized data storage through step-by-step drilling capabilities from the park level to the enterprise level and device level, and use Websocket communication to improve user interaction convenience.

Benefits of technology

It realizes real-time monitoring and early warning of dynamic risks, improves the timeliness of emergency response, optimizes the risk information collection process, reduces data sharing costs, supports rapid positioning from macro risk distribution to micro risk details, and improves the accuracy of risk management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120705243A_ABST
    Figure CN120705243A_ABST
Patent Text Reader

Abstract

The invention relates to the field of dangerous goods early warning display, and particularly discloses a map display method and system for risk early warning of a chemical industrial park, a terminal and a medium, and the method comprises the steps: drawing a park region, an enterprise region and a device region on a map through a map mouse drawing library, generating a latitude and longitude set of each region, and storing the latitude and longitude set in a database; storing the longitude and latitude set of each region in a unified format; on the basis of the stored regional latitude and longitude set, page drawing is carried out in combination with a GIS engine, a page comprises a park graph layer, an enterprise graph layer and a device graph layer which are drilled down step by step, and the page is configured to communicate with a rear end in a Websocket mode; receiving risk data accessed by a rear end through a multi-party data source, including receiving field temporary risk data accessed by the rear end through a mobile terminal; and carrying out risk labeling on a map page through the latitude and longitude of the risk position, and displaying different early warning states according to the risk level. The dynamic risk event is responded in real time, the data sharing cost is reduced, and the risk positioning capability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of dangerous goods early warning display, and in particular to a map display method, system, terminal and medium for risk early warning in chemical parks. Background Art

[0002] With the rapid development of the chemical industry, the scale of chemical parks continues to expand. The number of enterprises and equipment in the park is large, the layout is complex, and various risk factors are intertwined, which puts higher demands on risk warning and safety management in chemical parks. Traditional chemical park risk warning only supports fixed risk point marking and cannot respond to dynamic risk events in real time, such as temporarily stacked flammable materials. It also lacks convenient user interaction methods, such as real-time reporting on mobile terminals and risk operation marking on the management side, resulting in delayed risk information collection and affecting emergency response efficiency. In addition, there is a lack of standardized storage for labeled data of different levels and types, which increases the cost of system integration and data sharing. There is a lack of step-by-step drilling capabilities from the park level to the enterprise level and the device level, making it difficult to quickly locate micro-risk details from the macro-risk distribution. Summary of the Invention

[0003] To solve the above problems, the present invention provides a map display method, system, terminal and medium for chemical park risk early warning. Based on the map mouse drawing library framework and combined with multi-party data source access, the method improves the convenience of user interaction, realizes real-time response to dynamic risk events, and performs standardized data storage to reduce data sharing costs. The risk positioning capability is improved through the step-by-step drilling capability from the park level to the enterprise level and the device level.

[0004] In a first aspect, the technical solution of the present invention provides a map display method for chemical park risk warning, comprising the following steps: Use the map mouse drawing library to draw the park area, enterprise area and device area on the map, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format; Based on the stored regional longitude and latitude sets, the GIS engine is used to draw the page. The page includes a drill-down campus layer, enterprise layer, and device layer. The page is configured to communicate with the backend via Websocket. Receive risk data accessed by the backend through multiple data sources, including temporary on-site risk data accessed by the backend through mobile terminals. The risk data includes the longitude and latitude of the risk location and the risk level. Risks are marked on the map page using the longitude and latitude of the risk location, and different warning statuses are displayed according to the risk level.

[0005] In an optional embodiment, after receiving the on-site temporary risk data, the method further includes a step of determining whether the risk location is within the park based on the longitude and latitude of the risk location.

[0006] In an optional implementation, determining whether the risk location is within the park based on the latitude and longitude of the risk location specifically includes: Receive on-site temporary risk data, including risk description, risk level and multimedia information; Extract the longitude and latitude of the risk location from the multimedia information, and record the point at the longitude and latitude as the point to be measured; Extract the longitude and latitude set of the park area; Send a ray from the point to be measured in any horizontal or vertical direction; Traversing each edge of the polygon formed by the longitude and latitude set of the park area, and determining the positional relationship between the ray and the current edge, including: Check whether the point to be tested is on the endpoint of the current edge or on the current edge; If the point to be measured is on the endpoint of the current edge or on the current edge, it is directly determined that the point to be measured is an internal point, that is, the risk position is within the park; otherwise, it is checked whether the current edge is parallel to the ray; If they are parallel, exclude the current edge and continue traversing the next edge; otherwise, check whether the current edge and the ray meet the edge crossing condition; If the crossing condition is not met, the current edge is excluded and the traversal continues to the next edge; If the crossing condition is met, the longitude or latitude of the intersection point is calculated based on the longitude and latitude of the two endpoints of the current edge and the longitude and latitude of the point to be measured; According to the longitude or latitude of the intersection point and the longitude and latitude of the point to be measured, determine whether the current intersection point is a valid intersection point. If so, the valid intersection point is increased by 1; If the total number of valid intersection points is an odd number, the point to be measured is determined to be an internal point, that is, the risk location is within the park. If the total number of valid intersection points is an even number, the point to be measured is determined to be an external point, that is, the risk location is not within the park.

[0007] In an optional embodiment, a map mouse drawing library is used to draw campus areas, enterprise areas, and device areas on a map, generate longitude and latitude sets for each area, and store the longitude and latitude sets for each area in a unified format, specifically including: Use the line drawing class in the map mouse drawing library to click and drag on the map to draw a polygonal area along the park boundary, i.e., the park area. Obtain a set of longitude and latitude coordinates of the park area consisting of the endpoints of the polygonal area. Store the set of longitude and latitude coordinates in GEOJSON format and set the type to face. Use the line drawing class in the map mouse drawing library to click and drag within the campus area on the map to draw a polygonal area along the company boundary, i.e., the enterprise area. This generates a set of longitude and latitude coordinates for each endpoint of the polygonal area. This set of longitude and latitude coordinates is stored in GEOJSON format and set to polygon type. Use the line drawing class in the map mouse drawing library to click and drag within the enterprise area on the map. Draw a polygonal area along the boundary of the large equipment, i.e., the large equipment area. Obtain a set of longitude and latitude of the large equipment area consisting of the endpoints of the polygonal area. Store the longitude and latitude set of the large equipment area in GEOJSON format and set the type to face. Use the point drawing class in the map mouse drawing library to draw points in the enterprise area on the map, that is, to draw small devices. The latitude and longitude of the point are the latitude and longitude of the small device, stored in GEOJSON format, and set the type to point.

[0008] In an optional embodiment, risk marking is performed on a map page using the longitude and latitude of the risk location, specifically including: Determine the risk location type based on the latitude and longitude of the risk location; If the risk location type is point type, the risk mark will be rendered at the corresponding point on the map page according to the longitude and latitude of the risk location; If the risk location type is a surface type, the risk mark will be rendered in the corresponding surface area of ​​the map page according to the longitude and latitude of the risk location.

[0009] In an optional embodiment, the risk data also includes a risk description for describing the risk event; Risks are marked on the map page using the latitude and longitude of the risk location, including: Use a large model to analyze risk descriptions to extract keywords, and use the keywords to determine whether the current risk event has an expansion risk; If it exists, the current risk data is marked as diffusion type, meteorological data is obtained in real time, and the diffusion area is generated through the diffusion model based on the meteorological data and risk data; Risks are marked on the map page according to the longitude and latitude of the risk location and the generated diffusion area.

[0010] In an optional embodiment, meteorological data is acquired in real time, and a diffusion area is generated using a diffusion model based on the meteorological data and risk data, specifically including: Obtain meteorological data in real time, including wind speed, wind direction, temperature and humidity, and determine the atmospheric stability level based on temperature and humidity ; According to the atmospheric stability level Determine the Pasquale-Gifford diffusion coefficient 、 ; Obtain risk data and determine leakage parameters, including leakage rate, based on the risk description in the risk data and effective leakage height ; Calculation of diffuse concentration distribution using the Gaussian plume model , expressed as,

[0011] Where, is the wind speed, is the vertical height of the risk location; According to the diffusion concentration distribution Concentration contours are calculated and converted to polygon endpoint coordinates to generate diffusion areas.

[0012] In a second aspect, the technical solution of the present invention provides a map display system for chemical park risk early warning, comprising: The regional longitude and latitude set generation module is used to draw the park area, enterprise area and device area on the map using the map mouse drawing library, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format; The page drawing module is used to draw pages based on the stored regional longitude and latitude sets in combination with the GIS engine. The pages include the campus layer, enterprise layer, and device layer with drill-down levels, and the page is configured to communicate with the backend via Websocket. The risk data receiving module is used to receive risk data accessed by the backend through multiple data sources, including receiving temporary on-site risk data accessed by the backend through the mobile terminal. The risk data includes the latitude and longitude of the risk location and the risk level; The risk marking and warning module is used to mark risks on the map page according to the longitude and latitude of the risk location, and display different warning status according to the risk level.

[0013] In a third aspect, the technical solution of the present invention provides a terminal, including: A memory for storing a map display program for chemical park risk warning; A processor is used to implement the steps of the map display method for chemical park risk warning as described in any of the above items when executing the map display program for chemical park risk warning.

[0014] In a fourth aspect, the technical solution of the present invention provides a computer-readable storage medium, on which a map display program for chemical park risk warning is stored. When the map display program for chemical park risk warning is executed by a processor, the steps of the map display method for chemical park risk warning as described in any one of the above items are implemented.

[0015] It can be seen from the above technical solution that the present application has the following advantages: first, the park area, enterprise area and device area are drawn, and the longitude and latitude sets of each area are stored in a unified format. Then, the page is drawn by drilling down step by step through the park layer, enterprise layer and device layer. After that, the back-end accesses risk data through multiple data sources, including receiving on-site temporary risk data accessed by the back-end through the mobile terminal, and then risk marking and warning display are performed on the map page. In terms of dynamic risk response, the present invention can obtain temporary risk information in real time by receiving risk data accessed by multiple data sources at the back end, such as dynamic risk events such as temporary stacking of flammable materials, and mark them on the map page in combination with the longitude and latitude of the risk location, so as to realize real-time monitoring and early warning of dynamic risks and improve the timeliness of emergency response; at the user interaction level, by combining the Websocket communication method, it provides users with a convenient interaction basis, and can support real-time reporting of risk information on the mobile terminal and risk operation marking on the management terminal, effectively avoiding the problem of delayed risk information collection, optimizing the risk information collection process, and improving the efficiency of information flow; at the data storage and sharing level, it generates and stores the longitude and latitude sets of each region, and standardizes the marked data of different levels and types, which reduces the cost of system integration and data sharing, and facilitates data interaction and integration between different systems; in terms of hierarchical display capabilities, it combines the stored longitude and latitude sets of the region with GIS The engine draws drill-down layers, enabling rapid positioning from macro-risk distribution at the park level to micro-risk details at the enterprise and device levels. Managers can view risk information in depth as needed, helping to comprehensively and accurately grasp the risk status of the chemical park and provide support for risk management and decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for the description. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0017] Figure 1 A schematic flow chart of a map display method for risk early warning in a chemical park provided by an embodiment of the present invention.

[0018] Figure 2 A schematic block diagram of the structure of a map display system for risk early warning in a chemical park provided by an embodiment of the present invention.

[0019] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0020] In order to make the application objectives, features, and advantages of this application more obvious and easy to understand, the technical solutions protected by this application will be clearly and completely described below using specific embodiments and drawings. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0021] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as those commonly understood by those skilled in the art to which the present invention pertains. The terms used in this application and in the specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention.

[0022] Figure 1 A flowchart of a map display method for chemical park risk warning provided by an embodiment of the present invention. Figure 1 The executing entity may be a map display system for chemical park risk warning. The map display method for chemical park risk warning provided in the embodiments of the present invention is executed by a computer device. Accordingly, the map display system for chemical park risk warning runs on the computer device. The order of the steps in this flowchart may be changed, and some steps may be omitted, depending on different needs.

[0023] like Figure 1 As shown, the method includes the following steps.

[0024] S1, using the map mouse drawing library to draw the park area, enterprise area and device area on the map, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format.

[0025] This step uses the Map Mouse drawing library to map the three levels of the park, enterprise, and facility. It then generates corresponding longitude and latitude coordinates and stores them in a unified format. This provides the underlying geographic information for subsequent map page drawing, enabling digital modeling of the different levels of the chemical park and forming the spatial data foundation for the entire method.

[0026] S2, based on the stored regional longitude and latitude sets, combines the GIS engine to draw the page. The page includes a park layer, enterprise layer, and device layer that drill down step by step, and configures the page to communicate with the backend in Websocket mode.

[0027] This step is based on the stored regional longitude and latitude sets, and uses the GIS engine to draw a page containing drill-down layers, and configures it to communicate with the backend via Websocket. Specifically, combined with the spatial analysis and visualization capabilities of the GIS engine, a map page with a hierarchical relationship is constructed based on the stored regional longitude and latitude sets of parks, enterprises, and devices. The page contains a park layer, an enterprise layer, and a device layer, which supports users to drill down from the park level to the enterprise level and then to the device level through operations. That is, users can first view the risk distribution overview of the entire park, and then deeply view the risk situation within a certain enterprise, and further view the risk details of specific devices in the enterprise.

[0028] Configure the page to communicate with the backend via the WebSocket protocol. WebSocket is a two-way communication protocol that establishes a persistent connection between the client and the server, enabling real-time two-way data transmission.

[0029] This step constructs an intuitive and interactive map display interface to achieve a hierarchical display of risk information, making it easier for managers to understand the risk distribution of chemical parks from a macro to micro perspective. At the same time, the Websocket communication method ensures the real-time and efficient data transmission between the front-end and back-end, providing support for the timely display of dynamic risk information.

[0030] S3 receives risk data accessed by the backend through multiple data sources, including on-site temporary risk data accessed by the backend through the mobile terminal. The risk data includes the latitude and longitude of the risk location and the risk level.

[0031] This step receives risk data accessed by the backend through multiple data sources, including on-site temporary risk data accessed from the mobile terminal. This data contains information such as the latitude and longitude of the risk location and the risk level.

[0032] The back-end system obtains risk data through various channels, such as various sensor monitoring data within the park, data reported by staff through mobile terminals, and data connected to other related systems. This especially includes temporary on-site risk data accessed by mobile terminals, such as risk information reported in real time through mobile devices when staff discover temporarily stacked flammable materials on site. The accessed risk data must include the longitude and latitude of the risk location and the risk level. The longitude and latitude of the risk location are used to accurately locate the location of the risk on the map, and the risk level is used to subsequently display different warning states according to different levels. In addition, risk data may also include risk descriptions, multimedia information (such as on-site photos and videos), and other content.

[0033] This step realizes the collection of multi-source risk data, especially the real-time acquisition of temporary dynamic risk data on site, providing timely data support for subsequent risk marking and early warning display on the map, ensuring that the system can comprehensively and real-timely reflect the risk status within the chemical park.

[0034] S4, mark the risk on the map page by the longitude and latitude of the risk location, and display different warning status according to the risk level.

[0035] This step marks risks on the map page based on the longitude and latitude of the risk location, and displays different warning states based on the risk level. Through different markings and warning states, managers can quickly and accurately understand the location, type and severity of the risk.

[0036] In some optional implementations, step S1 uses a map mouse drawing library to draw campus areas, enterprise areas, and device areas on a map, generates a longitude and latitude set for each area, and stores the longitude and latitude set for each area in a unified format, specifically including the following steps.

[0037] S11. Use the line drawing class in the map mouse drawing library to click and drag on the map to draw a polygonal area along the boundary of the park, namely the park area, and obtain a longitude and latitude set of the park area composed of the endpoints of the polygonal area. Store the longitude and latitude set of the park area in GEOJSON format and set the type to surface.

[0038] Using a map mouse drawing library (such as Leaflet.Draw and Bmap-Draw), administrators can draw campus boundaries by dragging the mouse. For example, using the Bmap-Draw drawing library and the line drawing class (PolylineDraw), click and drag on the map to draw a polygonal area along the campus boundary. This will generate a set of longitude and latitude coordinates consisting of the polygon's endpoints. This set of longitude and latitude coordinates is then stored in GEOJSON format. Because the drawn area is a surface composed of multiple lines, type=Polygon must be specified when storing in GEOJSON. The resulting longitude and latitude coordinates must be formatted and placed in the coordinates attribute.

[0039] Example of a latitude and longitude collection: [117.80219799664177,34.781251220789315,117.79217943751067,34.78063889028209,117.78206811394318,34.777424079870826,117.78373787379837,34.7706113257704,117.78438722485316 ,34.76816165747612,117.80994382708109,34.76640091306794,117.80896980049889,34.77493634220016,117.80512007638833,34.780868514759796,117.80219799664162,34.781251158391214] GEOJSON storage example: { "type": "FeatureCollection", "features": [ { type: 'Feature', geometry: { type: 'Polygon', coordinates: [ [ [117.80219799664177,34.781251220789315], [117.79217943751067,34.78063889028209], [117.78206811394318,34.777424079870826], [117.78373787379837,34.7706113257704], [117.78438722485316,34.76816165747612], ...... ] ] }, properties: { name: 'city name', } } ]} This completes the park-level area drawing and GEOJSON data storage.

[0040] S12. Use the line drawing class in the map mouse drawing library to click and drag within the campus area on the map to draw a polygonal area, i.e., the enterprise area, along the company boundary. Obtain a set of longitude and latitude of the enterprise area consisting of the endpoints of the polygonal area. Store the set of longitude and latitude of the enterprise area in GEOJSON format and set the type to surface.

[0041] Company-level region drawing is similar to campus-level drawing. Zoom in on the campus map to display the company-level map layer. Use the map mouse drawing library to draw the company boundary by dragging the mouse, and store the drawn latitude and longitude sets as GEOJSON data.

[0042] S13, use the line drawing class in the map mouse drawing library to click and drag in the enterprise area on the map, draw a polygonal area along the boundary of the large device, that is, the large device area, and obtain a longitude and latitude set of the large equipment area composed of each endpoint of the polygonal area, store the longitude and latitude set of the large equipment area in the form of GEOJSON, and set the type to surface; use the point drawing class in the map mouse drawing library to draw points in the enterprise area on the map, that is, draw small devices, the longitude and latitude of the point, that is, the longitude and latitude of the small device, are stored in the form of GEOJSON, and set the type to point.

[0043] After completing the above steps S11 and S12, continue to zoom in on the map. Large-scale devices can use the park or company level method to complete the device-level area drawing, and directly mark points on the map to complete the small-scale device-level drawing.

[0044] Note that if you are using points to complete small device-level drawing, you need to specify type=Point when storing in GEOJSON, and the coordinates format also requires special handling.

[0045] GEOJSON storage example: { "type": "FeatureCollection", "features": [ { type: 'Feature', geometry: { type: 'Point', coordinates: [117.80219799664177,34.781251220789315]}, properties: { name: 'city name', } } ] } At this point, the device-level area drawing and GEOJSON data storage are completed, and then the three-level area drawing of park, enterprise, and device is completed and stored in the GEOJSON standard format, which facilitates the drawing of map areas on large screens and realizes risk warnings.

[0046] In some optional implementations, the GEOJSON regional data drawn in step S1 is combined with a GIS engine (such as ArcGIS or Mapbox) to create a base map and enable drill-down by park, enterprise, and device. Specifically, park-level data is displayed by default. Clicking a park loads enterprise-level GEOJSON data and creates an enterprise-level layer; clicking an enterprise area loads device-level GEOJSON data and creates a device-level layer. After the page-level map is drawn, communication between the page and the server backend must be established to enable real-time display of warnings. Traditionally, the browser uses HTTP to call a server-side interface to trigger data updates. However, this approach has significant drawbacks for warning-related business scenarios, resulting in high latency. Therefore, WebSockets are used for real-time data exchange. WebSockets is a full-duplex communication protocol between web browsers and servers, enabling real-time data transmission. Once the server receives the warning information, it pushes it to the large screen via a WebSocket message, where it is displayed on the map in real time.

[0047] It should be noted that after completing step S2, the preparation of basic data and the drawing of the page are completed. Subsequently, risk data access is achieved by connecting multiple data sources. For example, risk data access can support multiple methods: temporary risk submission in the system, synchronization of risk monitoring on the IoT platform, synchronization of third-party risks, etc. Specifically, a unified access layer is implemented through a standardized API gateway, supporting multiple data source types, including IoT sensors, mobile apps, third-party platforms, industrial control systems, etc., and supporting protocol conversion.

[0048] In some optional implementations, risk data is analyzed after receipt to prevent false alarms. For example, if a temporary on-site risk (such as a buildup of flammable materials) is reported via a mobile device, the system automatically obtains location information (latitude and longitude coordinates) and generates temporary risk data. The risk data is shown in Table 1.

[0049] Table 1: Risk data content

[0050] Specifically, after receiving the on-site temporary risk data, the method further includes the step of determining whether the risk location is within the park based on the longitude and latitude of the risk location, which specifically includes the following steps.

[0051] S31, receiving on-site temporary risk data, including risk description, risk level and multimedia information.

[0052] S32, extracting the longitude and latitude of the risk location from the multimedia information, and recording the point of the longitude and latitude as a point to be measured.

[0053] S33, then extract the longitude and latitude set of the park area.

[0054] S34, then emit a ray from the point to be measured in any horizontal or vertical direction.

[0055] S35, traversing each edge of the polygon formed by the longitude and latitude set of the park area, and determining the positional relationship between the ray and the current edge, including: S351, detecting whether the point to be tested is on the endpoint of the current edge or on the current edge; S352: If the point to be measured is on the endpoint of the current edge or on the current edge, it is directly determined that the point to be measured is an internal point, that is, the risk location is within the park; otherwise, it is detected whether the current edge is parallel to the ray; S353: If they are parallel, exclude the current edge and continue traversing the next edge; otherwise, check whether the current edge and the ray meet the edge crossing condition; You can choose horizontal rays to simplify the intersection calculation and avoid numerical instability problems. On this basis, the edge The necessary condition for intersection with the ray is expressed as,

[0056] Where, is the latitude of the point to be measured, 、 For polygon edges The latitude of the endpoint; S354, if the crossing condition is not met, the current edge is excluded and the traversal continues to the next edge; If the crossing condition is not met, it means that the current edge is above or below the ray, and there is no intersection between the current edge and the ray; or the current edge is in the opposite direction of the ray extension direction. For example, if the test point is within the area and the ray is horizontally pointing to the right, then the edge to the left of the test point actually has no intersection with the ray. Only the intersection points in the extension direction of the ray are detected. Therefore, the edges that do not meet the crossing condition can be excluded.

[0057] S355, if the crossing condition is met, the longitude or latitude of the intersection point is calculated based on the longitude and latitude of the two endpoints of the current edge and the longitude and latitude of the point to be measured; Longitude of the node The calculation is expressed as,

[0058] Where, 、 For polygon edges The endpoint longitude; S356, judging whether the current intersection is a valid intersection based on the longitude or latitude of the intersection and the longitude and latitude of the point to be measured, and if so, adding 1 to the valid intersection number; Taking the ray direction as horizontal to the right as an example, the intersection point is included in the statistics only if the following conditions are met at the same time:

[0059] Where, is the longitude of the point to be measured; S357, if the total number of valid intersection points is an odd number, the point to be measured is determined to be an internal point, that is, the risk location is within the park; if the total number of valid intersection points is an even number, the point to be measured is determined to be an external point, that is, the risk location is not within the park.

[0060] In some optional implementations, after receiving the risk data via WebSocket, the page uses the latitude and longitude coordinates in the risk data, combined with GIS technology, to mark the risk on a map. The risk level is displayed in different colors, flashing warnings, and accompanied by sound warnings. Step S4, which marks the risk on the map page using the longitude and latitude of the risk location, specifically includes the following steps.

[0061] S41, determining the risk location type based on the latitude and longitude of the risk location; S42, if the risk location type is a point type, render a risk label at the corresponding point on the map page according to the longitude and latitude of the risk location; S43: If the risk location type is a surface type, a risk label is rendered in a corresponding surface area of ​​the map page according to the longitude and latitude of the risk location.

[0062] First, determine whether the risk location type is a "point" type or a "surface" type based on the longitude and latitude of the risk location. If the risk location is a point-like location such as a small device, it is a point type; if the risk location is an area, such as the surface area where a large device is located, it is a surface type. For point-type risk locations, risk annotations are rendered at the corresponding points on the map page based on their longitude and latitude, such as displaying specific risk icons; for surface-type risk locations, risk annotations are rendered in the corresponding surface areas of the map page, such as marking the area with a specific color or displaying a surface-like risk logo. Different warning states are displayed according to the risk level in the risk data. For example, high risk levels may be highlighted in red, medium risk levels in yellow, and low risk levels in blue, etc. The severity of the risk is intuitively distinguished by different colors, icon styles, etc.

[0063] In some optional implementations, the risk data includes a risk description, and a large model can be used to analyze the risk description to extract keywords to determine whether the current risk event has an expansion risk. If so, the risk data is marked as a diffusion type, and meteorological data (including wind speed, wind direction, temperature, humidity, etc.) is obtained in real time. The diffusion concentration distribution is calculated using a diffusion model such as the Gaussian plume model to generate a diffusion area. The longitude and latitude of the risk location and the diffusion area are combined and displayed on the map to more comprehensively reflect the scope of the risk impact. Specifically, risk annotation on the map page using the longitude and latitude of the risk location includes the following steps.

[0064] SS41, uses a large model to analyze risk descriptions to extract keywords, and determines whether the current risk event has an extended risk based on the keywords.

[0065] The Large Language Model (LLM) is used to perform semantic analysis on risk description texts, extracting key information such as "leakage," "flammable," and "diffusion." Based on these keywords, the system determines whether the risk has the potential to expand, such as the diffusion risk caused by gas leakage or the fire risk caused by the accumulation of flammable materials.

[0066] SS42, if it exists, marks the current risk data as diffusion type, obtains meteorological data in real time, and generates diffusion areas through the diffusion model based on the meteorological data and risk data.

[0067] For high-density gases, the SLAB model is used as an extended model. For instantaneous leakage scenarios, the Gaussian puff model can be used as an extended model. For gaseous or volatile liquid chemicals (such as chlorine, ammonia, benzene vapor, etc.) with continuous leakage, the Gaussian plume model can be used as an extended model.

[0068] The following uses the Gaussian plume model as an example.

[0069] SS421, real-time acquisition of meteorological data, including wind speed, wind direction, temperature and humidity, and determination of atmospheric stability level based on temperature and humidity ; SS422, according to atmospheric stability grade Determine the Pasquale-Gifford diffusion coefficient 、 ; SS423, obtain risk data and determine leakage parameters based on the risk description in the risk data, including leakage rate and effective leakage height ; SS424, Calculation of Diffuse Concentration Distribution Using Gaussian Plume Model , expressed as,

[0070] Where, is the wind speed, is the vertical height of the risk location; is the downwind distance, which is the horizontal distance measured along the positive direction of the current wind direction with the leakage source as the origin, and is expressed as,

[0071] Where, 、 is the plane coordinate difference between the point to be evaluated and the leakage source in the diffusion process; For wind direction; It is the across-wind distance, the horizontal distance perpendicular to the wind direction, with negative values ​​on the left and positive values ​​on the right.

[0072] SS425, based on diffusion concentration distribution Concentration contours are calculated and converted to polygon endpoint coordinates to generate diffusion areas.

[0073] Calculate concentration contours (threshold Corresponding IDLH value), expressed as,

[0074] Specifically, a grid is generated in the xy plane, the concentration of each grid point is calculated, all grid cells are traversed, the Marching Squares algorithm is used, and the intersection points are calculated by interpolation, including if the concentration of the two end points of the cell edge meets , then there is an intersection point, and the linear interpolation of the intersection point coordinates is Then, contour segments are generated according to the distribution pattern of intersection points within the unit, adjacent contour segments are connected end to end to form a closed loop, and the local coordinate system is converted back to geographic coordinates to generate the diffusion area.

[0075] SS43, risk labels are placed on the map page based on the longitude and latitude of the risk location and the generated diffusion area.

[0076] It should be noted that for risk data marked as diffusion type, meteorological data sets are subsequently collected periodically, and the diffusion area is updated in real time for dynamic display.

[0077] The above describes in detail an embodiment of a map display method for chemical park risk warning. Based on the map display method for chemical park risk warning described in the above embodiment, an embodiment of the present invention also provides a map display system for chemical park risk warning corresponding to this method.

[0078] Figure 2 This is a block diagram of the structure of a map display system for chemical park risk warning, provided in an embodiment of the present invention. In this embodiment, the map display system 200 for chemical park risk warning can be divided into multiple functional modules based on their functions. A module, as used herein, refers to a series of computer program segments that can be executed by at least one processor and perform a fixed function, and is stored in a memory.

[0079] The regional longitude and latitude set generation module 210 is used to draw the park area, enterprise area and device area on the map using the map mouse drawing library, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format.

[0080] The page drawing module 220 is used to draw the page based on the stored regional longitude and latitude set in combination with the GIS engine. The page includes a campus layer, an enterprise layer and a device layer that drill down step by step, and the page is configured to communicate with the backend in Websocket mode.

[0081] The risk data receiving module 230 is used to receive risk data accessed by the backend through multiple data sources, including receiving on-site temporary risk data accessed by the backend through a mobile terminal. The risk data includes the longitude and latitude of the risk location and the risk level.

[0082] The risk marking and warning module 240 is used to mark risks on a map page using the longitude and latitude of the risk location and to display different warning states according to the risk level.

[0083] The map display system for chemical park risk warning in this embodiment is used to implement the aforementioned map display method for chemical park risk warning. Therefore, the specific implementation method of this system can be seen in the embodiment part of the map display method for chemical park risk warning in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part and will not be elaborated here.

[0084] In addition, since the map display system for chemical park risk warning in this embodiment is used to implement the aforementioned map display method for chemical park risk warning, its function corresponds to that of the aforementioned method and will not be repeated here.

[0085] Figure 3 A schematic diagram of the structure of a terminal 300 provided in an embodiment of the present invention includes: a processor 310, a memory 320, and a communication unit 330. The processor 310 is configured to implement the following steps when executing a map display program for chemical park risk warning stored in the memory 320: Use the map mouse drawing library to draw the park area, enterprise area and device area on the map, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format; Based on the stored regional longitude and latitude sets, the GIS engine is used to draw the page. The page includes a drill-down campus layer, enterprise layer, and device layer. The page is configured to communicate with the backend via Websocket. Receive risk data accessed by the backend through multiple data sources, including temporary on-site risk data accessed by the backend through mobile terminals. The risk data includes the longitude and latitude of the risk location and the risk level. Risks are marked on the map page using the longitude and latitude of the risk location, and different warning statuses are displayed according to the risk level.

[0086] The terminal 300 includes a processor 310, a memory 320, and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention; it may be a bus structure or a star structure, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0087] Memory 320 can be used to store execution instructions of processor 310. Memory 320 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. When the execution instructions in memory 320 are executed by processor 310, terminal 300 can perform some or all of the steps in the above-described method embodiments.

[0088] The processor 310 is the control center of the storage terminal. It uses various interfaces and lines to connect various parts of the entire electronic terminal. It executes various functions of the electronic terminal and / or processes data by running or executing software programs and / or modules stored in the memory 320, and calling data stored in the memory. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0089] The communication unit 330 is configured to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals, or send user data to other terminals.

[0090] The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0091] The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0092] A computer storage medium stores a map display program for chemical park risk warning. When the map display program for chemical park risk warning is executed by a processor, the following steps are implemented: Use the map mouse drawing library to draw the park area, enterprise area and device area on the map, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format; Based on the stored regional longitude and latitude sets, the GIS engine is used to draw the page. The page includes a drill-down campus layer, enterprise layer, and device layer. The page is configured to communicate with the backend via Websocket. Receive risk data accessed by the backend through multiple data sources, including temporary on-site risk data accessed by the backend through mobile terminals. The risk data includes the longitude and latitude of the risk location and the risk level. Risks are marked on the map page using the longitude and latitude of the risk location, and different warning statuses are displayed according to the risk level.

[0093] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus a necessary general-purpose hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, among other media capable of storing program code, and includes instructions for causing a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention.

[0094] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0095] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0096] In addition, each functional unit in each embodiment of the present invention 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.

[0097] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein, but is intended to be construed in the widest manner consistent with the principles and novel features disclosed herein.

Claims

1. A map display method for chemical park risk warning, characterized in that: The following steps are involved: Use the map mouse drawing library to draw the park area, enterprise area and device area on the map, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format; Based on the stored regional longitude and latitude sets, the GIS engine is used to draw the page. The page includes a drill-down campus layer, enterprise layer, and device layer. The page is configured to communicate with the backend via Websocket. Receive risk data accessed by the backend through multiple data sources, including temporary on-site risk data accessed by the backend through mobile terminals. The risk data includes the longitude and latitude of the risk location and the risk level. Risks are marked on the map page using the longitude and latitude of the risk location, and different warning statuses are displayed according to the risk level.

2. The map display method for chemical park risk warning according to claim 1, characterized in that: After receiving the temporary risk data on site, the method also includes a step of determining whether the risk location is within the park based on the longitude and latitude of the risk location.

3. The map display method for chemical park risk warning according to claim 2, characterized in that: Determine whether the risk location is within the park based on the latitude and longitude of the risk location, specifically including: Receive on-site temporary risk data, including risk description, risk level and multimedia information; Extract the longitude and latitude of the risk location from the multimedia information, and record the point at the longitude and latitude as the point to be measured; Extract the longitude and latitude set of the park area; Send a ray from the point to be measured in any horizontal or vertical direction; Traversing each edge of the polygon formed by the longitude and latitude set of the park area, and determining the positional relationship between the ray and the current edge, including: Check whether the point to be tested is on the endpoint of the current edge or on the current edge; If the point to be measured is on the endpoint of the current edge or on the current edge, it is directly determined that the point to be measured is an internal point, that is, the risk position is within the park; otherwise, it is checked whether the current edge is parallel to the ray; If they are parallel, exclude the current edge and continue traversing the next edge; otherwise, check whether the current edge and the ray meet the edge crossing condition; If the crossing condition is not met, the current edge is excluded and the traversal continues to the next edge; If the crossing condition is met, the longitude or latitude of the intersection point is calculated based on the longitude and latitude of the two endpoints of the current edge and the longitude and latitude of the point to be measured; According to the longitude or latitude of the intersection point and the longitude and latitude of the point to be measured, determine whether the current intersection point is a valid intersection point. If so, the valid intersection point is increased by 1; If the total number of valid intersection points is an odd number, the point to be measured is determined to be an internal point, that is, the risk location is within the park. If the total number of valid intersection points is an even number, the point to be measured is determined to be an external point, that is, the risk location is not within the park.

4. The map display method for chemical park risk warning according to claim 1, characterized in that: Use the map mouse drawing library to draw the park area, enterprise area and device area on the map, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format, including: Use the line drawing class in the map mouse drawing library to click and drag on the map to draw a polygonal area along the park boundary, i.e., the park area. Obtain a set of longitude and latitude coordinates of the park area consisting of the endpoints of the polygonal area. Store the set of longitude and latitude coordinates in GEOJSON format and set the type to face. Use the line drawing class in the map mouse drawing library to click and drag within the campus area on the map to draw a polygonal area along the company boundary, i.e., the enterprise area. This generates a set of longitude and latitude coordinates for each endpoint of the polygonal area. This set of longitude and latitude coordinates is stored in GEOJSON format and set to polygon type. Use the line drawing class in the map mouse drawing library to click and drag within the enterprise area on the map. Draw a polygonal area along the boundary of the large equipment, i.e., the large equipment area. Obtain a set of longitude and latitude of the large equipment area consisting of the endpoints of the polygonal area. Store the longitude and latitude set of the large equipment area in GEOJSON format and set the type to face. Use the point drawing class in the map mouse drawing library to draw points in the enterprise area on the map, that is, to draw small devices. The latitude and longitude of the point are the latitude and longitude of the small device, stored in GEOJSON format, and set the type to point.

5. The map display method for chemical park risk warning according to claim 1, characterized in that: Risks are marked on the map page using the latitude and longitude of the risk location, including: Determine the risk location type based on the latitude and longitude of the risk location; If the risk location type is point type, the risk mark will be rendered at the corresponding point on the map page according to the longitude and latitude of the risk location; If the risk location type is a surface type, the risk mark will be rendered in the corresponding surface area of ​​the map page according to the longitude and latitude of the risk location.

6. The map display method for chemical park risk warning according to claim 1, characterized in that: Risk data also includes risk descriptions, which are used to describe risk events; Risks are marked on the map page using the latitude and longitude of the risk location, including: Use a large model to analyze risk descriptions to extract keywords, and use the keywords to determine whether the current risk event has an expansion risk; If it exists, the current risk data is marked as diffusion type, meteorological data is obtained in real time, and the diffusion area is generated through the diffusion model based on the meteorological data and risk data; Risks are marked on the map page according to the longitude and latitude of the risk location and the generated diffusion area.

7. The map display method for chemical park risk warning according to claim 6, characterized in that: Acquire meteorological data in real time and generate diffusion areas through diffusion models based on meteorological data and risk data, including: Obtain meteorological data in real time, including wind speed, wind direction, temperature and humidity, and determine the atmospheric stability level based on temperature and humidity ; According to the atmospheric stability level Determine the Pasquale-Gifford diffusion coefficient 、 ; Obtain risk data and determine leakage parameters, including leakage rate, based on the risk description in the risk data and effective leakage height ; Calculation of diffuse concentration distribution using the Gaussian plume model , expressed as, Where, is the wind speed, is the vertical height of the risk location; According to the diffusion concentration distribution Concentration contours are calculated and converted to polygon endpoint coordinates to generate diffusion areas.

8. A map display system for risk early warning in chemical parks, characterized in that: include: The regional longitude and latitude set generation module is used to draw the park area, enterprise area and device area on the map using the map mouse drawing library, generate the longitude and latitude sets of each area, and store the longitude and latitude sets of each area in a unified format; The page drawing module is used to draw pages based on the stored regional longitude and latitude sets in combination with the GIS engine. The pages include the campus layer, enterprise layer, and device layer with drill-down levels, and the page is configured to communicate with the backend via Websocket. The risk data receiving module is used to receive risk data accessed by the backend through multiple data sources, including receiving temporary on-site risk data accessed by the backend through the mobile terminal. The risk data includes the latitude and longitude of the risk location and the risk level; The risk marking and warning module is used to mark risks on the map page according to the longitude and latitude of the risk location, and display different warning status according to the risk level.

9. A terminal, characterized in that: include: A memory for storing a map display program for chemical park risk warning; A processor is used to implement the steps of the map display method for chemical park risk warning as described in any one of claims 1 to 7 when executing the map display program for chemical park risk warning.

10. A computer-readable storage medium, characterized in that The readable storage medium stores a map display program for chemical park risk warning. When the map display program for chemical park risk warning is executed by the processor, the steps of the map display method for chemical park risk warning as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Intelligent risk prevention and control platform and risk identification prevention and control and dynamic inspection implementation method

    CN112819339A

  • Harmful gas concentration prediction method and application

    CN116230106A

  • Power grid operation risk assessment method and system

    CN117236685A

  • Multi-level risk monitoring method and system based on intelligent fire fighting

    CN118586692A