CN103077496A - Automatic bridging graphics processing method for power system circuit - Google Patents
Automatic bridging graphics processing method for power system circuit Download PDFInfo
- Publication number
- CN103077496A CN103077496A CN2013100515484A CN201310051548A CN103077496A CN 103077496 A CN103077496 A CN 103077496A CN 2013100515484 A CN2013100515484 A CN 2013100515484A CN 201310051548 A CN201310051548 A CN 201310051548A CN 103077496 A CN103077496 A CN 103077496A
- Authority
- CN
- China
- Prior art keywords
- intersection
- over connection
- cross
- pel
- primitives
- 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.)
- Granted
Links
Images
Abstract
The invention relates to an automatic bridging graphics processing method for a power system circuit. The method comprises the following steps of: performing regional partition on an entire drawing sheet; primitives classification: defining all primitives into intra-regional primitives and trans-regional primitives; primitive intersection judgment: judging whether each intra-regional primitive intersects or not, and performing intersection judgment on the trans-regional primitives and all primitives gradually; dynamic intersection refreshing; bridging intersection point drawing: calculating bridging intersection point positions, and drawing a bridging displaying effect in a window; and refreshing displaying of primitives: recalculating intersection points when a graphics window is operated by moving, and refreshing intersection bridging displaying following primitives in a display region together till displaying of the entire drawing sheet is refreshed. Due to the adoption of the method, error operation accidents caused by wrong identification of intersection points is effectively avoided, very high practicability is achieved, graphics are easier and more convenient to maintain, and graphics intersection points are definite and clear; and the method plays an important role in rapidly handling power accidents, performing training work and the like.
Description
Technical field
The invention belongs to electric power networks graphic plotting processing technology field, the automatic cross-over connection graphic processing method of especially a kind of circuit on power system.
Background technology
Along with the electrical network scale enlarges gradually, electric power networks figure quantity is increased sharply, and the user improves constantly for the requirement of the quality of power supply, causes the complexity of management and running more and more higher.There is a large amount of crossing circuits in the grid graph, dispatcher and the operations staff of power supply station must correctly identify for line alignment, thereby know the present situation method of operation of electrical network, otherwise just mistuning degree, maloperation can occur, gently then cause power grid accident, heavy then human casualty accident occurs.
At present, for crossing circuit, the mode that the grid graph that adopts traditional drafting instrument to draw adopts right-angled intersection to process does not obviously indicate, and easily obscures.This processing mode operations staff that places one's entire reliance upon comes each point of crossing of identification to the familiarity of grid graph, individual quality and technical ability are proposed very high request, and can not stop the mistake identification, the maloperation event that cause thus fully, bring hidden danger for the safe and stable operation of distribution system.If adopting computer self judges, because electrical network more complicated, electrical network figure often every figure is very large, have in addition several ten thousand pels, each pel has again not only terminal, each terminal is line segment not necessarily also, judge that crossing elimination is very large for the calculated amount of program, must judge whether each pel has intersection simultaneously, need each pel all to intersect judgement with up to ten thousand pels, just can obtain complete intersection situation, judge that number of times needs several hundred million times this moment.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, provide a kind of circuit on power system automatic cross-over connection graphic processing method.
The present invention solves its technical matters and takes following technical scheme to realize:
The automatic cross-over connection graphic processing method of a kind of circuit on power system, step is as follows:
⑴ whole drawing carries out the zone and divides;
⑵ primitives classification: whole pels are defined as pel and transregional pel in the zone;
⑶ primitive intersection is judged: the judgement that at first whether pel in each zone is intersected, then intersect judgement with whole pels more one by one to transregional pel;
⑷ dynamically intersection refreshes;
⑸ draw cross-over connection point of crossing: calculate position, cross-over connection point of crossing, in the viewing area, draw the cross-over connection display effect take radius as 10 pixels in window;
⑹ pel refresh demonstration: after draw the point of crossing, when the graphical window move operation, recomputate the point of crossing, the cross-over connection that intersects shows follows together dynamic mobile of pel, the cross-over connection that intersects shows that following the viewing area pel refreshes demonstration together, until whole drawing refresh show complete.
And described step ⑴ specifically according to the xy coordinate of drawing, on average is divided into 10000 zones to the whole figure of magnifying.
And the concrete steps that described step ⑶ primitive intersection is judged are:
Whether per two line segment angles of 1. judging pel are identical;
2. judge whether two end points of every line segment drop on the both sides of another line segment;
If 3. above-mentioned 1., 2. the judged result of step is yes, two line segments of final decision intersect.
And the dynamic concrete grammar that refreshes that intersects of described step ⑷ is:
1. when the dynamic refresh figure, only refresh the zone of demonstration, and only above-mentioned intersection is carried out in the zone of refreshing demonstration and judge;
2. dwindle when showing at figure, the line segment length that figure narrows down to demonstration does not show that the cross-over connection design sketch is to be used for improving display speed during less than 10 pixels.
And the intersection calculations formula that draw described step ⑸ cross-over connection point of crossing is: the coordinate of article one line segment is x1, y1; X2, y2, the coordinate of second line segment are x3, y3; X4, y4, point of crossing coordinate are x, y, then:
x=((x2-x1)×(x3-x4)×(y3-y1)-x3×(x2-x1)×(y3-y4)+x1×(y2-y1)×(x3-x4))/((y2-y1)×(x3-x4)-(x2-x1)×(y3-y4));
y=((y2-y1)×(y3-y4)×(x3-x1)-y3×(y2-y1)×(x3-x4)+y1×(x2-x1)×(y3-y4))/((y2-y1)×(y3-y4)-(y2-y1)×(x3-x4))。
Advantage of the present invention and good effect are:
Present technique has solved the difficult problem that cross link is difficult to clearly indicate in the distribution network figure, can effectively avoid the misoperation fault that causes because of mistake identification point of crossing.Present technique from the user's actual need angle, possesses very high practicality for electric power network graphics system characteristics.Use present technique, safeguard that figure is easier, the figure point of crossing is clear and definite clear, helps the operations staff to judge fast the circuit connection type, and this is for the equal important in inhibiting such as definite method of operation, fast processing electric power accident and training.
Description of drawings
Fig. 1 is the synoptic diagram that utilizes cross link that traditional drawing instrument is painted in the present grid graph;
Fig. 2 is that the present invention is to the synoptic diagram of circuit intersection point with bridge cross link that shape is painted.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is further described:
It is emphasized that; embodiment of the present invention is illustrative; rather than determinate; therefore the present invention is not limited to the embodiment described in the embodiment; every other embodiments that drawn by those skilled in the art's technical scheme according to the present invention belong to the scope of protection of the invention equally.
The automatic cross-over connection graphic processing method of a kind of circuit on power system, as shown in Figure 2, step is as follows:
⑴ whole drawing carries out the zone and divides:
According to the xy coordinate of drawing, the whole figure of magnifying on average is divided into 10000 zones;
⑵ primitives classification:
Travel through whole pels, find out the xy coordinate of each point of pel whether in a zone of dividing, if all point is all at an intra-zone, then be defined as pel in the zone; If not have a few all in a zone, be defined as transregional pel;
⑶ primitive intersection is judged:
According to the primitives classification of step ⑵, at first to the judgement that whether intersects of pel in each zone, then transregional pel is intersected judgement one by one with whole pels again; Wherein, whether pel intersects the particular content of judging and comprises:
Whether per two line segment angles of 1. judging pel are identical;
2. judge whether two end points of every line segment drop on the both sides of another line segment;
If 3. above-mentioned 1., 2. the judged result of step is yes, two line segments of final decision intersect;
⑷ dynamically intersection refreshes:
When figure amplifies demonstration, show pel because amplify, so display window can not all show whole pels, when the dynamic refresh figure, only refresh the zone of demonstration, and only above-mentioned intersection is carried out in the zone of refreshing demonstration and judge; Dwindle when showing at figure, the line segment length that figure narrows down to demonstration does not show that the cross-over connection design sketch is to be used for improving display speed during less than 10 pixels;
⑸ draw cross-over connection point of crossing:
The intersection calculations formula: the coordinate of article one line segment is x1, y1; X2, y2, the coordinate of second line segment are x3, y3; X4, y4, point of crossing coordinate are x, y;
x=((x2-x1)×(x3-x4)×(y3-y1)-x3×(x2-x1)×(y3-y4)+x1×(y2-y1)×(x3-x4))/((y2-y1)×(x3-x4)-(x2-x1)×(y3-y4));
y=((y2-y1)×(y3-y4)×(x3-x1)-y3×(y2-y1)×(x3-x4)+y1×(x2-x1)×(y3-y4))/((y2-y1)×(y3-y4)-(y2-y1)×(x3-x4));
After calculating the position of cross-over connection point of crossing, in the viewing area, in window, draw the cross-over connection display effect take radius as 10 pixels;
⑹ pel refresh demonstration:
After draw the point of crossing, when the graphical window move operation, need to recomputate the point of crossing, the cross-over connection that intersects shows follows together dynamic mobile of pel, and the cross-over connection that intersects shows that following the viewing area pel refreshes demonstration together, until whole drawing refresh show complete.
Claims (5)
1. automatic cross-over connection graphic processing method of circuit on power system, it is characterized in that: step is as follows:
⑴ whole drawing carries out the zone and divides;
⑵ primitives classification: whole pels are defined as pel and transregional pel in the zone;
⑶ primitive intersection is judged: the judgement that at first whether pel in each zone is intersected, then intersect judgement with whole pels more one by one to transregional pel;
⑷ dynamically intersection refreshes;
⑸ draw cross-over connection point of crossing: calculate position, cross-over connection point of crossing, in the viewing area, draw the cross-over connection display effect take radius as 10 pixels in window;
⑹ pel refresh demonstration: after draw the point of crossing, when the graphical window move operation, recomputate the point of crossing, the cross-over connection that intersects shows follows together dynamic mobile of pel, the cross-over connection that intersects shows that following the viewing area pel refreshes demonstration together, until whole drawing refresh show complete.
2. the automatic cross-over connection graphic processing method of circuit on power system according to claim 1, it is characterized in that: described step ⑴ specifically according to the xy coordinate of drawing, on average is divided into 10000 zones to the whole figure of magnifying.
3. the automatic cross-over connection graphic processing method of circuit on power system according to claim 1 is characterized in that: the concrete steps that described step ⑶ primitive intersection is judged are:
Whether per two line segment angles of 1. judging pel are identical;
2. judge whether two end points of every line segment drop on the both sides of another line segment;
If 3. above-mentioned 1., 2. the judged result of step is yes, two line segments of final decision intersect.
4. the automatic cross-over connection graphic processing method of circuit on power system according to claim 1 is characterized in that: described step ⑷ dynamically intersects the concrete grammar that refreshes and is:
1. when the dynamic refresh figure, only refresh the zone of demonstration, and only above-mentioned intersection is carried out in the zone of refreshing demonstration and judge;
2. dwindle when showing at figure, the line segment length that figure narrows down to demonstration does not show that the cross-over connection design sketch is to be used for improving display speed during less than 10 pixels.
5. the automatic cross-over connection graphic processing method of circuit on power system according to claim 1 is characterized in that: the intersection calculations formula that draw described step ⑸ cross-over connection point of crossing is: the coordinate of article one line segment is x1, y1; X2, y2, the coordinate of second line segment are x3, y3; X4, y4, point of crossing coordinate are x, y, then:
x=((x2-x1)×(x3-x4)×(y3-y1)-x3×(x2-x1)×(y3-y4)+x1×(y2-y1)×(x3-x4))/((y2-y1)×(x3-x4)-(x2-x1)×(y3-y4));
y=((y2-y1)×(y3-y4)×(x3-x1)-y3×(y2-y1)×(x3-x4)+y1×(x2-x1)×(y3-y4))/((y2-y1)×(y3-y4)-(y2-y1)×(x3-x4))。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310051548.4A CN103077496B (en) | 2013-02-18 | 2013-02-18 | The automatic cross-over connection graphic processing method of circuit on power system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310051548.4A CN103077496B (en) | 2013-02-18 | 2013-02-18 | The automatic cross-over connection graphic processing method of circuit on power system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103077496A true CN103077496A (en) | 2013-05-01 |
CN103077496B CN103077496B (en) | 2015-08-05 |
Family
ID=48154015
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310051548.4A Active CN103077496B (en) | 2013-02-18 | 2013-02-18 | The automatic cross-over connection graphic processing method of circuit on power system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103077496B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530483A (en) * | 2013-11-04 | 2014-01-22 | 中国电力科学研究院 | Method for drawing power grid earthquake fortification partition map |
CN110209630A (en) * | 2019-04-25 | 2019-09-06 | 广东联城住工装备信息科技有限公司 | DXF file information processing method, device, computer equipment and storage medium |
CN112861382A (en) * | 2021-03-17 | 2021-05-28 | 广东电网有限责任公司 | Method and device for drawing power line diagram in power system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1243638A (en) * | 1997-01-06 | 2000-02-02 | 德国电信股份有限公司 | Method of producing network |
CN101799837A (en) * | 2009-12-31 | 2010-08-11 | 杭州电子科技大学 | Automatic wiring method of single-line diagram for transmission network on large screen for dispatching after layout in station |
-
2013
- 2013-02-18 CN CN201310051548.4A patent/CN103077496B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1243638A (en) * | 1997-01-06 | 2000-02-02 | 德国电信股份有限公司 | Method of producing network |
CN101799837A (en) * | 2009-12-31 | 2010-08-11 | 杭州电子科技大学 | Automatic wiring method of single-line diagram for transmission network on large screen for dispatching after layout in station |
Non-Patent Citations (3)
Title |
---|
卢洵 等: "基于图形模型的配电网短路计算拓扑分析及数据生成", 《电力自动化设备》, vol. 25, no. 3, 31 March 2005 (2005-03-31), pages 67 - 71 * |
叶邦彦 等: "基于交叉点提取的工程图矢量化方法研究", 《华南理工大学学报(自然科学版)》, vol. 28, no. 8, 30 August 2008 (2008-08-30), pages 77 - 81 * |
陈明星: "基于交叉点提取的工程图表图像识别系统研究", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科级辑》, 30 April 2004 (2004-04-30), pages 138 - 928 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530483A (en) * | 2013-11-04 | 2014-01-22 | 中国电力科学研究院 | Method for drawing power grid earthquake fortification partition map |
CN103530483B (en) * | 2013-11-04 | 2015-09-23 | 中国电力科学研究院 | The method for drafting of power grid earthquake fortification partition map |
CN110209630A (en) * | 2019-04-25 | 2019-09-06 | 广东联城住工装备信息科技有限公司 | DXF file information processing method, device, computer equipment and storage medium |
CN110209630B (en) * | 2019-04-25 | 2021-06-22 | 广东联城住工装备信息科技有限公司 | DXF file information processing method and device, computer equipment and storage medium |
CN112861382A (en) * | 2021-03-17 | 2021-05-28 | 广东电网有限责任公司 | Method and device for drawing power line diagram in power system |
Also Published As
Publication number | Publication date |
---|---|
CN103077496B (en) | 2015-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102765396B (en) | Method and device for mutual redundancy of train display screens | |
CN103077496A (en) | Automatic bridging graphics processing method for power system circuit | |
CN103021262A (en) | Method and system for processing drawing of map labels | |
WO2013184472A4 (en) | Providing navigation instructions while device is in locked mode | |
KR101643216B1 (en) | Method and apparatus for testing capacitive touchscreen, and mobile terminal | |
CN101751839A (en) | System and method for positioning faults of LED pixels of LED display screen | |
CN101590865B (en) | Method for displaying transport facility and running position thereof | |
CN104477215B (en) | Vehicle operating drawing drawing method and system | |
CN103617282B (en) | Interest point attribute displaying method based on regular polygon tessellation | |
US20140343840A1 (en) | Method and System for Selectively Blending Buildings to Improve Route Visibility in a 3D Navigation System | |
CN103149713A (en) | Array panel detection circuit structure | |
CN103995669A (en) | Address book navigation bar display method and device | |
CN101799735B (en) | Primary handwriting hand input display method | |
CN107730123B (en) | Method for checking consistency of dispatching automation graph model specification | |
CN106445208B (en) | A method of the mark figure based on serial ports follows display | |
CN104090719A (en) | Method and system for display content translation according to acceleration variation for mobile terminal | |
CN202548254U (en) | LCD (liquid crystal display) screen detecting device capable of displaying detection graphics | |
CN111209448B (en) | Automatic generation method of train number graph of rail transit station yard graph display system | |
CN202548897U (en) | Three-dimensional visual management system | |
CN109816752A (en) | Yard drawing drawing method | |
CN101038599A (en) | Method for displaying name and distance of building axis line on computer screen | |
CN203923710U (en) | A kind of capacity checking apparatus | |
CN104635108A (en) | Current abrupt change display method and device | |
CN108287939A (en) | A kind of transformer becomes the method for drafting and system of volume primitive | |
CN202548255U (en) | Short-circuit detection pen for LCD (liquid crystal display) screen |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |