Application calling method and system based on first-area and third-area GIS integrated assembly of power grid regulation and control system
By providing a unified interface and event mechanism in the power grid control system, a set of shared core GIS library code is implemented, which solves the problem of synchronous display and interaction of GIS components in the first and third zones in the existing technology, improves R&D efficiency and reduces costs.
Patent Information
- Application Number
- CN202411886382.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-18
AI Technical Summary
In the field of smart grid GIS technology, it is difficult for the existing technology to realize the synchronous display and interaction of GIS components in zone 1 and 3, resulting in low application R&D efficiency and high engineering implementation costs.
By providing a unified interface and event mechanism in the power grid control system, a set of shared core GIS library codes can be realized to meet the synchronization effect of map pictures and interactions in one and three zones.
It improves the efficiency of application R&D, saves labor costs in project implementation, realizes the same set of implementation programs for GIS screens in the power grid in one and three zones, and reduces the cost of application R&D and deployment.
Smart Images

Figure CN119847640A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart grid GIS technology, and in particular to an application calling method and system based on a three-zone GIS integrated component of a power grid control system. Background Art
[0002] In the production control area 1 of the control system, the human-computer browsing mode based on the client / server (C / S) architecture is usually adopted. In the non-production control area 3, the human-computer interaction needs and business based on the browser / server (B / S) architecture are also developing rapidly. In the actual construction, the research and development of GIS components in the C / S editor and browser are carried out first. Under the design of common functional modules, based on the different technical routes of the C-end and B-end, the graphic GIS components are implemented based on the two technology stacks of Qt, QML and HTML5, JavaScript, respectively, which can meet the synchronous display of the first and third areas of the basic map screen. Due to the differences in the two technical routes, there are certain differences in the abstraction and interaction definition of layers and elements in the underlying GIS library in the specific implementation, and these differences need to be shielded in the component encapsulation. The more complex the map interaction operation and the richer the visualization effect, the greater the challenge to the final consistency effect and program maintenance. Summary of the invention
[0003] Purpose of the invention: The present invention provides an application calling method and system based on the one-three zone GIS integrated component of the power grid control system. Through a unified interface and event mechanism, a set of shared core GIS library codes is implemented to meet the one-three zone synchronization effect of map screen and interaction, thereby improving the efficiency of application research and development and saving manpower costs in project implementation.
[0004] Technical solution: The present invention discloses an application calling method based on a three-zone GIS integrated component of a power grid control system, comprising the following steps:
[0005] Step 1: Data resource preparation: deploy GIS data driver on the file server in zone 1, obtain grid spatial data, deploy geographic base map vector data and raster data in zone 1, and synchronize data to the file server in zone 3 based on the file synchronization solution of the grid control system;
[0006] Step 2: In the editor of the CIM / G file of the power grid application scenario, create a new HTML component, specify the index.html file path of the three-area GIS integration component of the power grid control system loaded by the component, and set other style properties;
[0007] Step 3: When the CIM / G file of the power grid application scenario is loaded, the system will automatically initialize the HTML component, obtain the index.html path and file content configured in the e_option attribute by reading the attribute items of the component, and further obtain the Javascript and css static resource content through the reference information of the JavaScript file in the HTML. When the HTML component is loaded, the system triggers the loading completion event, which calls the map initialization script in index.html.
[0008] Step 4. The JavaScript code in index.html calls the map initialization function and sets it according to the application scenario requirements;
[0009] Step 5: Based on the configured layer data source information, asynchronously load the data resources required for the geographic base map and layer through the getfile or getdata service.
[0010] Step 6: After data parsing and layer loading are completed, the custom event definition is triggered. In the power grid application scenario CIM / G file, the OnMessageChange event handler determines the specific response operation to be performed based on the layer name and event name information. For example, after obtaining the information of the selected element of the layer, it executes the user interaction event that processes the content of the layer.
[0011] Furthermore, in step 1, the file synchronization program deployed in the power grid control system monitors the changes in files and directories in areas 1 and 3 and calls the file transfer and management services, thereby achieving consistency between the files in the file servers 1 and 3. Based on the file synchronization mechanism of the power grid control system, the GIS data files deployed in area 1 will be synchronized to the same directory on the file server in area 3.
[0012] Furthermore, in step 2, other style attributes include width and height.
[0013] Furthermore, in step 2, the HTML component is an HTML component defined in a QT-based human-machine browser / editor, and the component implements a customized function by associating index.html in different program packages.
[0014] Furthermore, the loading process of the HTML component includes loading the index.html file and its associated JavaScript resources, and triggering a loading completion event after the loading is complete.
[0015] Furthermore, in step 4, the map view, layer feature type, layer style, and layer data source are set.
[0016] Furthermore, in step 5, the asynchronously loaded data file resources include file resources obtained through the getfile service and data resources obtained through the getdata service.
[0017] Accordingly, an application calling system based on the one-three-area GIS integrated component of the power grid control system includes: a one-area file server, a three-area file server, a power grid application scenario CIM / G file, and a one-three-area GIS integrated component of the power grid control system; deploying a GIS data driver in the one-area file server to obtain power grid grid spatial data, and deploying geographic base map vector data and raster data in the one area, and synchronizing the data to the three-area file server based on the file synchronization solution of the power grid control system; in the editor of the power grid application scenario CIM / G file, creating a new HTML component, and specifying the index.html file path of the one-three-area GIS integrated component of the power grid control system to be loaded by the component; when the power grid application scenario CIM / G file is loaded, the system automatically initializes the HTML component, loads the associated index.html and JavaScript files, calls the map initialization function, asynchronously loads the data resources required for the geographic base map and the layer, and the OnMessageChange event handler of the power grid application scenario CIM / G file determines the specific response operation to be executed according to the layer name and event name information.
[0018] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: the present invention provides a three-zone GIS integrated component for a power grid control system, defines an HTML component in a power grid application scenario CIM / G file, and associates it with the index.html file of the component; calls the layer and map initialization interface of the HTML component in the script of the power grid application scenario CIM / G file; parses data file resources, triggers a custom event definition after the layer is loaded, parses event information in the OnMessageChange event processing of the power grid application scenario CIM / G file, and executes corresponding response operations. Through a unified interface and event mechanism, the same set of implementation programs are used for the GIS screens of the one-zone and three-zone power grid applications, thereby reducing the cost of application development and deployment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION
[0020] like Figure 1 As shown, an application calling method based on a three-zone GIS integrated component of a power grid control system includes the following steps:
[0021] Step 1: Data resource preparation: deploy GIS data driver on the file server in zone 1, obtain grid spatial data, deploy geographic base map vector data and raster data in zone 1, and synchronize data to the file server in zone 3 based on the file synchronization solution of the grid control system;
[0022] Step 2: In the editor of the CIM / G file of the power grid application scenario, create a new HTML component, specify the index.html file path of the three-area GIS integration component of the power grid control system loaded by the component, and set other style properties;
[0023] Step 3: When the CIM / G file of the power grid application scenario is loaded, the system will automatically initialize the HTML component, obtain the index.html path and file content configured in the e_option attribute by reading the attribute items of the component, and further obtain the Javascript and css static resource content through the reference information of the JavaScript file in the HTML. When the HTML component is loaded, the system triggers the loading completion event, which calls the map initialization script in index.html.
[0024] Step 4. The JavaScript code in index.html calls the map initialization function and sets it according to the application scenario requirements;
[0025] Step 5: Based on the configured layer data source information, asynchronously load the data resources required for the geographic base map and layer through the getfile or getdata service.
[0026] Step 6: After data parsing and layer loading are completed, the custom event definition is triggered. In the power grid application scenario CIM / G file, the OnMessageChange event handler determines the specific response operation to be performed based on the layer name and event name information. For example, after obtaining the information of the selected element of the layer, it executes the user interaction event that processes the content of the layer.
[0027] Accordingly, an application calling system based on the one-three-area GIS integrated component of the power grid control system includes: a one-area file server, a three-area file server, a power grid application scenario CIM / G file, and a one-three-area GIS integrated component of the power grid control system; deploying a GIS data driver in the one-area file server to obtain power grid grid spatial data, and deploying geographic base map vector data and raster data in the one area, and synchronizing the data to the three-area file server based on the file synchronization solution of the power grid control system; in the editor of the power grid application scenario CIM / G file, creating a new HTML component, and specifying the index.html file path of the one-three-area GIS integrated component of the power grid control system to be loaded by the component; when the power grid application scenario CIM / G file is loaded, the system automatically initializes the HTML component, loads the associated index.html and JavaScript files, calls the map initialization function, asynchronously loads the data resources required for the geographic base map and the layer, and the OnMessageChange event handler of the power grid application scenario CIM / G file determines the specific response operation to be executed according to the layer name and event name information.
[0028] The present invention provides a three-area GIS integrated component for a power grid control system, defines an HTML component in a CIM / G file of an application scenario, and associates it with an index.html file of the component; calls a layer and map initialization interface of the HTML component in a script of the CIM / G file; triggers a custom event definition after parsing data file resources and layer loading, parses event information in an OnMessageChange event processing of the CIM / G file, and executes corresponding response operations. Through a unified interface and event mechanism, the same set of implementation programs is adopted for the GIS screens of the one-area and three-area power grid applications, thereby reducing application development and deployment costs.
Claims
1. An application calling method based on a three-area GIS integrated component of a power grid control system, characterized in that: The steps include: Step 1: Data resource preparation: deploy GIS data driver on the file server in zone 1, obtain grid spatial data, deploy geographic base map vector data and raster data in zone 1, and synchronize data to the file server in zone 3 based on the file synchronization solution of the grid control system; Step 2: In the editor of the CIM / G file of the power grid application scenario, create a new HTML component, specify the index.html file path of the three-area GIS integration component of the power grid control system loaded by the component, and set other style properties; Step 3: When the CIM / G file of the power grid application scenario is loaded, the system will automatically initialize the HTML component, obtain the index.html path and file content configured in the e_option attribute by reading the attribute items of the component, and further obtain the Javascript and css static resource content through the reference information of the JavaScript file in the HTML. When the HTML component is loaded, the system triggers the loading completion event, which calls the map initialization script in index.html. Step 4. The JavaScript code in index.html calls the map initialization function and sets it according to the application scenario requirements; Step 5: Based on the configured layer data source information, asynchronously load the data resources required for the geographic base map and layer through the getfile or getdata service. Step 6: After data parsing and layer loading are completed, the custom event definition is triggered. In the power grid application scenario CIM / G file, the OnMessageChange event handler determines the specific response operation to be performed based on the layer name and event name information. For example, after obtaining the information of the selected element of the layer, it executes the user interaction event that processes the content of the layer.
2. The application calling method based on the three-area GIS integrated component of the power grid control system according to claim 1 is characterized in that: In step 1, the file synchronization program deployed in the power grid control system monitors the changes in files and directories in areas 1 and 3 and calls the file transfer and management service to achieve consistency between the files in the file servers 1 and 3. Based on the file synchronization mechanism of the power grid control system, the GIS data files deployed in area 1 will be synchronized to the same directory on the file server in area 3.
3. The application calling method based on the three-area GIS integrated component of the power grid control system according to claim 1 is characterized in that: In step 2, other style attributes include width and height.
4. The application calling method based on the three-area GIS integrated component of the power grid control system according to claim 1 is characterized in that: In step 2, the HTML component is an HTML component defined in a QT-based human-machine browser / editor, and the component implements customized functions by associating index.html in different program packages.
5. The application calling method based on the three-area GIS integrated component of the power grid control system according to claim 4 is characterized in that: The loading process of the HTML component includes loading the index.html file and its associated JavaScript resources, and triggering a loading completion event after the loading is complete.
6. The application calling method based on the three-area GIS integrated component of the power grid control system according to claim 1 is characterized in that: In step 4, set the map view, layer feature type, layer style, and configure the layer data source.
7. The application calling method based on the three-area GIS integrated component of the power grid control system according to claim 1 is characterized in that: In step 5, the asynchronously loaded data file resources include file resources obtained through the getfile service and data resources obtained through the getdata service.
8. A system for implementing the application calling method based on the power grid control system-three-area GIS integrated component as claimed in claim 1, characterized in that: include: File server for zone 1, file server for zone 3, CIM / G files for power grid application scenarios, and GIS integrated components for zones 1 and 3 of the power grid control system; Deploy a GIS data driver on the file server in zone 1 to obtain the spatial data of the power grid framework, and deploy geographic base map vector data and raster data in zone 1. Synchronize the data to the file server in zone 3 based on the file synchronization solution of the power grid control system. In the editor of the CIM / G file of the power grid application scenario, create a new HTML component and specify the index.html file path of the integrated GIS component of zones 1 and 3 of the power grid control system for the component to load. When the CIM / G file of the power grid application scenario is loaded, the system will automatically initialize the HTML component and load the associated index.html and JavaScript files, call the map initialization function, asynchronously load the data resources required for the geographic base map and the layer, and the OnMessageChange event handler of the CIM / G file of the power grid application scenario determines the specific response operation to be performed according to the layer name and event name information.
Citation Information
Patent Citations
Web application packaging method, storage medium and computing equipment
CN111176655A
Big data visualization three-dimensional GIS cloud rendering project generation system and method
CN111597005A
Graph middleware design method based on heterogeneous two-dimensional and three-dimensional geographic information system
CN116415082A
Three-dimensional GIS (Geographic Information System) visualization engine packaging method and system
CN117435175A
Implementing an html5-based motion sensing game
US20230415035A1