A power grid station area SVG topology graph generation method, device, equipment and medium

By monitoring anomalies in transformer area ledger data in real time and downloading them concurrently on the PC, the problems of slow SVG topology map generation speed and poor real-time performance were solved. This enabled rapid updates of transformer area ledger data and efficient generation of SVG topology maps, ensuring real-time monitoring capabilities of the low-voltage power grid.

CN116827800BActive Publication Date: 2026-07-24JIANGMEN POWER SUPPLY BUREAU OF GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JIANGMEN POWER SUPPLY BUREAU OF GUANGDONG POWER GRID CO LTD
Filing Date
2023-07-03
Publication Date
2026-07-24

Smart Images

  • Figure CN116827800B_ABST
    Figure CN116827800B_ABST
Patent Text Reader

Abstract

The application discloses a kind of power grid station area SVG topological graph generation method, device, equipment and medium, to solve the technical problems that existing SVG topological graph generation method is limited by network speed and browser memory problem, download speed is too slow.The present application includes: real-time monitoring the change event of each station area's station account data;When monitoring change event, the station area corresponding to the station account data where the change event occurs is identified, and the change station area is obtained;The SVG topological graph generation operation of the change station area is triggered in PC end, and the underlying download permission of the PC end is started;The PC end establishes multiple download threads according to the underlying download permission;The PC end downloads the target station account data of the change station area through the download thread, and generates the SVG topological graph of the change station area using the target station account data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power grid topology mapping technology, and in particular to a method, apparatus, equipment and medium for generating SVG topology maps of power grid substations. Background Technology

[0002] Currently, generating SVG (Scalable Vector Graphics) maps based on low-voltage distribution network topology models requires manual intervention and cannot be automatically synchronized with real-time changes in transformer area records. This causes the SVG maps to lag behind changes in the topology model, hindering the real-time requirements of low-voltage power grid monitoring. Furthermore, the current process of generating SVG maps based on low-voltage distribution network topology models is conducted on the web. Due to limitations in network speed and browser memory, the download speed is too slow. SVG map generation can usually only be done one at a time, further restricting the real-time performance of low-voltage power grid monitoring. There is also a possibility that downloading a large number of SVG maps may cause the browser to freeze.

[0003] The existing solution has the following drawbacks:

[0004] 1. The maintenance cost of SVG topology diagrams is high, which affects the real-time performance of the system;

[0005] 2. When the data in the transformer area ledger changes, it cannot be updated automatically, and the SVG diagram can only be generated one by one, resulting in poor real-time performance and inconsistencies between the transformer area ledger and the SVG topology diagram.

[0006] 3. Generating SVG images is too slow, and when generating a large number of SVG images, the browser may freeze. Summary of the Invention

[0007] This invention provides a method, apparatus, device, and medium for generating SVG topology maps of power grid areas, which solves the technical problem that existing SVG topology map generation methods are limited by network speed and browser memory issues, resulting in excessively slow download speeds.

[0008] This invention provides a method for generating SVG topology maps of power grid substations, applicable to web applications. The method includes:

[0009] Real-time monitoring of abnormal events in the ledger data of each distribution area;

[0010] When an abnormal event is detected, the corresponding station area in the ledger data where the abnormal event occurred is marked as abnormal to obtain the abnormal station area;

[0011] The SVG topology map generation operation of the abnormal station area is triggered on the PC, and the underlying download permission of the PC is enabled.

[0012] The PC client establishes multiple download threads based on the underlying download permissions.

[0013] The PC client concurrently downloads the target ledger data of the abnormal station area through the download thread, and uses the target ledger data to generate an SVG topology map of the abnormal station area.

[0014] Optionally, the step of real-time monitoring of abnormal events in the ledger data of each station area includes:

[0015] Real-time monitoring of the status locks corresponding to the ledger data of each station area;

[0016] The state lock is used to determine whether any abnormal events have occurred in the ledger data of each station area.

[0017] Optionally, the step of triggering the SVG topology map generation operation of the abnormal station area on the PC and enabling the underlying download permission on the PC includes:

[0018] Trigger the SVG topology map generation operation of the abnormal station area on the PC;

[0019] Establish an SVG topology graph generation queue;

[0020] Obtain the number of SVG topology maps, the SVG topology map download rate, and the current browser cache in the SVG topology map generation queue;

[0021] The health status of the SVG topology graph generation queue is determined based on the number of SVG topology graphs, the download speed of the SVG topology graphs, and the current browser cache.

[0022] When the health status is poor, grant the PC client underlying download permissions.

[0023] Optionally, the step of determining the health status of the SVG topology map generation queue based on the number of SVG topology maps, the download speed of the SVG topology maps, and the current browser cache includes:

[0024] The download completion time of the SVG topology map generation queue is determined based on the number of SVG topology maps and the download rate of the SVG topology maps.

[0025] The estimated cache usage ratio of the browser is calculated based on the number of SVG topology graphs, the download speed of the SVG topology graphs, and the current browser cache.

[0026] The health status of the SVG topology graph generation queue is determined based on the download completion time and the estimated cache usage ratio.

[0027] Optionally, the step of the PC concurrently downloading the target ledger data of the abnormal transformer area through the download thread, and generating an SVG topology map of the abnormal transformer area using the target ledger data, includes:

[0028] The PC terminal obtains the status parameters of the status lock of the abnormal station area in the SVG topology map generation queue;

[0029] When the state parameter is false, the abnormal station area is moved to the tail of the SVG topology generation queue;

[0030] When the status parameter is true, an integrity check is performed on the abnormal station area;

[0031] When the verification passes, the target ledger data of the abnormal transformer area is downloaded, and the SVG topology map of the abnormal transformer area is generated using the target ledger data.

[0032] Optionally, it also includes:

[0033] When the verification fails, the abnormal station area is marked as abnormal.

[0034] The present invention also provides a device for generating SVG topology maps of power grid substations, applicable to a web application, the device comprising:

[0035] The anomaly event monitoring module is used to monitor anomaly events in the ledger data of each station area in real time;

[0036] The abnormal station area identification module is used to identify the abnormal station area corresponding to the ledger data where the abnormal event occurred when an abnormal event is detected, so as to obtain the abnormal station area.

[0037] The underlying download permission enabling module is used to trigger the SVG topology map generation operation of the abnormal station area on the PC and enable the underlying download permission on the PC.

[0038] A download thread creation module is used by the PC to create multiple download threads based on the underlying download permissions.

[0039] The SVG topology generation module is used by the PC to concurrently download the target ledger data of the abnormal station area through the download thread, and to generate the SVG topology map of the abnormal station area using the target ledger data.

[0040] Optionally, the abnormal event monitoring module includes:

[0041] The status lock monitoring submodule is used to monitor the status locks corresponding to the ledger data of each station area in real time.

[0042] The abnormal event determination submodule is used to determine whether an abnormal event has occurred in the ledger data of each station area based on the state lock.

[0043] The present invention also provides an electronic device, the device comprising a processor and a memory:

[0044] The memory is used to store program code and transmit the program code to the processor;

[0045] The processor is used to execute the SVG topology map generation method for power grid substations as described above, according to the instructions in the program code.

[0046] The present invention also provides a computer-readable storage medium for storing program code for executing the SVG topology map generation method for power grid substations as described in any of the preceding claims.

[0047] As can be seen from the above technical solutions, the present invention has the following advantages: The present invention monitors the abnormal events of the transformer area ledger data in real time, and marks the abnormal transformer area when an abnormality occurs, so that the abnormal transformer area ledger data can be quickly located, so as to facilitate the subsequent generation and replacement of SVG topology map; at the same time, by triggering the SVG topology map generation operation of the abnormal transformer area, the underlying download permission of the PC is enabled, and multiple download threads are established through the underlying download permission of the PC, so as to concurrently download the target ledger data of the abnormal transformer area from the Web, thereby realizing the generation of SVG topology map on the PC, reducing the impact of the Web network on the generation of SVG topology map, and improving the generation rate of SVG topology map. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 A flowchart illustrating the steps of a method for generating an SVG topology map of a power grid distribution area, as provided in an embodiment of the present invention;

[0050] Figure 2 A flowchart illustrating the steps of a method for generating an SVG topology map of a power grid substation area, as provided in another embodiment of the present invention;

