[0078] Example 1
[0079] GIS software focuses on processing related to geographic location information, and when drawing, it also mainly renders geographic elements, such as location markers, routes, etc. For network management in the communications industry, regardless of whether GIS maps are used or not, the performance drawing of the network management is the most important. The presentation of alarms and status needs to be clearly learned in the topology. However, GIS has penetrated into all walks of life, and network management will gradually use many GIS functions to improve the operability and ease of use of network management. Since the GIS software itself has different concerns, this embodiment combines the rich rendering effects of the network management and powerful GIS functions to achieve that the GIS functions are not missing and the rich rendering effects of the network management are still retained.
[0080] In order to overcome the shortcomings of drawing special graphics by GIS software in the prior art, and solve the problem that GIS software in the prior art cannot be combined with network management graphics drawing. A very rich network management graphic objects can be displayed in GIS software. These network management graphic objects can be very well integrated with GIS maps, and operations such as moving and zooming can be seamlessly connected. Other functions of the GIS software will not be affected, and the operation of the network management graphics object itself will not be affected. Figure 8 It is a schematic flow chart of the layer-based processing method according to Embodiment 1 of the present invention, such as Figure 8 As shown, the process includes:
[0081] Step 801: Perform layer overlay.
[0082] Here, the GIS layer and the network management layer can be combined in a layered manner. The GIS layer belongs to the bottom part, and the network management layer is the operation element of the upper layer. On the interface, these two layers can be processed by layer overlay, but the various event processing of the two layers themselves still retain their own event processing logic.
[0083] Specific, such as Picture 9 As shown, the GIS layer is defined as the bottom layer on the WEB, the network management layer is defined as the upper layer, and the network management layer is specified as the transparent mode. Use a general layer, overlay GIS layer first, and then overlay network management layer. The GIS layer is provided by GIS software, and the network management layer is provided by the network management interface.
[0084] It should be noted that during the superimposition process, the two layers need to be coordinated so that they can be superimposed together. In order to align the GIS layer with the coordinate system of the network management layer, according to the actual usage, the network management layer generally uses the latitude and longitude coordinate system, and the GIS layer can use the general projected coordinate system, but it is best to be able to convert with the latitude and longitude coordinate system Coordinate system (such as EPSG:4326, EPSG:3857).
[0085] Step 802: Perform coordinate mapping.
[0086] GIS maps have a variety of projection coordinates, and if the equipment in the network management needs to use GIS maps, they all require the use of a latitude and longitude coordinate system, so that the device can be positioned globally, and it can be independent of the projection coordinate system of the specific GIS map.
[0087] Reference Picture 10 , The specific coordinate mapping includes:
[0088] 1) Convert the latitude and longitude coordinates of the network management equipment into GIS projection coordinates through the tool method, so that the network management equipment in the GIS layer can be located on the GIS map;
[0089] 2) Convert the projection coordinates of the network management equipment on the GIS layer to the screen coordinates of the interface and display it.
[0090] Step 803: Perform GIS event processing.
[0091] After the first two steps, the network management equipment in the network management layer can be accurately presented in the GIS map according to the latitude and longitude coordinates. However, because the related objects belong to different layers and the layers have the concept of coordinates, they are carried out in the GIS layer. During various movements and zooming, the GIS layer itself will update the map presented on the screen, and the screen coordinates of the network management device in the network management layer will remain unchanged because it has not changed, but this will cause a problem, which is The position of the network management equipment on the GIS map has changed, not where it should be, such as Picture 11 As shown, the distance between Chengdu and the network element A and the network element B before the translation is inconsistent after the translation, and the distance is extended.
[0092] Under normal circumstances, when the GIS layer is translated, the network element equipment of the network management layer should follow the translation to achieve geographic consistency. Therefore, when dealing with events involving position changes such as translation and zooming of GIS layers, the elements in the network management layer also need to be processed accordingly. That is, you need to adjust the position of the network management device of the network management layer on the screen. specific:
[0093] 1) Register the pan and zoom events of the GIS layer on the screen interface;
[0094] 2) In these event listeners, the coordinate adjustment of the network management equipment of the network management layer is processed, and the coordinates of the network management equipment on the screen corresponding to the translation of the GIS layer are obtained through the coordinate mapping described earlier.
[0095] 3) Reset the screen coordinates of the network management equipment.
[0096] After processing according to the above steps, the positions of network element A and network element B are as follows: Picture 12 Shown.
[0097] Step 804: After the network management device in the network management layer is dragged on the screen interface, the coordinates are saved.
[0098] After the network management device in the network management layer is dragged on the screen interface, the position has changed. At this time, this coordinate needs to be recorded, otherwise the network management device will be mapped with the previous coordinates when operating the GIS layer. specific:
[0099] 1) Drag the network management equipment from one place to another on the screen interface;
[0100] 2) Get the current screen coordinates of the network management equipment;
[0101] 3) Convert the screen coordinates to the coordinates of the GIS layer;
[0102] 4) Convert the coordinates of the GIS layer to latitude and longitude coordinates and save.
[0103] It should be noted that this embodiment mainly realizes a general combination of GIS layer and network management layer under WEB, and has nothing to do with specific GIS software and drawing software.
[0104] According to the above description, the solution described in the embodiment of the present invention has made other progress in graphics drawing and GIS integration, achieved the effect of displaying the network management graphical interface on the GIS map, and improved the ease of use and operability of the network management.
[0105] The above-mentioned modules can be implemented by a central processing unit (CPU), a digital signal processor (Digital Signal Processor, DSP) or a programmable logic array (Field-Programmable Gate Array, FPGA) in an electronic device.
[0106] Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may adopt the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.