CN103646091B - A kind of generation method and device of grid graph data - Google Patents

A kind of generation method and device of grid graph data Download PDF

Info

Publication number
CN103646091B
CN103646091B CN201310693556.9A CN201310693556A CN103646091B CN 103646091 B CN103646091 B CN 103646091B CN 201310693556 A CN201310693556 A CN 201310693556A CN 103646091 B CN103646091 B CN 103646091B
Authority
CN
China
Prior art keywords
data
file
graphic
graph
grid graph
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
Application number
CN201310693556.9A
Other languages
Chinese (zh)
Other versions
CN103646091A (en
Inventor
曹占峰
刘海涛
田田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Beijing Guodiantong Network Technology Co Ltd
Beijing China Power Information Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Beijing China Power Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Beijing China Power Information Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201310693556.9A priority Critical patent/CN103646091B/en
Publication of CN103646091A publication Critical patent/CN103646091A/en
Application granted granted Critical
Publication of CN103646091B publication Critical patent/CN103646091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Water Supply & Treatment (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

This application discloses the generation method and device of a kind of grid graph data, it is applied to the data repository preset, described data repository includes library and graphic data base, described library includes at least one graphic file, described graphic data base includes the associated data of each described graphic file, described method includes: receive the graphic hotsopt instruction of user, and the instruction of described graphic hotsopt includes pattern identification and graphics edition information;In described library, obtain the targeted graphical file corresponding with described pattern identification, and in described graphic data base, obtain the target association data corresponding with described pattern identification;According to described target association data and described targeted graphical file, generate electrical network scene graph;According to described graphics edition information, described electrical network scene graph is edited, obtains grid graph data.

Description

A kind of generation method and device of grid graph data
Technical field
The application relates to Electric Power Network Planning technical field, particularly to the generation of a kind of grid graph data Method and device.
Background technology
In existing various Study on Power Grid Planning application system, relate to Electric Power Network Planning graphics edition merit Can, carry out secondary development customization on the basis of being mostly based on GIS GIS-Geographic Information System, and user is each When generating grid graph data, it is required to again download on grid graph server in client answer With program installation and operation, it is achieved the generation of grid graph data, it is, existing grid graph Data genaration scheme realizes based on CS framework, it is impossible to be applied to other kinds B/S framework operation system In, reduce grid graph data and generate the application of scheme, and for ensureing the grid graph generated At first, in client, user needs repeatedly the application journey of the renewal in download server to the version of data Sequence so that it is inefficient that grid graph data generates.
Summary of the invention
Technical problems to be solved in this application be to provide a kind of grid graph data generation method and Device, in order to solve the generation scheme of grid graph data in prior art, for real based on CS framework Existing, it is impossible to be applied in other kinds B/S framework operation system, reduce grid graph data generation side The technical problem of the application of case, also solves the generation scheme of grid graph data in prior art For ensureing the version of the grid graph data of generation at first, in client, user needs repeatedly to download clothes The application program of the renewal on business device so that the inefficient technology that grid graph data generates is asked Topic.
This application provides a kind of generation method of grid graph data, be applied to the data resource preset Storehouse, described data repository includes that library and graphic data base, described library include at least one Individual graphic file, described graphic data base includes the associated data of each described graphic file, described Method includes:
Receiving the graphic hotsopt instruction of user, the instruction of described graphic hotsopt includes that pattern identification and figure are compiled The information of collecting;
The targeted graphical file corresponding with described pattern identification is obtained in described library, and in institute State the target association data that in graphic data base, acquisition is corresponding with described pattern identification;
According to described target association data and described targeted graphical file, generate electrical network scene graph;
According to described graphics edition information, described electrical network scene graph is edited, obtains grid graph Data.
Said method, it is preferred that described targeted graphical file is vector graphics file, described target is closed Connection data include the annexation of its corresponding diagram shape file;
Wherein, described according to described target association data and described targeted graphical file, generate electrical network field Jing Tu, including:
Described targeted graphical file is attached according to the annexation in described target association data Combination, obtains electrical network scene graph, and described electrical network scene graph is vectogram.
Said method, it is preferred that described graphics edition information includes at least one edit instruction;
Wherein, according to described graphics edition information, described electrical network scene graph is edited, obtains electricity Net graph data, including:
Described electrical network scene graph is performed the operational motion corresponding with each described edit instruction respectively, Obtain grid graph data.
Said method, it is preferred that described obtain grid graph data after, described method also includes:
Described grid graph data is carried out graphical analysis, obtains analysis result;
Graphic file or its associated data is had in described analysis result shows described grid graph data When changing, in described grid graph data, extract the graphic file and/or its changed Associated data;
The graphic file in described library is updated according to the graphic file extracted, and/or, foundation The associated data extracted updates the associated data in described graphic data base.
Said method, it is preferred that described obtain grid graph data after, described method also includes:
Described grid graph data is shown with default page display format.
Present invention also provides the generating means of a kind of grid graph data, be applied to the data money preset Storehouse, source, described data repository includes that library and graphic data base, described library include at least One graphic file, described graphic data base includes the associated data of each described graphic file, institute State device to include:
Instruction reception unit, for receiving the graphic hotsopt instruction of user, described graphic hotsopt instruction bag Include pattern identification and graphics edition information;
File obtaining unit, for obtaining the mesh corresponding with described pattern identification in described library Mark on a map shape file;
Data capture unit, corresponding with described pattern identification for obtaining in described graphic data base Target association data;
Scene graph signal generating unit, is used for according to described target association data and described targeted graphical file, Generate electrical network scene graph;
Scene graph edit cell, for according to described graphics edition information, enters described electrical network scene graph Edlin, obtains grid graph data.
Said apparatus, it is preferred that described targeted graphical file is vector graphics file, described target is closed Connection data include the annexation of its corresponding diagram shape file;
Wherein, described scene graph signal generating unit includes:
Vectogram generates subelement, is used for described targeted graphical file according to described target association data In annexation be attached combination, obtain electrical network scene graph, described electrical network scene graph is vector Figure.
Said apparatus, it is preferred that described graphics edition information includes at least one edit instruction;
Wherein, described scene graph edit cell includes:
Action executing subelement, for performing respectively to refer to each described editor to described electrical network scene graph Make corresponding operational motion, obtain grid graph data.
Said apparatus, it is preferred that also include:
Graphical analysis unit, for described scene graph edit cell obtain described grid graph data it After, described grid graph data is carried out graphical analysis, obtains analysis result;
Change detection unit, for having figure in described analysis result shows described grid graph data When file or its associated data change, in described grid graph data, extraction changes Graphic file and/or its associated data;
Change updating block, for updating the figure in described library according to the graphic file extracted File, and/or, update the associated data in described graphic data base according to the associated data extracted.
Said apparatus, it is preferred that also include:
Data display unit, for described scene graph edit cell obtain described grid graph data it After, described grid graph data is shown with default page display format.
From such scheme, the generation method of a kind of grid graph data that the application provides and dress Putting, be applied to the data repository preset, this data repository includes by library and figure figurate number According to storehouse, this document storehouse arranges graphic file, graphic data base arranges the incidence number of graphic file According to, the application after the instruction receiving user and need to carry out graph data generation, in figure figurate number According to storehouse obtains with instruct in target association data corresponding to pattern identification and obtain in library with The targeted graphical file that pattern identification is corresponding, and according to the target association data got and target figure Shape file generates complete electrical network scene graph, afterwards, according to the graphics edition information in instruction to this Electrical network scene graph is edited, and is met the grid graph data of user's request, complete according to Family demand sets up grid graph model, it is achieved the application purpose.The application does not limit data resource The setting area in storehouse, therefore, the data repository preset can be arranged in server, thus, The application, while being applicable to CS framework operation system, is equally applicable to other kinds B/S framework Operation system, thus improves the application and realizes the applied of grid graph data generation scheme.
Meanwhile, the application in actual applications, occurs when graphic file updates or its associated data updates, Can directly update in described data repository, thus, user carries out electrical network according to himself demand When graph data generates, in data repository, directly obtain graphic file and the pass thereof of version at first Connection data etc., when the application is applied to B/S framework operation system, it is not necessary to remove down loading updating every time Application program install, the graphic file needed for only need to being obtained by browser and incidence number thereof According to etc., finally realize the generation of grid graph data, thus, ensure graphic file and association thereof While versions of data is up-to-date, improve the formation efficiency of grid graph data.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present application, embodiment will be retouched below In stating, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below It is only some embodiments of the application, for those of ordinary skill in the art, is not paying On the premise of creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The flow process of the generation embodiment of the method one of a kind of grid graph data that Fig. 1 provides for the application Figure;
Fig. 2 is the application example figure of the embodiment of the present application;
The flow process of the generation embodiment of the method two of a kind of grid graph data that Fig. 3 provides for the application Figure;
The flow process of the generation embodiment of the method three of a kind of grid graph data that Fig. 4 provides for the application Figure;
The structure of the generating means embodiment four of a kind of grid graph data that Fig. 5 provides for the application Schematic diagram;
The structure of the generating means embodiment five of a kind of grid graph data that Fig. 6 provides for the application Schematic diagram;
The structure of the generating means embodiment six of a kind of grid graph data that Fig. 7 provides for the application Schematic diagram;
The structure of the generating means embodiment six of a kind of grid graph data that Fig. 8 provides for the application Schematic diagram;
The structure of the generating means embodiment seven of a kind of grid graph data that Fig. 9 provides for the application Schematic diagram;
The generation system of a kind of based on B/S framework the grid graph data that Figure 10 provides for the application The system architecture schematic diagram of embodiment eight.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, to the technical scheme in the embodiment of the present application It is clearly and completely described, it is clear that described embodiment is only that the application part is real Execute example rather than whole embodiments.Based on the embodiment in the application, ordinary skill The every other embodiment that personnel are obtained under not making creative work premise, broadly falls into this The scope of application protection.
With reference to Fig. 1, the stream of the generation embodiment of the method one of a kind of grid graph data provided for the application Cheng Tu, wherein, described method is applied to the data repository preset, and described data repository can be arranged In server end, user can realize described data repository by being installed on the browser of client Access.
Wherein, described data repository can include library and graphic data base, in described library Can include graphic file, described graphic file can be understood as figure masterplate file, pel definition literary composition The disk file that the figures such as the graphic file that part maybe can import or derive are relevant.As described graphic file can Think that transformer station, power plant, transmission line of electricity etc. constitute the equipment drawing shape file etc. of electrical network, wherein, described In graphic file in addition to including its figure, also include the positional information of figure, attribute information and equipment The information such as electric pressure.
And described graphic data base can include the associated data of each described graphic file, described association Data may include that graphic file the index information concordance list of ID grade (can be understood as identify), Topology information (can be understood as annexation etc.) between graphic file, the node of graphic file are various Attribute etc..
Wherein, the method in the embodiment of the present application one may comprise steps of:
Step 101: receive the graphic hotsopt instruction of user, figure can be included in the instruction of described graphic hotsopt Shape mark and graphics edition information.
Wherein, described pattern identification refers to the required graphic file obtained of user, such as, user's requirement Open the electric network model figure specified, pattern identification i.e. screening conditions: put into operation before the end of the year 2012, voltage etc. Level 500KV and above substation equipment.
It should be noted that in described step 101 can by with the clothes being provided with described data repository The browser that business device is connected realizes the acquisition instructing described graphic hotsopt.
Step 102: obtain the targeted graphical file corresponding with described pattern identification in described library, And in described graphic data base, obtain the target association data corresponding with described pattern identification.
Wherein, described step 102 can be carried out one by one according to described pattern identification in described library The mode of coupling, obtains described targeted graphical file;Described targeted graphical file can be utilized at described figure Graphic data storehouse obtains corresponding target association data.
Step 103: according to described target association data and described targeted graphical file, generates electrical network scene Figure.
Wherein, can be by by described targeted graphical file and described target association number in described step 103 According to being combined, obtain electrical network scene graph.
Step 104: according to described graphics edition information, described electrical network scene graph is edited, obtains Grid graph data.
Wherein, described graphics edition information can be empty, also just say, in described step 103 The electrical network scene graph generated is not any editor, directly as described grid graph data;Described figure As editor's information including to each graphic file and associated data thereof in described electrical network scene graph The graphics edition information such as pattern coloring, figure layer association and scene management, topological analysis, inserting drawing merge, The pattern analysis information such as data linkage.
From such scheme, the generation embodiment of the method for a kind of grid graph data that the application provides One, it is applied to the data repository preset, this data repository includes by library and figure figurate number According to storehouse, this document storehouse arranges graphic file, graphic data base arranges the incidence number of graphic file According to, the application after the instruction receiving user and need to carry out graph data generation, in figure figurate number According to storehouse obtains with instruct in target association data corresponding to pattern identification and obtain in library with The targeted graphical file that pattern identification is corresponding, and according to the target association data got and target figure Shape file generates complete electrical network scene graph, afterwards, according to the graphics edition information in instruction to this Electrical network scene graph is edited, and is met the grid graph data of user's request, complete according to Family demand sets up grid graph model, it is achieved the embodiment of the present application one purpose.The embodiment of the present application one In do not limit the setting area of data repository, therefore, the data repository preset can be arranged at In server, thus, the embodiment of the present application one is while being applicable to CS framework operation system, same Sample is applicable to other kinds B/S framework operation system, thus improves the embodiment of the present application one and realizes electrical network Graph data generates the applied of scheme.
Meanwhile, the embodiment of the present application one in actual applications, occurs that graphic file updates or its incidence number According to when updating, can directly update in described data repository, thus, user needs according to himself Ask carry out grid graph data generate time, in data repository, directly obtain the figure of version at first File and associated data etc. thereof, when the embodiment of the present application one is applied to B/S framework operation system, no The application program every time removing down loading updating is needed to install, needed for only need to being obtained by browser Graphic file and associated data etc. thereof, finally realize the generation of grid graph data, thus, protecting Card graphic file and associated data version up-to-date while, improve grid graph data generation effect Rate.
Wherein, the graphic file in described library can be vector graphics file, thus, described step The targeted graphical file got in rapid 102 can be vector graphics file, such as SVG form or G Form etc..It should be noted that the graphic file in described library can be according to electric network model In the graphic file of relevant primitive generating of various equipment, it is also possible to for user's online editing definition The graphic file that new metafile generates, it is also possible to for being combined according to existing graphic file or tearing open The new graphic file got, it is also possible to the user for the SVG form imported or G form makes by oneself Justice graphic file etc..
It should be noted that described target association data can be the connection pass of its corresponding diagram shape file Systems etc., as the first graphic file and second graph file have topological connection relation etc..
Now, step 103 described in above-described embodiment can be accomplished by:
Described targeted graphical file is attached according to the annexation in described target association data Combination, obtains electrical network scene graph.
Wherein, described electrical network scene graph is the targeted graphical file generated of described vector graphics file, with Sample is vectogram.
Such as, described targeted graphical file is voltmeter graphic file, power pattern file and resistance view Shape file, its each self-corresponding target association data can be: voltmeter is in parallel with a resistor, power supply The annexations such as in series with a resistor, resistance and power sources in series, in the most described step 103 particularly as follows: Described voltmeter graphic file, power pattern file and resistance pattern file are connected according to these and closes System is attached combination, obtains electrical network scene graph, as shown in Figure 2.
In above-described embodiment, described graphics edition information can include at least one edit instruction, each Described edit instruction is provided with its each self-corresponding edit operation action, as split, merge, scheming The edit operation actions such as shape coloring, figure layer association, now, described step 104 can be by following Mode implements:
Described electrical network scene graph is performed the operational motion corresponding with each described edit instruction respectively, Obtain grid graph data.
Such as, described electrical network scene graph is carried out pattern coloring, graphics edition, graphics edition, scene The operation such as editor, topological analysis, inserting drawing merging, data linkage is dynamic, and then is met use The grid graph data of family demand.
With reference to Fig. 3, the generation embodiment of the method two of a kind of grid graph data provided for the application Flow chart, wherein, after described step 104, described method can also comprise the following steps:
Step 105: described grid graph data is carried out graphical analysis, obtains analysis result.
Wherein, to refer to analyze this grid graph data corresponding for the graphical analysis in described step 105 Whether there is graphics edition between electrical network scene graph, if it is, show in described grid graph data Graphic file or associated data change renewal.
Step 106: have in described analysis result shows described grid graph data graphic file or its When associated data changes, described grid graph data is extracted the graphic file changed And/or associated data.
Wherein, described step 106 refers to show described grid graph data phase at described analysis result For when in the electrical network scene graph of its correspondence, only graphic file changes, at described grid graph The graphic file that extracting data changes, shows described grid graph number at described analysis result According to relative to when in the electrical network scene graph of its correspondence, the associated data of only graphic file changes, In described grid graph data, extract the associated data changed, show at described analysis result Described grid graph data has graphic file and associated data equal relative to the electrical network scene graph of its correspondence When changing, described grid graph data is extracted the graphic file changed and incidence number According to.
Step 107: update the graphic file in described library according to the graphic file extracted, and / or, update the associated data in described graphic data base according to the associated data extracted.
During it should be noted that extract, in described step 106, the graphic file changed, Described step 107 updates the graphic file in described library according to the graphic file extracted, Concrete, the graphic file extracted can be replaced in described library and there is same pattern identification Graphic file;When extracting, in described step 106, the associated data changed, described Step 107 updates the associated data in described graphic data base according to the associated data extracted, Concrete, the associated data extracted is replaced in described graphic data base there is same pattern identification Associated data;The graphic file changed and associated data is extracted in described step 106 Time, in described step 107, update the figure in described library according to the graphic file extracted File, and update the associated data in described graphic data base, tool according to the associated data extracted Body, the graphic file extracted is replaced the figure in described library with same pattern identification File, and the associated data the extracted described graphic data base of replacement will have same pattern identification Associated data.
From in such scheme, by compiling through foundation user's request in the embodiment of the present application Graphic file and the associated data of collecting change are updated in library and the graphic data base of correspondence, real The now renewal to the data repository being arranged in server, it is ensured that meet user's request and generate In grid graph data, graphic file and associated data are latest edition.
With reference to Fig. 4, the generation embodiment of the method three of a kind of grid graph data provided for the application Flow chart, wherein, after described step 104, described method can also comprise the following steps:
Step 108: described grid graph data is shown with default page display format.
Wherein, described default page display format can be web page display format.Namely Say, described grid graph data is presented to user with the form of web page by described step 108.
With reference to Fig. 5, the generating means embodiment four of a kind of grid graph data provided for the application Structural representation, is applied to the data repository preset, and described data repository can be arranged at clothes Business device end, user can realize described data repository by being installed on the browser of client Access.
Wherein, described data repository can include library and graphic data base, described file Can include graphic file in storehouse, described graphic file can be understood as figure masterplate file, figure The disk file that the figures such as the graphic file that unit's definition file maybe can import or derive are relevant.As institute Stating graphic file can be the equipment figure literary composition that transformer station, power plant, transmission line of electricity etc. constitute electrical network Parts etc., wherein, in described graphic file in addition to including its figure, also include the position of figure The information such as information, attribute information and equipment electric pressure.
And described graphic data base can include the associated data of each described graphic file, described Associated data may include that the index information of graphic file (can be understood as identifying the rope of ID grade Draw table), the topology information (can be understood as annexation etc.) between graphic file, graphic file The each attribute of node etc..
Wherein, described device may include that
Instruction reception unit 501, for receiving the graphic hotsopt instruction of user, described graphic hotsopt refers to Order includes pattern identification and graphics edition information.
Wherein, described pattern identification refers to the required graphic file obtained of user, such as, user's requirement Open the electric network model figure specified, pattern identification i.e. screening conditions: put into operation before the end of the year 2012, voltage etc. Level 500KV and above substation equipment.
It should be noted that in described instruction reception unit 501 can by be provided with described data provide The browser that the server in storehouse, source is connected realizes the acquisition instructing described graphic hotsopt.
File obtaining unit 502, corresponding with described pattern identification for obtaining in described library Targeted graphical file.
Data capture unit 503, for obtaining and described pattern identification phase in described graphic data base Corresponding target association data.
Wherein, can be according to described figure mark in described library in described file obtaining unit 502 Know the mode mated one by one, obtain described targeted graphical file;Described data capture unit 503 Described targeted graphical file can be utilized to obtain corresponding target association in described graphic data base Data.
Scene graph signal generating unit 504, for according to described target association data and described targeted graphical literary composition Part, generates electrical network scene graph.
Wherein, can be by by described targeted graphical file and institute in described scene graph signal generating unit 504 State target association data to be combined, obtain electrical network scene graph.
Scene graph edit cell 505, for according to described graphics edition information, to described electrical network scene Figure is edited, and obtains grid graph data.
Wherein, described graphics edition information can be empty, also just say, described scene graph edit cell 505 pairs of electrical network scene graph generated through described scene graph signal generating unit 504 are not any editor, directly Connect as described grid graph data;Described picture editting's information can include described electrical network field In scape figure each graphic file and the graphics edition information such as the pattern coloring of associated data, figure layer association thereof and The pattern analysis information such as the merging of scene management, topological analysis, inserting drawing, data linkage.
From such scheme, the generating means embodiment of a kind of grid graph data that the application provides Four, it is applied to the data repository preset, this data repository includes by library and figure figurate number According to storehouse, this document storehouse arranges graphic file, graphic data base arranges the incidence number of graphic file According to, the application after the instruction receiving user and need to carry out graph data generation, in figure figurate number According to storehouse obtains with instruct in target association data corresponding to pattern identification and obtain in library with The targeted graphical file that pattern identification is corresponding, and according to the target association data got and target figure Shape file generates complete electrical network scene graph, afterwards, according to the graphics edition information in instruction to this Electrical network scene graph is edited, and is met the grid graph data of user's request, complete according to Family demand sets up grid graph model, it is achieved the embodiment of the present application four purpose.The embodiment of the present application four In do not limit the setting area of data repository, therefore, the data repository preset can be arranged at In server, thus, the embodiment of the present application four is while being applicable to CS framework operation system, same Sample is applicable to other kinds B/S framework operation system, thus improves the embodiment of the present application one and realizes electrical network Graph data generates the applied of scheme.
Meanwhile, the embodiment of the present application four in actual applications, occurs that graphic file updates or its incidence number According to when updating, can directly update in described data repository, thus, user needs according to himself Ask carry out grid graph data generate time, in data repository, directly obtain the figure of version at first File and associated data etc. thereof, when the embodiment of the present application four is applied to B/S framework operation system, no The application program every time removing down loading updating is needed to install, needed for only need to being obtained by browser Graphic file and associated data etc. thereof, finally realize the generation of grid graph data, thus, protecting Card graphic file and associated data version up-to-date while, improve grid graph data generation effect Rate.
Wherein, the graphic file in institute's library can be vector graphics file, thus, described file The targeted graphical file that acquiring unit 502 gets can be vector graphics file, such as SVG form Or G form etc..It should be noted that the graphic file in described library can be according to electrical network The graphic file of the relevant primitive generating of various equipment in model, it is also possible to fixed for user's online editing The graphic file that the new metafile of justice generates, it is also possible to for being combined according to existing graphic file Or split the new graphic file obtained, it is also possible to for the SVG form imported or the user of G form Self-defining image shape file etc..
It should be noted that described target association data can be the connection pass of its corresponding diagram shape file Systems etc., as the first graphic file and second graph file have topological connection relation etc..
Wherein, with reference to Fig. 6, for the generating means enforcement of a kind of grid graph data that the application provides The structural representation of example five, wherein, described scene graph signal generating unit 504 can pass through following functions Module realizes:
Vectogram generates subelement 541, is used for described targeted graphical file according to described target association Annexation in data is attached combination, obtains electrical network scene graph.
Wherein, described electrical network scene graph is the targeted graphical file generated of described vector graphics file, with Sample is vectogram.
Such as, described targeted graphical file is voltmeter graphic file, power pattern file and resistance view Shape file, its each self-corresponding target association data can be: voltmeter is in parallel with a resistor, power supply The annexations such as in series with a resistor, resistance and power sources in series, the most described scene graph signal generating unit 504 Described voltmeter graphic file, power pattern file and resistance pattern file are connected according to these and closes System is attached combination, obtains electrical network scene graph, as shown in Figure 2.
In above-described embodiment, described graphics edition information includes at least one edit instruction, each described Being provided with its each self-corresponding edit operation action in edit instruction, as split, merging, figure The edit operation actions such as color, figure layer association, now, with reference to Fig. 7, a kind of electricity provided for the application The structural representation of the generating means embodiment six of net graph data, wherein, described scene graph editor Unit 505 can be realized by following functions module:
Action executing subelement 551, for performing respectively and each described volume described electrical network scene graph Collect the operational motion that instruction is corresponding, obtain grid graph data.
Such as, described electrical network scene graph is carried out pattern coloring, graphics edition, graphics edition, scene The operation such as editor, topological analysis, inserting drawing merging, data linkage is dynamic, and then is met use The grid graph data of family demand.
With reference to Fig. 8, the generating means embodiment six of a kind of grid graph data provided for the application Structural representation, wherein, described device can also include:
Graphical analysis unit 506, for obtaining described grid graph number at described scene graph edit cell According to afterwards, described grid graph data is carried out graphical analysis, obtains analysis result.
Wherein, the graphical analysis of described graphical analysis unit 506 refer to analyze this grid graph data with Whether there is graphics edition, if it is, show described grid graph between its corresponding electrical network scene graph Graphic file in data or associated data change renewal.
Change detection unit 507, for having in described analysis result shows described grid graph data When graphic file or associated data change, in described grid graph data, extract and become The graphic file changed and/or associated data.
Wherein, described change detection unit 507 refers to: show described electrical network figure at described analysis result Graphic data is relative to when in the electrical network scene graph of its correspondence, only graphic file changes, described Grid graph data is extracted the graphic file changed, shows described electricity at described analysis result Net graph data occurs relative to the associated data only having graphic file in the electrical network scene graph of its correspondence During change, described grid graph data is extracted the associated data changed, in described parsing Result shows that described grid graph data has graphic file and pass relative to the electrical network scene graph of its correspondence When connection data all change, described grid graph data is extracted the graphic file changed And associated data.
Change updating block 508, for updating in described library according to the graphic file extracted Graphic file, and/or, update the association in described graphic data base according to the associated data extracted Data.
It should be noted that extract, at described change detection unit 507, the graphic file changed Time, described change updating block 508 updates in described library according to the graphic file extracted Graphic file, concrete, can be same by the graphic file the extracted described library of replacement has The graphic file of one pattern identification;The pass changed is extracted at described change detection unit 507 During connection data, described change updating block 508 updates described figure according to the associated data extracted Associated data in data base, concrete, the associated data extracted is replaced described graph data Storehouse has the associated data of same pattern identification;Extract at described change detection unit 507 and send out When the graphic file of changing and associated data, described change updating block 508 is according to extracting Graphic file updates the graphic file in described library, and updates according to the associated data extracted Associated data in described graphic data base, concrete, the graphic file extracted is replaced described Library has the graphic file of same pattern identification, and the associated data extracted is replaced institute State the associated data in graphic data base with same pattern identification.
From in such scheme, by compiling through foundation user's request in the embodiment of the present application Graphic file and the associated data of collecting change are updated in library and the graphic data base of correspondence, real The now renewal to the data repository being arranged in server, it is ensured that meet user's request and generate In grid graph data, graphic file and associated data are latest edition.
With reference to Fig. 9, the generating means embodiment seven of a kind of grid graph data provided for the application Structural representation, wherein, described device can also include:
Data display unit 509, for obtaining described grid graph number at described scene graph edit cell According to afterwards, described grid graph data is shown with default page display format.
Wherein, described default page display format can be web page display format.Namely Saying, described grid graph data is represented by described data display unit 509 with the form of web page To user.
With reference to Figure 10, for the generation of a kind of based on B/S framework the grid graph data that the application provides The system architecture schematic diagram of system embodiment eight, wherein, described system can include above-described embodiment Described in the generating means of grid graph data, the data repository in described device is arranged at clothes Business device end, user calls described device by browser and realizes the generation of grid graph data.
As shown in Figure 10, the embodiment of the present application is based on Electric Power Network Planning platform, in its data set stratification Data resource layer, underlying server layer, Business Logic, application service layer can be included and represent Layer, wherein:
Described data resource layer: be responsible for providing data supporting required when running, comprise graphic data base And file system;
Described infrastructure service layer: be responsible in the way of interface to serve upper layers, comprise data access Service, Map Services, graphical services, coloring service etc. service, wherein, and above-mentioned infrastructure service layer And SotowerDE platform and GIS(Geographic can be passed through between described data resource layer Information System, GIS-Geographic Information System) realize;
Described Business Logic: be responsible for the realization of each service logic, contain and exhibition platform business is patrolled Collect the various assemblies carrying out processing, such as geography information correspondence assembly, graphics edition correspondence group in Figure 10 Part, pattern coloring correspondence assembly and the figure corresponding assembly of application etc.;
Described application service layer: be responsible for externally providing service with the form of interface, accesses including map and connects Mouth and figure access interface, it is provided that map is accessed and operation, the interface of figure associative operation;
The described layer that represents: provide various functions with the form of Web page.
It should be noted that above-mentioned geography information correspondence assembly can pass through GIS GIS-Geographic Information System Realize.
From in such scheme, Electric Power Network Planning is the important component part of Power System Planning, its Business is the load growth according to planning period and power source planning scheme determines corresponding optimal electrical network knot Structure, to meet the requirement that economy reliably transmits electric power.Electric Power Network Planning determines that power network construction project Research-on-research, directly determine reliability and the economic benefit of electrical network, need substantial amounts of figure to divide Analysis is supported, needs a complete figure system to support, and needs to be combined with GIS-Geographic Information System , possess Dynamic graphic display and the figure rapid modeling platform of interactive operation.Therefore, the application System in embodiment is planned towards power system interactive mode, simulation calculation and other related service, Use JavaEE technology path, it then follows MVC (model-view-controller, Model-View-control Device processed) framework develops, and using JavaScript is system external interface, it is provided that data access takes Business, Map Services, graphical services, coloring service, externally provide map access interface and figure to visit Ask that interface calls for other system, meet the multi-stage user such as general headquarters (branch), province and district city, county Planning and designing, meet the application such as major network planning, distribution planning, case study.
As shown in Figure 10, the system in the embodiment of the present application is applied towards power system, and geographical Information system combines, it is provided that the function of comprehensive and abundant, it is provided that with time, space and electric pressure etc. Dimension shows Net Frame of Electric Network change procedure;Display thematic map;Etc. high coloring;Operational factor presents Proprietary feature.System provides GIS-Geographic Information System and configuration tool thereof, manages each geographic area Map, it is allowed to the importing of map, display configuration;There is provided map denotation, search, range measurement, Area measurement, scale show, Eagle-eye Map shows, translate Zoom display, mouse position shows Function;Set up a set of graphics edition subsystem, it is achieved graphics edition, Graphic thinking, pattern coloring, The functions such as layer management;Realize a set of extendible service application subsystem, it is achieved scene management, The pattern analysis functions such as topological analysis, multidimensional analysis, inserting drawing merging, data linkage.
From above, grid equipment graphical information is tied mutually by the embodiment of the present application with geography information Closing, sing on web browser carries out grid equipment figure and quickly generates (modeling);Offer can independently make Graphical modeling platform, API bag based on JavaScript is provided simultaneously, can realize with all kinds of B/S framework operation system carries out Seamless integration-;Pattern coloring is combined with graphics edition, it is achieved that Operation of power networks parameter presents in real time, editing run integration.
It should be noted that each embodiment in this specification all uses the mode gone forward one by one to describe, What each embodiment stressed is the difference with other embodiments, between each embodiment Identical similar part sees mutually.
Finally, in addition it is also necessary to explanation, in this article, the relation art of such as first and second or the like Language is used merely to separate an entity or operation with another entity or operating space, and not necessarily Require or imply relation or the order that there is any this reality between these entities or operation.And And, term " includes ", " comprising " or its any other variant are intended to the bag of nonexcludability Contain, so that include that the process of a series of key element, method, article or equipment not only include those Key element, but also include other key elements being not expressly set out, or also include for this process, The key element that method, article or equipment are intrinsic.In the case of there is no more restriction, by statement The key element that " including one ... " limits, it is not excluded that include the process of described key element, method, Article or equipment there is also other identical element.
Above the generation method and device of a kind of grid graph data provided herein is carried out Being discussed in detail, principle and the embodiment of the application are explained by specific case used herein Stating, the explanation of above example is only intended to help and understands the present processes and core concept thereof; Simultaneously for one of ordinary skill in the art, according to the thought of the application, in specific embodiment party All will change in formula and range of application, in sum, this specification content should not be construed as Restriction to the application.

Claims (4)

1. the generation method of a grid graph data, it is characterised in that be applied to the data money preset Storehouse, source, described data repository includes that library and graphic data base, described library include at least one Individual graphic file, described graphic data base includes the associated data of each described graphic file, described side Method includes:
Receiving the graphic hotsopt instruction of user, the instruction of described graphic hotsopt includes that pattern identification and figure are compiled The information of collecting;
The targeted graphical file corresponding with described pattern identification is obtained in described library, and in institute State the target association data that in graphic data base, acquisition is corresponding with described pattern identification;According to described mesh Mark associated data and described targeted graphical file, generate electrical network scene graph;
According to described graphics edition information, described electrical network scene graph is edited, obtains grid graph Data;
Wherein, the described targeted graphical that acquisition is corresponding with described pattern identification in described library literary composition Part includes:
Described pattern identification is mated by described library one by one, and then obtains and described figure Identify corresponding targeted graphical file;Wherein, described targeted graphical file is vector graphics file, Described target association data include the annexation of its corresponding diagram shape file;
Wherein, described according to described target association data and described targeted graphical file, generate electrical network field Jing Tu, including:
Described targeted graphical file is attached group according to the annexation in described target association data Closing, obtain electrical network scene graph, described electrical network scene graph is vectogram;
Described graphics edition information includes at least one edit instruction;
Wherein, according to described graphics edition information, described electrical network scene graph is edited, obtains electricity Net graph data, including:
Described electrical network scene graph is performed the operational motion corresponding with each described edit instruction respectively, Obtain grid graph data;
Described obtain grid graph data after, described method also includes:
Described grid graph data is carried out graphical analysis, obtains analysis result;
Graphic file or associated data is had to occur in described analysis result shows described grid graph data During change, in described grid graph data, extract the graphic file and/or associated data changed;
The graphic file in described library is updated according to the graphic file extracted, and/or, according to carrying The associated data got updates the associated data in described graphic data base.
Method the most according to claim 1, it is characterised in that obtain grid graph number described According to afterwards, described method also includes:
Described grid graph data is shown with default page display format.
3. the generating means of a grid graph data, it is characterised in that be applied to the data money preset Storehouse, source, described data repository includes that library and graphic data base, described library include at least one Individual graphic file, described graphic data base includes the associated data of each described graphic file, described dress Put and include:
Instruction reception unit, for receiving the graphic hotsopt instruction of user, described graphic hotsopt instruction bag Include pattern identification and graphics edition information;
File obtaining unit, for obtaining the mesh corresponding with described pattern identification in described library Mark on a map shape file;
Data capture unit, corresponding with described pattern identification for obtaining in described graphic data base Target association data;
Scene graph signal generating unit, is used for according to described target association data and described targeted graphical file, Generate electrical network scene graph;
Scene graph edit cell, for according to described graphics edition information, enters described electrical network scene graph Edlin, obtains grid graph data;
Wherein, described file obtaining unit obtains corresponding with described pattern identification in described library Targeted graphical file include:
Described pattern identification is mated by described library one by one, and then obtains and described figure Identify corresponding targeted graphical file;
Wherein, described targeted graphical file is vector graphics file, and described target association data include it The annexation of corresponding diagram shape file;
Wherein, described scene graph signal generating unit includes:
Vectogram generates subelement, is used for described targeted graphical file according to described target association data In annexation be attached combination, obtain electrical network scene graph, described electrical network scene graph is vectogram;
Described graphics edition information includes at least one edit instruction;
Wherein, described scene graph edit cell includes:
Action executing subelement, for performing respectively to refer to each described editor to described electrical network scene graph Make corresponding operational motion, obtain grid graph data;
The generating means of described grid graph data, also includes:
Graphical analysis unit, for described scene graph edit cell obtain described grid graph data it After, described grid graph data is carried out graphical analysis, obtains analysis result;
Change detection unit, for having figure in described analysis result shows described grid graph data When file or associated data change, in described grid graph data, extract the figure changed Shape file and/or associated data;
Change updating block, for updating the figure in described library according to the graphic file extracted File, and/or, update the associated data in described graphic data base according to the associated data extracted.
Device the most according to claim 3, it is characterised in that also include:
Data display unit, for described scene graph edit cell obtain described grid graph data it After, described grid graph data is shown with default page display format.
CN201310693556.9A 2013-12-17 2013-12-17 A kind of generation method and device of grid graph data Active CN103646091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310693556.9A CN103646091B (en) 2013-12-17 2013-12-17 A kind of generation method and device of grid graph data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310693556.9A CN103646091B (en) 2013-12-17 2013-12-17 A kind of generation method and device of grid graph data

Publications (2)

Publication Number Publication Date
CN103646091A CN103646091A (en) 2014-03-19
CN103646091B true CN103646091B (en) 2016-10-12

Family

ID=50251305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310693556.9A Active CN103646091B (en) 2013-12-17 2013-12-17 A kind of generation method and device of grid graph data

Country Status (1)

Country Link
CN (1) CN103646091B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063806B (en) * 2014-06-10 2017-04-05 国家电网公司 The method of real time inspection power system line chart on mobile terminals
CN104616099A (en) * 2014-12-31 2015-05-13 国家电网公司 Power grid tide data comparison and analysis graphic display method
CN105227368A (en) * 2015-10-13 2016-01-06 国网四川省电力公司信息通信公司 A kind of rendering method of power communication allocation plan and device
CN105914732A (en) * 2016-04-13 2016-08-31 国网冀北电力有限公司电力科学研究院 High-voltage power grid theoretical line loss evaluation system
CN106096824B (en) * 2016-06-06 2019-09-13 国电南瑞科技股份有限公司 A kind of main distribution integrative graph resource share method
CN107491968A (en) * 2016-08-23 2017-12-19 宝沃汽车(中国)有限公司 Vehicle client, management system and management method after sale
CN106649452A (en) * 2016-09-22 2017-05-10 广东电网有限责任公司电力调度控制中心 Method of generating template graphics
CN108153572A (en) * 2017-12-22 2018-06-12 北京恒泰实达科技股份有限公司 GIS display methods, device and system
CN112580124B (en) * 2020-12-25 2024-05-14 南方电网数字平台科技(广东)有限公司 Graphic modeling method, device, browser and computer readable storage medium
CN117195818B (en) * 2023-11-07 2024-02-06 英诺达(成都)电子科技有限公司 Power supply design command generation method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183908A (en) * 2007-12-24 2008-05-21 深圳市茁壮网络技术有限公司 Data prefetching method and communication system and related device
CN101902500A (en) * 2010-07-23 2010-12-01 广东电网公司中山供电局 WEB service system based on SVG technique and method thereof
CN103078958A (en) * 2013-02-05 2013-05-01 北京四方继保自动化股份有限公司 Real-time monitoring supervising method for WEB mode of power SCADA (Supervisory Control And Data Acquisition) on basis of combining SVG (Scalable Vector Graphics) with RIA (Rich Internet Application)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183908A (en) * 2007-12-24 2008-05-21 深圳市茁壮网络技术有限公司 Data prefetching method and communication system and related device
CN101902500A (en) * 2010-07-23 2010-12-01 广东电网公司中山供电局 WEB service system based on SVG technique and method thereof
CN103078958A (en) * 2013-02-05 2013-05-01 北京四方继保自动化股份有限公司 Real-time monitoring supervising method for WEB mode of power SCADA (Supervisory Control And Data Acquisition) on basis of combining SVG (Scalable Vector Graphics) with RIA (Rich Internet Application)

Also Published As

Publication number Publication date
CN103646091A (en) 2014-03-19

Similar Documents

Publication Publication Date Title
CN103646091B (en) A kind of generation method and device of grid graph data
Ruohomäki et al. Smart city platform enabling digital twin
Ashkezari et al. Development of an enterprise Geographic Information System (GIS) integrated with smart grid
Medjroubi et al. Open data in power grid modelling: new approaches towards transparent grid models
CN104616207B (en) Power network topology visualization system and method
CN105320811B (en) A method of establishing Urban Underground power pipe net topology connection model
Mora et al. Smart-city development paths: Insights from the first two decades of research
CN109284346A (en) A kind of distribution network planning method and device based on cloud computing
CN106227846A (en) Electric network information methods of exhibiting real-time and device
Li et al. Webvrgis based city bigdata 3d visualization and analysis
Nama et al. Design and implementation web based geographic information system for public services in Bandar Lampung City—Indonesia
CN104331562A (en) Geographical wiring diagram dispatching method and device in power grid information system
CN112148708A (en) Power grid planning-oriented visual application system
Rivera et al. OpenGridMap: towards automatic power grid simulation model generation from crowdsourced data
CN206021354U (en) One kind is based on BIM and VR smart cities pipeline coordination platform
Ten et al. Extraction of geospatial topology and graphics for distribution automation framework
Abdulrahman et al. Power system spatial analysis and visualization using geographic information system (GIS)
CN114818632A (en) Method and device for compiling power limiting sequence table for over-planning power utilization
CN114818631A (en) Method and device for compiling over-plan power utilization and power limiting line modification table
Gao et al. Research on integrated management platform of smart park based on CIM
CN107861718A (en) A kind of network system and method for supporting isomery GIS platform
Wang et al. Research on Simulation of Distribution Network Engineering Scene Based on 3D GIS Technology
Ji et al. A geospatial analysis framework for fine scale urban infrastructure networks
Banze et al. Open data for energy networks: introducing DAVE—a data fusion tool for automated network generation
Al-Quraishi Web GIS for Iraqi Electrical Grid System

Legal Events

Date Code Title Description
PB01 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
CP01 Change in the name or title of a patent holder

Address after: 100192 Beijing city Haidian District Qinghe small Camp Road No. 15

Co-patentee after: STATE GRID CORPORATION OF CHINA

Patentee after: BEIJING CHINA POWER INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100192 Beijing city Haidian District Qinghe small Camp Road No. 15

Co-patentee before: State Grid Corporation of China

Patentee before: BEIJING CHINA POWER INFORMATION TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20190718

Address after: 100085 Building 32-3-4108-4109, Pioneer Road, Haidian District, Beijing

Co-patentee after: STATE GRID CORPORATION OF CHINA

Patentee after: BEIJING GUODIANTONG NETWORK TECHNOLOGY Co.,Ltd.

Address before: 100192 Beijing city Haidian District Qinghe small Camp Road No. 15

Co-patentee before: State Grid Corporation of China

Patentee before: BEIJING CHINA POWER INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right