CN112598535B - Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file - Google Patents
Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file Download PDFInfo
- Publication number
- CN112598535B CN112598535B CN202011432412.4A CN202011432412A CN112598535B CN 112598535 B CN112598535 B CN 112598535B CN 202011432412 A CN202011432412 A CN 202011432412A CN 112598535 B CN112598535 B CN 112598535B
- Authority
- CN
- China
- Prior art keywords
- file
- equipment
- measurement
- svg
- new
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000009826 distribution Methods 0.000 title claims abstract description 21
- 238000005259 measurement Methods 0.000 title claims description 110
- 238000006243 chemical reaction Methods 0.000 title claims description 4
- 230000003068 static effect Effects 0.000 title description 3
- 238000012545 processing Methods 0.000 claims abstract description 23
- 238000013507 mapping Methods 0.000 claims description 34
- 238000010586 diagram Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
- G06F16/84—Mapping; Conversion
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Human Resources & Organizations (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Public Health (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to a method for measuring and reserving power distribution network equipment when SVG is converted into G files, which comprises the steps of generating and processing a new G file, processing a stock G file and measuring and reserving the new G file, wherein the corresponding relation between equipment and position information is obtained in the generation and processing of the new G file, the equipment measuring information and the position information are corresponding in the processing and measuring and reserving of the stock G file, and the new G file is replaced with the stock G file in the measuring and reserving.
Description
Technical Field
The invention relates to a device measurement and reservation method, in particular to a power distribution network device measurement and reservation method when SVG is converted into a G file.
Background
SVG: scalable vector graphics, based on extensible markup language (a subset of standard generalized markup language), a graphics format for describing two-dimensional vector graphics, strictly following XML syntax, and describing image content in a descriptive language that is a text format, is a vector graphics format that is independent of image resolution.
The G language: the graphic description language of the power system is a novel efficient graphic description language aiming at the power system developed by large SVG text and slow network transmission on the basis of CIM (common information model) -based graphic exchange of IEC 61970-453, and G language is mainly suitable for efficient and convenient power grid graphic exchange among different application systems, different manufacturers and different power enterprises.
The power grid line graph G file in the power distribution automation master station system is converted from the SVG file pushed by the PMS system. In the actual use process, equipment measurement (such as A-phase current) is added near equipment in a power grid line diagram, so that the running condition of the power grid can be detected in real time.
When equipment is abnormal, the PMS system pushes a new SVG file, a power grid line diagram in the power distribution automation master station system needs to be regenerated, and equipment measurement information in the stock power grid line diagram is lost and needs to be regenerated in the process of converting the new SVG file into a G file.
The existing power grid line graph G file has two power distribution network equipment measurement generation technologies.
Based on manual dragging of the retriever, the G file is opened through the screen editor, the retriever is invoked, and the measurement is dragged from the retriever to the vicinity of the device. The mechanism is as follows: screening according to the hierarchical structure of the equipment in the retriever, and selecting the needed measurement from all the measurements of the equipment listed in the retriever to drag the measurement to the vicinity of the equipment after the equipment is screened. The technology has the advantages of flexible addition and measurement, complicated work of main problems, manual operation of all measurement, and large workload.
Based on the automatic measurement of the picture editor, the G file is opened through the picture editor, the automatic measurement function is called, and the measurement is automatically added near the same type of equipment. The mechanism is as follows: after a certain device is selected, measurement information required by the type of device is set, and automatic batch addition measurement is performed. The advantages of the technology are rapid addition measurement, the main problem is inflexible, and all the devices of the same type are fixed in measurement type, and human intervention is needed.
Disclosure of Invention
In order to solve the problems, the invention provides a power distribution network equipment measurement and reservation method when SVG is converted into a G file, wherein the method performs measurement and reservation through the relative positions of equipment and measurement in the G file of a stock power grid circuit diagram.
The technical scheme adopted by the invention is as follows: a method for measuring and reserving power distribution network equipment when SVG is converted into G files comprises the steps of generating and processing new G files, processing stock G files and measuring and reserving the new G files
The new G file generation and processing comprises
Obtaining SVG files
The SVG file is parsed to obtain a graphics G file,
obtaining a mapping relation between the equipment identifier and the equipment position information according to the graphic G file;
the stock G file processing includes
Acquiring an inventory G file;
analyzing the stock G file to obtain a mapping relation between the equipment identifier and the equipment position information;
obtaining a mapping relation between equipment measurement identifiers and measurement information in an inventory G file;
obtaining equipment measurement identification and measurement position information in an inventory G file, and corresponding the equipment measurement identification and the measurement position information;
obtaining the mapping relation between the equipment identifier and the measurement information through the mapping relation between the equipment identifier and the equipment position information and the mapping relation between the equipment measurement identifier and the measurement information; obtaining the mapping relation of the equipment identifier, the equipment and the position deviation between the equipment and the measurement by the mapping relation between the equipment identifier and the equipment position information and the mapping relation between the equipment measurement identifier and the measurement position information;
measurement reservation includes
Obtaining equipment measurement information in the stock G file to be reserved in the new G file according to the mapping relation between the equipment identification and the equipment position information in the new G file and the mapping relation between the equipment identification and the measurement information in the stock G file;
obtaining the relative position of the equipment identifier in the new G file and the equipment measurement in the stock G file to be reserved according to the mapping relation between the equipment identifier in the new G file and the equipment position information and the mapping relation between the equipment identifier in the stock G file and the position deviation between the equipment and the measurement;
the device measurement information in the stock G file to be reserved is added to the new G file based on the relative position with the device in the new G file.
Further, the primitive G file is obtained by parsing Symbol content in the SVG file, and the graphic G file is obtained by parsing equipment graphic content in the SVG file.
Further, the new G file is parsed into a primitive G file and a graphic G file.
Further, according to feeder information, stock G files are obtained by searching stock power grid line diagram information which runs in real time in a power distribution automation master station system database.
Further, the device identification is obtained from RDF_ID conversion in the SVG.
Further, the device information in the graphic G file comprises a referenced graphic element, a display attribute of the device, coordinates of the device and RDF_ID of the device.
Further, according to the scaling of the new G file and the size of the device, the relative position of the measurement and the device is adjusted.
Further, when the measurement information of the device is added to the new G file, the unit of measurement is added after the measurement.
The beneficial effects of the invention include: the invention does not need to start a picture editor and human intervention, realizes full-automatic processing, only keeps the measurement of the equipment required in the power grid line graph, and in addition, the relative positions of the equipment and the measurement in the new G file are consistent with the stored power grid line graph.
Drawings
FIG. 1 is a SVG-to-G file flow diagram;
FIG. 2 is a flow chart of inventory G file processing;
FIG. 3 is a flowchart of a method for measuring and preserving power distribution network equipment when SVG is converted into G language graphics.
Detailed Description
The invention will be explained in further detail below with reference to the drawings and the specific embodiments, but it should be understood that the scope of protection of the invention is not limited to the specific embodiments.
New G file generation and processing
1. Analyzing SVG files provided by PMS;
2. analyzing Symbol content in the SVG file into an equipment graphic primitive G file;
the SVG file content is composed of two parts, namely a device primitive definition part and a device layer description part, wherein the device primitive definition part describes the display style of each state of each device in detail. When the SVG file is analyzed, each device creates a primitive G file, the file content is all states of the same device, and different states are distinguished through attributes in the file.
3. Analyzing the content of a device layer in an SVG file, wherein each device is described in the SVG file layer by an element, and comprises information such as a referenced graphic element, the display attribute of the device, the coordinates of the device, the RDF_ID of other directly connected devices and the like, converting the content in the element into the device information in a graph G file, constructing the graph G file, and creating a connecting line according to the connection relation between the devices in the SVG file to connect the devices;
4. the identification of the device in the graphics G file is converted from the rdf_id (resource identification) in the SVG, while the rdf_id provided by the PMS is the device resource ID, ensuring that it is unique in the system, and in the last stage of converting the graphics, the device identification is stored mapped with the device location information.
Stock G file handling
1. According to feeder information, searching real-time running stock power grid line diagram information in a power distribution automation master station system database to obtain stock G files;
2. analyzing the stock graph G file to obtain the mapping between the equipment identifier and the equipment position information;
3. each measurement in the G file is defined as an element, and the content includes: in the process of analyzing the stock G file, the information of the equipment measurement identifier, the measurement position and the like is obtained, and the equipment measurement identifier and the measurement position mapping is constructed; constructing equipment measurement identity and measurement information maps
4. Acquiring an association relation between the equipment identifier and the equipment measurement identifier through a master station system database, and combining the data in the step 2 and the step 3 to obtain a mapping relation between the equipment identifier and the position deviation between the equipment and the measurement;
5. in addition, different types of equipment are set through configuration files to keep different measurements so as to be suitable for different application scenes;
6. after the useless measurement data such as the equipment data in the system is deleted, the measurement data corresponding to the equipment is the useless data.
The new G file is identical to the same device in the stock G file in its device Identification (ID). The stock G file contains measurement information of the equipment, and the equipment identification and the equipment measurement have a corresponding relation, namely specific equipment can be found through the equipment measurement. Based on the above, the relative position between the device and the device measurements in the G file can be stored. And then, according to the same equipment identifiers in the new G file and the stock G file, setting the position of the measurement in the new G file according to the relative position of the equipment and the measurement.
Measurement reservation
1. Based on the equipment identification and equipment position information mapping data in the new G file generation and processing, acquiring measurement data information required to be measured and reserved through equipment identification and measurement information mapping in the stock G file processing;
2. acquiring a measured relative position based on the mapping between the equipment and the measured relative position in the stock G file processing; the method comprises the steps that according to the mapping relation between equipment identifiers in a new G file and equipment position information, the mapping relation between the equipment identifiers in an inventory G file and the position deviation between equipment and measurement is obtained, and the relative position between the equipment identifiers in the new G file and the equipment measurement in the inventory G file to be reserved is obtained;
3. adding the equipment measurement data information in the stock G file obtained in the step 1 which needs to be reserved into the new G file based on the relative position of the equipment in the new G file;
4. adjusting the relative position of the measurement and the equipment according to the picture scaling and the equipment size of the new G file
5. Inquiring a database of a master station, acquiring a measurement description, and adding the measurement description before measurement;
6. supporting setting a unit of measurement in a configuration file, and adding the unit to the measurement after the unit is added to the new G file when the measurement is added to the new G file;
7. and after confirming that the error is not found, the new G file is put into operation to replace the stock G file.
The measurement information retention method of the invention analyzes the stock G file, obtains the relative position of the equipment and measurement, and is applied to the measurement generation of a new G file; on the basis of the step 1, eliminating the equipment measurement from which the model data has been deleted; based on the step 1, adding information such as static text description, units and the like of measurement; on the basis of 2 and 3, different equipment types are configured to keep different measurements.
In the implementation process of the scheme, a picture editor and human intervention are not required to be started, full-automatic processing is realized, only equipment measurement required in a power grid line graph is reserved, and in addition, the relative positions of equipment and measurement in a new G file are consistent with the stock power grid line graph.
The invention has been described with reference to a few embodiments. However, as is well known to those skilled in the art, other embodiments of the invention disclosed above are equally possible within the scope of the invention, as defined by the appended patent claims.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.
Claims (8)
1. A power distribution network equipment measurement and reservation method when SVG is converted into G files is characterized in that: the method comprises the steps of generating and processing a new G file, processing a stock G file and measuring and reserving;
the new G file generation and processing includes:
obtaining an SVG file;
analyzing the SVG file to obtain a graph G file;
obtaining a mapping relation between the equipment identifier and the equipment position information according to the graphic G file;
the stock G file processing includes:
acquiring an inventory G file;
analyzing the stock G file to obtain a mapping relation between the equipment identifier and the equipment position information;
obtaining a mapping relation between equipment measurement identifiers and measurement information in an inventory G file;
obtaining equipment measurement identification and measurement position information in an inventory G file, and corresponding the equipment measurement identification and the measurement position information;
obtaining the mapping relation between the equipment identifier and the measurement information through the mapping relation between the equipment identifier and the equipment position information and the mapping relation between the equipment measurement identifier and the measurement information; obtaining the mapping relation of the equipment identifier, the equipment and the position deviation between the equipment and the measurement by the mapping relation between the equipment identifier and the equipment position information and the mapping relation between the equipment measurement identifier and the measurement position information;
the measurement reservation includes:
obtaining equipment measurement information in the stock G file to be reserved in the new G file according to the mapping relation between the equipment identification and the equipment position information in the new G file and the mapping relation between the equipment identification and the measurement information in the stock G file;
obtaining the relative position of the equipment identifier in the new G file and the equipment measurement in the stock G file to be reserved according to the mapping relation between the equipment identifier in the new G file and the equipment position information and the mapping relation between the equipment identifier in the stock G file and the position deviation between the equipment and the measurement;
and adding the device measurement information in the stock G file to be reserved into the new G file based on the relative position of the device identification in the new G file and the device measurement in the stock G file to be reserved.
2. The method for measuring and preserving power distribution network equipment when converting SVG into G files according to claim 1, wherein: and analyzing the new G file into a graphic G file and a graphic G file.
3. The method for measuring and preserving power distribution network equipment when converting SVG into G files according to claim 2, wherein: the primitive G file is obtained by analyzing Symbol content in the SVG file, and the graphic G file is obtained by analyzing equipment graphic content in the SVG file.
4. The method for measuring and preserving power distribution network equipment when converting SVG into G files according to claim 1, wherein: and searching the real-time running stock power grid line diagram information in a power distribution automation master station system database according to the feeder line information to obtain a stock G file.
5. The method for measuring and preserving power distribution network equipment when converting SVG into G files according to claim 1, wherein: the device identification is obtained from RDF_ID conversion in the SVG.
6. The method for measuring and preserving power distribution network equipment when converting SVG into G files according to claim 1, wherein: the device information in the graphic G file comprises a referenced graphic element, a display attribute of the device, device position information and RDF_ID of the device.
7. The method for measuring and preserving power distribution network equipment when converting SVG into G files according to claim 1, wherein: and adjusting the relative position of the measurement and the equipment according to the picture scaling and the equipment size of the new G file.
8. The method for measuring and preserving power distribution network equipment when converting SVG into G files according to claim 1, wherein: when the measurement information of the device is added to the new G file, the unit of measurement is added after the measurement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011432412.4A CN112598535B (en) | 2020-12-10 | 2020-12-10 | Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011432412.4A CN112598535B (en) | 2020-12-10 | 2020-12-10 | Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112598535A CN112598535A (en) | 2021-04-02 |
CN112598535B true CN112598535B (en) | 2024-03-08 |
Family
ID=75191516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011432412.4A Active CN112598535B (en) | 2020-12-10 | 2020-12-10 | Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112598535B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166942A (en) * | 2014-07-02 | 2014-11-26 | 国家电网公司 | Method and system for searching cross-regional power supply range based on CIM model |
CN104201779A (en) * | 2014-09-01 | 2014-12-10 | 深圳供电局有限公司 | Online monitor data automatic integration monitor method based on SVG |
WO2016078474A1 (en) * | 2014-11-17 | 2016-05-26 | 国家电网公司 | Method for graphics interaction between grid production management system and scheduling automation system |
CN111241349A (en) * | 2019-12-31 | 2020-06-05 | 中国电力科学研究院有限公司 | Wiring diagram data display method and system based on graph conversion |
-
2020
- 2020-12-10 CN CN202011432412.4A patent/CN112598535B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166942A (en) * | 2014-07-02 | 2014-11-26 | 国家电网公司 | Method and system for searching cross-regional power supply range based on CIM model |
CN104201779A (en) * | 2014-09-01 | 2014-12-10 | 深圳供电局有限公司 | Online monitor data automatic integration monitor method based on SVG |
WO2016078474A1 (en) * | 2014-11-17 | 2016-05-26 | 国家电网公司 | Method for graphics interaction between grid production management system and scheduling automation system |
CN111241349A (en) * | 2019-12-31 | 2020-06-05 | 中国电力科学研究院有限公司 | Wiring diagram data display method and system based on graph conversion |
Non-Patent Citations (1)
Title |
---|
基于PMU/SCADA混合数据的电力***状态估计的研究;李爽;中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑);C042-1236 * |
Also Published As
Publication number | Publication date |
---|---|
CN112598535A (en) | 2021-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11870658B2 (en) | Method and apparatus for updating gateway resource, and IOT control platform | |
CN106960103A (en) | The automatic generation method and device of a kind of grid graph | |
CN111176645A (en) | Power grid big data application-oriented data integration management system and implementation method thereof | |
CN110347407A (en) | A kind of method, apparatus, computer equipment and medium obtaining EMS memory occupation amount | |
CN110333863A (en) | A kind of method and device for generating, showing the small routine page | |
CN110471857A (en) | The automatic test approach and device of artificial intelligence model performance capability | |
CN115860143A (en) | Operator model generation method, device and equipment | |
EP2563061A1 (en) | Data cut-over method and apparatus | |
CN113448988B (en) | Training method and device of algorithm model, electronic equipment and storage medium | |
CN112598535B (en) | Power distribution network equipment measurement and reservation method during SVG (static var generator) conversion into G file | |
CN104717103A (en) | Method and device for testing network device | |
CN111182006B (en) | Method and device for mapping physical cluster into cloud computing resource | |
CN116991468A (en) | Configuration file generation method, device, equipment and storage medium | |
CN111914376A (en) | Method and device for automatically constructing power grid bus mode diagram and storage medium | |
CN103310002B (en) | For the Web service method for packing and system of weather forecast computing system MM5 | |
CN112306622B (en) | Construction method and device of VNF template | |
CN109032582A (en) | A kind of method and device generating server O&M script | |
CN105607957B (en) | A kind of data acquisition analysis system based on OPC DA | |
CN114647686A (en) | Data processing method, device, equipment, medium and product | |
CN113688603B (en) | Model file processing method and device, storage medium and electronic equipment | |
CN113688603A (en) | Model file processing method and device, storage medium and electronic equipment | |
CN117667725A (en) | Database script generation method, device and equipment and readable storage medium | |
CN107256175A (en) | It is a kind of to realize that virtual machine carries out the method for differentiation operation, apparatus and system | |
CN117667066A (en) | Application program code generation method and device and electronic equipment | |
CN115828524A (en) | Unified management method, system, equipment and medium for power market basic model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |