CN110990515A - Power grid graph browsing method, system, device, computer equipment and storage medium - Google Patents

Power grid graph browsing method, system, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110990515A
CN110990515A CN201911235498.9A CN201911235498A CN110990515A CN 110990515 A CN110990515 A CN 110990515A CN 201911235498 A CN201911235498 A CN 201911235498A CN 110990515 A CN110990515 A CN 110990515A
Authority
CN
China
Prior art keywords
power grid
vector
background map
acquisition request
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.)
Pending
Application number
CN201911235498.9A
Other languages
Chinese (zh)
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.)
China Southern Power Grid Co Ltd
Southern Power Grid Digital Grid Research Institute Co Ltd
Original Assignee
China Southern Power Grid Co Ltd
Southern Power Grid Digital Grid Research Institute 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 China Southern Power Grid Co Ltd, Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical China Southern Power Grid Co Ltd
Priority to CN201911235498.9A priority Critical patent/CN110990515A/en
Publication of CN110990515A publication Critical patent/CN110990515A/en
Pending legal-status Critical Current

Links

Images

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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • 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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The application relates to a power grid graph browsing method, a system, a device, computer equipment and a storage medium. The method comprises the following steps: receiving a background map acquisition request and a vector graph acquisition request sent by a terminal according to browsing operation; responding to a background map acquisition request, reading a pre-generated pyramid file to obtain a background map; acquiring corresponding vector graphics data from a memory object database based on vector graphics parameters carried by the vector graphics acquisition request; and returning the background map and the vector graphic data to the terminal, and drawing and displaying the power grid graphic by the terminal according to the background map and the vector graphic data. By adopting the method, high-speed dynamic browsing of the power grid graph can be realized.

Description

