Coordinate continuity adjusting method and device for network territory map

文档序号:1889397 发布日期:2021-11-26 浏览:8次 中文

阅读说明:本技术 网络疆域地图的坐标连续性调整方法及装置 (Coordinate continuity adjusting method and device for network territory map ) 是由 王照旗 权晓文 黄石海 张敏 于 2021-10-27 设计创作,主要内容包括:本发明公开了一种网络疆域地图的坐标连续性调整方法及装置,方法包括:对以区域为维度构建网络疆域地图的数据进行初始地图坐标的坐标调整;获取区域中心,将各个区域缩放;根据区域中心的移动区域和区域内的点,重新获取区域中心,将属于区域的坐标调整至相应的区域内形成新区域;将新区域放大后再次将新区域的坐标调整至相应的新区域内形成疆域区域;对疆域区域的交叉边调整后对坐标点去重叠并展开,完成坐标连续性调整。其通过对以区域为维度的构建网络疆域地图的数据进行初始地图坐标的坐标调整后获取区域中心,并依据区域中心对区域进行缩放、坐标调整、以及放大,解决了数据的区域性分散问题,保证了区域性数据的连续性。(The invention discloses a method and a device for adjusting the coordinate continuity of a network territory map, wherein the method comprises the following steps: adjusting the coordinates of the initial map coordinates of the data of the network territory map constructed by taking the area as the dimension; acquiring the center of the area, and zooming each area; according to the moving area of the area center and the points in the area, the area center is obtained again, and the coordinates belonging to the area are adjusted to the corresponding area to form a new area; amplifying the new area, and adjusting the coordinates of the new area to the corresponding new area to form an territory area; and (4) after adjusting the crossed edges of the territory area, overlapping and unfolding the coordinate points to finish the coordinate continuity adjustment. The method and the device solve the problem of regional dispersion of data and ensure the continuity of regional data by performing coordinate adjustment of initial map coordinates on data for constructing the network territory map with the region as the dimensionality to obtain the region center and performing zooming, coordinate adjustment and amplification on the region according to the region center.)

1. A coordinate continuity adjusting method of a network territory map is characterized by comprising the following steps:

adjusting the coordinates of the initial map coordinates of the data of the network territory map constructed by taking the area as the dimension;

acquiring the area center of the coordinate data after coordinate adjustment, and respectively zooming each area according to preset zooming scale parameters according to the area center;

according to the moving area of the area center and the points in the area, re-acquiring the area center of the zoomed area, and according to the re-acquired area center, adjusting the coordinates belonging to the area to the corresponding area to form a new area;

amplifying the new area according to the scaling parameter, and adjusting the coordinates of the new area after amplification to the corresponding new area again to form a territory area;

and after adjusting the crossed edges of the territory area, overlapping and unfolding the coordinate points to finish the coordinate continuity adjustment of the data.

2. The method of claim 1, wherein the coordinates of the data are adjusted by a grapeviz continuity cluster adjustment algorithm to obtain initial map coordinates.

3. The coordinate continuity adjustment method of the network territory map of claim 1, wherein the coordinates belonging to the area are adjusted to the corresponding area by checking whether the areas of the respective zooms are mutually included, whether points within the area are included by other areas, and whether points within the area are not within the area.

4. The method of adjusting coordinate continuity of a network territory map of claim 1, wherein the intersecting edges of the territory region are adjusted by a modified region Impred algorithm, wherein the modified region Impred algorithm comprises:

calculating boundary points and boundary edges of the territory area;

acquiring coordinates of a target point in the area of the area, coordinates of boundary points of the area where the target point is located, other coordinates of the area where the target point is located, and coordinates of coordinate points in other areas of the area where the target point is located;

taking the coordinates of the boundary point of the area of the target point, other coordinates of the area of the target point and coordinates of coordinate points in other areas of the areas related to the target point as the surrounding information of the target point;

and taking the territory area, the boundary point of the territory area and the surrounding information as a calculation basis of an Impred algorithm, and performing multi-area edge cross inspection and coordinate adjustment by using the Impred algorithm.