[0051] Figure 3 This is a structural block diagram of a power grid substation SVG topology map generation device provided in an embodiment of the present invention. Detailed Implementation

[0052] This invention provides a method, apparatus, device, and medium for generating SVG topology maps of power grid substations, which solves the technical problem that existing SVG topology map generation methods are limited by network speed and browser memory, resulting in excessively slow download speeds.

[0053] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0054] Please see Figure 1 , Figure 1 The flowchart illustrates the steps of a method for generating an SVG topology map of a power grid substation area, as provided in an embodiment of the present invention.

[0055] This invention provides a method for generating SVG topology maps of power grid substations, applicable to the web platform, and specifically includes the following steps:

[0056] Step 101: Monitor real-time changes in ledger data for each station area;

[0057] SVG (Scalable Vector Graphics) is an image file format. Its key feature is that users can directly depict images using code, open SVG images with any text processing tool, add interactive functionality by modifying parts of the code, and easily insert them into HTML for viewing in a browser.

[0058] In practical applications, when an anomaly occurs in a distribution area, its SVG topology map often changes. Therefore, in this embodiment of the invention, the ledger data of each distribution area can be monitored in real time to determine whether an anomaly event has occurred, so as to automatically update the SVG topology map of each distribution area.

[0059] In one example, an event could be a data update, a user edit, or a newly created station area.

[0060] Step 102: When an abnormal event is detected, the abnormal area corresponding to the ledger data of the abnormal event is marked as abnormal to obtain the abnormal area;

[0061] When an abnormal event is detected in a transformer area, the transformer area corresponding to the number of transformers at the time of the abnormal event can be marked as abnormal to obtain the abnormal transformer area.

[0062] In practice, multiple transformer substations can experience data change events simultaneously. When a data change event occurs, the web interface can identify the affected transformer substation.

[0063] Step 103: Trigger the SVG topology map generation operation for the abnormal station area on the PC and enable the underlying download permission on the PC.

[0064] PC version refers to the computer version.

[0065] In this embodiment of the invention, the PC and the Web have a communication connection. When the Web detects an abnormal event in the transformer area, it can trigger the SVG topology map generation operation of the abnormal transformer area on the PC and enable the underlying download permission of the PC to obtain data from the Web to generate the SVG topology map.

[0066] Step 104: The PC client creates multiple download threads based on the underlying download permissions;

[0067] Step 105: The PC concurrently downloads the target ledger data of the abnormal transformer area through the download thread, and generates an SVG topology map of the abnormal transformer area using the target ledger data.

[0068] The PC-side underlying download permissions can establish multiple download threads to concurrently download target ledger data from the web client, thereby generating an SVG topology map of the abnormal zone.

[0069] This invention monitors anomalies in transformer area ledger data in real time and identifies the affected transformer area when an anomaly occurs. This allows for rapid identification of the affected transformer area's ledger data, facilitating subsequent SVG topology map generation and replacement operations. Simultaneously, by triggering the SVG topology map generation operation for the affected transformer area, it enables underlying download permissions on the PC and establishes multiple download threads. This allows for concurrent downloading of the target ledger data for the affected transformer area from the web, thereby generating the SVG topology map on the PC. This reduces the impact of the web network on SVG topology map generation and improves the generation speed.

[0070] Please see Figure 2 , Figure 2 A flowchart illustrating the steps of a method for generating an SVG topology map of a power grid substation area, as provided in another embodiment of the present invention. Specifically, it may include the following steps:

[0071] Step 201: Monitor the status locks corresponding to the ledger data of each station area in real time;

[0072] Step 202: Determine whether any abnormal events have occurred in the ledger data of each station area based on the state lock;

[0073] In practical implementation, a state lock can be set for each area's ledger, and the state lock parameter can include true and false. When the area's ledger changes, the state lock parameter can be automatically switched to false, and the state lock is placed in a cache container. After the area's ledger is updated, the backend can retrieve the corresponding state lock from the cache container using the updated ledger ID and automatically switch the corresponding state lock parameter to true. Therefore, this embodiment of the invention can determine whether there is an abnormal event by monitoring whether the state lock parameter becomes false.

