Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, rightThe present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, andIt is not used in the restriction present invention.
Fig. 1 shows the implementation process provided in an embodiment of the present invention based on map location labeling method, for the ease of sayingIt is bright, illustrate only with the relevant part of the embodiment of the present invention, details are as follows:
In the step s 100, the geographical coordinate of N number of target device is obtained respectively, and N number of geographical coordinate is converted to accordinglyN number of map page coordinates;N is positive integer.
Specifically, N number of target device be the map page indication range corresponding to geographical coverage area in all meshMarking device, target device are operating facilities or the user of network operator.Geographical coordinate is the target indicated with longitude and latitudeFor equipment in the spherical coordinate of ground point location, map page coordinates are two-dimensional coordinate of the target device on the map page.
In step s 200, the outsourcing grid of each map page coordinates is established.
Specifically, the outsourcing grid of map page coordinates is specially:Square area centered on map page coordinates,The outsourcing net region area equation of each map page coordinates.
In step S300, the outsourcing grid and its in N number of map page coordinates that judge each map page coordinates successivelyThe outsourcing grid of leeway map sheet areal coordinate whether there is intersection point, and establish corresponding map location mark point according to judging result.
Specifically, the specific implementation flow of step S300 is as shown in Fig. 2, details are as follows:
In step S301, since the 1st map page coordinates in N number of map page coordinates, judge one by one n-thThe outsourcing grid of map page coordinates and the outsourcing grid of remaining map page coordinates in N number of map page coordinates, which whether there is, to be handed overPoint;Wherein, n is positive integer, and 1≤n≤N.
Specifically, step S301 is specially:First since the 1st map page coordinates in N number of map page coordinates,Judge the outsourcing grid of the outsourcing grid and remaining map page coordinates in N number of map page coordinates of the 1st map page coordinatesWith the presence or absence of intersection point, the 2nd map page coordinates are then traversed to n-th of map page coordinates, and judging n-th, (n is just wholeNumber, and 2≤n≤N) map page coordinates outsourcing grid and N number of map page coordinates in remaining map page coordinates outsourcingGrid whether there is intersection point.
In step s 302, if intersection point is not present, the n-th map location label is established at n-th of map page coordinatesPoint.
Specifically, showing the number of target device at the position mark point simultaneously at the n-th map location mark point.WhenThe outsourcing grid of n map page coordinates and the outsourcing grid of remaining map page coordinates in N number of map page coordinates are not presentWhen intersection point, then the number of the target device shown at the n-th map location mark point is corresponding to n-th of map page coordinatesThe number of target device.
In step S303, if there are intersection point, sat according to n-th of map page coordinates and with n-th of map pageMap page coordinates corresponding to the outsourcing grid of target outsourcing grid intersection establish the n-th map location mark point.
Specifically, the specific implementation flow of step S303 is as shown in figure 3, details are as follows:
In step S310, judge whether the outsourcing grid of n-th of map page coordinates only exists with an outsourcing gridIntersection point.
In step S311, if so, according to n-th of map page coordinates and outer with n-th map page coordinatesMap page coordinates corresponding to the outsourcing grid of packet grid intersection establish the n-th map location mark point.
Specifically, step S311 is specially:Obtain n-th of map page coordinates and with n-th map page coordinatesThe connecting line segment between map page coordinates corresponding to the outsourcing grid of outsourcing grid intersection, and in the midpoint of connecting line segmentEstablish the n-th map location mark point.
Specifically, when the outsourcing grid of n-th of map page coordinates is only with an outsourcing grid there are when intersection point, then establishThe n-th map location mark point at the number of target device that is shown be:Target corresponding to n-th of map page coordinates is setThe sum of the number of target device corresponding to the outsourcing grid of standby number and intersection.
In step S312, if it is not, then obtaining all outsourcing nets intersected with the outsourcing grid of n-th of map page coordinatesThe corresponding map page coordinates of lattice difference.
In step S313, corresponding from n-th map of map page coordinates middle-range of all outsourcing grids difference is obtainedThe nearest intersection map page coordinates of page coordinates.
In step S314, the n-th map location mark is established according to n-th of map page coordinates and intersection map page coordinatesNote point.
Specifically, step S314 is specially:It obtains n-th of map page coordinates and intersects the company between map page coordinatesWiring section, and establish the n-th map location mark point in the midpoint of connecting line segment.
Specifically, the n-th map location mark point established according to n-th of map page coordinates and intersection map page coordinatesThe number for the target device that place is shown is:The number of target device corresponding to n-th of map page coordinates with intersect mapThe sum of number of target device corresponding to page coordinates.
To realize that the above-mentioned position mark method based on map, the embodiment of the present invention additionally provide a kind of position based on mapTagging system, as shown in figure 4, the location system based on map, which includes page coordinates acquisition module 100, grid, establishes mouldBlock 200 and mark point establish module 300.In practical applications, the location system based on map can be server, and coordinate obtainsModulus block 100, grid establish module 200 and mark point is established module 300 and can be built in server.
Page coordinates acquisition module 100, the geographical coordinate for obtaining N number of target device respectively, and by N number of geographical coordinateBe converted to corresponding N number of map page coordinates;N is positive integer.
Grid establishes module 200, the outsourcing grid for establishing each map page coordinates.
Mark point establishes module 300, the outsourcing grid for judging each map page coordinates successively and N number of map pageThe outsourcing grid of remaining map page coordinates whether there is intersection point in coordinate, and establish corresponding map location according to judging resultMark point.
Specifically, N number of target device be the map page indication range corresponding to geographical coverage area in all meshMarking device, target device are operating facilities or the user of network operator.Geographical coordinate is the target indicated with longitude and latitudeFor equipment in the spherical coordinate of ground point location, map page coordinates are two-dimensional coordinate of the target device on the map page.
Specifically, the outsourcing grid of map page coordinates is specially:Square area centered on map page coordinates,The outsourcing net region area equation of each map page coordinates.
As an embodiment of the present invention, as shown in figure 5, it includes intersection point judging unit 301, that mark point, which establishes module 300,One mark point establishes unit 302 and the second mark point establishes unit 303.
Intersection point judging unit 301, for since the 1st map page coordinates in N number of map page coordinates, sentencing one by oneBreak n-th of map page coordinates outsourcing grid and the outsourcing grid of remaining map page coordinates in N number of map page coordinates beIt is no that there are intersection points;Wherein, n is positive integer, and 1≤n≤N.
First mark point establishes unit 302, is used for when the judging result of intersection point judging unit 301 is no, n-thThe n-th map location mark point is established at map sheet areal coordinate.
Second mark point establishes unit 303, when for being when the judging result of intersection point judging unit 301, according to n-thThe map page corresponding to map page coordinates and the outsourcing grid intersected with the outsourcing grid of n-th of map page coordinates is satMark establishes the n-th map location mark point.
Specifically, intersection point judging unit 301 judges that the process of intersection point is specially:First from N number of map page coordinates1st map page coordinates start, the outsourcing grid for judging the 1st map page coordinates and remaining in N number of map page coordinatesThe outsourcing grid of map page coordinates whether there is intersection point, then traverses the 2nd map page coordinates to n-th of map page and sitsMark, judge n-th (n is positive integer, and 2≤n≤N) map page coordinates outsourcing grid and N number of map page coordinates in itsThe outsourcing grid of leeway map sheet areal coordinate whether there is intersection point.
Specifically, showing the number of target device at the position mark point simultaneously at the n-th map location mark point.WhenThe outsourcing grid of n map page coordinates and the outsourcing grid of remaining map page coordinates in N number of map page coordinates are not presentWhen intersection point, then the number of the target device shown at the n-th map location mark point is corresponding to n-th of map page coordinatesThe number of target device.
As an embodiment of the present invention, as shown in fig. 6, it includes intersection point judgment sub-unit that the second mark point, which establishes unit 303,310, the first mark point establishes subelement 311 and the second mark point establishes subelement 312.
Intersection point judgment sub-unit 310, for judge n-th of map page coordinates outsourcing grid whether with an outsourcingThere are intersection points for grid.
First mark point establishes subelement 311, when for being when the judging result of intersection point judgment sub-unit 310, according toMap corresponding to n-th of map page coordinates and the outsourcing grid intersected with the outsourcing grid of n-th of map page coordinatesPage coordinates establish the n-th map location mark point.
Second mark point establishes subelement 312, for when the judging result of intersection point judgment sub-unit 310 is no, obtainingThe map page coordinates corresponding to all outsourcing grids difference intersected with the outsourcing grid of n-th of map page coordinates, obtainThe nearest intersection map page of corresponding from the n-th map page coordinates of map page coordinates middle-range of all outsourcing grids differenceCoordinate establishes the n-th map location mark point according to n-th of map page coordinates and intersection map page coordinates.
Specifically, the first mark point establish subelement 311 according to n-th of map page coordinates and with n-th of map sheetMap page coordinates corresponding to the outsourcing grid of the outsourcing grid intersection of areal coordinate establish the process of the n-th map location mark pointSpecially:The outsourcing grid institute for obtaining n-th of map page coordinates and intersecting with the outsourcing grid of n-th of map page coordinatesConnecting line segment between corresponding map page coordinates, and establish the n-th map location mark point in the midpoint of connecting line segment.
Further specifically, when the outsourcing grid of n-th map page coordinates is only with an outsourcing grid there are when intersection point,The number of the target device shown at the n-th map location mark point then established is:Corresponding to n-th of map page coordinatesThe sum of the number of target device corresponding to the number of target device and the outsourcing grid of intersection.
Specifically, the second mark point establishes subelement 312 according to n-th of map page coordinates and intersection map page coordinatesThe process for establishing the n-th map location mark point is specially:It obtains n-th of map page coordinates and intersects between map page coordinatesConnecting line segment, and establish the n-th map location mark point in the midpoint of connecting line segment.
Further specifically, the n-th map location established according to n-th of map page coordinates and intersection map page coordinatesThe number of the target device shown at mark point is:The number and phase of target device corresponding to n-th of map page coordinatesHand over the sum of the number of target device corresponding to map page coordinates.
In the present invention, the geographical coordinate of N number of target device is obtained respectively, and N number of geographical coordinate is converted into phaseThe N number of map page coordinates answered;Establish the outsourcing grid of each map page coordinates;Each map sheet is judged successivelyThe outsourcing grid of areal coordinate and the outsourcing grid of remaining map page coordinates in N number of map page coordinates whether there is intersection point, andCorresponding map location mark point is established according to judging result.This method may be implemented in place to the institute of target device based on mapSet carry out Fast Labeling so that loading velocity is fast when display is marked to a large amount of location informations in service system and operation atThis is low.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present inventionAll any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.