5. The method for adjusting coordinate continuity of a network territory map according to claim 1, wherein the method for re-acquiring the area center of the zoomed area according to the moving area of the area center and the point in the area, and adjusting the coordinates belonging to the area to the corresponding area according to the re-acquired area center to form a new area specifically comprises:

obtaining the area center of each zoomed area by summing and averaging coordinate points in each zoomed area represented by the map coordinates;

creating a polygonal area based on the area center, and determining the edge and vertex coordinates of the polygonal area;

and after the polygon areas are subjected to de-overlapping and unfolding through a Fast overlay Removal method, coordinate points in each polygon area are adjusted to the corresponding polygon area in a diagonal manner to form a new area.

6. A coordinate continuity adjusting device of a network territory map is characterized by comprising:

the first adjusting module is used for adjusting the coordinates of the initial map coordinates of the data for constructing the network territory map by taking the area as the dimension;

the zooming module is used for acquiring the area center of the coordinate data after coordinate adjustment and zooming each area according to the area center according to preset zooming scale parameters;

the second adjusting module is used for reacquiring the area center of the zoomed area according to the moving area of the area center and the point in the area, and adjusting the coordinates belonging to the area to the corresponding area according to the reacquired area center to form a new area;

the enlargement adjusting module is used for enlarging the new area according to the scaling parameter and adjusting the coordinates of the enlarged new area to the corresponding new area again to form a territory area;

and the third adjusting module is used for adjusting the crossed edges of the territory area, then removing the overlapping and unfolding of the coordinate points and finishing the coordinate continuity adjustment of the data.

7. The apparatus of claim 6, wherein the third adjusting module is configured to adjust the coordinates of the intersection points of the regions of the area by a modified region Impred algorithm, wherein the modified region Impred algorithm comprises:

calculating boundary points and boundary edges of the territory area;

acquiring coordinates of a target point in the area of the area, coordinates of boundary points of the area where the target point is located, other coordinates of the area where the target point is located, and coordinates of coordinate points in other areas of the area where the target point is located;

taking the coordinates of the boundary point of the area of the target point, other coordinates of the area of the target point and coordinates of coordinate points in other areas of the areas related to the target point as the surrounding information of the target point;

and taking the territory area, the boundary point of the territory area and the surrounding information as a calculation basis of an Impred algorithm, and performing multi-area edge cross inspection and coordinate adjustment by using the Impred algorithm.

8. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 5 are implemented when the computer program is executed by the processor.

9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.

Technical Field

The invention relates to the technical field of data processing of network maps, in particular to a method and a device for adjusting the coordinate continuity of a network territory map.

Background

With the increasing scale of networks, the distribution and relationship of networks on the internet are complicated, and the management and maintenance of the networks are more important.

The rapid laying of the 5G internet brings about explosive growth of network access equipment, service and application, and also brings about highly centralized network risks, and the rapid laying of the 5G internet is particularly important for systematic supervision of a network domain as a key facility for the operation of the internet. However, with the lack of supervision means and the increasing severity of security risks, how to effectively reflect the scale, location and distribution of networks and devices, describe network risks, and establish a set of visual maps describing the network territory is a problem to be solved urgently.

However, the network territory map can be obtained only by processing the data acquired by taking the area as the dimension, wherein whether the data are accurately processed directly influences the precision of the obtained territory map.

Disclosure of Invention

An object of the present invention is to solve at least the above problems and to provide at least the advantages described later.

The invention also aims to provide a coordinate continuity adjusting method of the network territory map, which obtains the area center after carrying out coordinate adjustment of the initial map coordinate on the data for constructing the network territory map by taking the area as the dimensionality, and carries out zooming, coordinate adjustment and amplification on the area according to the area center, thereby solving the problem of regional dispersion of the data obtained by taking the area as the dimensionality and ensuring the continuity of regional data.

To achieve these objects and other advantages in accordance with the purpose of the invention, there is provided a coordinate continuity adjustment method of a network territory map, including:

adjusting the coordinates of the initial map coordinates of the data of the network territory map constructed by taking the area as the dimension;

acquiring the area center of the coordinate data after coordinate adjustment, and respectively zooming each area according to preset zooming scale parameters according to the area center;

according to the moving area of the area center and the points in the area, re-acquiring the area center of the zoomed area, and according to the re-acquired area center, adjusting the coordinates belonging to the area to the corresponding area to form a new area;

