Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
In the embodiment of the present invention, the apparatus, the electronic device, and the storage medium may be implemented on a terminal having a GIS (Geographic Information System) map. Referring to fig. 1, the terminal may be a desktop terminal, and the desktop terminal has a display screen 1 to provide a display interface, and the display interface is used for visually outputting a GIS map, and visually outputting a selected pole and tower point and a generated power distribution network line path. The desktop terminal may further have at least one input terminal for acquiring the execution action of the user, such as an input device like a keyboard 2 or a mouse 2.
Alternatively, the terminal may be a portable electronic device, such as a smartphone, tablet, or the like. The portable electronic device has a display interface, in particular a touch screen 3, the touch screen 3 providing both an output interface and an input interface between the terminal and the user. The touch screen controller receives/sends electrical signals from/to the touch screen. The touch screen 3 then displays visual output to the user. This visual output may include text, graphics, video, and any combination thereof, including but not limited to GIS maps, logo primitives, and the like. Some or all of the visual output may correspond to user interface objects, for example, points having unique coordinates are selected on a GIS map in response to a user's actions, as will be described in more detail below.
The touch screen 3 also accepts user input based on tactile and/or tactile contact. The touch screen 3 forms a touch sensitive surface that accepts user input. The touch screen and touch screen controller (along with any associated modules and/or sets of instructions in memory) detect contact on the touch screen (and any movement or breaking of the touch) and transform the detected contact into interaction with user interface objects displayed on the touch screen, such as movement of an arrow on the display interface, or identifying primitives, and may also be interaction with user interface objects such as a virtual keyboard, virtual primitive identifying dial, and the like. In one exemplary embodiment, the point of contact between the touch screen and the user corresponds to one or more fingers of the user. The touch screen may use LCD (liquid crystal display) technology or LPD (light emitting polymer display) technology, but in other embodiments other display technologies may be used. The touch screen 3 and touch screen controller may detect contact and movement or breaking thereof using any of a number of touch sensitive technologies, including but not limited to capacitive, resistive, infrared, and surface acoustic wave technologies, as well as other proximity sensor arrays, or other technologies for determining one or more points of contact with the touch screen 3. However, the touch screen 3 displays visual output from the portable device, whereas the touch sensitive panel does not provide visual output. The user may contact the touch screen 3 using any suitable object or accessory, such as a stylus, finger, etc., to display a selection of a point location or other operation on the touch screen 3.
In some embodiments, a touchpad (not shown) for activating or deactivating a particular function may be included in addition to the touch screen. In some embodiments, the touchpad is a touch-sensitive area of the device, and unlike a touch screen, the touchpad does not display visual output. The touchpad may be a touch-sensitive surface separate from the touch screen or an extension of the touch-sensitive surface formed by the touch screen.
In addition, the terminal can be connected with the Internet to realize the call between the stored data of the related database. For example, calling GIS map data on other device terminals, or field geographic data for a surveyor to survey in the field.
The existing power distribution network design generally adopts the method that a satellite picture of an area where a power distribution network needs to be built is imported or inserted into CAD software, and then the picture is used as a background, so that the design is carried out on the background. It is easy to understand that in the existing power distribution network design, pictures are used, and the display of the satellite map is influenced by zooming the interface in the design process, so that the design process of a designer is inconvenient to carry out. And after the design is finished, the derived power distribution network path is disconnected with the ground geographic data, and the communication between a design unit and a construction unit is not convenient.
Therefore, the power distribution network line path generation method can be specifically applied to automatic generation of paths in a power distribution network design stage.
Referring to fig. 2, a method for generating a power distribution network line path according to an embodiment of the present invention includes the following steps:
s101, responding to a first operation of a user, and acquiring a screen point position selected by the user on a display interface.
The power distribution network mainly comprises overhead lines, cables, towers, distribution transformers and other accessory facilities, and plays an important role in distributing electric energy in the power network. Therefore, the generation of the power distribution network line path mainly lies in the determination of the pole tower point location.
Step S101 is used for determining the screen point position determined by the user on the GIS map. And further determining the map point location determined by the user on the GIS map according to the screen point location. Therefore, it is necessary that the point location subjectively selected by the user on the GIS map can be determined in response to the first operation of the user.
S102, determining pole and tower point positions of poles and towers in the power distribution network on the GIS map according to the screen point positions, wherein the pole and tower point positions have spatial geographic coordinates.
Step S102 is used for determining map point locations, namely pole and tower point locations, on the GIS map. The purpose is to translate the screen coordinates into geographical coordinates. Generally, a GIS map is generally a satellite map. Therefore, under the support of accurate geographic information of the GIS map, corresponding to the first operation of a user, a point location with unique spatial coordinate data can be selected in a unified geographic space frame, namely a pole and tower point location, and the spatial geographic coordinate of the pole and tower point location can correspond to the real geographic position. Namely, no matter how the scale of the GIS map changes, the selected pole and tower point position does not change and is consistent.
And S103, correspondingly generating tower primitive identifications at the tower point positions.
Step S103 is configured to display the selected tower point location with the tower attributes on the GIS map, so that a designer can conveniently view the determined tower point location, and the point location is also different from other point locations selected by the user through selecting a design behavior. The pole tower primitive identification is also used for visually displaying on a GIS map or identifying the position of the pole tower. The tower primitive identifier may be a user-defined graph on the GIS platform, for example, referring to fig. 3, the tower primitive identifier is a circle. But also a solid circle or a square frame, etc. For example, in a GIS map, the geometric center of the tower primitive identifier is the coordinate point of the determined tower point location.
The tower primitive identifier may be stored in the GIS map as a data object layer, and linked to the tower point location determined in step S102 through a spatial position relationship in the GIS map.
And S104, after the user performs at least 2 times of first operation, generating a line path sequentially connected with at least 2 tower primitive identifications according to the spatial topological relation between the spatial geographic coordinate of each of the tower points and the tower points, and displaying the line path identifications in a GIS map, namely generating the line path of the power distribution network.
After the pole and tower point locations of the power distribution network are determined in step S102, the determined pole and tower point locations are sequentially connected to generate a line path. For example, the line path explains overhead lines or cables connecting between towers.
After the step S101 is performed for a plurality of times, based on the subjective selection of the user on the GIS map, and in response to at least two first operations performed by the user, at least 2 tower point locations for constructing a tower are selected on the GIS map, and the selected tower point locations are visually output on the GIS map of the display interface through corresponding tower primitive identifiers.
In the design process of the power distribution network, survey data of an area needing power distribution network construction is acquired in the early stage, or site survey is carried out and on-site survey data is formed, or equipment such as an unmanned aerial vehicle is used for surveying so as to acquire the survey data. Therefore, in the design process of the power distribution network, a user can predict the approximate path of the power distribution network on the GIS map, and therefore pole and tower points can be selected or determined in sequence according to the line direction of the power distribution network in the specific design process of the power distribution network. In this step, a line path sequentially connecting at least 2 pole tower primitive identifiers can be generated according to the spatial topological relation between the spatial geographic coordinates of each pole tower point location and the pole tower point location, and the line path identifiers are displayed in a GIS map, that is, a power distribution network line path is generated.
That is, when a tower point location is newly determined, step S104 connects the newly determined tower point location with the spatially closest last tower point location, and generates a line path. And displaying the line path identification in the GIS map. The line identification is also used to describe the straight line segment as a line in the distribution network. The line path is an element object in the GIS platform, does not have a specific width, and only has nodes and directions, wherein the nodes are 2 connected pole and tower points. The direction is the direction determined among the 2 pole and tower points.
Since GIS are typically satellite maps, a two-dimensional map is exemplified below.
Specifically, the nth tower A is determined on the GIS map n While, the (n-1) th tower A n-1 Has already been connected with the (n-2) th tower A n-2 And (4) connecting. At the nth tower A n After the determination, the nth tower A n The coordinates of the pole tower point position are A n (x n ,y n ). Namely at A n (x n ,y n ) After generating the corresponding tower primitive identification, the terminal executes step S104 to identify the nth tower A n With the (n-1) th tower A n-1 Connecting and generating connection A on the GIS map n (x n ,y n ) Tower primitive identification and A n-1 (x n-1 ,y n-1 ) And the straight line segment identification of the tower graphic element identification can be a straight line segment or 2 parallel straight line segments. Two ends of each straight line segment are respectively connected with A n (x n ,y n ) Tower primitive identification and A n-1 (x n-1 ,y n-1 ) And the tower graphic element identifications are connected.
For example, referring to fig. 3 and 4, the first tower a is identified on the GIS map
1 And a second tower A
2 The pole tower point positions of the two pole towers are respectively A
1 (x
1 ,y
1 ) And A
2 (x
2 ,y
2 ) And the two tower graphic element identifications are visually output on a display interface of the terminal. The GIS platform generates a line path connected with at least 2 tower graphic element identifiers, wherein the line path is connected with A
1 (x
1 ,y
1 ) And A
2 (x
2 ,y
2 ) A
straight line section 4, wherein the length of the
straight line section 4 is
And is arranged atVisually outputting the straight line segment on a display interface of the terminal, wherein end points at two ends of the straight line segment are A
1 (x
1 ,y
1 ) Tower primitive identification and A
2 (x
2 ,y
2 ) And identifying the tower graphic element. />
At this time, 2 tower primitive identifications are displayed on the GIS map, and the 2 tower primitive identifications are used for visually outputting 2 determined tower point positions a on the GIS map 1 And A 2 And visually outputting straight line segments 4 connected with the 2 tower graphic element identifications, namely paths of overhead lines or cables connected with two towers. At this time, the straight line segment 4 with the 2 pole tower primitive identifications is the power distribution network line path with the 2 pole towers.
In the embodiment of the application, a user executes a first operation on a terminal with a GIS map. The first operation is used as the input of the terminal, and may be input acquired through an input device, such as a mouse, a keyboard, a touch screen, or a touch panel, and the GIS platform converts the acquired screen point location of the input into a coordinate point having unique spatial geographic information, such as a spatial coordinate, determined by a user on a GIS map, where the coordinate point is a determined pole and tower point location. Meanwhile, the generating method provided by this embodiment generates the corresponding tower primitive identifier at the tower point location after the tower point location is determined, so as to visually output the determined tower point location on the GIS map. After a user performs at least 2 times of first operation, namely each time a new tower point location is determined, the tower point location is connected with the previous tower point location to generate an element object: a line path. And meanwhile, visually outputting line path identification on a GIS map according to 2 pole tower point positions. At the moment, the tower primitive identifications and the line path identifications form a power distribution network line path on the GIS map. It is easy to understand that the generated primitive identification and the generated line path identification can call the existing or customized attribute symbol in the database in the GIS platform, and store the attribute symbol as a data object in the GIS platform.
In some embodiments of the present invention, before performing step S101, the method further includes:
and S100, acquiring a GIS map of the target geographic area, and displaying the GIS map of the target geographic area on a display interface.
Step S100 is to call a GIS map of the target geographic area when designing the power distribution network line path, and display the called GIS map on a display interface of the terminal. So that the user can conveniently browse the target geographical area needing to design the power distribution network.
The target geographical area is the area through which the power distribution network line to be designed is expected to pass. For example, if the distribution network is expected to pass through a mountain area, step S100 displays a GIS map of the mountain area on a display interface.
In some embodiments of the application, when the display interface is a touch-sensitive display, the step S102, in response to a first operation of a user, of obtaining a screen point location selected by the user on the display interface includes:
s1021, responding to a first operation of the user on a display interface, and detecting contact with the touch-sensitive display.
And S1022, determining the screen point position selected by the user on the display interface according to the contact.
In this embodiment, referring to fig. 3 and fig. 4, when the display interface is a touch-sensitive display, that is, the terminal may be a portable electronic device, such as a smart phone, a tablet, and the like. The portable electronic device has a display interface, in particular a touch screen 3, the touch screen 3 providing both an output interface and an input interface between the device and a user.
The touch screen visually outputs the GIS map so that the user can visually receive the GIS map information. In addition, the touch screen 3 may also display user interface objects corresponding to one or more functions of the terminal and/or information that may be of interest to the user. These user interface objects are objects that make up the user interface of the terminal and may include, but are not limited to, text, images, icons, soft or virtual buttons, drop down menus, selection buttons, selectable lists, and the like. The displayed user interface objects may include: the map display window is used for transmitting GIS map information, GIS displayed on the map forms a non-interactive object, the map display window can be used for user interaction as an interactive object, such as an attribute mark library used for displaying pole tower graphic element marks, and can also be an indicator symbol interactive object used for displaying point positions selected by a user or a combination thereof.
Meanwhile, the touch screen 3 also provides an input interface. The input interface detects contact and responds to the detected contact by performing one or more operations corresponding to interaction of one or more interaction objects. Step S1021 is executed, and contact with the touch-sensitive display is detected in response to a first operation of the user on a display interface.
In some embodiments, the first operation is a gesture performed on the touch screen, which may be, for example, a tap, a swipe, or a gesture having a predetermined path. As used herein, a gesture is a movement of an object/accessory in contact with the touch screen. For example, the gesture may include a click contact of the user on the touch screen 3 at a map display window of the touch screen to select a point on the GIS map.
Or, the map display window may be a permanent contact of the user on the touch screen, and the contact is interrupted at a certain corresponding point, which is also a certain point selected by the user. The permanent contact can be regular linear track contact, arc track contact, or irregular permanent contact.
And after the certain point is confirmed, the certain point corresponds to a GIS map and has a unique spatial coordinate, namely the point position of the tower in the power distribution network on the GIS map of the target geographic area.
It will be readily understood that the contact on the touch screen 3 will be described as being performed by the user using at least one hand and using one or more fingers. It should be appreciated that the contact may be made using any suitable object or accessory, such as a stylus or the like. The contacting may include: one or more taps on the touch screen, maintaining continuous contact with the touch screen, moving the point of contact while maintaining continuous contact, interrupting contact, or any combination thereof.
Therefore, when the user performs the first action on the touch screen and the first action corresponds to the successful execution of the contact action, the terminal performs step S1022 to determine the point of the screen selected by the user on the display interface according to the contact. .
In some embodiments, referring to FIG. 3, a point is determined by a user's click contact or break contact on the touch screen 3, and a pop-up window may be displayed on the user interface object, where the pop-up window includes a "OK" or "YES" virtual button indicating a certain selection of the point, or a "Cancel" or "No" button indicating a deselection of the point. The user may determine whether to select the screen point by touching the "ok" virtual button, or the "cancel" button.
In other embodiments of the invention, referring to fig. 1, the terminal does not comprise the aforementioned touch screen 3. That is, the terminal includes a display screen 1, and the display screen 1 provides an output interface to visually output a GIS map, or an operation by the user, and visually output user interaction with the terminal, such as selection or deselection.
Referring to fig. 5 and 6, the terminal further has at least one input device for acquiring a first action of the user. For example, it may be a mouse 3. At this time, a user interface object corresponding to one or more functions of the terminal and/or information that may be of interest to the user may also be displayed on the display interface of the display screen 1. These user interface objects are objects that make up the user interface of the terminal and may include, but are not limited to, text, images, icons, soft or virtual buttons, drop down menus, selection buttons, selectable lists, and the like. The displayed user interface objects may include: the map display window is used for transmitting GIS map information, a GIS displayed on the map forms a non-interactive object, and a user interactive object can be provided, such as an attribute mark library used for displaying pole tower graphic element marks, an indication symbol interactive object used for displaying point positions selected by a user, or a combination thereof. And a pointer which can move on the display interface is also provided on the display interface, and the pointer is matched with the action of the user for moving the mouse 3 and moves on the display interface along with the movement of the mouse by the user. The mouse also provides an input interface, such as a left mouse button, for a user to interact with the user interaction object.
For example, at this time, the first operation of the user may be a movement of the mouse and a certain action received through the left key of the mouse. In some embodiments of the present application, step S101 may determine a selection point determined by the user on the GIS map on the display interface according to the movement of the mouse by the user. And corresponds to the successful execution of the mouse left click action, the terminal performs step S101.
In some embodiments, after the user selects a point through the mouse, a popup window including a "confirm" virtual button indicating that the point is definitely selected or a "cancel" button indicating that the point is deselected may be displayed on the display interface. The user may determine whether to select the point by moving the cursor through the mouse and clicking the left button of the mouse to determine a "virtual button" or a "cancel" button.
In some embodiments of the present invention, step S103, generating tower primitive identifiers at the tower point locations correspondingly, includes:
and S1031, displaying the graph metadata database on a display interface.
S1032, responding to a second action of the user, obtaining primitive selection information, and determining a specific primitive from the primitive database according to the primitive selection information.
Because the GIS platform itself includes four components: a standard layer, a database layer, a platform layer, and an assembly layer. And database layer presence standards define data types, spatial operation symbols, input and output formats, functions, and others. Therefore, a database of primitive symbols carried by the GIS platform is called in the database layer to select a specific primitive.
Alternatively, in some embodiments, the primitives in the primitive symbol database may be user-defined autonomously according to standards for power distribution network design or industry practices.
In performing step S1031, a pop-up window may pop up on the user object interaction interface on the display interface, or a pull-down menu may be shown. The pop-up window or the pull-down menu is displayed with a plurality of primitive identification symbols through an array or other modes. The user can select a specific primitive symbol by performing step S1032 with a mouse.
It is easy to understand that, the user may refer to the foregoing step S101, that is, the user may contact the touch screen and detect the contact action, or may select the primitive identifier through an input device such as a mouse. And will not be described in detail herein.
And S1033, drawing the specific primitive at the point position of the tower to serve as a tower primitive identification.
After the specific primitive is determined in step S1032, the specific primitive is automatically drawn or generated at the tower point location on the GIS map, so as to serve as the tower primitive identifier corresponding to the tower point location. At the moment, the pole tower point location determined on the GIS map is visually output on a display interface through the pole tower primitive identification linked to the pole tower point location.
For example, the tower in the power distribution network includes types of a straight pole, a terminal pole, a T-junction branch pole, a corner pole, and the like, and for each of the above types of towers, different specific primitives may be used to characterize the type of tower. For example, T-shaped struts are characterized using boxes with "T" shaped characters.
In some embodiments, the step S104 is followed by:
and S105, generating a path corridor band by using a buffer calculation method according to the line path.
And S106, calculating the spatial position relation between the ground object and the path corridor belt by using a spatial proximity analysis method, and judging whether the ground object and the path corridor belt intersect or not.
If the two images are crossed, step S107 is executed, and the ground feature is extracted.
If not, executing step S108, and calculating the horizontal distance between the ground object and the path corridor zone.
In the embodiment of the present application, the line path generated in the foregoing step is an element object in the GIS platform, and has only nodes and directions, and does not have a width. That is, in the design process of the power distribution network, the line path cannot be used for checking whether the position selection of the pole and tower point location is reasonable or not. Meanwhile, the line path identifier is used for visually outputting the line identifier on the GIS map and does not have the width attribute of the power distribution network line.
Thus, embodiments of the present invention use path corridor zones to characterize the width properties of a power distribution network.
In step S105, the buffer calculation method in the GIS platform is used to determine the influence range of the line path, so as to determine the width attribute of the line path. Specifically, in a GIS map, the buffer represents a range of influence or service of the geospatial object. In the design process of the power distribution network, the influence range of the space line path on the ground object in the GIS map can be represented by using the value related to the safety distance.
The buffer calculation method in the GIS platform is to give a space object or set and determine the neighborhood of the space object or set, and the size of the neighborhood is determined by the radius R of the neighborhood. In this embodiment, the spatial object is a line object having nodes and directions, and therefore, after the neighborhood radius R is assigned as a specified distance or other value related to a safe distance, a buffer calculation method is used to generate a strip region, i.e., a path corridor strip, for the line path. The center of the path corridor belt is a space object: a line path. Generally, the value of the specified distance is smaller than the value of the horizontal safety distance in the design of the power distribution network. Alternatively, for example, the specified distance may be an actual width attribute of an overhead cable or cable in the power distribution network that corresponds to the tower type determination. Or the specified distance may be an initial value determined according to the tower.
The terrain in the GIS platform includes but is not limited to: any one or combination of a plurality of roads, bridges, mountains, lakes and rivers. The ground objects can be correspondingly stored in the GIS platform as elements. Step S107 is to extract the feature of the corridor zone. Specifically, in the embodiment of the present invention, the spatial position relationship between the ground object and the path corridor is calculated by a spatial proximity analysis method, and whether the ground object and the path corridor intersect with each other is determined. That is, proximity describes a value of how close two elements in a geographic space are, for example, the distance between a ground object and a route path.
And when the distance is smaller than or equal to the neighborhood radius R, judging that the distance is intersected, and executing the step S107 and extracting the ground feature. The step of extracting the feature is to add an attribute value of "intersection" to the attribute library of the element feature, so as to describe that the feature intersects with the line path of the power distribution network.
And if the distance is larger than the neighborhood radius R and the distance is judged to be not intersected, executing the step S108 and calculating the horizontal distance between the ground object and the path corridor. Disjoint means that the feature that has been subjected to the spatial proximity analysis method is not located in the path corridor zone.
For example, referring to fig. 4 and 6, a figure tree 6 within the corridor zone of the path is located closer to the straight line segment 4 of the line path than the neighborhood radius, i.e. within the corridor zone 7 of the path, while a figure house 5 is located closer to the straight line segment 4 of the line path than the neighborhood radius, i.e. outside the corridor zone 7 of the path. Thereby remind the user when being convenient for later stage distribution network check.
In some embodiments, after step S108 is executed and the horizontal distance between the feature and the path corridor zone is calculated, it may be further determined whether the feature and the route path satisfy the safety distance. The horizontal distance can be compared with the safety distance in the design of the power distribution network, and if the horizontal distance value is smaller than the safety distance, the ground object can still be extracted. If the horizontal distance is not less than the safety distance, it means that the feature is not only outside the corridor zone of the path, but also outside the safety distance of the line path.
In some embodiments, step S103 is followed by:
s109, obtaining tower designated information, and starting and ending the tower positions from all the tower positions according to the tower designated information.
The tower specifying information in step S109 is input information received by the terminal. For example, the input information may be a click touch of the user on the touch screen 3. Alternatively, the input information may be a click selection by the user on the user interaction object via the mouse 3. Alternatively, the input information may be information input by the user through an input device such as the keyboard 2 or a touch panel.
Referring to fig. 5, the terminal obtains the tower specifying information, where the tower specifying information includes a starting pole position and an ending pole position selected by the user in a power distribution network path. The terminal acquires the information and executes the operation: and according to the tower designated information, starting pole positions and ending pole positions in all the pole positions. Specifically, after the terminal determines a start pole position and an end pole position, attribute tags of "start" or "end" are respectively added to corresponding pole and tower point positions. Alternatively, an attribute label of "number B =0" is added at the corresponding start lever position.
And S110, determining the number of the tower point positions in the power distribution network line path according to the space topological relation among the tower point positions.
In step S110, since the starting pole position and the ending pole position are specified, a distribution network line path is already determined, and both end points of the distribution network line path are already determined. At the moment, parameters in the GIS platform can be called, the pole and tower point positions in the power distribution network line path can be numbered in sequence from the initial pole position, and the end is carried out when the pole and tower point positions are ended.
For example, referring to fig. 5, after determining that the pole and tower point position on the rightmost side in the display interface is the starting pole and the pole and tower point position on the leftmost side in the display interface is the ending pole, the line path of the power distribution network may be numbered in sequence according to the topological relation of the geographical positions before the pole and tower point positions, that is, according to the line path relation of the connection between the pole and tower point positions: b0, B1, B2 and B3.
In order to better understand and implement the above-mentioned schemes of the embodiments of the present invention, the following description specifically illustrates corresponding application scenarios.
For example, in the embodiment of the present invention, the line path design generation of the power distribution network is performed by a terminal having a GIS map. And displaying the GIS map of the target geographic area to be constructed on a display interface of the terminal. And responding to the action executed by the user through the input equipment, acquiring the point location selected by the user on the GIS map of the display interface, and converting the selected screen coordinate into the pole and tower point location with the unique spatial geographic coordinate on the GIS map. The point A n (x n ,y n ) Can be stored in a geometric layer in a GIS map and is used for describing that the point represents a tower in the power distribution network. And pass through the tower primitive markAnd identifying the pole and tower point position on the GIS map for visual output, and describing the pole and tower on the coordinate point.
And then, the user continues to execute actions through the input equipment, and continuously selects the pole and tower point position on the GIS map of the display interface. When a new point location is selected, the terminal generates a line path connecting the point locations of the towers according to the spatial coordinate data and the spatial position topological relation between the point locations of the towers, and visually outputs the line path to the GIS map through line path identification. The straight line segment is used for describing that the straight line segment is connected with the power distribution network line path.
And then the terminal can perform ground object intersection judgment on the generated power distribution network line path, so that subsequent checking is facilitated, namely whether the point position of the tower and the selection of the line path meet the standard or the field condition is judged.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
To facilitate a better implementation of the above-described aspects of embodiments of the present invention, the following also provides related apparatus for implementing the above-described aspects. Referring to fig. 7, an apparatus for generating a power distribution network line path includes:
the point location obtaining module 200 is used for responding to a first operation of a user and obtaining a screen point location selected by the user on a display interface;
the pole tower processing module 201 is used for determining pole tower point positions of poles and towers in the power distribution network on the GIS map according to the screen point positions, wherein the pole tower point positions have spatial geographic coordinates;
a primitive identifier generating module 202, configured to generate a tower primitive identifier at the tower point location;
and the path generating module 203 is configured to generate, after the user performs at least 2 times of first operation, a line path identifier sequentially connected to at least 2 tower primitive identifiers according to a spatial topological relation between a spatial geographic coordinate of each of the tower point locations and the tower point location, that is, a power distribution network line path is generated.
Referring to fig. 8, an embodiment of the present application further provides a block diagram of an electronic device, where the electronic device may be a smart phone, a tablet computer, a notebook computer, or a desktop computer. The electronic device may be referred to as a terminal, a portable terminal, a desktop terminal, or the like.
Generally, an electronic device includes: at least one processor 301; and a memory 302 for storing computer program instructions.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. The processor 301 may further include an AI (Artificial Intelligence) processor for performing the distribution network line path generation step.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 801 to implement the power distribution grid line path generation method provided by the method embodiments herein.
In some embodiments, the terminal may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or over the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be a front panel of the electronic device; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When power source 306 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
Fig. 9 shows a schematic structural diagram of a server according to an embodiment of the present application. The server is configured to implement the power distribution network line path generation method provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the server includes a Central Processing Unit (CPU) 401, a system memory 404 including a Random Access Memory (RAM) 402 and a Read Only Memory (ROM) 403, and a system bus 405 connecting the system memory 404 and the central processing unit 401. The server 400 also includes a basic input/output system (I/O system) 406, which facilitates the transfer of information between devices within the computer, and a mass storage device 407 for storing an operating system 413, application programs 414, and other program modules 415.
The basic input/output system 406 includes a display 408 for displaying information and an input device 409 such as a mouse, keyboard, etc. for a user to input information. Wherein the display 408 and the input device 409 are connected to the central processing unit 401 through an input output controller 410 connected to the system bus 405. The basic input/output system 406 may also include an input/output controller 410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input/output controller 410 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 407 is connected to the central processing unit 401 through a mass storage controller (not shown) connected to the system bus 405. The mass storage device 407 and its associated computer-readable media provide non-volatile storage for the server 400. That is, the mass storage device 407 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 404 and mass storage device 407 described above may be collectively referred to as memory.
The server 400 may also operate as a remote computer connected to a network via a network, such as the internet, according to various embodiments of the present application. That is, the server 400 may be connected to the network 412 through the network interface unit 411 connected to the system bus 405, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 411.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units into only one type of logical function may be implemented in other ways, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.