Disclosure of Invention
based on this, it is necessary to provide an efficient method, an apparatus, a computer device, and a storage medium for optimizing a three-dimensional overhead cable-level power grid in order to solve the problem of inefficient data loading and rendering of the conventional three-dimensional overhead cable-level power grid.
A three-dimensional overhead cable level power grid optimization method comprises the following steps:
acquiring multi-source basic geographic information data, power grid model data and overhead cable line detail data;
Carrying out block processing on the multi-source basic geographic information data;
Calling a power engine tool based on the multi-source basic geographic information data, the power grid model data and the overhead cable line detail data which are processed in a blocking mode, and constructing a three-dimensional overhead cable level power grid model;
and optimizing the three-dimensional overhead cable level power grid model according to a preset optimization algorithm, wherein the preset optimization algorithm comprises a space index algorithm, a Bezier curve interpolation algorithm and a level of detail LOD algorithm.
In one embodiment, the blocking processing of the multi-source basic geographic information data comprises:
And based on the tile pyramid principle, tile partitioning is carried out on the multi-source basic geographic information data according to a preset format size, and a data tile is obtained.
In one embodiment, based on the tile pyramid principle, tile partitioning is performed on the multi-source basic geographic information data according to a preset format size, and after a data tile is obtained, the method further includes:
and establishing corresponding indexes of the data tiles according to a quadtree dynamic index algorithm and an octree dynamic index algorithm.
In one embodiment, a three-dimensional overhead cable level power grid includes a conductor model;
according to a preset optimization algorithm, after the optimization processing is carried out on the three-dimensional overhead cable level power grid, the method further comprises the following steps:
And simulating the sag state of the wire according to the catenary algorithm, and optimizing the rendering efficiency of the wire model.
In one embodiment, after the optimization processing is performed on the three-dimensional overhead cable level power grid according to a preset optimization algorithm, the method further includes:
And loading and rendering the three-dimensional overhead cable level power grid according to a viewpoint-based terrain data scheduling and drawing technology.
In one embodiment, the optimization processing of the three-dimensional overhead cable level power grid according to a preset optimization algorithm comprises the following steps:
and performing curve smooth simulation optimization on the three-dimensional overhead cable level power grid according to a Bezier curve interpolation algorithm.
In one embodiment, before constructing the three-dimensional overhead cable level power grid model, the method further comprises:
and preprocessing the overhead cable line detail data, wherein the preprocessing comprises preliminary test prompting, verification and modification on unreasonable data.
a three-dimensional overhead cable level grid optimization device, the device comprising:
The data acquisition module is used for acquiring multi-source basic geographic information data, power grid model data and overhead cable line detail data;
The data blocking module is used for carrying out blocking processing on the multi-source basic geographic information data;
The model building module is used for calling a power engine tool based on the multi-source basic geographic information data, the power grid model data and the overhead cable line detail data which are processed in a blocking mode to build a three-dimensional overhead cable level power grid;
And the model optimization module is used for optimizing the three-dimensional overhead cable level power grid according to a preset optimization algorithm, and the preset optimization algorithm comprises a space index algorithm, a Bezier curve interpolation algorithm and a level of detail LOD algorithm.
a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
Acquiring multi-source basic geographic information data, power grid model data and overhead cable line detail data;
carrying out block processing on the multi-source basic geographic information data;
Calling a power engine tool based on the multi-source basic geographic information data, the power grid model data and the overhead cable line detail data which are processed in a blocking mode, and constructing a three-dimensional overhead cable level power grid model;
And optimizing the three-dimensional overhead cable level power grid model according to a preset optimization algorithm, wherein the preset optimization algorithm comprises a space index algorithm, a Bezier curve interpolation algorithm and a level of detail LOD algorithm.
a computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
Acquiring multi-source basic geographic information data, power grid model data and overhead cable line detail data;
carrying out block processing on the multi-source basic geographic information data;
Calling a power engine tool based on the multi-source basic geographic information data, the power grid model data and the overhead cable line detail data which are processed in a blocking mode, and constructing a three-dimensional overhead cable level power grid model;
and optimizing the three-dimensional overhead cable level power grid model according to a preset optimization algorithm, wherein the preset optimization algorithm comprises a space index algorithm, a Bezier curve interpolation algorithm and a level of detail LOD algorithm.
The three-dimensional overhead cable level power grid optimization method, the device, the computer equipment and the storage medium integrate various algorithms and technologies for optimization, ensure the simulation construction of the three-dimensional overhead cable level power grid, the tile blocking technology is used for managing multi-source geographic information data, so that data access is facilitated, a high-efficiency indexing mechanism can be established by using a spatial indexing algorithm, geographic space objects irrelevant to spatial operation in a three-dimensional scene can be filtered, the speed and the efficiency of the spatial operation are improved, the rendering effect of the three-dimensional overhead cable level power grid can be improved through a Bezier curve interpolation algorithm, and according to the difference of a distant view and a close view through an LOD algorithm technology, the original geometric model of the surface patch is optimized according to different progresses, the number of topological edges and structural surfaces in the surface patch structure is reduced, and therefore the model access and rendering efficiency is improved.
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 three-dimensional overhead cable level power grid optimization method is based on the GIS technology, takes the digital earth as a carrier, on the basis of high-resolution images of regions of five provinces in the south, basic geographic information data and power grid service data (the power grid service data comprises overhead cable line detail data) are integrated on an electric power three-dimensional system in a flat mode, a three-dimensional overhead cable level power grid is formed through driving of a power engine, then, the optimization is carried out through a preset optimization algorithm, and the method can be applied to an application environment graph as shown in FIG. 1, the application scenario can be that the user collects multi-source basic geographic information data based on the GIS in advance, then, the terminal 102 integrates the multi-source basic geographic data, and imports the power grid model data and the power grid service data (including overhead cable line detail data) into the database, and presets that a scene graph is adopted to construct a three-dimensional scene separately from a rendering object. When a user clicks a "model building" or other function button for building a three-dimensional model at the terminal 102, a model building instruction is sent to the terminal 102, a processor (not shown) of the terminal 102 receives the instruction, multi-source basic geographic information data, grid model data and overhead cable line detail data are obtained from a database, then, the multi-source basic geographic information data are subjected to blocking processing by adopting a tile pyramid principle, based on the multi-source basic geographic information data, the grid model data and the overhead cable line detail data after the blocking processing, a power engine tool such as an EV-Globe5.0 power engine is called to build a three-dimensional overhead cable level grid model, and finally, the three-dimensional overhead cable level grid model is optimized by calling preset optimization algorithms including a spatial index algorithm, a Bessel curve interpolation algorithm and a detail level LOD algorithm, and the model loading and rendering efficiency is improved. The terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In one embodiment, as shown in fig. 2, a three-dimensional overhead cable level power grid optimization method is provided, and for example, the method applied to a processor comprises the following steps:
And step S200, acquiring multi-source basic geographic information data, power grid model data and overhead cable line detail data.
the basic geographic information is a unified space carrier of various geographic information users and basic information of a digital earth, is social-oriented, has wide application range and extremely high sharing property and social public welfare. The multi-source basic geographic information data includes basic geographic data such as DOM (Digital ortho Map), DEM (Digital Elevation Model), vector administrative division, and topographic Map. The power grid model refers to a power equipment model, a public facility model and the like for a power grid simulation system, in this embodiment, power grid model data includes power equipment models such as a substation, a tower, an insulator string, a foundation, a spacer rod, a vibration damper and the like, and parameterized models such as a lead, a cable work well, a tunnel, a cable line and the like, the parameterized models refer to models obtained from functional analysis to parameterized modeling, the modeling method specifically refers to carrying out parameterized design by using basic features, and the basic features refer to related feature creation operations in a feature modeling function module and a free-form surface modeling function module provided by the system. The overhead cable line detail data is a part of hierarchical power grid data, and the hierarchical power grid data includes substation data, converter station data, distribution station data and the like in addition to the overhead cable line detail data. The overhead cable line data comprises data such as towers, insulator strings, spacers, vibration dampers, hardware fittings and the like. Specifically, in practical application, the hierarchical power grid data may be hierarchical power grid data (i.e., integrated power grid data from high voltage to low voltage, transmission and distribution) of different voltage levels, which are collected and arranged from high voltage to low voltage according to voltage levels, from a south kunbei converter station with a point cloud of ± 800kV udon direct current engineering, from a north current converter station with a northwest china of cantonese falling point to a gantry current converter station with a point cloud of Guangdong falling point, from the gantry current converter station to a 500kV bosro transformer station through a 500kV long lead, to a 500kV water country transformer station through a 500kV long lead, to a west current converter station through a 500kV long lead, from a west current converter station to a 500kV kapok transformer station through a 220kV kapok wire to a 220kV kochen transformer station, and then to enter a kocheng F11-lychee mountain economic area (transformer station area) through a 10kV sky river lead. The hierarchical power grid comprises power transformation, power transmission, power distribution and cables, spans four provinces, and forms a west-east power transmission mode.
And step S400, carrying out blocking processing on the multi-source basic geographic information data.
The multisource basic geographic information data contain large-scale and multi-scale complex terrain scene data, the data volume is large, the dimensionality is wide, and due to the fact that the complexity of operation of the space occupied by the large-scale complex terrain scene is exponentially increased, effective data organization and management need to be conducted on the multisource basic geographic information data in order to guarantee data loading and display efficiency and improve vividness. In this embodiment, after the multi-source basic geographic information data is obtained, the multi-source basic geographic information data may be subjected to block processing. Specifically, a data pyramid may be constructed based on a spatial quadtree principle and a spatial octree principle, an efficient indexing mechanism is established, then, the partitioned multisource basic geographic information data is stored in a Tile file form, and is managed and released through services such as OGC (Open geographic information Consortium), WMS (Web Map Service), WMTS (Web Map Tile Service), and the like, and further, efficient display and browsing of data resources are achieved through real-time request, access, scheduling, and refreshing of different display resolutions.
in one embodiment, the blocking processing of the multi-source basic geographic information data comprises: and step S420, based on the tile pyramid principle, tile blocking is carried out on the multi-source basic geographic information data according to the preset format size, and a data tile is obtained.
The tile pyramid principle refers to a process of carrying out grading and blocking processing on data according to data resolution, zoom level and map scale to obtain a tile map pyramid model. In the embodiment, a digital pyramid is constructed by using a tile pyramid principle, namely, the number N of zoom levels to be provided by a map service platform is determined, a map picture with the highest zoom level and the largest map scale is used as the bottom layer of the pyramid, namely, the 0 th layer, and is partitioned into blocks, the blocks are cut from the left upper corner of the map picture from left to right and from top to bottom, and are divided into square map tiles with the same size (for example, 256x256 pixels), so that a 0 th layer tile matrix is formed; on the basis of the map picture of the layer 0, according to the method that every 2x2 pixels are synthesized into one pixel, the map picture of the layer 1 is generated, and is partitioned into square map tiles with the same size as the next layer, and a tile matrix of the layer 1 is formed; generating a layer 2 tile matrix by the same method; …, respectively; and circulating from bottom to top according to the mode until an Nth 1-layer tile matrix is formed to form the whole tile pyramid. And dividing the terrain data of each layer of the pyramid structure into data tiles with consistent sizes. In this embodiment, the block processing is performed on the multisource basic geographic information data, which is convenient for effective data organization and management.
in one embodiment, based on the tile pyramid principle, tile partitioning is performed on the multi-source basic geographic information data according to a preset format size, and after a data tile is obtained, the method further includes: step S440, establishing corresponding indexes of the data tiles according to a quadtree dynamic index algorithm and an octree dynamic index algorithm.
As in the foregoing embodiment, after the block processing of the multisource basic geographic information data is completed to obtain a plurality of data tiles, in order to better expand the management of the geographic data and improve the access efficiency of the data, a spatial index algorithm may be used to encode and store the data tiles. In this embodiment, a quadtree dynamic index algorithm and an octree dynamic index algorithm may be used to establish the corresponding index of the data tile. The basic idea of quadtree indexing is to recursively divide the geospatial space into different levels of tree structures. It equally divides the space of the known range into four equal subspaces, and recurses in this way until the tree hierarchy reaches a certain depth or meets a certain requirement, and then stops the division. Specifically, as shown in fig. 4, the dynamic quadtree indexing algorithm is as follows:
1) determining a central point of a quadtree space according to the 1 st inserted geospatial object, wherein one direction of 4 leaf nodes of the quadtree is open;
2) Calculating MBR (Minimum bounding rectangle) of the geospatial object;
3) Searching out all leaf nodes containing the geospatial object;
4) Judging whether the number of the geospatial objects contained in the leaf nodes exceeds a threshold value, and if the number of the objects in the nodes exceeds the threshold value, processing the geographical space objects in 2 cases:
(1) If the node is an open boundary node, such as node (d) in fig. 4, the MBR of all geospatial objects in the node is calculated first, and then the node is decomposed into 4 new leaf nodes;
(2) Otherwise, if the node is a non-open node, such as node (e), the node is directly divided into 4 new leaf nodes;
5) Recalculating the geospatial objects contained in the newly generated nodes;
6) repeating the steps 1) to 5) to complete the index creation of the data tiles.
The principle of the octree dynamic index algorithm is similar to that of the quadtree dynamic index algorithm, and details are not repeated here, except that the number of child nodes of any node in the octree constructed by the octree dynamic index algorithm is 8 or 0. In this embodiment, the data tiles are encoded and stored by using the quadtree dynamic index algorithm and the octree dynamic index algorithm, so that the data tiles of uniform level become nodes of uniform tree depth of the quadtree or the octree, thereby completing a good description of the tile pyramid and facilitating storage and management of the tile pyramid.
Step S600, based on the multi-source basic geographic information data, the power grid model data and the overhead cable line detail data which are processed in a blocking mode, calling a power engine tool, and constructing a three-dimensional overhead cable level power grid model.
in practical application, before constructing the three-dimensional overhead cable level power grid model, the method further comprises the following steps: uniformly adding and warehousing electric power equipment models such as a transformer substation, a tower, an insulator string, a foundation, a spacer, a vibration damper and the like required for constructing an overhead cable level power grid model, organizing and warehousing level power grid data in a loop unit according to a business logic relationship, and specifically organizing and warehousing level power grid data in a loop unit according to voltage grades from high to low. And then calling a power engine tool to construct a three-dimensional overhead cable level power grid model. Specifically, the EV-Globe5.0 power engine is called to drive to realize the connection between the three-dimensional overhead cable level power grid construction and the passing converter station, so that the three-dimensional overhead cable level power grid is obtained, and the three-dimensional overhead cable integrated level power grid construction is realized. It will be appreciated that in other embodiments, other power engine tools may be employed to construct the three-dimensional overhead cable level grid model.
In one embodiment, before constructing the three-dimensional overhead cable level power grid model, the method further comprises: and preprocessing the overhead cable line detail data, wherein the preprocessing comprises preliminary test prompting, verification and modification on unreasonable data.
in order to ensure the smooth construction of the three-dimensional overhead cable level power grid model, the detailed overhead cable line data needs to be added and stored in a warehouse by taking a loop as a unit according to the voltage level, and the preprocessing specifically comprises the preliminary test prompting, the verification and the modification of unreasonable data. Besides the rationality test of the data, the correctness and consistency of the data are also required to be tested, and when abnormal data are found, a retest prompt and a modification prompt are generated in time. In the embodiment, the data are preprocessed, so that the three-dimensional overhead cable level power grid model can be conveniently and smoothly constructed.
And S800, optimizing the three-dimensional overhead cable level power grid model according to a preset optimization algorithm, wherein the preset optimization algorithm comprises a space index algorithm, a Bezier curve interpolation algorithm and a level of detail LOD algorithm.
As described in the foregoing embodiment, after the three-dimensional overhead cable level power grid model is constructed, the three-dimensional overhead cable level power grid model may be optimized according to a preset optimization algorithm, such as a spatial index algorithm, a bezier curve interpolation algorithm, a level of detail LOD algorithm, and the like, and then the optimized three-dimensional overhead cable level power grid model is released and displayed in a three-dimensional scene. Specifically, the method comprises the steps of carrying out tile blocking on parameterized models such as conducting wires, cable work wells, tunnels and cable lines in a three-dimensional overhead cable level power grid model according to a scale range based on a tile blocking principle to obtain corresponding data tiles of the parameterized models, dynamically creating indexes of the data tiles by utilizing a space index algorithm, filtering geographic space objects irrelevant to space operation in a three-dimensional scene, and improving the speed and the efficiency of space operation. According to a Bezier curve interpolation algorithm, curve smoothing simulation optimization is carried out on the conductor in the three-dimensional overhead cable level power grid model, so that the smoothness and the rendering effect of the conductor radian are improved. And rendering the three-dimensional overhead cable level power grid model according to an LOD algorithm, so that the data access and rendering efficiency is improved. The LOD algorithm determines the resource allocation of object rendering according to the positions and the importance of the nodes of the object model in the display environment, and reduces the number of faces and the detail of non-important objects, thereby obtaining high-efficiency rendering operation.
in one embodiment, rendering the three-dimensional overhead cable level grid model according to the LOD algorithm includes: and rendering the three-dimensional overhead cable level power grid model according to a rejection algorithm, a triangle surface quantity constant algorithm, a grid simplification algorithm based on edge folding and a material combination algorithm.
the LOD (level of detail model technology) algorithm is that a facet model is built on an original polyhedron, and according to a distance standard and size standard-based elimination algorithm, a triangular face quantity constant algorithm, an edge folding-based grid simplification algorithm and a material merging algorithm, the quantity of extension edges and structural faces in a facet structure is reduced through means of geometric data block sharing, texture block sharing and the like, so that the purposes of reducing the data complexity and I/O throughput under the condition of not influencing the visual effect are achieved, and the access and rendering efficiency of polyhedron data are improved. In practical applications, in some specific cases, a part of the geometric shapes in the three-dimensional scene cannot be seen by the viewer at any time, so in this case, the graphics system does not render the part of the object. In this embodiment, details that cannot be drawn by graphics hardware may be removed by a removal algorithm based on a distance criterion and an object size criterion, where a distance considered by the distance criterion is a distance from an object to an observer, and the distance is an euclidean distance from a viewpoint to a specified point in the object. That is, the farther an object is from the viewpoint, the less fine detail that the object can be viewed, which means that selecting a coarser level of detail to represent the object does not have a large impact on the fidelity of the display. The size criterion is based on the property that the ability of the human eye to recognize objects diminishes as the size of the object decreases, i.e. objects of smaller size to be represented are represented with a coarser level of detail and objects of larger size are represented with a finer level of detail. The principle of the constant triangular surface quantity algorithm is to ensure that the quantity of the triangular surfaces in each level of the LOD data does not fluctuate greatly, so that the efficient rendering of the model is achieved. The basic idea of the grid simplification algorithm based on edge folding is to perform edge folding operation according to a sequence of local errors from small to large, and specifically includes: before simplifying the grid, measuring the simplification errors of all edges, sequencing all edges according to the simplification errors, and establishing a priority queue of the edges. In the simplification process, the following steps are continuously executed until the simplification result reaches the preset requirement: step one, combining two vertexes of an edge with the minimum error; step two, updating simplified errors of the edges influenced by the vertex combination; and step three, updating the priority queue of the edge. The improvement is made on the basis of a material merging algorithm, namely, a Draw Call Batching technology, the material and the mapping are respectively merged, and the number of Draw Calls is reduced, so that the performance is improved. The main goal of the Draw Call Batching technique is to batch process multiple objects in one Draw Call. As long as the objects are transformed and textured in the same way, the graphics processor can process them in exactly the same way, i.e., they can be placed in a Draw Call. And a material merging algorithm that supports objects of different materials to be processed in exactly the same way.
The three-dimensional overhead cable level power grid optimization method integrates various algorithms and technologies for optimization, simulation construction of the three-dimensional overhead cable level power grid is guaranteed, multisource geographic information data are managed through a tile blocking technology, data access is facilitated, an efficient indexing mechanism can be established through the use of a spatial indexing algorithm, geographic space objects irrelevant to spatial operation in a three-dimensional scene can be filtered, the speed and the efficiency of spatial operation are improved, the rendering effect of the three-dimensional overhead cable level power grid can be improved through a Bezier curve interpolation algorithm, the original patch geometric model can be optimized according to different progresses according to different long-range and short-range views through an LOD algorithm technology, the number of topological edges and structural surfaces in the patch structure is reduced, and therefore model access and rendering efficiency are improved.
As shown in fig. 4, in one embodiment, a three-dimensional overhead cable level power grid includes a wire model; according to a preset optimization algorithm, after the optimization processing is carried out on the three-dimensional overhead cable level power grid, the method further comprises the following steps: and S820, simulating the sag state of the wire according to the catenary algorithm, and optimizing the rendering efficiency of the wire model.
The catenary refers to a curve that a uniform and soft (non-extensible) chain fixed at both ends has under the action of gravity, such as a suspension bridge. In the power transmission line, due to the influence of the rigidity of the wires, the wires between adjacent towers sag to a certain extent, and arc lines are formed. Therefore, for the rendering of the wires, the set form of the wires erected in the air is a catenary form, and in the rendering process, the selection of the sag formula is related to the problem of errors of the wire use stress and the problem of the distance errors of the wire pair crossing spans, so that with reference to the practical application of engineering, the catenary equation is adopted for the rendering simulation calculation of the wires in the example, and the calculation method is as follows:
maximum sag of the equal-height suspension point overhead line:
Sag of unequal height suspension point overhead line:
wherein l is the span (m), h is the height difference (m), β is the height difference angle f is the sag (m) of the wire, y and yl are the vertical heights (m) from each point of the wire to the abscissa axis, σ 0 is the horizontal stress (N/mm2) of each point of the wire, and γ is the specific load (N/m mm2) of the wire. In this embodiment, the rendering effect of the wire can be improved by using the catenary algorithm.
As shown in fig. 4, in one embodiment, after performing optimization processing on the three-dimensional overhead cable level power grid according to a preset optimization algorithm, the method further includes: and step 840, loading and rendering the three-dimensional overhead cable level power grid according to the viewpoint-based terrain data scheduling and drawing technology.
In practical application, in order to enhance management and real-time scheduling of a three-dimensional scene, a three-dimensional overhead cable level power grid can be loaded and rendered according to a viewpoint-based terrain data scheduling and drawing technology. Specifically, the method comprises the following steps: initializing the depth of a view frustum, calculating the distance between a three-dimensional terrain and a viewpoint (camera) in real time, updating the view frustum range of the camera, filtering partial data according to the height of the camera, and dynamically scheduling the data according to the view frustum range of the camera, wherein the method specifically comprises the following steps: determining the minimum value of the serial number of the layer number of the tile pyramid to which the data tiles to be drawn belong according to the positions of the camera and the terrain scene and the range of the view cone, and then dynamically deleting or adding the data tiles in the memory according to the relative position of the current camera view point and the last camera view point so as to ensure that the memory loads partial data every time and the terminal screen draws less partial data in the current view cone.
in one embodiment, the optimization processing of the three-dimensional overhead cable level power grid according to a preset optimization algorithm comprises the following steps: and performing curve smooth simulation optimization on the three-dimensional overhead cable level power grid according to a Bezier curve interpolation algorithm.
The bezier curve interpolation algorithm is to give n vertexes, connect the n vertexes into a smooth curve, specifically, take every two vertexes as the endpoints (i.e., the starting point and the ending point) of a bezier curve, calculate the control point of the bezier curve corresponding to the two endpoints by combining the two endpoints with the adjacent two vertexes, and then draw a bezier curve passing through the two vertexes according to the endpoints and the control point. In this embodiment, the bezier curve interpolation algorithm is:
B(t)=P(1-t)+3Pt(1-t)+3Pt(1-t)+Pt,t∈[0,1]
The points P0, P1, P2 and P3 define a cubic Betz curve, and a smooth curve can be formed. In this embodiment, curves such as wires in the three-dimensional overhead cable level power grid model can be optimized through the bezier curve interpolation algorithm, and the flow of the radian of the wires and the rendering effect are ensured.
It should be understood that, although the steps in the flowcharts of fig. 2 to 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence 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 performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
in one embodiment, as shown in fig. 5, there is provided a three-dimensional overhead cable level power grid optimization device, including: a data acquisition module 510, a data chunking module 520, a model construction module 530, and a model optimization module 540, wherein:
the data acquisition module 510 is configured to acquire multi-source basic geographic information data, power grid model data, and overhead cable line detail data.
And a data blocking module 520, configured to perform blocking processing on the multi-source basic geographic information data.
the model building module 530 is configured to call a power engine tool to build a three-dimensional overhead cable level power grid based on the multi-source basic geographic information data, the power grid model data and the overhead cable line detail data which are processed in a block-wise manner.
And the model optimization module 540 is configured to perform optimization processing on the three-dimensional overhead cable-level power grid according to a preset optimization algorithm, where the preset optimization algorithm includes a spatial index algorithm, a bezier curve interpolation algorithm, and a level of detail LOD algorithm.
As shown in fig. 6, in one embodiment, the three-dimensional overhead cable-level power grid optimization apparatus further includes a data tile management module 550 for establishing a corresponding index of data tiles according to a quadtree dynamic indexing algorithm and an octree dynamic indexing algorithm.
As shown in fig. 6, in one embodiment, the three-dimensional overhead cable-level power grid optimization device further includes a data preprocessing module 560, configured to preprocess the overhead cable line detail data, where the preprocessing includes performing preliminary test prompting and verification modification on unreasonable data.
in one embodiment, the data blocking module 520 is further configured to perform tile blocking on the multi-source basic geographic information data according to a preset format size based on the tile pyramid principle to obtain a data tile.
In one embodiment, the model optimization module 540 is further configured to simulate a sag state of the wire according to a catenary algorithm, and optimize rendering efficiency of the wire model.
In one embodiment, the model optimization module 540 is further configured to load and render the three-dimensional overhead cable-level power grid according to a viewpoint-based terrain data scheduling rendering technique.
in one embodiment, the model optimization module 540 is further configured to perform curve smoothing simulation optimization on the three-dimensional overhead cable level power grid according to a bezier curve interpolation algorithm.
for specific limitations of the three-dimensional overhead cable level power grid optimization device, reference may be made to the above limitations of the three-dimensional overhead cable level power grid optimization method, which are not described herein again. The various modules in the three-dimensional overhead cable-level power grid optimization apparatus described above may be implemented in whole or in part by software, hardware, and combinations 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 a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device 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 and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. 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 three-dimensional overhead cable level grid optimization method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 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: the method comprises the steps of obtaining multi-source basic geographic information data, power grid model data and overhead cable line detail data, conducting block processing on the multi-source basic geographic information data, calling a power engine tool based on the multi-source basic geographic information data, the power grid model data and the overhead cable line detail data which are processed in a block mode, constructing a three-dimensional overhead cable level power grid model, conducting optimization processing on the three-dimensional overhead cable level power grid model according to a preset optimization algorithm, wherein the preset optimization algorithm comprises a spatial index algorithm, a Bezier curve interpolation algorithm and a detail level LOD algorithm.
in one embodiment, the processor, when executing the computer program, further performs the steps of: and based on the tile pyramid principle, tile partitioning is carried out on the multi-source basic geographic information data according to a preset format size, and a data tile is obtained.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and establishing corresponding indexes of the data tiles according to a quadtree dynamic index algorithm and an octree dynamic index algorithm.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and simulating the sag state of the wire according to the catenary algorithm, and optimizing the rendering efficiency of the wire model.
in one embodiment, the processor, when executing the computer program, further performs the steps of: and loading and rendering the three-dimensional overhead cable level power grid according to a viewpoint-based terrain data scheduling and drawing technology.
in one embodiment, the processor, when executing the computer program, further performs the steps of: and performing curve smooth simulation optimization on the three-dimensional overhead cable level power grid according to a Bezier curve interpolation algorithm.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and preprocessing the overhead cable line detail data, wherein the preprocessing comprises preliminary test prompting, verification and modification on unreasonable data.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor performs the steps of: the method comprises the steps of obtaining multi-source basic geographic information data, power grid model data and overhead cable line detail data, conducting block processing on the multi-source basic geographic information data, calling a power engine tool based on the multi-source basic geographic information data, the power grid model data and the overhead cable line detail data which are processed in a block mode, constructing a three-dimensional overhead cable level power grid model, conducting optimization processing on the three-dimensional overhead cable level power grid model according to a preset optimization algorithm, wherein the preset optimization algorithm comprises a spatial index algorithm, a Bezier curve interpolation algorithm and a detail level LOD algorithm.
In one embodiment, the computer program when executed by the processor further performs the steps of: and based on the tile pyramid principle, tile partitioning is carried out on the multi-source basic geographic information data according to a preset format size, and a data tile is obtained.
in one embodiment, the computer program when executed by the processor further performs the steps of: and establishing corresponding indexes of the data tiles according to a quadtree dynamic index algorithm and an octree dynamic index algorithm.
In one embodiment, the computer program when executed by the processor further performs the steps of: and simulating the sag state of the wire according to the catenary algorithm, and optimizing the rendering efficiency of the wire model.
in one embodiment, the computer program when executed by the processor further performs the steps of: and loading and rendering the three-dimensional overhead cable level power grid according to a viewpoint-based terrain data scheduling and drawing technology.
In one embodiment, the computer program when executed by the processor further performs the steps of: and performing curve smooth simulation optimization on the three-dimensional overhead cable level power grid according to a Bezier curve interpolation algorithm.
in one embodiment, the computer program when executed by the processor further performs the steps of: and preprocessing the overhead cable line detail data, wherein the preprocessing comprises preliminary test prompting, verification and modification on unreasonable data.
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 related to 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 examples 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.