amplifying the new area according to the scaling parameter, and adjusting the coordinates of the new area after amplification to the corresponding new area again to form a territory area;

and after adjusting the crossed edges of the territory area, overlapping and unfolding the coordinate points to finish the coordinate continuity adjustment of the data.

Preferably, in the method for adjusting the coordinate continuity of the network territory map, the data is subjected to coordinate adjustment of the initial map coordinate through a continuity clustering adjustment algorithm of grapeviz.

Preferably, in the coordinate continuity adjustment method of the network territory map, the coordinates belonging to the area are adjusted to the corresponding area by checking whether the areas of the respective zooms are mutually included, whether points in the area are included by other areas, and whether points in the area are not in the area.

Preferably, in the method for adjusting the coordinate continuity of the network territory map, the intersecting edges of the territory region are adjusted through an improved region Impred algorithm, wherein the improved region Impred algorithm includes:

calculating boundary points and boundary edges of the territory area;

acquiring coordinates of a target point in the area of the area, coordinates of boundary points of the area where the target point is located, other coordinates of the area where the target point is located, and coordinates of coordinate points in other areas of the area where the target point is located;

taking the coordinates of the boundary point of the area of the target point, other coordinates of the area of the target point and coordinates of coordinate points in other areas of the areas related to the target point as the surrounding information of the target point;

and taking the territory area, the boundary point of the territory area and the surrounding information as a calculation basis of an Impred algorithm, and performing multi-area edge cross inspection and coordinate adjustment by using the Impred algorithm.

Preferably, in the method for adjusting the coordinate continuity of the network territory map, the area center of the zoomed area is reacquired according to the moving area of the area center and the point in the area, and the coordinates belonging to the area are adjusted to the corresponding area according to the reacquired area center to form a new area, which specifically includes:

obtaining the area center of each zoomed area by summing and averaging coordinate points in each zoomed area represented by the map coordinates;

creating a polygonal area based on the area center, and determining the edge and vertex coordinates of the polygonal area;

and after the polygon areas are subjected to de-overlapping and unfolding through a Fast overlay Removal method, coordinate points in each polygon area are adjusted to the corresponding polygon area in a diagonal manner to form a new area.

A coordinate continuity adjusting device of a network territory map comprises the following components:

the first adjusting module is used for adjusting the coordinates of the initial map coordinates of the data for constructing the network territory map by taking the area as the dimension;

the zooming module is used for acquiring the area center of the coordinate data after coordinate adjustment and zooming each area according to the area center according to preset zooming scale parameters;

the second adjusting module is used for reacquiring the area center of the zoomed area according to the moving area of the area center and the point in the area, and adjusting the coordinates belonging to the area to the corresponding area according to the reacquired area center to form a new area;

the enlargement adjusting module is used for enlarging the new area according to the scaling parameter and adjusting the coordinates of the enlarged new area to the corresponding new area again to form a territory area;

and the third adjusting module is used for adjusting the crossed edges of the territory area, then removing the overlapping and unfolding of the coordinate points and finishing the coordinate continuity adjustment of the data.

Preferably, in the coordinate continuity adjustment apparatus of the network territory map, the enlargement module is configured to adjust the coordinates of the intersection points of the new regions through a modified region Impred algorithm, where the modified region Impred algorithm includes:

calculating boundary points and boundary edges of the territory area;

acquiring coordinates of a target point in the area of the area, coordinates of boundary points of the area where the target point is located, other coordinates of the area where the target point is located, and coordinates of coordinate points in other areas of the area where the target point is located;

taking the coordinates of the boundary point of the area of the target point, other coordinates of the area of the target point and coordinates of coordinate points in other areas of the areas related to the target point as the surrounding information of the target point;

and taking the territory area, the boundary point of the territory area and the surrounding information as a calculation basis of an Impred algorithm, and performing multi-area edge cross inspection and coordinate adjustment by using the Impred algorithm.

An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 4 are implemented when the computer program is executed by the processor.

A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.

The invention at least comprises the following beneficial effects:

the coordinate continuity adjusting method of the network territory map comprises the steps of carrying out coordinate adjustment of initial map coordinates on data for constructing the network territory map acquired by taking an area as a dimensionality, acquiring the area center of the data, respectively zooming areas corresponding to the data according to preset zooming scale parameters aiming at the area center, then re-acquiring the area center of the zoomed area according to a moving area of the area center and points in the area, and adjusting the coordinates belonging to the area to the corresponding area according to the re-acquired area center to form a new area; amplifying the new area according to the scaling parameter, and adjusting the coordinates of the new area after amplification to the corresponding new area again to form a territory area; after the crossed edges of the territory are adjusted, the coordinate points are overlapped and unfolded, namely, the centers of the old and new regions of the data for constructing the network territory map, which are obtained by taking the regions as the dimensionality, are obtained, and the regions are zoomed, adjusted in coordinates and amplified according to the centers of the regions, so that the problem of regional dispersion of the data obtained by taking the regions as the dimensionality is solved, and the continuity of regional data is ensured.

Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.

Drawings

FIG. 1 is a flow chart of a method for adjusting the continuity of coordinates of a network territory map according to the invention;

FIG. 2 is an adjustment schematic diagram of the method for adjusting the continuity of coordinates of a network territory map according to the invention;

FIG. 3 is a diagram generated after adjusting a diagram and coordinates by using a modular clustering algorithm of grapeviz in an embodiment of the present invention;

FIG. 4 is a diagram generated by performing connectivity adjustment on the data of FIG. 3 by scaling the regions and coordinate adjustment in an embodiment of the present invention;

FIG. 5 is a diagram generated after the region shifting and coordinate adjustment of FIG. 4 according to an embodiment of the present invention;

FIG. 6 is a diagram illustrating the data of FIG. 5 after performing a region enlargement and coordinate adjustment in an embodiment of the present invention;

FIG. 7 is a diagram generated by adjusting the dot-line intersections in the region of FIG. 6 based on the improved region Impred adjustment algorithm according to an embodiment of the present invention;

FIG. 8 is a generated graph of the data of FIG. 7 processed by coordinate de-overlap and coordinate distance unfolding in an embodiment of the present invention;

fig. 9 is a schematic structural diagram of a coordinate continuity adjusting device of a network territory map according to the present invention.

Detailed Description

The present invention is further described in detail below with reference to the attached drawings so that those skilled in the art can implement the invention by referring to the description text.

It will be understood that terms such as "having," "including," and "comprising," as used herein, do not preclude the presence or addition of one or more other elements or groups thereof.

As shown in fig. 1 and 2, the present invention provides a method for adjusting the coordinate continuity of a network territory map, comprising:

adjusting the coordinates of the initial map coordinates of the data of the network territory map constructed by taking the area as the dimension;

acquiring the area center of the coordinate data after coordinate adjustment, and respectively zooming each area according to preset zooming scale parameters according to the area center;

according to the moving area of the area center and the points in the area, re-acquiring the area center of the zoomed area, and according to the re-acquired area center, adjusting the coordinates belonging to the area to the corresponding area to form a new area;

amplifying the new area according to the scaling parameter, and adjusting the coordinates of the new area after amplification to the corresponding new area again to form a territory area;

and after adjusting the crossed edges of the territory area, overlapping and unfolding the coordinate points to finish the coordinate continuity adjustment of the data.

In the scheme, after coordinate adjustment of initial map coordinates is carried out on data for constructing the network territory map acquired by taking an area as a dimension, the area center of the data is acquired, areas corresponding to the data are respectively zoomed according to preset zoom scale parameters aiming at the area center, then the area center of the zoomed area is acquired again according to a moving area of the area center and points in the area, and coordinates belonging to the area are adjusted to the corresponding area according to the acquired area center to form a new area; amplifying the new area according to the scaling parameter, and adjusting the coordinates of the new area after amplification to the corresponding new area again to form a territory area; after the crossed edges of the territory are adjusted, the coordinate points are overlapped and unfolded, namely, the centers of the old and new regions of the data for constructing the network territory map, which are obtained by taking the regions as the dimensionality, are obtained, and the regions are zoomed, adjusted in coordinates and amplified according to the centers of the regions, so that the problem of regional dispersion of the data obtained by taking the regions as the dimensionality is solved, and the continuity of regional data is ensured.

In a preferred embodiment, the coordinate adjustment of the initial map coordinate is performed on the data by a continuous clustering adjustment algorithm of grapeviz.

In the above scheme, the data acquired by taking the region as the dimension first needs to ensure the continuity of the region, so before further continuity coordinate adjustment is performed on the data, coordinate adjustment of the initial map coordinate is performed, and here, it is preferable to perform coordinate adjustment of the initial map coordinate on the data by using a continuity cluster adjustment algorithm of grapeviz.

In a preferred embodiment, the coordinates belonging to the area are adjusted to the corresponding area by checking whether the areas of the respective zooms contain each other, whether points in the area are contained by other areas, and whether points in the area are not in the area.

In the above solution, the purpose of adjusting the coordinate continuity of the data is to accurately divide the coordinates belonging to different regions, and the coordinates belonging to a certain region can be accurately adjusted to the corresponding region by checking whether the scaled regions include each other, whether a point in the region is included in another region, and whether the point in the region is not in the region.

In a preferred embodiment, the intersection edges of the territory region are adjusted through a modified region Impred algorithm, wherein the modified region Impred algorithm includes:

calculating boundary points and boundary edges of the territory area;

acquiring coordinates of a target point in the area of the area, coordinates of boundary points of the area where the target point is located, other coordinates of the area where the target point is located, and coordinates of coordinate points in other areas of the area where the target point is located;

taking the coordinates of the boundary point of the area of the target point, other coordinates of the area of the target point and coordinates of coordinate points in other areas of the areas related to the target point as the surrounding information of the target point;

and taking the territory area, the boundary point of the territory area and the surrounding information as a calculation basis of an Impred algorithm, and performing multi-area edge cross inspection and coordinate adjustment by using the Impred algorithm.

In the above solution, before each new region and each coordinate are enlarged, the coordinates of the intersection edge points of each new region are adjusted according to the improved region inpred algorithm, so that overlapped points or coordinates between adjacent regions can be removed, and irrelevant edge intersections are reduced, so that not only the boundary between adjacent regions is clear and continuous.

In a preferred embodiment, the method further includes, according to the moving region of the region center and the point in the region, reacquiring the region center of the zoomed region, and according to the reacquired region center, adjusting the coordinates belonging to the region to the corresponding region to form a new region, specifically including:

obtaining the area center of each zoomed area by summing and averaging coordinate points in each zoomed area represented by the map coordinates;

creating a polygonal area based on the area center, and determining the edge and vertex coordinates of the polygonal area;

and after the polygon areas are subjected to de-overlapping and unfolding through a Fast overlay Removal method, coordinate points in each polygon area are adjusted to the corresponding polygon area in a diagonal manner to form a new area.

In the scheme, after summing and averaging coordinate points in each zoomed region represented by map coordinates, the region center of the zoomed region is obtained; then, a polygonal area is created based on the area center, and the side and the vertex of the polygonal area are determined; and finally, after the polygon areas are subjected to de-overlapping and unfolding through a Fast overlay Removal method, coordinate points in each polygon area are adjusted into the corresponding polygon area in a diagonal manner to form a new area, so that the problem of regional dispersion of data acquired by taking the area as a dimension is solved, and the continuity of regional data is ensured.

Example 1

The coordinate continuity adjustment method of the network territory map is adopted to carry out the continuity adjustment of the coordinates of the data of the network territory map, by taking graph data as an example, the collected data are initially 6 areas which are respectively set as cluster =1, … and cluster =6, the number of nodes in each area is unequal, the cluster represents the area, the label represents the mark, the fontsize represents the font size, and the pos represents the coordinates; after the graph and the coordinates are adjusted by using a modular clustering algorithm of grapeviz, a graph is generated as shown in fig. 3, and the two regions have region overlapping and region crossing: region 1 (cluster = 1) and region 6 (cluster = 6), region 4 (cluster = 4) and region 5 (cluster = 5), both of which are encompassed by the other region: the problem that the region 3 (cluster = 3) is included in the region 6 (cluster = 6) and the region 2 (cluster = 2) is included in the region 6 (cluster = 6) needs to be solved by the region coordinate continuity adjustment.

The data for adjusting the graph and coordinates using the modular clustering algorithm for grapeviz is as follows:

graph{

11816 [cluster=1, label="11816", fontsize=6, pos="737.13,-1076.13"];

37054 [cluster=2, label="37054", fontsize=6, pos="706.07,-1281.61"];

……

393223 [cluster=3, label="393223", fontsize=6, pos="781.72,-1217.02"];

……

9186 [cluster=4, label="9186", fontsize=6, pos="1219.0,-1127.29"];

……

8903 [cluster=5, label="8903", fontsize=6, pos="1182.48,-1085.18"];

……

9925 [cluster=6, label="9925", fontsize=6, pos="632.49,-1150.12"];

……

11816-- 17554;

1930 -- 45816;

12479 -- 9625;

45572 -- 12924;

38176 -- 11816;

3662 -- 37054;

17814 -- 37037;

17619 -- 9186;

17554 -- 8657;

17444 -- 49349;

}

the data connectivity of fig. 2 is then adjusted by scaling the regions and coordinate adjustments as follows, with the regions overlapping, intersecting, and including significantly improved after the adjustments, as shown in fig. 4. The area overlap and intersection is changed from two to one: the region 3 (cluster = 3) is contained in the region 6 (cluster = 6) and changed such that the two regions overlap and intersect with each other. The area contains changes from two to one: region 2 (cluster = 2) is still encompassed by region 6 (cluster = 6). There is overlap, crossover and inclusion, but there is a significant improvement. It should be noted that, in this embodiment, data adjusted by the modulation clustering adjustment algorithm of grapeviz is adopted, but in practical application, any network data may be adjusted as follows, and details are not described herein.

graph{

11816 [cluster=1, label="11816", fontsize=6, pos="737.13,-1076.13"];

37054 [cluster=2, label="37054", fontsize=6, pos="709.06,-1287.72"];

……

393223 [cluster=3, label="393223", fontsize=6, pos="780.97,-1207.47"];

……

9186 [cluster=4, label="9186", fontsize=6, pos="1197.3,-1158.14"];

……

8903 [cluster=5, label="8903", fontsize=6, pos="1240.5,-1130.58"];

……

9925 [cluster=6, label="9925", fontsize=6, pos="681.23,-1204.5"];

……

11816-- 17554;

1930 -- 45816;

12479 -- 9625;

45572 -- 12924;

38176 -- 11816;

3662 -- 37054;

17814 -- 37037;

17619 -- 9186;

17554 -- 8657;

17444 -- 49349;

}

The region shift and coordinate adjustment are performed for fig. 3, and the data is as follows, and after the adjustment, the region overlap, intersection and inclusion are substantially eliminated as shown in fig. 5. Jaggies exist in the boundary between the area 2 (cluster = 2) and the area 6 (cluster = 6), and the boundary between the areas also has an intersection condition, such as the boundary between the area 1 and the area 6 has an intersection condition, and other conditions are basically eliminated.

graph{

11816 [cluster=1, label="11816", fontsize=6, pos="737.13,-1076.13"];

37054 [cluster=2, label="37054", fontsize=6, pos="627.87,-1325.28"];

……

393223 [cluster=3, label="393223", fontsize=6, pos="861.27,-1171.29"];

……

9186 [cluster=4, label="9186", fontsize=6, pos="1125.98,-1185.8"];

……

8903 [cluster=5, label="8903", fontsize=6, pos="1297.29,-1072.42"];

……

9925 [cluster=6, label="9925", fontsize=6, pos="661.73,-1182.75"];

……

11816-- 17554;

1930 -- 45816;

12479 -- 9625;

45572 -- 12924;

38176 -- 11816;

3662 -- 37054;

17814 -- 37037;

17619 -- 9186;

17554 -- 8657;

17444 -- 49349;

}

The data of fig. 4 is subjected to area enlargement and coordinate adjustment, and the data is as follows, by calculating a new area center for the area of fig. 3, the area enlargement adjustment and the coordinate adjustment, the position of each area slightly changes due to enlargement, thereby completely eliminating the situations of sawtooth, overlapping, containing and crossing between the areas, after adjustment, as shown in fig. 6, the situation is obviously improved, the sawtooth is eliminated between the area 2 and the area 6, the crossing between the area 1 and the area 6 is not existed, but the dotted line crossing exists.

