Visualization presentation method and device based on dynamic expansion of power grid vector slice data
By querying and merging sliced extended attribute data in the backend server of the GIS platform, the problem of bloated services of the GIS platform is solved, and support for different business rendering needs is achieved, and data tidyness and performance stability are maintained.
Patent Information
- Application Number
- CN202411397436.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-10-09
AI Technical Summary
The vector slicing service of the existing power grid GIS platform needs to meet the personalized rendering and coloring needs of different business systems, resulting in bloated service, affecting performance and stability.
By establishing a slice extension attribute configuration table in the back-end server, query the grid vector slice extension attribute data according to the business type and slice layer, and merge it with the basic grid vector slice data to generate dynamically expanded grid vector slice data and send it to the terminal device Make rendering.
It realizes the dynamic injection of customized attribute data according to the business type, integrates different business rendering needs, maintains the neatness of grid slice data, reduces server computing, enriches rendering capabilities and expansion functions, simplifies the service architecture, and is easy to maintain.
Smart Images

Figure CN118885532B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a power grid map, and in particular to a visualization presentation method and device based on dynamic expansion of power grid vector slice data. Background Art
[0002] At present, most power grid GIS platforms use the Mapbox Vector Tile standard to publish graphic data for power grid geographic layout. The layer data in the slice usually only contains the relevant attributes of the power grid equipment itself. The existing power grid graphic slices are pre-generated regularly, and the layer elements in the slices only contain basic attributes such as equipment ID and name. As a basic power grid data provider, the power grid GIS platform supports multiple business systems such as planning, production, marketing, and scheduling. Different business systems have personalized requirements for power grid rendering and coloring. However, for layer elements that only contain basic attributes, it is obviously impossible to meet the personalized needs of different business systems. In addition, if all coloring needs are concentrated on the vector slice service of the existing power grid GIS platform, the power grid GIS platform will inevitably need to access the business data of different business systems, resulting in the existing slice service becoming more and more bloated, which does not meet the principle of system decoupling and affects the operating performance and stability of business slice data.
[0003] Therefore, how to solve the bloated slice service caused by the demands of different businesses for grid rendering and coloring, and ensure the neatness of grid slice data, has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] Based on the above situation, the main purpose of the present invention is to provide a visualization presentation method and device based on dynamic expansion of power grid vector slice data, so as to solve the bloated slice service caused by the demand for power grid rendering and coloring of different businesses and ensure the neatness of power grid slice service.
[0005] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0006] In a first aspect, an embodiment of the present invention discloses a visualization presentation method based on dynamic expansion of power grid vector slice data, which is applied to a backend server, wherein the backend server and a terminal device constitute a communication system, including:
[0007] Step S100, in response to a power grid vector slice query request input by a user, basic power grid vector slice data is acquired, wherein the basic power grid vector slice data includes device attribute information of a target power grid device;
[0008] Step S200, querying the slice extended attribute configuration in the slice extended attribute configuration table according to the business type and the slice layer, wherein the slice extended attribute configuration table is pre-established and stored in the database of the backend server, and the slice extended attribute configuration table is a mapping relationship table between the business type and the slice layer and the business data;
[0009] Step S300, when there is an extended attribute configuration in the slice extended attribute configuration, the power grid vector slice extended attribute data is queried and matched in the service database in the backend server according to the device type and slice coordinates in the power grid vector slice query request, and the mapping relationship between the power grid vector slice extended attribute data and the target power grid device is pre-established in the database;
[0010] Step S400, merging the basic power grid vector slice data and the power grid vector slice extended attribute data to generate dynamically extended power grid vector slice data;
[0011] Step S500, sending the dynamically expanded power grid vector slice data to the terminal device, so that the terminal device calculates the rendering layer and visually displays the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map.
[0012] Optionally, step 300 includes:
[0013] Step S310, when there is an extended configuration in the slice extended attribute configuration, the rectangular coordinates of the queried power grid vector slice are obtained according to the number of rows, the number of columns and the slice layer in the query request; when there is no slice extended configuration in the query result, the basic power grid vector slice data is returned;
[0014] Step S320, performing a business data query according to the device type and the rectangular coordinates, and obtaining extended attribute data of the power grid vector slice.
[0015] Optionally, step 400 includes:
[0016] Step S410, parsing the basic power grid slice data based on the vector tile data encoding format standard to obtain the target power grid device ID value;
[0017] Step S420, matching the target power grid device ID value with the extended attribute data, and acquiring the extended attribute and extended attribute data of the corresponding device according to the attribute field name in the extended attribute configuration;
[0018] Step S430: adding the extended attribute and the extended attribute data to the basic power grid vector slice data to generate dynamically extended power grid vector slice data.
[0019] Optionally, the slice extended attribute configuration table includes the following fields: business type, attribute field name, device type, slice layer, query service address; the business type corresponds to the value of the attribute field name, and the value of the attribute field name is the extended attribute field returned by the query.
[0020] In a second aspect, an embodiment of the present invention discloses a visualization presentation device based on dynamic expansion of power grid vector slice data, which is applied to a backend server, and the backend server and a terminal device constitute a communication system, including:
[0021] A basic attribute query module, configured to obtain basic power grid vector slice data in response to a power grid vector slice query request input by a user, wherein the basic power grid vector slice data includes device attribute information of a target power grid device;
[0022] An extended attribute configuration query module is used to query the slice extended attribute configuration in the slice extended attribute configuration table according to the business type and the slice layer, wherein the slice extended attribute configuration table is pre-established and stored in the database of the backend server, and the slice extended attribute configuration table is a mapping relationship table between the business type and the slice layer and the business data;
[0023] An extended attribute data acquisition module is used to query and match the extended attribute data of the power grid vector slice in the service database in the backend server according to the device type and slice coordinates in the power grid vector slice query request when there is an extended attribute configuration in the slice extended attribute configuration, and the mapping relationship between the power grid vector slice extended attribute data and the target power grid device is pre-established in the database;
[0024] A data merging module, used to merge the basic power grid vector slice data and the power grid vector slice extended attribute data to generate dynamically extended power grid vector slice data;
[0025] A data sending module is used to send the dynamically expanded power grid vector slice data to the terminal device, so that the terminal device calculates the rendering layer and visually displays the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map.
[0026] Optionally, the extended attribute data acquisition module is further used to obtain the rectangular coordinates of the queried power grid vector slice according to the parameters in the query request: the number of rows, the number of columns and the slice layer when there is an extended configuration in the slice extended attribute configuration, and return the basic power grid vector slice data when there is no slice extended configuration in the query result;
[0027] Business data query is performed according to the device type and the rectangular coordinates, and extended attribute data of the power grid vector slice is obtained.
[0028] Optionally, the data merging module is further used to parse the basic power grid slice data based on the vector tile data encoding format standard to obtain the power grid device ID value;
[0029] Matching the power grid device ID value with the extended attribute data, and acquiring the extended attribute and extended attribute data of the corresponding device according to the attribute field name in the extended attribute configuration;
[0030] The extended attribute and the extended attribute data are added to the basic power grid vector slice data to generate dynamically extended power grid vector slice data.
[0031] In a third aspect, an embodiment of the present invention discloses a computer-readable storage medium having a computer program stored thereon, wherein the computer program stored in the storage medium is used to be executed by a processor to implement the method disclosed in the first aspect above.
[0032] In a fourth aspect, an embodiment of the present invention discloses a server, including:
[0033] The above method is used to send the dynamic service attribute layer to the terminal device, or the above device is included.
[0034] In a fifth aspect, an embodiment of the invention discloses a visualization presentation system based on dynamic expansion of power grid vector slice data, including:
[0035] A backend server, which uses the method disclosed in the first aspect to send the dynamically expanded power grid vector slice data to the terminal device, or includes the apparatus disclosed in the second aspect;
[0036] The front-end terminal device receives the dynamically expanded power grid vector slice data sent by the back-end server, calculates the rendering layer and visually displays the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map. Beneficial Effects
[0037] According to the visualization presentation method, device and system based on the dynamic expansion of power grid vector slice data disclosed in the embodiment of the present invention, basic power grid vector slice data is obtained through the back-end server; the slice extension attribute configuration is queried in the slice extension attribute configuration table; the power grid vector slice extension attribute data is obtained by querying and matching in the business database in the back-end server; the basic power grid vector slice data and the power grid vector slice extension attribute data are merged to generate dynamically expanded power grid vector slice data and send it to the terminal device, so that the terminal device calculates the rendering layer and visualizes the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map. Since the present invention dynamically injects the associated customized attribute data into the basic power grid vector slice data according to the business type at runtime, it can integrate and adapt to the rendering and coloring requirements of different business maps, maintain the neatness of the basic power grid vector slice data, and enrich the rendering and coloring capabilities and extended functions of the power grid map while reducing the server calculation amount, which not only solves the problem of bloated or scattered slice data, but also simplifies the service architecture and is easy to maintain. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The embodiments of the present invention will be described below with reference to the accompanying drawings.
[0039] Figure 1 A flowchart of a method for visualizing and presenting dynamic expansion of power grid vector slice data disclosed in this embodiment in one implementation manner;
[0040] Figure 2 It is a flow chart of a specific application example of the visualization presentation method based on dynamic expansion of power grid vector slice data disclosed in this embodiment;
[0041] Figure 3 This is a schematic diagram of program modules of a visualization rendering and coloring device based on dynamic expansion of power grid vector slice data disclosed in this embodiment in one implementation manner. DETAILED DESCRIPTION
[0042] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the following detailed description of the present invention, some specific details are described in detail. In order to avoid confusing the essence of the present invention, known methods, processes, procedures, and components are not described in detail.
[0043] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0044] Unless the context clearly requires otherwise, throughout the specification and claims, the words "include", "comprising" and similar words should be interpreted in an inclusive sense rather than an exclusive or exhaustive sense; that is, in the sense of "including but not limited to".
[0045] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0046] The power grid slice service provides basic slice data services and dynamic data expansion mechanisms. The business system implements personalized extended attribute services in accordance with the dynamic data expansion specification requirements and registers with the power grid slice service. In order to integrate and adapt to the rendering and coloring requirements of different business maps and keep the neatness of power grid slice data, the embodiment of the present invention discloses a visualization presentation method based on the dynamic expansion of power grid vector slice data, which is applied to the back-end server. In this embodiment, the back-end server and the terminal device constitute a communication system, and the terminal device can be a mobile terminal or a computer. For mobile terminals, a connection with the back-end server can be established through an APP; for computers, a connection with the back-end server can be established through an executable program, or the back-end server can be accessed through a browser.
[0047] like Figure 1 As shown, an embodiment of the present invention discloses a visualization presentation method based on dynamic expansion of power grid vector slice data, an implementation manner of which includes step S100, step S200, step S300, step S400 and step S500, wherein:
[0048] Step S100, in response to the grid vector slice query request input by the user, basic grid vector slice data is obtained, wherein the basic grid vector slice data includes the device attribute information of the target grid device, such as basic attributes such as device ID and device name. The slice merging service receives the grid vector slice query request in response to the user input in the terminal, the query request parameters include the request parameters tileRow, tileCol and tileMatrix (slice layer), and requests the grid slice service according to the request parameters tileRow, tileCol and tileMatrix to obtain the basic grid slice data.
[0049] Step S200, query the slice extended attribute configuration in the slice extended attribute configuration table according to the business type and slice layer, wherein the slice extended attribute configuration table is pre-established and stored in the database of the backend server, and the slice extended attribute configuration table is a mapping relationship table between the business type and the slice layer and the business data.
[0050] As the basic power grid data provider, the power grid GIS platform supports multiple business systems such as planning, production, marketing, and scheduling. Different business systems have personalized requirements for power grid rendering and coloring. If all coloring needs are concentrated on the vector slice service of the existing power grid GIS platform, the existing slice service will become more and more bloated and difficult to maintain, affecting the operating performance and stability of business slice data. This application is based on the general MVT vector slice standard, and supports dynamic expansion of slice attributes at runtime through the form of slice extension attribute configuration table to solve the map rendering and coloring needs of different power grid businesses.
[0051] The tile merging service obtains the extended attribute configuration from the database or cache based on the business_code (business type) and tileMatrix (tile matrix) in the request parameters.
[0052] The slice extended attribute configuration table is pre-established and stored in the database of the backend server. The slice extended attribute configuration table can be a mapping relationship table between the business type of the target power grid device and the slice layer and business data. The slice extended attribute configuration table can include the following fields: business type (business_code), attribute field name (attribute_field), device type (class_id), slice layer (tileMatrix), query service address (query_service_url). The slice extended attribute configuration table contains several element fields such as business type, attribute field name, device type, slice layer, query service address, etc., which are used to store the rules for adding attributes to slices for different businesses and the query source of their attribute values. The business type in the slice extended attribute configuration table corresponds to the value of the attribute field name, and the value of the attribute field name is the extended attribute field returned by the query.
[0053] Step S300, when there is an extended attribute configuration in the slice extended attribute configuration, the extended attribute data of the power grid vector slice is queried and matched in the business database in the backend server according to the device type and slice coordinates in the power grid vector slice query request, and the mapping relationship between the extended attribute data of the power grid vector slice and the target power grid device is pre-established in the database. The embodiment of the present application can dynamically inject the associated business attribute data into the basic slice at runtime according to business needs. Different businesses have their own customized attributes and do not interfere with each other, enriching the rendering and coloring capabilities and extended functions of the power grid map, solving the problem of bloated or scattered slice data, and easy to maintain.
[0054] During the specific implementation process, a mapping relationship between the extended attribute data of the power grid vector slice and the target power grid equipment can be established in the database in advance. If there is an extended configuration in the slice extended attribute configuration, the next step of processing is carried out. If there is no extended configuration in the slice extended attribute configuration, the basic power grid vector slice data is returned to the caller intact.
[0055] In one implementation, step 300 may specifically include the following steps:
[0056] Step S310, when there is an extended configuration in the slice extended attribute configuration, the rectangular coordinates of the queried power grid vector slice are obtained according to the parameters tileRow, tileCol and the slice layer in the query request;
[0057] Step S320, querying the business data according to the device type and the rectangular coordinates, and obtaining the extended attribute data of the power grid vector slice.
[0058] According to the current request parameters: the number of rows (i.e. tileRow), the number of columns (i.e. tileCol) and the tile layer (i.e. tileMatrix) are converted into the rectangular coordinates of the slice. According to the specifications agreed upon by the solution, the coordinates of the two points at the upper left corner and lower right corner of the rectangle and the device type set are used to query the business extension data service to obtain the device extended attribute data in the power grid vector slice.
[0059] In another implementation, step 300 may further include the following steps:
[0060] When the query result does not have a slice extension configuration, the basic power grid vector slice data is returned. At this time, the basic power grid vector slice data is returned to the user through the terminal, and the access process ends.
[0061] Step S400: merge the basic grid vector slice data and the grid vector slice extended attribute data to generate dynamically extended grid vector slice data. According to the extended attributes, device attributes and slice standards of the target grid device, parse the original slice data and integrate the extended attribute data to generate dynamically extended grid vector slice data.
[0062] The slice merging service provides a slice interface design that is consistent with the original power grid slice service. The business_code parameter is added to the original power grid slice service interface to obtain the slice extension attribute configuration, obtain the attribute value according to the configuration, and apply the extension attribute to the slice; the returned data message is consistent with the original power grid slice service.
[0063] In one implementation, step 400 may specifically include the following steps:
[0064] Step S410, parse the basic power grid slice data based on the vector tile data encoding format (hereinafter referred to as the Mapbox Vector Tile standard) to obtain the power grid equipment ID value. The Mapbox Vector Tile standard is a vector tile data encoding format that saves storage space, designed for efficient rendering or querying of feature information on the client or server. This format is encoded using Google Protocol Buffers (Protobuf), the file suffix is .mvt, and the MIME type is set to application / vnd.mapbox-vector-tile. Mapbox Vector Tiles represents data projected on square blocks, does not contain range and projection information, and the decoder is assumed to know the range and projection information of the vector tile.
[0065] Step S420: Match the target power grid device ID value with the extended attribute data, and obtain the extended attribute and extended attribute data of the corresponding device according to the attribute field name in the extended attribute configuration.
[0066] Step S430: adding the extended attributes and the extended attribute data to the basic power grid vector slice data to generate dynamically extended power grid vector slice data.
[0067] Based on the Mapbox Vector Tile standard, parse the basic grid slice data, obtain the grid device ID value, match it with the extended attribute data, obtain the attribute value of the corresponding device according to the attribute field name (attributeField) in the slice extended attribute configuration, and add the attribute and its value to the basic slice data, and finally return it to the caller.
[0068] Step S500, the dynamically expanded power grid vector slice data is sent to the terminal device, so that the terminal device calculates and renders the layer for the dynamically expanded power grid vector slice data, obtains the dynamic business attribute layer corresponding to the power grid vector slice query request, and visually displays the dynamic business attribute layer in the power grid map. In a specific embodiment, the dynamically expanded power grid vector slice data includes the verification result of the target power grid device, and the verification result may include verified, being verified, and unverified.
[0069] The terminal device can be a mobile terminal or a computer; the terminal device can access the server through a browser or an application. The terminal device performs rendering calculations on the dynamically expanded grid vector slice data, thereby reducing the computing burden of the backend server.
[0070] like Figure 2As shown, a visualization presentation method based on dynamic expansion of power grid vector slice data disclosed in an embodiment of the present invention, a specific application example thereof may include the following steps:
[0071] Step S701: The user submits a request for map visualization service access to the verification status of power grid equipment to the slice merging service of the server through the terminal device. Power grid equipment includes transformers, base station buildings, etc. The transformer is used as an example for explanation below. The parameters of the access request include tileRow, tileCol and tileMatrix.
[0072] Step S702: The slice merging service queries the grid slicing service for the transformer verification status based on the parameters tileRow, tileCol and tileMatrix of the access request.
[0073] Step S703: The power grid slicing service returns basic power grid vector slice data to the slice merging service. The basic power grid vector slice data includes basic attributes such as device ID and device name.
[0074] Step S704: The slice merging service queries the slice extension configuration service for extended attribute configuration according to business_code and tileMatrix. The slice extension service has a pre-stored extended attribute configuration table, and the slice merging service queries the slice extension attribute configuration service for slice extended attribute configuration according to business_code and tileMatrix.
[0075] Step S705: The slice extension configuration service returns the query result to the slice merging service, and the query result includes the basic power grid vector slice data.
[0076] Step S706: When the slice merging service does not query the extended configuration, the basic power grid slice data is directly returned to the user.
[0077] Step S707: When the slice merging service finds that there is an extended configuration, it converts into the current slice coordinate rectangle according to tileRow, tileCol and tileMatrix.
[0078] Step S708: The slice merging service queries the business data query service for extended attribute data according to the device type and coordinate rectangle.
[0079] Step S709: The business extension data query service returns the extended attribute data to the slice merging service. The extended attribute data includes the verification status of the transformer, and the verification results include verified, under verification, and unverified.
[0080] Step S710: The slice merging service parses the original slice data and integrates the extended attribute data according to the extended configuration, slice standard and device attributes to generate dynamically extended grid slice data. The dynamically extended grid vector slice data is rendered to obtain a dynamic business attribute layer corresponding to the grid vector slice query request.
[0081] Step S711: The slice merging service returns the slice data containing the extended attributes to the user. The slice merging service sends the dynamic business attribute layer to the terminal device, so that the terminal device can directly visualize the transformer verification results in the power grid map without calculating the rendering layer.
[0082] like Figure 3 As shown, an embodiment of the present invention discloses a visualization presentation device based on dynamic expansion of power grid vector slice data, which is applied to a backend server. The backend server and the terminal device constitute a communication system. One implementation method thereof includes a basic attribute query module 100, an extended attribute configuration query module 200, an extended attribute data acquisition module 300, a data merging module 400 and a data sending module 500, wherein:
[0083] The basic attribute query module 100 is used to obtain basic power grid vector slice data in response to a power grid vector slice query request input by a user, wherein the basic power grid vector slice data includes device attribute information of a target power grid device.
[0084] The slice merging service accepts the request for obtaining grid slices, requests the original grid slice service according to the original parameters (except business_code), and obtains the basic grid slice data.
[0085] The extended attribute configuration query module 200 is used to query the slice extended attribute configuration in the slice extended attribute configuration table according to the business type and slice layer, wherein the slice extended attribute configuration table is pre-established and stored in the database of the backend server, and the slice extended attribute configuration table is a mapping relationship table between the business type and the slice layer and the business data.
[0086] The tile merging service obtains the extended attribute configuration from the database or cache according to the business_code (business type) and tileMatrix (tile matrix) in the request parameters. If the extended configuration does not exist, the basic tile data is returned to the caller intact; if the extended configuration exists, the next step is carried out.
[0087] The slice extended attribute configuration table may include the following fields: business type, attribute field name, device type, slice layer, and query service address. The slice extended attribute configuration table contains several major element fields, including business type, attribute field name, device type, slice layer, and query service address, which are used to store the rules for adding attributes to slices for different businesses and the source query of their attribute values. The business type in the slice extended attribute configuration table corresponds to the value of the attribute field name, and the value of the attribute field name is the extended attribute field returned by the query.
[0088] The extended attribute data acquisition module 300 is used to query and match the power grid vector slice extended attribute data in the business database in the backend server according to the device type and slice coordinates in the power grid vector slice query request when there is an extended configuration in the slice extended attribute configuration. The mapping relationship between the power grid vector slice extended attribute data and the target power grid device is pre-established in the database.
[0089] In one embodiment, the extended attribute data acquisition module 300 is also used to obtain the rectangular coordinates of the queried power grid vector slice according to the number of rows (i.e., tileRow), the number of columns (i.e., tileCol) and the slice layer (i.e., tileMatrix) in the query request when there is an extended configuration in the slice extended attribute configuration; perform business data query according to the device type and the rectangular coordinates, and obtain the extended attribute data of the power grid vector slice.
[0090] According to the current request parameters tileRow, tileCol and tileMatrix, the rectangular coordinates of the slice are converted. According to the agreed specifications of the solution, the coordinates of the two points in the upper left corner and lower right corner of the rectangle and the device type set are used to query the service extension data service to obtain the extended attribute data of the device in the slice. If there is no extended attribute data, the basic grid slice data is directly returned. If there is extended data, the next step is processed.
[0091] In another embodiment, the extended attribute data acquisition module 300 is further used to return basic power grid vector slice data when the query result has no slice extension configuration.
[0092] The data merging module 400 is used to merge the basic power grid vector slice data and the power grid vector slice extended attribute data to generate dynamically extended power grid vector slice data.
[0093] The slice merging service provides a slice interface design that is consistent with the original power grid slice service. The business_code parameter is added to the original power grid slice service interface to obtain the slice extension attribute configuration, obtain the attribute value according to the configuration, and apply the extension attribute to the slice; the returned data message is consistent with the original power grid slice service.
[0094] In one embodiment, the data merging module 400 is further used to parse the basic power grid slice data based on the Mapbox Vector Tile standard to obtain the power grid device ID value;
[0095] Match the ID value of the power grid device with the extended attribute data, and obtain the extended attribute and extended attribute data of the corresponding device according to the attribute field name in the extended attribute configuration;
[0096] The extended attributes and extended attribute data are added to the basic power grid vector slice data to obtain dynamically extended power grid slice data.
[0097] Based on the Mapbox Vector Tile standard, parse the basic grid slice data, obtain the grid device ID value, match it with the extended attribute data, obtain the attribute value of the corresponding device according to the attribute field name (attributeField) in the slice extended attribute configuration, and add the attribute and its value to the basic slice data, and finally return it to the caller.
[0098] The data sending module 500 is used to send the dynamically expanded power grid vector slice data to the terminal device for rendering so that the terminal device calculates the rendering layer and visually displays the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map.
[0099] The dynamically expanded grid vector slice data includes the verification results of the target grid equipment, including verified, verifying, and unverified. The terminal equipment can also be used to render the verification results using different colors.
[0100] The embodiment of the present invention further discloses a computer-readable storage medium, such as a chip, a CD, etc., on which a computer program is stored. The computer program stored in the storage medium is used to be executed by a processor to implement the method disclosed in the first embodiment.
[0101] This embodiment also discloses a server, including:
[0102] The method disclosed in the above embodiment is used to send a dynamic business attribute layer to the terminal device, or the device disclosed in the above embodiment is included.
[0103] This embodiment also discloses a visualization presentation system based on dynamic expansion of power grid vector slice data, including:
[0104] A backend server, which uses the method disclosed in the above embodiment to send dynamically expanded power grid vector slice data to a terminal device, or includes the apparatus disclosed in the above embodiment;
[0105] The front-end terminal device receives the dynamically expanded power grid vector slice data sent by the back-end server, calculates the rendering layer and visualizes the dynamic business attribute layer in the power grid map.
[0106] According to the visualization presentation method, device and system based on the dynamic expansion of power grid vector slice data disclosed in the embodiment of the present invention, basic power grid vector slice data is obtained through the back-end server; slice extension attribute configuration is queried in the slice extension attribute configuration table; power grid vector slice extension attribute data is obtained by querying and matching in the business database in the back-end server; basic power grid vector slice data and power grid vector slice extension attribute data are merged to generate dynamically expanded power grid vector slice data; the dynamically expanded power grid vector slice data is sent to the terminal device, so that the terminal device calculates the rendering layer and visualizes the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map. Since the present invention dynamically injects the associated customized attribute data into the basic power grid vector slice data according to the business type at runtime, it can integrate and adapt to the rendering and coloring requirements of different business maps, maintain the neatness of the basic power grid vector slice data, and enrich the rendering and coloring capabilities and extended functions of the power grid map while reducing the server calculation amount, which not only solves the problem of bloated or scattered slice data, but also simplifies the service architecture and is easy to maintain.
[0107] It should be noted that the computer-readable storage medium described in the embodiments of the present invention is not limited to the above-mentioned embodiments, and may also be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.
[0108] It will be appreciated by those skilled in the art that, under the premise of no conflict, the above-mentioned preferred solutions can be freely combined and superimposed. Among them, the flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings, for example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. The numbering of each step in this article is only for the convenience of description and reference, and is not used to limit the order of execution. The specific execution order is determined by the technology itself, and those skilled in the art can determine various allowable and reasonable orders based on the technology itself.
[0109] It should be noted that the use of step numbers (letters or numbers) to refer to certain specific method steps in the present invention is only for the purpose of convenience and simplicity of description, and is by no means intended to limit the order of these method steps. Those skilled in the art will understand that the order of the relevant method steps should be determined by the technology itself and should not be inappropriately limited by the existence of step numbers. Those skilled in the art can determine various permissible and reasonable step orders based on the technology itself.
[0110] Those skilled in the art will appreciate that, without conflict, the above-mentioned preferred solutions can be freely combined and superimposed.
[0111] It should be understood that the above-mentioned embodiments are merely illustrative and not restrictive. Without departing from the basic principles of the present invention, various obvious or equivalent modifications or substitutions that can be made by those skilled in the art to the above-mentioned details will all be included in the scope of the claims of the present invention.
Claims
1. A visualization method based on dynamic expansion of power grid vector slice data, applied to a backend server, wherein the backend server and a terminal device constitute a communication system, characterized in that: The method comprises: Step S100, in response to a power grid vector slice query request input by a user, basic power grid vector slice data is acquired, wherein the basic power grid vector slice data includes device attribute information of a target power grid device; Step S200, querying the slice extended attribute configuration in the slice extended attribute configuration table according to the business type and the slice layer, wherein the slice extended attribute configuration table is pre-established and stored in the database of the backend server, and the slice extended attribute configuration table is a mapping relationship table between the business type and the slice layer and the business data; Step S300, when there is an extended attribute configuration in the slice extended attribute configuration, the power grid vector slice extended attribute data is queried and matched in the service database in the backend server according to the device type and slice coordinates in the power grid vector slice query request, and the mapping relationship between the power grid vector slice extended attribute data and the target power grid device is pre-established in the database; Step S400, merging the basic power grid vector slice data and the power grid vector slice extended attribute data to generate dynamically extended power grid vector slice data; Step S500, sending the dynamically expanded power grid vector slice data to the terminal device, so that the terminal device calculates the rendering layer and visually displays the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map.
2. The visualization presentation method based on dynamic expansion of power grid vector slice data according to claim 1 is characterized in that: Step 300 includes: Step S310, when there is an extended configuration in the slice extended attribute configuration, the rectangular coordinates of the queried power grid vector slice are obtained according to the parameters in the query request: the number of rows, the number of columns and the slice layer; when there is no slice extended configuration in the query result, the basic power grid vector slice data is returned; Step S320, performing a business data query according to the device type and the rectangular coordinates, and obtaining extended attribute data of the power grid vector slice.
3. The visualization presentation method based on dynamic expansion of power grid vector slice data according to claim 1 is characterized in that: Step 400 includes: Step S410, parsing the basic power grid slice data based on the vector tile data encoding format standard to obtain the target power grid device ID value; Step S420, matching the target power grid device ID value with the extended attribute data, and acquiring the extended attribute and extended attribute data of the corresponding device according to the attribute field name in the extended attribute configuration; Step S430: adding the extended attribute and the extended attribute data to the basic power grid vector slice data to generate dynamically extended power grid vector slice data.
4. The visualization method based on dynamic expansion of power grid vector slice data according to claim 1 is characterized in that: The slice extended attribute configuration table includes the following fields: business type, attribute field name, device type, slice layer, and query service address; the business type corresponds to the value of the attribute field name, and the value of the attribute field name is the extended attribute field returned by the query.
5. A visual presentation device based on dynamic expansion of power grid vector slice data, applied to a backend server, wherein the backend server and the terminal device constitute a communication system, characterized in that: include: A basic attribute query module (100) is used to obtain basic power grid vector slice data in response to a power grid vector slice query request input by a user, wherein the basic power grid vector slice data includes device attribute information of a target power grid device; An extended attribute configuration query module (200) is used to query the slice extended attribute configuration in the slice extended attribute configuration table according to the business type and the slice layer, wherein the slice extended attribute configuration table is pre-established and stored in the database of the backend server, and the slice extended attribute configuration table is a mapping relationship table between the business type and the slice layer and the business data; An extended attribute data acquisition module (300) is used to query and match the extended attribute data of the power grid vector slice in the service database in the backend server according to the device type and slice coordinates in the power grid vector slice query request when there is an extended attribute configuration in the slice extended attribute configuration, and the mapping relationship between the power grid vector slice extended attribute data and the target power grid device is pre-established in the database; A data merging module (400) is used to merge the basic power grid vector slice data and the power grid vector slice extended attribute data to generate dynamically extended power grid vector slice data; A data transmission module (500) is used to transmit the dynamically expanded power grid vector slice data The data is sent to the terminal device so that the terminal device calculates the rendering layer and visually displays the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map.
6. The visual presentation device based on dynamic expansion of power grid vector slice data according to claim 5, characterized in that: The extended attribute data acquisition module (300) is further used to obtain the rectangular coordinates of the queried power grid vector slice according to the parameters in the query request: the number of rows, the number of columns and the slice layer when there is an extended configuration in the slice extended attribute configuration, and return the basic power grid vector slice data when there is no slice extended configuration in the query result; Business data query is performed according to the device type and the rectangular coordinates, and extended attribute data of the power grid vector slice is obtained.
7. The visual presentation device based on dynamic expansion of power grid vector slice data according to claim 5, characterized in that: The data merging module (400) is further used to parse the basic power grid slice data based on the vector tile data encoding format standard to obtain the power grid device ID value; Matching the power grid device ID value with the extended attribute data, and acquiring the extended attribute and extended attribute data of the corresponding device according to the attribute field name in the extended attribute configuration; The extended attribute and the extended attribute data are added to the basic power grid vector slice data to generate dynamically extended power grid vector slice data.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program stored in the storage medium is used to be executed by a processor to implement the method according to any one of claims 1 to 4.
9. A server, characterized in that: include: The method as described in any one of claims 1-4 is used to send the dynamic business attribute layer to the terminal device, or, the apparatus as described in any one of claims 5-7 is included.
10. A visualization presentation system based on dynamic expansion of power grid vector slice data, comprising: A backend server, using the method according to any one of claims 1 to 4 to send the dynamically expanded power grid vector slice data to the terminal device, or comprising the apparatus according to any one of claims 5 to 7; The front-end terminal device receives the dynamically expanded power grid vector slice data sent by the back-end server, calculates the rendering layer and visually displays the dynamic business attribute layer corresponding to the power grid vector slice query request in the power grid map.
Citation Information
Patent Citations
Real-time slicing method for vector graphic data of power grid equipment and storage medium
CN111581233A
Methods, apparatus and systems for data visualization and related applications
WO2010064939A1