Power grid graph browsing method, system, device, computer equipment and storage medium
Technical Field
The present application relates to the field of power grid technologies, and in particular, to a method, a system, an apparatus, a computer device, and a storage medium for browsing a power grid graph.
Background
A grid GIS (Geographic Information System) is a production management integrated Information System that connects grid devices, substations, transmission and distribution networks, power consumers, power loads, and the like to form power informatization. The power grid GIS platform generally needs to rapidly display the power distribution network graph which changes from the city and city global to a certain line branch line in a large range, and also needs to perform analysis and calculation to realize dynamic coloring and dynamic character marking. Therefore, the power grid GIS platform needs to have a function of providing high-performance dynamic image browsing oriented to a large-range power distribution network in real time. Most of traditional power grid GIS platforms are developed secondarily based on commercial GIS software, such as ArcGIS (embedded GIS), and some systems adopt open-source MapServer (map service) or Baidu map and other internet platforms. The GIS platforms mainly adopt two technical routes of an instant query mode based on an SQL database and a static release mode based on a slice to realize the graphic browsing service.
However, the disk I/O will become a main performance bottleneck when large-scale users concurrently access the system in the SQL-based instant query manner, and the slice-based static publishing manner is not suitable for the power grid GIS application requirement where the data volume and data attribute often change, and especially cannot meet the requirement of the power grid quasi-real-time analysis system. Therefore, the processing speed is reduced in both the SQL database-based instant query mode and the slice-based static publishing mode, and high-speed dynamic browsing of the power grid graph cannot be realized.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, a system, an apparatus, a computer device, and a storage medium for browsing a grid graph, which can realize high speed.
A power grid graph browsing method, the method comprising:
receiving a background map acquisition request and a vector graph acquisition request sent by a terminal according to browsing operation;
responding to the background map acquisition request, reading a pre-generated pyramid file to obtain a background map;
acquiring corresponding vector graphics data from a memory object database based on the vector graphics parameters carried by the vector graphics acquisition request;
and returning the background map and the vector graphic data to the terminal, and drawing and displaying the power grid graphic by the terminal according to the background map and the vector graphic data.
In one embodiment, the obtaining, from the memory object database, corresponding vector graphics data based on the vector graphics parameters carried in the vector graphics obtaining request includes:
acquiring a corresponding space range and a layer list according to the vector graphic parameters;
determining partitions intersected with the space range according to the coordinate values of the space range and the coordinate values of the space range of each partition;
determining a partition object of the partition from the memory object database;
acquiring the layer object corresponding to the partition from the layer list according to the partition object;
and packaging and compressing the layer object to obtain vector graphics data.
In one embodiment, after obtaining the layer object corresponding to the partition from the layer list according to the partition object, the method further includes:
acquiring the power grid equipment in the space range;
when the number of the power grid equipment exceeds a threshold value, selecting the power grid equipment with the number equal to the threshold value;
and taking the selected layer object corresponding to the power grid equipment as a finally obtained layer object.
In one embodiment, the acquiring the grid devices within the space range includes:
accessing a spatial index of the memory object database;
and acquiring the power grid equipment in the space range by using the space index.
In one embodiment, the reading pre-generated pyramid files to obtain a background map includes:
obtaining a map slice in the pyramid file;
and rasterizing each map slice to obtain a rasterized background map.
A grid graph browsing system, the system comprising: the system comprises terminals, an application server cluster and a load balancing server;
the terminal is used for capturing browsing operation of a user and sending a background map acquisition request and a vector graph acquisition request to the load balancing server according to the browsing operation;
the load balancing server is used for distributing the background map acquisition request and the vector graph acquisition request to the application servers in the application server cluster;
the application server cluster is used for responding to the background map acquisition request and reading a pre-generated pyramid file to obtain a background map; acquiring corresponding vector graphics data from a memory object database based on the vector graphics parameters carried by the vector graphics acquisition request; and returning the background map and the vector graphics data to the terminal;
and the terminal is also used for drawing and displaying the power grid graph according to the background map and the vector graph data.
In one embodiment, the vector image data comprises an identification number, a space coordinate and a marking character of the power grid equipment; the terminal is further configured to:
determining an icon and a color of the power grid equipment according to the identification number of the power grid equipment, and generating a corresponding interface graph according to the icon and the color;
converting the marked characters into dynamic character marks;
and rendering the background map, the interface graph, the dynamic character annotation and the space coordinate to obtain and display a power grid graph.
A grid graph browsing apparatus, the apparatus comprising:
the receiving module is used for receiving a background map acquisition request and a vector graph acquisition request sent by a terminal according to browsing operation;
the reading module is used for responding to the background map acquisition request and reading the pre-generated pyramid files to obtain a background map;
the acquisition module is used for acquiring corresponding vector graphics data from a memory object database based on the vector graphics parameters carried by the vector map acquisition request;
and the feedback module is used for returning the background map and the vector graphic data to the terminal, and the terminal draws and displays the power grid graphic according to the background map and the vector graphic data.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the grid graph browsing method of any one of the above when the computer program is executed.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the grid graph browsing method of any one of the above.
According to the power grid graph browsing method, the power grid graph browsing system, the power grid graph browsing device, the computer equipment and the storage medium, after a background map obtaining request and a vector graph obtaining request sent by a terminal according to browsing operation of a user are received, a pre-generated pyramid file is read in response to the background map obtaining request to obtain a background map, corresponding vector graph data are obtained from a memory object database based on vector graph parameters carried by the vector graph obtaining request, then the background map and the vector graph data are returned to the terminal, and the power grid graph is drawn and displayed by the terminal according to the background map and the vector graph data. The method respectively acquires the background map and the vector graphic data in different modes according to different characteristics of the background map and the power grid graphic, and acquires the vector graphic data by using the memory object database without accessing a database system, thereby providing high-concurrency image browsing service and realizing high-speed dynamic browsing of the power grid graphic.
Drawings
FIG. 1 is a diagram of an application environment of a grid graph browsing method in one embodiment;
FIG. 2 is a schematic flow chart illustrating a grid graph browsing method according to an embodiment;
fig. 3 is a schematic flowchart illustrating a step of obtaining corresponding vector graphics data from a memory object database based on vector graphics parameters carried by a vector graphics obtaining request in one embodiment;
FIG. 4 is a schematic structural diagram of a grid graph browsing system in one embodiment;
FIG. 5 is a system architecture diagram of a grid graph browsing system in one embodiment;
FIG. 6 is a system architecture diagram of an application server in one embodiment;
FIG. 7 is a block diagram of a grid graph browsing device according to an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The power grid graph browsing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 and the application server 104 communicate over a network. Specifically, the application server 104 receives a background map acquisition request and a vector graph acquisition request sent by the terminal 102 according to a browsing operation; the application server 104 responds to the background map acquisition request, reads the pre-generated pyramid files and obtains a background map; the application server 104 acquires corresponding vector graphics data from the memory object database based on the vector graphics parameters carried by the vector graphics acquisition request; the application server 104 returns the background map and vector graphics data to the terminal 102, and the terminal 102 draws and displays the power grid graphics according to the background map and vector graphics data. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the application server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a grid graph browsing method is provided, which is described by taking the application server in fig. 1 as an example, and includes the following steps:
and step S202, receiving a background map acquisition request and a vector graph acquisition request sent by the terminal according to browsing operation.
The terminal is a terminal device equipped with a power grid GIS (Geographic Information System). A user can perform human-computer interaction through a power grid GIS interface provided by the terminal to perform browsing operation on the power grid GIS, wherein the browsing operation includes but is not limited to zooming and click browsing on the power grid GIS and the like. The background map refers to a geographical background map displayed by the power grid GIS, such as a topographic map, a road map, a house map and the like, which gives an intuitive topographic feature impression. A vector graphic is a graphic drawn according to a collection characteristic, and has attributes of color, shape, contour, size, and screen position. Such as various grid devices in a grid system. It can be understood that the map browsed by the user in the power grid GIS includes a background map and a vector graphic of the power grid equipment.
Specifically, when the user performs operations such as zooming or click browsing on the power grid GIS through the terminal, the terminal can capture the corresponding operations of the user. And then, the terminal generates a corresponding background map acquisition request and a corresponding vector graph acquisition request according to the browsing operation of the user, and sends the background map acquisition request and the vector graph acquisition request to the application server through WebService, so that the terminal is used for acquiring the background map and the vector graph which are required to be displayed by the browsing operation of the user from the application server. Namely, when the terminal sends the background map acquisition request and the vector graph acquisition request to the application server through the WebService, the application server can receive the background map acquisition request and the vector graph acquisition request. WebService is a technology that enables different applications running on different machines to exchange data with each other without the aid of additional, specialized third party software or hardware.
And step S204, responding to the background map acquisition request, reading the pre-generated pyramid files, and obtaining the background map.
The pyramid file is a file generated after a background map is subjected to map slicing, and is similar to a tile map pyramid model. The tile map pyramid model is a multi-resolution hierarchical model, and the resolution is lower and lower from the bottom layer to the top layer of the pyramid, but the represented geographical range is unchanged. Since the background map is statically browsed as a background and the update period is long, the update is usually performed in units of years. Therefore, the sliced map can meet the application requirement of the power grid GIS, and the background map is subjected to map slicing in advance to generate corresponding pyramid files to be stored in the application server. And when a demand for obtaining the background map exists, directly obtaining the corresponding pyramid file to obtain the background map.
Specifically, when the application server receives a background map acquisition request sent by the terminal, the application server responds to the background map acquisition request and acquires the required pyramid files from a database storing pyramid files corresponding to the background map to obtain the background map.
In addition, when the terminal has a requirement for rasterizing the background map, the map slice in the pyramid file is rasterized according to a task request of the terminal, and the rasterized background map is obtained and returned to the terminal.
In step S206, the corresponding vector graphics data is obtained from the memory object database based on the vector graphics parameters carried by the vector graphics obtaining request.
The vector graphics parameters are parameters for obtaining vector graphics, and the vector graphics parameters are determined by the terminal according to the browsing operation of the user, carried in the vector graphics obtaining request and sent to the application server. The vector graphics parameters include a spatial range coordinate value and an Identity document (identification number). The spatial range coordinate value is a coordinate value of a spatial range to be searched, and can be understood as a range of a map browsed by a user. The layer list ID refers to an identification number of a layer list to be inquired, and the layer list is displayed for a certain type of power grid equipment in a power grid map. It can be understood that the layer objects included in the layer list are power grid device memory objects that specify partition-specific layers. The power grid equipment memory object is data stored in a memory object database by the power grid equipment, such as an ID, a spatial coordinate, a label text and the like of the power grid equipment. And the types of layers can be divided into point-like devices (including but not limited to routers, distribution transformers, grounding blades, etc.) and linear devices (including but not limited to overhead lines, cables, bus-bars, electrical connection lines, etc.) according to different types of power grid devices. The memory object database is a memory mirror image of the database for storing the grid graph model data in the application server. For example, when used to store grid graph model data is an Oracle database. The memory object database is a memory mirror image of the grid graph model data in the Oracle database in the application server.
Specifically, when the application server is started, the memory object database loads the latest data of the running version from the Oracle database, including the grid graph-model data of the geographical wiring diagrams and the corresponding internal wiring diagrams of all the partitions. When the application server receives the vector graphics obtaining request, the corresponding vector graphics data can be directly obtained from the memory object database according to the corresponding vector graphics parameters. The source of the vector graphics data obtained by the application server is an object in the memory object database, and the whole process does not need to access the database or the file system. Therefore, the CPU can run at full speed for processing without waiting for a slow disk, thereby accelerating the processing speed.
And step S208, returning the background map and the vector graphic data to the terminal, and drawing and displaying the power grid graphic by the terminal according to the background map and the vector graphic data.
Specifically, after the application server obtains the background map and the vector graphics data, the background map and the vector graphics data are returned to the terminal, and the terminal renders the background map and the vector graphics data to obtain and display the corresponding power grid graphics. The vector graphic data comprise the ID (identification number) of the power grid equipment, the space coordinates and the labeled characters, and the terminal stores the vector graphic data and the background map in a memory after acquiring the vector graphic data and the background map and then renders the vector graphic data. And the terminal determines the icon and the color of the power grid equipment according to the ID of the power grid equipment by using the icon generator, and generates an interface graph corresponding to the power grid equipment according to the icon and the color by using the power grid graph generator. The terminal then converts the markup language into a dynamic language markup using a markup generator. And finally, the terminal sends the background map, the interface graph corresponding to the power grid equipment, the dynamic character mark and the space coordinate to a rendering engine, the rendering engine performs rendering processing and then displays the result on a display screen of the terminal through a display card, and drawing and displaying of the power grid map are completed.
According to the power grid graph browsing method, the power grid graph browsing system, the power grid graph browsing device, the computer equipment and the storage medium, after a background map obtaining request and a vector graph obtaining request sent by a terminal according to browsing operation of a user are received, a pre-generated pyramid file is read in response to the background map obtaining request to obtain a background map, corresponding vector graph data are obtained from a memory object database based on vector graph parameters carried by the vector graph obtaining request, then the background map and the vector graph data are returned to the terminal, and the power grid graph is drawn and displayed by the terminal according to the background map and the vector graph data. The method respectively acquires the background map and the vector graphic data in different modes according to different characteristics of the background map and the power grid graphic, and acquires the vector graphic data by using the memory object database without accessing a database system, thereby providing high-concurrency image browsing service and realizing high-speed dynamic browsing of the power grid graphic.
In an embodiment, in step S206, acquiring, based on the vector graphics parameters carried in the vector graphics acquisition request, corresponding vector graphics data from the memory object database specifically includes: acquiring a corresponding space range and a layer list according to the vector graphic parameters; determining the subarea intersected with the space range according to the coordinate value of the space range and the coordinate value of the space range of each subarea; determining a partition object of a partition from a memory object database; acquiring a layer object corresponding to a partition from the layer list according to the partition object; and packaging and compressing the layer object to obtain vector graphics data.
Specifically, after the vector graphics parameters are obtained, the corresponding spatial range is obtained according to a spatial range coordinate value (four vertex coordinates) query in the vector graphics parameters, and the corresponding layer list is obtained according to a layer list ID query in the vector graphics parameters. And then, obtaining the coordinate value of the space range of each partition in the power grid map. And calculating the intersection of the coordinate values of the inquired spatial range and the coordinate values of the spatial range of each partition, and determining the partition which is intersected with the inquired spatial range. It may be understood as determining the partition into which the queried spatial range falls. After the determination of the partitions falling within, a list of partitions falling within the spatial range (the sum of all partitions falling within the spatial range) is obtained. And each partition stores a corresponding partition object in the memory object database, that is, the partition object corresponding to each partition is acquired from the memory object database. And then, determining a layer corresponding to each partition object from the layer list, and acquiring the layer object from the corresponding layer. The layer object is a power grid device memory object in a specified layer included in the specified partition, and the power grid device memory object is data stored in a memory object database by the power grid device, such as an ID, a spatial coordinate, a label text, and the like of the power grid device. And finally, after all layers in the number of the layer lists and all partitions in the partition list are processed, packaging and compressing the layer objects by the application server, and returning the layer objects to the terminal by using WebService. The application server may convert all the obtained layer objects into binary by using a data format conversion tool, for example, a protobuf tool, compress the binary, and return the binary to the terminal by using an encoding conversion tool, for example, base64 after packaging the binary into XML output parameters of WebService.
In another embodiment, after the layer objects corresponding to the partitions are obtained from the layer list according to the partition objects, the intersection relationship between the spatial range and the power grid equipment in the spatial range may be further calculated, so as to obtain the layer objects whose number meets the threshold by screening. As shown in fig. 3, the method specifically includes the following steps:
step S302, acquiring a corresponding space range and a layer list according to the vector graphics parameters;
step S304, determining the subarea intersected with the space range according to the coordinate value of the space range and the coordinate value of the space range of each subarea;
step S306, determining a partition object of the partition from the memory object database;
step S308, acquiring a layer object corresponding to the partition from the layer list according to the partition object;
step S310, acquiring power grid equipment in a space range;
step S312, when the number of the power grid equipment exceeds the threshold value, selecting the power grid equipment with the number equal to the threshold value;
step S314, taking the layer object corresponding to the selected power grid equipment as the finally obtained layer object;
and step S316, packaging and compressing the layer object to obtain vector graphics data.
The Spatial Index (Spatial Index) refers to a data structure arranged in a certain order according to the position and shape of Spatial objects or a certain Spatial relationship between Spatial objects. The threshold value is the maximum value of the number of displayable grid devices of the default configuration.
Specifically, after the layer object corresponding to the partition is obtained from the layer list according to the partition object, the spatial index of the memory object database is accessed, and the power grid equipment in the spatial range is obtained by using the spatial index. And then, determining the number of the power grid devices in the space range, and when the number of the power grid devices exceeds a default configuration threshold, selecting the power grid devices with the number equal to the threshold according to the serial number of the power grid devices. For example, when the default configuration threshold is 10 ten thousand, when the number of the power grid devices in the space range exceeds 10 ten thousand, 10 ten thousand power grid devices are selected according to the size of the serial number. The layer object contains the data (ID, space coordinates and label characters) of the power grid equipment. Therefore, the obtained layer objects are screened according to the selected power grid equipment, and only the layer objects corresponding to the selected power grid equipment are obtained. And the layer object obtained after screening is the layer object obtained finally, and the layer object obtained after screening is packaged and compressed and returned to the terminal. In addition, when the number of the power grid devices in the space range is determined to exceed the threshold, the super-long information can be returned to the terminal, and the super-long information is used for prompting a user of the terminal to narrow the query range or reduce the image layer data and the like.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, a power grid graph browsing system is provided based on a power grid graph browsing method, and includes: a terminal 102, a load balancing server 106 and an application server cluster 108, the application server cluster 108 being a server cluster consisting of a plurality of application servers 104. Wherein:
and the terminal 102 is configured to capture a browsing operation of a user, and send a background map acquisition request and a vector graph acquisition request to the load balancing server according to the browsing operation.
And the load balancing server 106 is used for distributing the background map acquisition request and the vector graphics acquisition request to the application servers 104 in the application server cluster 108.
Specifically, the load balancing server 106 distributes the request sent by the terminal 102 to the application server 104 capable of responding quickly according to the load condition of each application server 104 in the application server cluster 108. The load balancing server 104 may be a cluster load based on F5 hardware.
The application server cluster 108 is used for responding to the background map acquisition request and reading the pre-generated pyramid files to obtain a background map; acquiring corresponding vector graphics data from a memory object database based on vector graphics parameters carried by the vector graphics acquisition request; and returns the background map and the vector graphics data to the terminal 102;
the terminal 102 is further configured to draw and display a grid graph according to the background map and the vector graph data.
In this embodiment, the load balancing server distributes the request of the terminal to the appropriate application server as required according to the load condition of the application server in the application server cluster, so that a multi-user concurrent server can be realized, the processing speed is increased, and high-speed dynamic browsing of the power grid graph is realized.
In one embodiment, referring to fig. 4, the grid graph browsing system further includes a database server 110 for storing model, graph, and topology data of the grid, and the like. When the application server cluster 108 starts the service, each application server 104 loads the latest data from the database server into the memory object database.
In one embodiment, as shown in fig. 5, a system architecture diagram of a power grid graphic browsing system is provided, which includes a terminal 102, an application server 104 and a database server 110. The application server 104 includes a vector graphics service component, a slice map service component, a spatial analysis engine, a memory object database, and a slice map pyramid file. The terminal 102 includes: the system comprises a power grid equipment image caching module, a slice map caching module, an icon generator, a power grid graph generator, a character marking generator, a rendering engine, a display card and a display screen.
Specifically, the vector graphics server component obtains corresponding vector graphics data from the memory object database through the spatial analysis engine. The spatial analysis engine can obtain a spatial index in the memory object database to obtain a power grid equipment object in a specified spatial range. And the section map service component acquires the corresponding pyramid files from the pyramid files of the section map to obtain the background map. The memory object database interfaces with database server 110 to obtain the latest version of the data.
And the power grid equipment image cache module of the terminal is used for receiving and caching the vector graphic data returned by the vector graphic service component of the application server, and the slice map cache module is used for receiving and caching the background map returned by the slice map service component of the application server. After the power grid equipment image cache module and the slice map cache module of the terminal receive and cache vector graphic data and a background map, the icon generator is used for determining the icon and the color of the power grid equipment according to the ID of the power grid equipment in the vector graphic data, and the power grid graphic generator is used for generating an interface graphic corresponding to the power grid equipment according to the icon and the color. And then, converting the marked characters of the power grid equipment in the vector graphics data into dynamic character marks by using a character mark generator. And finally, the character marking generator sends the obtained interface graph, the dynamic character mark and the space coordinate corresponding to the power grid equipment to a rendering engine, and the slice map cache module sends a background map to the rendering engine. And rendering the interface graph, the dynamic character mark, the space coordinate and the background map corresponding to the power grid equipment by using the rendering engine, and then displaying the rendered interface graph, the dynamic character mark, the space coordinate and the background map on a display screen of the terminal through the display card to finish drawing and displaying the power grid map.
In one embodiment, as shown in fig. 6, there is provided a system architecture diagram of an application server, comprising: the system comprises a server processing component layer, a logic processing component and a memory object database. The server processing component layer comprises a thread pool scheduling module, a network transmission module and a task queue. The logic processing components include a slice map service component, a vector graphics service component, a spatial analysis engine, and a dynamic rasterization engine.
Specifically, the thread pool scheduling module is used for thread scheduling, and scheduling idle threads to call the logic processing component for specific task processing, so as to implement multi-thread concurrent service. Then, the tasks of the allocated threads are sent to the task queue through a network transmission module, and a network transmission model can be realized by using an open source framework gSOAP. And when the tasks in the task queue start to be executed, calling the corresponding logic processing components for processing according to the actual tasks. Namely, calling a slice map service component to obtain a background map, calling a vector graphics service component to obtain vector graphics data, calling a spatial analysis engine to access a spatial index of a memory object database, and calling a dynamic rasterization engine to perform rasterization processing on the background map.
In one embodiment, as shown in fig. 7, there is provided a grid graphic browsing device, including: a receiving module 702, a reading module 704, an obtaining module 706, and a feedback module 708, wherein:
a receiving module 702, configured to receive a background map obtaining request and a vector graph obtaining request sent by a terminal according to a browsing operation.
The reading module 704 is configured to respond to the background map obtaining request, and read the pre-generated pyramid file to obtain the background map.
An obtaining module 706, configured to obtain, based on the vector graphics parameters carried by the vector map obtaining request, corresponding vector graphics data from the memory object database.
And the feedback module 708 is used for returning the background map and the vector graphic data to the terminal, and the terminal draws and displays the power grid graphic according to the background map and the vector graphic data.
In an embodiment, the obtaining module 706 is further configured to obtain a corresponding spatial range and layer list according to the vector graphics parameter; determining the subarea intersected with the space range according to the coordinate value of the space range and the coordinate value of the space range of each subarea; determining a partition object of a partition from a memory object database; acquiring a layer object corresponding to a partition from the layer list according to the partition object; and packaging and compressing the layer object to obtain vector graphics data.
In one embodiment, the obtaining module 706 is further configured to obtain grid devices in the spatial range; when the number of the power grid equipment exceeds a threshold value, selecting the power grid equipment with the number equal to the threshold value; and taking the layer object corresponding to the selected power grid equipment as the finally obtained layer object.
In one embodiment, the obtaining module 706 is further configured to access a spatial index of the memory object database; and acquiring the power grid equipment in the space range by using the space index.
In one embodiment, the reading module 704 is further configured to obtain a map slice in a pyramid file; and rasterizing the map slices to obtain a background map.
For specific limitations of the power grid graphic browsing device, reference may be made to the above limitations of the power grid graphic browsing method, which are not described herein again. All or part of the modules in the power grid graphic browsing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be an application server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing pyramid files, vector graphics data, etc. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a grid graph browsing method.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a background map acquisition request and a vector graph acquisition request sent by a terminal according to browsing operation;
responding to a background map acquisition request, reading a pre-generated pyramid file to obtain a background map;
acquiring corresponding vector graphics data from a memory object database based on vector graphics parameters carried by the vector graphics acquisition request;
and returning the background map and the vector graphic data to the terminal, and drawing and displaying the power grid graphic by the terminal according to the background map and the vector graphic data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a corresponding space range and a layer list according to the vector graphic parameters;
determining the subarea intersected with the space range according to the coordinate value of the space range and the coordinate value of the space range of each subarea;
determining a partition object of a partition from a memory object database;
acquiring a layer object corresponding to a partition from the layer list according to the partition object;
and packaging and compressing the layer object to obtain vector graphics data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring power grid equipment in a space range;
when the number of the power grid equipment exceeds a threshold value, selecting the power grid equipment with the number equal to the threshold value;
and taking the layer object corresponding to the selected power grid equipment as the finally obtained layer object.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
accessing a spatial index of a memory object database;
and acquiring the power grid equipment in the space range by using the space index.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
obtaining a map slice in the pyramid file;
and rasterizing the map slices to obtain a background map.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a background map acquisition request and a vector graph acquisition request sent by a terminal according to browsing operation;
responding to a background map acquisition request, reading a pre-generated pyramid file to obtain a background map;
acquiring corresponding vector graphics data from a memory object database based on vector graphics parameters carried by the vector graphics acquisition request;
and returning the background map and the vector graphic data to the terminal, and drawing and displaying the power grid graphic by the terminal according to the background map and the vector graphic data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a corresponding space range and a layer list according to the vector graphic parameters;
determining the subarea intersected with the space range according to the coordinate value of the space range and the coordinate value of the space range of each subarea;
determining a partition object of a partition from a memory object database;
acquiring a layer object corresponding to a partition from the layer list according to the partition object;
and packaging and compressing the layer object to obtain vector graphics data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring power grid equipment in a space range;
when the number of the power grid equipment exceeds a threshold value, selecting the power grid equipment with the number equal to the threshold value;
and taking the layer object corresponding to the selected power grid equipment as the finally obtained layer object.
In one embodiment, the computer program when executed by the processor further performs the steps of:
accessing a spatial index of a memory object database;
and acquiring the power grid equipment in the space range by using the space index.
In one embodiment, the computer program when executed by the processor further performs the steps of:
obtaining a map slice in the pyramid file; and rasterizing the map slices to obtain a background map.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A power grid graph browsing method, the method comprising:
receiving a background map acquisition request and a vector graph acquisition request sent by a terminal according to browsing operation;
responding to the background map acquisition request, reading a pre-generated pyramid file to obtain a background map;
acquiring corresponding vector graphics data from a memory object database based on the vector graphics parameters carried by the vector graphics acquisition request;
and returning the background map and the vector graphic data to the terminal, and drawing and displaying the power grid graphic by the terminal according to the background map and the vector graphic data.
2. The method of claim 1, wherein said retrieving corresponding vector graphics data from a memory object database based on vector graphics parameters carried by said vector graphics retrieve request comprises:
acquiring a corresponding space range and a layer list according to the vector graphic parameters;
determining partitions intersected with the space range according to the coordinate values of the space range and the coordinate values of the space range of each partition;
determining a partition object of the partition from the memory object database;
acquiring the layer object corresponding to the partition from the layer list according to the partition object;
and packaging and compressing the layer object to obtain vector graphics data.
3. The method according to claim 2, wherein after obtaining the layer object corresponding to the partition from the layer list according to the partition object, the method further includes:
acquiring the power grid equipment in the space range;
when the number of the power grid equipment exceeds a threshold value, selecting the power grid equipment with the number equal to the threshold value;
and taking the selected layer object corresponding to the power grid equipment as a finally obtained layer object.
4. The method of claim 3, wherein the obtaining the grid devices within the spatial range comprises:
accessing a spatial index of the memory object database;
and acquiring the power grid equipment in the space range by using the space index.
5. The method of claim 1, wherein reading pre-generated pyramid files to obtain a background map comprises:
obtaining a map slice in the pyramid file;
and rasterizing each map slice to obtain a rasterized background map.
6. A grid graph browsing system, the system comprising: the system comprises terminals, an application server cluster and a load balancing server;
the terminal is used for capturing browsing operation of a user and sending a background map acquisition request and a vector graph acquisition request to the load balancing server according to the browsing operation;
the load balancing server is used for distributing the background map acquisition request and the vector graph acquisition request to the application servers in the application server cluster;
the application server cluster is used for responding to the background map acquisition request and reading a pre-generated pyramid file to obtain a background map; acquiring corresponding vector graphics data from a memory object database based on the vector graphics parameters carried by the vector graphics acquisition request; and returning the background map and the vector graphics data to the terminal;
and the terminal is also used for drawing and displaying the power grid graph according to the background map and the vector graph data.
7. The system of claim 6, wherein the vector image data comprises an identification number, spatial coordinates, and annotation text of the grid device; the terminal is further configured to:
determining an icon and a color of the power grid equipment according to the identification number of the power grid equipment, and generating a corresponding interface graph according to the icon and the color;
converting the marked characters into dynamic character marks;
and rendering the background map, the interface graph, the dynamic character annotation and the space coordinate to obtain and display a power grid graph.
8. A grid graph browsing apparatus, the apparatus comprising:
the receiving module is used for receiving a background map acquisition request and a vector graph acquisition request sent by a terminal according to browsing operation;
the reading module is used for responding to the background map acquisition request and reading the pre-generated pyramid files to obtain a background map;
the acquisition module is used for acquiring corresponding vector graphics data from a memory object database based on the vector graphics parameters carried by the vector map acquisition request;
and the feedback module is used for returning the background map and the vector graphic data to the terminal, and the terminal draws and displays the power grid graphic according to the background map and the vector graphic data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201911235498.9A 2019-12-05 2019-12-05 Power grid graph browsing method, system, device, computer equipment and storage medium Pending CN110990515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911235498.9A CN110990515A (en) 2019-12-05 2019-12-05 Power grid graph browsing method, system, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911235498.9A CN110990515A (en) 2019-12-05 2019-12-05 Power grid graph browsing method, system, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110990515A true CN110990515A (en) 2020-04-10