graph{

11816 [cluster=1, label="11816", fontsize=6, pos="737.13,-1076.13"];

37054 [cluster=2, label="37054", fontsize=6, pos="591.03,-1322.72"];

……

393223 [cluster=3, label="393223", fontsize=6, pos="861.59,-1175.3"];

……

9186 [cluster=4, label="9186", fontsize=6, pos="1135.09,-1172.85"];

……

8903 [cluster=5, label="8903", fontsize=6, pos="1297.29,-1072.42"];

……

9925 [cluster=6, label="9925", fontsize=6, pos="661.73,-1182.75"];

……

11816-- 17554;

1930 -- 45816;

12479 -- 9625;

45572 -- 12924;

38176 -- 11816;

3662 -- 37054;

17814 -- 37037;

17619 -- 9186;

17554 -- 8657;

17444 -- 49349;

}

The point-line intersection in the region of fig. 5 is detected based on an improved region Impred adjustment algorithm, if the intersection exists, the adjustment is improved through the algorithm, and the data is as follows, after the adjustment, as shown in fig. 7, the edge line intersection between the region 2 and the region 6 and the edge line intersection between the region 4 and the region 6 are obviously improved, the regions are adjacent and do not overlap, the point-line intersection is obviously improved, but the distance between coordinate points in individual regions is compact, and the coordinate points are easily overlapped.

graph{

11816 [cluster=1, label="11816", fontsize=6, pos="-250.33,51.29"];

37054 [cluster=2, label="37054", fontsize=6, pos="-429.55,-251.19"];

……

393223 [cluster=3, label="393223", fontsize=6, pos="-97.66,-70.36"];

……

9186 [cluster=4, label="9186", fontsize=6, pos="167.5,-97.2"];

……

8903 [cluster=5, label="8903", fontsize=6, pos="436.81,55.84"];

……

9908 [cluster=6, label="9908", fontsize=6, pos="-342.83,-79.5"];

……

11816-- 17554;

1930 -- 45816;

12479 -- 9625;

45572 -- 12924;

38176 -- 11816;

3662 -- 37054;

17814 -- 37037;

17619 -- 9186;

17554 -- 8657;

17444 -- 49349;

}

The data of fig. 6 is processed through coordinate de-overlapping and coordinate distance expansion, wherein Fast overlay Removal and coordinate distance amplification adjustment are used, the data is as follows, the coordinate de-overlapping and coordinate distance expansion adjustment of fig. 6 are performed through Fast overlay Removal adjustment, the distance length of the distance between coordinates is more than 35 (the distance can be defined), and after adjustment, as shown in fig. 8, the distance between coordinate points in the region is loose and not compact, and the effect is good.

graph{

11816 [cluster=1,label="11816",pos="-207.83,93.79",fontsize="6"]

37054 [cluster=2,label="37054",pos="-387.05,-208.69",fontsize="6"]

……

393223 [cluster=3,label="393223",pos="-55.16,-27.86",fontsize="6"]

……

9186 [cluster=4,label="9186",pos="210,-54.7",fontsize="6"]

……

8903 [cluster=5,label="8903",pos="479.31,98.34",fontsize="6"]

……

9925 [cluster=6,label="9925",pos="-300.33,-37",fontsize="6"]

……

11816-- 17554;

1930 -- 45816;

12479 -- 9625;

45572 -- 12924;

38176 -- 11816;

3662 -- 37054;

17814 -- 37037;

17619 -- 9186;

17554 -- 8657;

17444 -- 49349;

}

It can be seen that, with the coordinate continuity adjustment method of the network territory map of the present invention, after coordinate adjustment of initial map coordinates is performed on data for constructing the network territory map with regions as dimensions, a region center of the data is obtained, a region corresponding to the data is zoomed aiming at the region center, the region center of the zoomed region is re-obtained according to a moving region of the region center and points in the region, and coordinates belonging to the region are adjusted to a corresponding region according to the re-obtained region center to form a new region; and finally, after the crossed edges of the new area are adjusted, the data are amplified through the area and coordinate distance, and the coordinate continuity adjustment of the data is completed, namely, the data for constructing the network territory map by taking the area as the dimensionality are subjected to the coordinate adjustment of the initial map coordinate to obtain the area center, and the area is subjected to zooming, coordinate adjustment and amplification according to the area center, so that the problem of regional dispersion of the data obtained by taking the area as the dimensionality is solved, and the continuity of regional data is ensured.

As shown in fig. 9, a coordinate continuity adjusting apparatus of a network territory map includes:

the first adjusting module 1 is used for adjusting the coordinates of the initial map coordinates of the data for constructing the network territory map by taking the area as the dimensionality;

the zooming module 2 is used for acquiring the area center of the coordinate data after coordinate adjustment and zooming each area according to the area center according to preset zooming scale parameters;

the second adjusting module 3 is configured to reacquire the area center of the zoomed area according to the moving area of the area center and the point in the area, and adjust the coordinates belonging to the area to the corresponding area according to the reacquired area center to form a new area;

the amplification adjusting module 4 is used for amplifying the new area according to the scaling parameter and adjusting the coordinates of the amplified new area to the corresponding new area again to form a territory area;

and the third adjusting module 5 is used for adjusting the crossed edges of the territory area, then removing the overlapping and unfolding of the coordinate points, and completing the coordinate continuity adjustment of the data.

In the scheme, firstly, the coordinate adjustment of the initial map coordinate is carried out on data for constructing the network territory map, which is obtained by taking the area as the dimensionality, through a first adjustment module, then the area center of the data is obtained through a zooming module, the area corresponding to the data is zoomed according to the area center, then the area center of the zoomed area is obtained again through a second adjustment module according to the moving area of the area center and the point in the area, and the coordinate belonging to the area is adjusted to the corresponding area according to the obtained area center to form a new area; amplifying the new region through an amplification adjusting module according to the scaling parameter, and adjusting the coordinates of the amplified new region to the corresponding new region again to form a territory region; and finally, after the crossed edges of the territory are adjusted by using a third adjusting module, the coordinate points are subjected to de-overlapping and unfolding, namely, the centers of the old and new regions of the data for constructing the network territory map, which are acquired by taking the regions as dimensions, are acquired, and the regions are zoomed, adjusted and amplified according to the centers of the regions, so that the problem of regional dispersion of the data acquired by taking the regions as dimensions is solved, and the continuity of regional data is ensured.

In a preferred embodiment, the enlargement adjusting module 4 is configured to adjust coordinates of the intersection edge point of each new region through a modified region Impred algorithm, where the modified region Impred algorithm includes:

calculating boundary points and boundary edges of the territory area;

acquiring coordinates of a target point in the area of the area, coordinates of boundary points of the area where the target point is located, other coordinates of the area where the target point is located, and coordinates of coordinate points in other areas of the area where the target point is located;

taking the coordinates of the boundary point of the area of the target point, other coordinates of the area of the target point and coordinates of coordinate points in other areas of the areas related to the target point as the surrounding information of the target point;

and taking the territory area, the boundary point of the territory area and the surrounding information as a calculation basis of an Impred algorithm, and performing multi-area edge cross inspection and coordinate adjustment by using the Impred algorithm.

In the scheme, before each territory area and the coordinates are amplified, the coordinates of the crossed edge points of each territory area are adjusted according to the improved area Impred algorithm, so that overlapped points or coordinates between adjacent areas can be removed, and further irrelevant edge crossing is reduced, and the boundaries between the adjacent areas are clear and continuous.

An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of any of the methods as previously described when executing the computer program.

In the above scheme, the electronic device may be a robot. The electronic device may include, but is not limited to, a processor, a memory, for example, the electronic device may also include an input output device, a network access device, a bus, and the like. The processor may be a central processing unit, other general purpose processors, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart card, a secure digital card, a flash memory card, etc. provided on the electronic device.

A computer-readable storage medium, storing a computer program which, when executed by a processor, implements the steps of any one of the methods described above.

In the above solution, the memory may also include both an internal storage unit and an external storage device of the electronic device, and the memory is used for storing the computer program and other programs and data required by the electronic device.

While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种静态页面技术的交互系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!