[0074] It should be noted that the cache container can be a HashMap. By placing the state lock in the cache container and extracting the state lock after the update is complete using the updated ledger ID, the corresponding state lock parameter is automatically switched to true. This prevents the corresponding area ledger from being downloaded and replaced when it changes, ensuring the real-time generation of the SVG topology map. At the same time, by listening to whether the state lock parameter becomes false, it is possible to determine whether there is an anomaly event, which is beneficial for subsequent anomaly identification of the ledger anomaly area.

[0075] Step 203: When an abnormal event is detected, the abnormal area corresponding to the ledger data of the abnormal event is marked as abnormal to obtain the abnormal area;

[0076] When an abnormal event is detected in a transformer area, the transformer area corresponding to the number of transformers at the time of the abnormal event can be marked as abnormal to obtain the abnormal transformer area.

[0077] Step 204: Trigger the SVG topology map generation operation for the abnormal station area on the PC and enable the underlying download permission on the PC.

[0078] In this embodiment of the invention, when an abnormal event is detected, the SVG topology map generation operation of the abnormal station area can be triggered on the PC, and the underlying download permission on the PC can be enabled.

[0079] In one example, the steps of triggering the SVG topology map generation operation for the abnormal station area on the PC and enabling the underlying download permission on the PC may include the following sub-steps:

[0080] S41, trigger the SVG topology map generation operation of the abnormal station area on the PC;

[0081] In this embodiment of the invention, when an abnormal event is detected on the web client, the SVG topology map generation operation of the abnormal station area can be triggered on the PC client.

[0082] In practical implementation, besides automatically triggering the SVG topology map generation operation when an abnormal event is detected, it can also be triggered automatically at a fixed time, or at the start time of a preset time interval, etc. This embodiment of the invention does not impose specific limitations on this.

[0083] S42, Establish the SVG topology graph generation queue;

[0084] In practical implementation, when multiple transformer areas experience simultaneous anomalies, multiple SVG topology maps need to be generated. While an SVG topology map generation queue can be established and refreshed in real-time, its generation is typically limited by the web server and must proceed sequentially within the queue, resulting in excessively slow generation speed. Therefore, this invention enables low-level download permissions on the PC to collaboratively generate SVG topology maps.

[0085] S43, obtain the number of SVG topology maps in the SVG topology map generation queue, the SVG topology map download rate, and the current browser cache;

[0086] S44. Determine the health status of the SVG topology graph generation queue based on the number of SVG topology graphs, the SVG topology graph download speed, and the browser's current cache.

[0087] S45: When the health status is poor, grant low-level download permissions to the PC.

[0088] In practice, the number of SVG topology maps in the SVG topology map generation queue, the SVG topology map download rate, and the browser's current cache can be used to determine whether PC-side collaboration is needed for SVG topology map generation.

[0089] Among them, the topology vector of the SVG topology generation queue can be the maximum number of queues within a preset time (such as 10 minutes), the SVG topology download rate can be the average rate within a preset time (such as 5 minutes), and the current browser cache can be determined through real-time updates.

[0090] The health status of the SVG topology map generation queue is used to evaluate the web client's ability to generate SVG topology maps. When the health status is good, the web client can continue to generate SVG topology maps. At this time, integrity checks can be performed on the abnormal transformer areas, and SVG topology maps can be generated for the abnormal transformer areas that pass the integrity check.

[0091] When the health status is poor, it may indicate that there is a discrepancy between the area ledger and the SVG topology map, or that the browser is freezing. In this case, it is necessary to enable the underlying download permission on the PC to coordinate with the web client to generate the SVG topology map.

[0092] In one example, the steps to determine the health status of the SVG topology map generation queue based on the number of SVG topology maps, the SVG topology map download rate, and the browser's current cache include:

[0093] S441, Determine the download completion time of the SVG topology map generation queue based on the number of SVG topology maps and the SVG topology map download rate;

[0094] S442, calculate the browser's estimated cache usage ratio based on the number of SVG topology graphs, the SVG topology graph download rate, and the browser's current cache;

[0095] S443, determine the health status of the SVG topology graph generation queue based on the download completion time and estimated cache usage ratio.