Family

ID=70090443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911235498.9A Pending CN110990515A (en) 2019-12-05 2019-12-05 Power grid graph browsing method, system, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110990515A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966876A (en) * 2020-07-31 2020-11-20 浙江知水信息技术有限公司 Method for generating disaster map at fixed time based on NodeJs

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105894092A (en) * 2016-03-31 2016-08-24 贵州电网有限责任公司输电运行检修分公司 Method for drawing degree distribution map of common damage to power transmission line
CN105975619A (en) * 2016-05-23 2016-09-28 国网山东省电力公司临沂供电公司 Power grid graph drawing method based on mobile GIS platform
CN107025630A (en) * 2016-02-02 2017-08-08 中国电力科学研究院 A kind of power system geographical wiring diagram background map generation method based on SVG
CN108198231A (en) * 2017-12-11 2018-06-22 厦门亿力吉奥信息科技有限公司 Electric power GIS vector graphics real-time drawing method, storage medium
CN110209856A (en) * 2019-06-17 2019-09-06 广东电网有限责任公司清远供电局 A kind of the map rendering method and device of O&M of transmitting electricity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025630A (en) * 2016-02-02 2017-08-08 中国电力科学研究院 A kind of power system geographical wiring diagram background map generation method based on SVG
CN105894092A (en) * 2016-03-31 2016-08-24 贵州电网有限责任公司输电运行检修分公司 Method for drawing degree distribution map of common damage to power transmission line
CN105975619A (en) * 2016-05-23 2016-09-28 国网山东省电力公司临沂供电公司 Power grid graph drawing method based on mobile GIS platform
CN108198231A (en) * 2017-12-11 2018-06-22 厦门亿力吉奥信息科技有限公司 Electric power GIS vector graphics real-time drawing method, storage medium
CN110209856A (en) * 2019-06-17 2019-09-06 广东电网有限责任公司清远供电局 A kind of the map rendering method and device of O&M of transmitting electricity

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966876A (en) * 2020-07-31 2020-11-20 浙江知水信息技术有限公司 Method for generating disaster map at fixed time based on NodeJs