[0096] In this embodiment of the invention, the health status of the SVG topology graph generation queue can be assessed by measuring the download completion time of the queue and the browser's estimated cache usage ratio. Furthermore, other dimensions can also be combined to assess the health status of the SVG topology graph generation queue; this embodiment of the invention does not impose specific limitations on this approach. After obtaining data from each dimension, the health value can be calculated using a weighted summation method, or it can be calculated using other methods; this embodiment of the invention does not impose specific limitations on this approach. Moreover, the health values ​​corresponding to different health statuses can be set according to actual circumstances; this embodiment of the invention does not impose specific limitations on this approach.

[0097] Step 205: The PC client establishes multiple download threads based on the underlying download permissions;

[0098] Step 206: The PC concurrently downloads the target ledger data of the abnormal transformer area through the download thread, and generates an SVG topology map of the abnormal transformer area using the target ledger data.

[0099] In this embodiment of the invention, the underlying download permissions on the PC can establish multiple download threads to concurrently download target ledger data from the Web client, thereby generating an SVG topology map of the abnormal station area.

[0100] In one example, the steps of the PC concurrently downloading the target ledger data of the abnormal transformer area through a download thread and generating an SVG topology map of the abnormal transformer area using the target ledger data may include the following sub-steps:

[0101] S61, PC terminal obtains the status parameters of the status lock of the account anomaly zone in the SVG topology map generation queue;

[0102] S62, when the status parameter is false, move the abnormal station area to the tail of the SVG topology map generation queue;

[0103] S63, when the status parameter is true, perform integrity verification on the abnormal station area;

[0104] In the specific implementation, when the PC client downloads the target ledger data of the abnormal station area concurrently, it first needs to actively determine the state parameter of the state lock of the abnormal station area. When the state parameter is false, it is determined that the corresponding abnormal station area is still being updated or edited by the user. At this time, the corresponding abnormal station area's abnormal value SVG topology map generation queue is placed at the tail of the queue, and the SVG topology map of the station area with the state parameter of true that has been updated and edited is generated first, thereby improving the efficiency of SVG topology map updates and ensuring the timeliness of the updated SVG topology map.

[0105] When downloading from a different TV station, its integrity needs to be verified. This may include the following steps:

[0106] S631 performs preliminary data verification on each of the abnormal transformer areas.

[0107] S632 performs a level quantity check on the abnormal transformer areas that have passed the preliminary data verification.

[0108] S633 performs leaf node verification on abnormal transformer areas that have passed the level quantity verification.

[0109] S634 performs a uniqueness check on the abnormal transformer areas that have passed the leaf node verification.

[0110] S635 performs topology number verification on abnormal transformer areas that have passed the unique verification of transformer area.

[0111] The above steps can improve the reliability of data and graphics, prevent graphic errors, reduce data duplication, and monitor whether the station area ledger data after the anomaly point is standardized and organized.

[0112] S64. When the verification passes, download the target ledger data of the abnormal transformer area and use the target ledger data to generate the SVG topology map of the abnormal transformer area.

[0113] S65, when the verification fails, an anomaly is marked for the abnormal station area.

[0114] When the integrity verification of the abnormal control area passes, the PC can concurrently download the target ledger data of the abnormal control area through a download thread, and generate an SVG topology map of the abnormal control area using the target ledger data. When the integrity verification of the abnormal control area fails, the abnormal control area can be marked as abnormal, and an alarm window can be set to display it, so that maintenance personnel can promptly discover and maintain the abnormal control area.

[0115] This invention monitors anomalies in transformer area ledger data in real time and identifies the affected transformer area when an anomaly occurs. This allows for rapid identification of the affected transformer area's ledger data, facilitating subsequent SVG topology map generation and replacement operations. Simultaneously, by triggering the SVG topology map generation operation for the affected transformer area, it enables underlying download permissions on the PC and establishes multiple download threads. This allows for concurrent downloading of the target ledger data for the affected transformer area from the web, thereby generating the SVG topology map on the PC. This reduces the impact of the web network on SVG topology map generation and improves the generation speed.

[0116] Please see Figure 3 , Figure 3 This is a structural block diagram of a power grid substation SVG topology map generation device provided in an embodiment of the present invention.

[0117] This invention provides a device for generating SVG topology maps of power grid substations, applicable to a web application. The device includes:

[0118] The abnormal event monitoring module 301 is used to monitor abnormal events in the ledger data of each station area in real time.

[0119] The abnormal station area identification module 302 is used to identify the abnormal station area corresponding to the ledger data of the abnormal event when an abnormal event is detected, so as to obtain the abnormal station area.

[0120] The underlying download permission enabling module 303 is used to trigger the SVG topology map generation operation of the abnormal station area on the PC and enable the underlying download permission on the PC.

[0121] Download thread creation module 304 is used by the PC to create multiple download threads based on the underlying download permissions.

[0122] The SVG topology generation module 305 is used on the PC to concurrently download the target ledger data of the abnormal transformer area through a download thread, and to generate the SVG topology map of the abnormal transformer area using the target ledger data.

[0123] In this embodiment of the invention, the abnormal event monitoring module 301 includes:

[0124] The status lock monitoring submodule is used to monitor the status locks corresponding to the ledger data of each station area in real time.

[0125] The abnormal event determination submodule is used to determine whether an abnormal event has occurred in the ledger data of each station area based on the state lock.

[0126] In this embodiment of the invention, the underlying download permission enabling module 303 includes:

[0127] The SVG topology map generation operation trigger submodule is used to trigger the SVG topology map generation operation of the abnormal station area on the PC.

[0128] The SVG topology graph generation queue establishment submodule is used to establish the SVG topology graph generation queue;

[0129] The submodule for obtaining the number of SVG topology maps, the download speed of SVG topology maps, and the current browser cache is used to obtain the number of SVG topology maps, the download speed of SVG topology maps, and the current browser cache in the SVG topology map generation queue.

[0130] The health status judgment submodule is used to determine the health status of the SVG topology graph generation queue based on the number of SVG topology graphs, the SVG topology graph download speed, and the browser's current cache.

[0131] The underlying download permission enabling submodule is used to enable underlying download permissions on the PC when the PC's health status is poor.

[0132] In this embodiment of the invention, the health status judgment submodule includes:

[0133] The download completion time determination unit is used to determine the download completion time of the SVG topology map generation queue based on the number of SVG topology maps and the SVG topology map download rate;

[0134] The estimated cache utilization ratio calculation unit is used to calculate the browser's estimated cache utilization ratio based on the number of SVG topology graphs, the SVG topology graph download rate, and the browser's current cache.

[0135] The health status determination unit is used to determine the health status of the SVG topology graph generation queue based on the download completion time and the estimated cache usage ratio.

[0136] In this embodiment of the invention, the SVG topology graph generation module 305 includes:

[0137] The status parameter acquisition submodule is used to obtain the status parameters of the status locks of the abnormal station areas in the SVG topology map generation queue on the PC.

[0138] The move submodule is used to move the abnormal station area to the tail of the SVG topology map generation queue when the status parameter is false;

[0139] The integrity verification submodule is used to perform integrity verification on the abnormal station area when the status parameter is true;

[0140] The SVG topology generation submodule is used to download the target ledger data of the abnormal transformer area when the verification is passed, and to generate the SVG topology map of the abnormal transformer area using the target ledger data.

[0141] In this embodiment of the invention, the SVG topology graph generation module 305 further includes:

[0142] The anomaly identification submodule is used to identify abnormal areas when verification fails.

[0143] This invention also provides an electronic device, which includes a processor and a memory:

[0144] The memory is used to store program code and transfer the program code to the processor;

[0145] The processor is used to execute the SVG topology map generation method for power grid substations according to the instructions in the program code of this invention.

[0146] This invention also provides a computer-readable storage medium for storing program code, which is used to execute the power grid substation SVG topology map generation method of this invention.

[0147] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0148] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0149] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0150] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0151] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0153] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.

[0154] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0155] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating SVG topology maps of power grid distribution areas, characterized in that, When applied to the web, the method includes: Real-time monitoring of abnormal events in the ledger data of each distribution area; When an abnormal event is detected, the corresponding station area in the ledger data where the abnormal event occurred is marked as abnormal to obtain the abnormal station area; The SVG topology map generation operation of the abnormal station area is triggered on the PC, and the underlying download permission of the PC is enabled. The PC client establishes multiple download threads based on the underlying download permissions. The PC client concurrently downloads the target ledger data of the abnormal station area through the download thread, and uses the target ledger data to generate an SVG topology map of the abnormal station area; The step of triggering the SVG topology map generation operation of the abnormal station area on the PC and enabling the underlying download permission on the PC includes: Trigger the SVG topology map generation operation of the abnormal station area on the PC; Establish an SVG topology graph generation queue; Obtain the number of SVG topology maps, the SVG topology map download rate, and the current browser cache in the SVG topology map generation queue; The health status of the SVG topology graph generation queue is determined based on the number of SVG topology graphs, the download speed of the SVG topology graphs, and the current browser cache. When the health status is poor, grant the PC client underlying download permissions.

2. The method according to claim 1, characterized in that, The steps for real-time monitoring of abnormal events in the ledger data of each station area include: Real-time monitoring of the status locks corresponding to the ledger data of each station area; The state lock is used to determine whether any abnormal events have occurred in the ledger data of each station area.

3. The method according to claim 1, characterized in that, The step of determining the health status of the SVG topology map generation queue based on the number of SVG topology maps, the download speed of the SVG topology maps, and the current browser cache includes: The download completion time of the SVG topology map generation queue is determined based on the number of SVG topology maps and the download rate of the SVG topology maps. The estimated cache usage ratio of the browser is calculated based on the number of SVG topology graphs, the download speed of the SVG topology graphs, and the current browser cache. The health status of the SVG topology graph generation queue is determined based on the download completion time and the estimated cache usage ratio.

4. The method according to claim 1, characterized in that, The steps of the PC client concurrently downloading the target ledger data of the abnormal transformer area through the download thread, and generating the SVG topology map of the abnormal transformer area using the target ledger data, include: The PC terminal obtains the status parameters of the status lock of the abnormal station area in the SVG topology map generation queue; When the state parameter is false, the abnormal station area is moved to the tail of the SVG topology generation queue; When the status parameter is true, an integrity check is performed on the abnormal station area; When the verification passes, the target ledger data of the abnormal transformer area is downloaded, and the SVG topology map of the abnormal transformer area is generated using the target ledger data.

5. The method according to claim 4, characterized in that, Also includes: When the verification fails, the abnormal station area is marked as abnormal.

6. A device for generating SVG topology maps of power grid distribution areas, characterized in that, The device, applied to the web, includes: The anomaly event monitoring module is used to monitor anomaly events in the ledger data of each station area in real time; The abnormal station area identification module is used to identify the abnormal station area corresponding to the ledger data where the abnormal event occurred when an abnormal event is detected, so as to obtain the abnormal station area. The underlying download permission enabling module is used to trigger the SVG topology map generation operation of the abnormal station area on the PC and enable the underlying download permission on the PC. A download thread creation module is used by the PC to create multiple download threads based on the underlying download permissions. The SVG topology generation module is used by the PC to concurrently download the target ledger data of the abnormal station area through the download thread, and to generate the SVG topology map of the abnormal station area using the target ledger data; The underlying download permission enabling module includes: The SVG topology map generation operation trigger submodule is used to trigger the SVG topology map generation operation of the abnormal station area on the PC. The SVG topology graph generation queue establishment submodule is used to establish the SVG topology graph generation queue; The submodule for obtaining the number of SVG topology maps, the download speed of SVG topology maps, and the current browser cache is used to obtain the number of SVG topology maps, the download speed of SVG topology maps, and the current browser cache in the SVG topology map generation queue. The health status judgment submodule is used to determine the health status of the SVG topology graph generation queue based on the number of SVG topology graphs, the SVG topology graph download speed, and the browser's current cache. The underlying download permission enabling submodule is used to enable underlying download permissions on the PC when the PC's health status is poor.

7. The apparatus according to claim 6, characterized in that, The abnormal event monitoring module includes: The status lock monitoring submodule is used to monitor the status locks corresponding to the ledger data of each station area in real time. The abnormal event determination submodule is used to determine whether an abnormal event has occurred in the ledger data of each station area based on the state lock.

8. An electronic device, characterized in that, The device includes a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the SVG topology map generation method for power grid substations according to any one of the claims 1-5, based on the instructions in the program code.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code for executing the SVG topology map generation method for power grid substations according to any one of claims 1-5.