Similar Documents

Publication Publication Date Title
CN102831307B (en) Three-dimensional GIS (Geographic Information System) technology based power grid visualization system and method
CN110599891B (en) Map rendering method for power grid equipment
CN108664582B (en) Enterprise relation query method and device, computer equipment and storage medium
CN110990516A (en) Map data processing method and device and server
CN112559667A (en) Map editor, map engine, map editing system, map editing method, and storage medium
CN111008290A (en) Power grid geographical edge layout display method and device, computer equipment and storage medium
CN110069556B (en) DWG format vector map service publishing method and device
CN114564630A (en) Method, system and medium for visualizing graph data Web3D
CN111737618A (en) Vector diagram display method and device for Web end and computer equipment
CN110990515A (en) Power grid graph browsing method, system, device, computer equipment and storage medium
CN112115226B (en) Map rendering method and map rendering device
CN112395257A (en) Lightweight CAD (computer-aided design) model service method and system
CN113419806B (en) Image processing method, device, computer equipment and storage medium
US11978160B2 (en) GPU-based digital map tile generation method and system
CN116185578A (en) Scheduling method of computing task and executing method of computing task
CN115471582A (en) Map generation method and device, computer equipment and storage medium
CN114510525B (en) Data format conversion method and device, computer equipment and storage medium
CN115712422A (en) Form page generation method and device, computer equipment and storage medium
CN111159480B (en) Graph drawing method based on power grid GIS data
CN115016754A (en) Method and device for synchronously displaying pages among devices, electronic device and medium
CN113626547A (en) Freight industry map vector slicing method and device, storage medium and terminal
CN113806652A (en) Page generation method and device, computer equipment and storage medium
CN112612427A (en) Vehicle stop data processing method and device, storage medium and terminal
CN110990465A (en) Data export method and device, electronic equipment and storage medium
CN116302579B (en) Space-time big data efficient loading rendering method and system for Web end

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