CN112764859A - Method and system for displaying positions of grid members of grid platform map in mobile terminal - Google Patents

Method and system for displaying positions of grid members of grid platform map in mobile terminal Download PDF

Info

Publication number
CN112764859A
CN112764859A CN202110086313.3A CN202110086313A CN112764859A CN 112764859 A CN112764859 A CN 112764859A CN 202110086313 A CN202110086313 A CN 202110086313A CN 112764859 A CN112764859 A CN 112764859A
Authority
CN
China
Prior art keywords
point
distance
reference point
longitude
latitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110086313.3A
Other languages
Chinese (zh)
Inventor
刘福辉
尹荣鹏
张啸
王建强
李应许
解传琪
郝敬全
马述杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taihua Wisdom Industry Group Co Ltd
Original Assignee
Taihua Wisdom Industry Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taihua Wisdom Industry Group Co Ltd filed Critical Taihua Wisdom Industry Group Co Ltd
Priority to CN202110086313.3A priority Critical patent/CN112764859A/en
Publication of CN112764859A publication Critical patent/CN112764859A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Navigation (AREA)

Abstract

The invention discloses a method and a system for displaying the position of a grid member of a grid platform map in a mobile terminal, wherein the method comprises the following steps: acquiring position information data of all grid members in a heartbeat cycle to generate a first position list; calculating a proportional distance according to a scale of a current map in the mobile terminal and the aggregation reference distance; selecting any position point in the first position list as a first reference point, and respectively calculating the longitude and latitude distances of other position points and the first reference point; judging whether the longitude and latitude distance between the position point and the first reference point is smaller than a proportional distance or not; if the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, taking the position point and the first reference point as a first aggregation area, and removing the position point and the first reference point from the first position list; and displaying the first aggregation area in the custom layer of the current map. By carrying out aggregation and dispersion operations on the position points according to the proportional distance, the data is enabled to be overall neat and ordered, and the data is convenient to check.

Description

Method and system for displaying positions of grid members of grid platform map in mobile terminal
Technical Field
The invention relates to the field of map application, in particular to a method and a system for displaying positions of grid members of a grid platform map in a mobile terminal.
Background
With the deep progress of construction of smart cities and grid management platforms in cities across the country in recent years, the development of grid management teams of grid workers and responsible persons is increasing, and the work supervision and management of the grid workers becomes more important. The method is characterized in that the current position of the grid operator is acquired in real time based on comprehensive positioning modes such as a handheld mobile terminal, a Global Positioning System (GPS) and a network, and the real-time positions of the grid operators are checked on a map of a mobile terminal by a supervision manager, so that the method is a main mode and an important basis for supervising, checking and work task management of the grid operator.
The function that exists at present looks over net person's current position to net supervision management personnel on removing the end map, to net platform map, just simply show every net person's current position, do not do the discrete function of polymerization to net person positional information, there is the real-time poor, and net person positional point information is numerous and disorderly, and inconvenient the embodiment distribution area law that just can not the wholeness of seeking.
Therefore, it is an urgent need to provide a method and system for displaying the position of a grid member in a mobile terminal of a grid platform map with aggregation and dispersion functions.
Disclosure of Invention
In view of this, the present invention provides a method for displaying a position of a grid member in a mobile terminal of a grid platform map, which is characterized by comprising:
in a heartbeat cycle, acquiring position information data of all grid members, and generating a first position list from position points of all grid members in a coordinate mode;
calculating a proportional distance according to a scale of a current map in the mobile terminal and the aggregation reference distance;
selecting any one position point in the first position list as a first reference point, and respectively calculating the longitude and latitude distances between other position points and the first reference point;
judging whether the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance;
if the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, taking the position point and the first reference point as a first aggregation area, and removing the position point and the first reference point from the first position list;
and displaying the first aggregation area in the custom layer of the current map.
Preferably, the method further comprises the following steps:
if the longitude and latitude distance between the position point and the first reference point is greater than or equal to the proportional distance, the position point is not removed from the first position list;
in the first position list, any one position point is selected as a second reference point again, other position points and the second reference point are subjected to longitude and latitude distance calculation respectively, and the second reference point is different from the first reference point;
judging whether the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance;
if the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance, taking the position point and the second reference point as a second aggregation area, and removing the position point and the second reference point from the first position list;
and displaying the first aggregation area and the second aggregation area in a custom layer of the current map.
Preferably, when the first aggregation area and the second aggregation area are displayed in the custom layer of the current map, the first aggregation area and the second aggregation area include location information of the first aggregation area and the second aggregation area, and the location point number information in the first aggregation area and the second aggregation area.
Preferably, when the current map is zoomed, the scale of the current map is changed, and the proportional distance needs to be recalculated to obtain a new first aggregation area.
Preferably, the longitude and latitude distance calculation of the other position points and the first reference point is performed according to the following method:
Figure BDA0002910973700000021
wherein L is the longitude and latitude distance between the position point and the first reference point, P1.xThe abscissa of the first reference point, P1.yIs the ordinate of the first reference point, P2.xThe abscissa of the location point, P2.yIs the ordinate of the location point.
In another aspect, the present invention further provides a system for displaying the position of a grid member in a mobile terminal of a grid platform map, including:
the list generation module is coupled with the latitude and longitude distance calculation module and used for acquiring position information data of all grid members in a heartbeat cycle, generating a first position list of position points of all grid members in a coordinate mode and transmitting the first position list to the latitude and longitude distance calculation module;
the proportional distance calculation module is coupled with the judgment module and used for calculating a proportional distance according to the scale of the current map in the mobile terminal and the aggregation reference distance and transmitting the proportional distance to the judgment module;
the longitude and latitude distance calculation module is respectively coupled with the list generation module and the judgment module, and is used for selecting any one position point in the first position list as a first reference point, respectively calculating the longitude and latitude distance between other position points and the first reference point, and transmitting the calculated longitude and latitude distance to the judgment module;
the judging module is respectively coupled with the proportional distance calculating module, the longitude and latitude distance calculating module and the display module and is used for judging whether the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, if the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, the position point and the first reference point are used as a first aggregation area, the position point and the first reference point are removed from the first position list, and the first aggregation area is transmitted to the display module;
and the display module is coupled with the judging module and is used for displaying the first aggregation area in the custom layer of the current map.
Preferably, the determining module is further configured to, if the longitude and latitude distance between the location point and the first reference point is greater than or equal to the proportional distance, not remove the location point from the first location list;
in the first position list, any one position point is selected as a second reference point again, other position points and the second reference point are subjected to longitude and latitude distance calculation respectively, and the second reference point is different from the first reference point;
judging whether the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance;
if the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance, taking the position point and the second reference point as a second aggregation area, removing the position point and the second reference point from the first position list, and transmitting the second aggregation area to the display module;
the display module displays the first aggregation area and the second aggregation area in a custom layer of the current map.
Preferably, in the display module, when the first aggregation area and the second aggregation area are displayed in the custom layer of the current map, the location information of the first aggregation area and the second aggregation area, and the location point number information in the first aggregation area and the second aggregation area are included.
Preferably, in the proportional distance calculating module, when the current map is zoomed, the scale of the current map changes, and the proportional distance needs to be recalculated to obtain a new first aggregation area.
Preferably, in the latitude and longitude distance calculation module, the latitude and longitude distance calculation of the other location points and the first reference point is performed according to the following method:
Figure BDA0002910973700000041
wherein L is the longitude and latitude distance between the position point and the first reference point, P1.xThe abscissa of the first reference point, P1.yIs the ordinate of the first reference point, P2.xThe abscissa of the location point, P2.yIs the ordinate of the location point.
Compared with the prior art, the method and the system for displaying the positions of the grid members of the grid platform map in the mobile terminal at least realize the following beneficial effects:
the method for displaying the positions of the grid members in the mobile terminal of the grid platform map can dynamically display the positions of the grid members in the spontaneous map service of the grid platform, display the first aggregation area in the self-defined layer of the current map, and is suitable for scenes of checking and examining various intelligent city management and grid management platforms, supervising managers, arranging tasks for the grid members in real time and the like. And in a heartbeat period, acquiring position information data of all the grid members, and ensuring the accuracy and effectiveness of the position information according to the heartbeat frequency. Any position point in the first position list is selected as a first reference point, the longitude and latitude distances of other position points and the first reference point are calculated respectively, whether the longitude and latitude distances between the position points and the first reference point are smaller than a proportional distance or not is judged, and aggregation and dispersion operations are performed on a large number of position points according to the proportional distance, so that the data are tidy and ordered integrally, and the data are convenient to check.
Of course, it is not necessary for any product in which the present invention is practiced to achieve all of the above-described technical effects simultaneously.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flowchart of a method for displaying the position of a grid member in a mobile terminal of a grid platform map according to the present invention;
FIG. 2 is a flowchart of another method for displaying the position of a grid member in a mobile terminal by using a grid platform map according to the present invention;
FIG. 3 is a schematic view of the location point of FIG. 2;
FIG. 4 is a schematic view of the location point distances of FIG. 3;
FIG. 5 is a schematic illustration of the first aggregate area location of FIG. 3;
FIG. 6 is a schematic illustration of the location of the second polymerization zone of FIG. 3;
FIG. 7 is a schematic structural diagram of a system for displaying the position of a grid member in a mobile terminal of a grid platform map according to the present invention;
the system comprises a list generation module 301, a proportional distance calculation module 302, a longitude and latitude distance calculation module 303, a judgment module 304 and a display module 305.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Example 1
A specific embodiment of the method for displaying the position of the grid member in the mobile terminal by using the grid platform map according to the present invention is described below with reference to fig. 1, which includes the following steps:
s1: in a heartbeat cycle, acquiring position information data of all grid members, and generating a first position list from position points of all grid members in a coordinate mode; and the accuracy and effectiveness of the position information are ensured according to the heartbeat frequency.
S2: calculating a proportional distance according to a scale of a current map in the mobile terminal and the aggregation reference distance; the positions of the gridders can be dynamically shown in the spontaneous map service of the gridding platform.
The proportional distance is a distance unit in which the proportional scale of the current map is linearly related to the actual distance between the location points.
S3: selecting any position point in the first position list as a first reference point, and respectively calculating the longitude and latitude distances of other position points and the first reference point;
s4: judging whether the longitude and latitude distance between the position point and the first reference point is smaller than a proportional distance or not; and aggregation and dispersion operations are carried out on a large batch of position points according to the proportional distance, so that the data is overall neat and ordered, and the data is convenient to check.
S5: if the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, taking the position point and the first reference point as a first aggregation area, and removing the position point and the first reference point from the first position list;
the aggregation area refers to a set formed by all position points of which the longitude and latitude distances between the position points and other position points on the current map are smaller than the proportional distance, and the position points are not displayed on the current map, but a mark with the state of the size of the set is uniformly displayed.
S6: and displaying the first aggregation area in the custom layer of the current map. The method is suitable for various intelligent city management and grid management platforms, and is suitable for scenes of checking and examining by supervision managers, arranging tasks for grid workers in real time and the like.
The grid platform map is a map service for map data general survey and distribution of a management area by a grid platform, and the map service is loaded by using a geographic information system software development kit (arcgis SDK).
The gridding member position display method of the gridding platform map in the mobile terminal provided by the invention can dynamically request to refresh all gridding member position information data every heartbeat cycle, thereby ensuring that the viewed data is real-time and effective. For tens of thousands of grid member position points, on the current map presentation, the position points are aggregated and calculated according to the proportional distance, and are divided into a plurality of distribution areas according to the aggregation distance, so that the position points are clearly and clearly displayed on the current map.
Example 2
Another specific embodiment of the method for displaying the position of the grid member in the mobile terminal of the grid platform map according to the present invention is described below with reference to fig. 2, fig. 3, fig. 4, fig. 5, and fig. 6, which includes:
in a heartbeat cycle, acquiring position information data of all grid members, and generating a first position list from position points of all grid members in a coordinate mode; and the accuracy and effectiveness of the position information are ensured according to the heartbeat frequency.
Calculating a proportional distance according to a scale of a current map in the mobile terminal and the aggregation reference distance, and calculating according to the following method:
r=s×d;
wherein r is a proportional distance, s is a scale of the current map, and d is an aggregation reference distance.
The aggregation reference distance is specified by a user, and the area of the administrative district is different in different counties. The proportional distance of the map may also vary in the mobile terminal. The dynamic setting is required according to the actual situation of the user to achieve the optimal effect. The positions of the gridders can be dynamically shown in the spontaneous map service of the gridding platform.
Selecting any position point in the first position list as a first reference point, and calculating the longitude and latitude distances between other position points and the first reference point according to the following method:
Figure BDA0002910973700000071
wherein L is the longitude and latitude distance between the position point and the first reference point, P1.xThe abscissa of the first reference point, P1.yIs the ordinate of the first reference point, P2.xThe abscissa of the location point, P2.yIs the ordinate of the location point.
Judging whether the longitude and latitude distance between the position point and the first reference point is smaller than a proportional distance or not;
if the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, taking the position point and the first reference point as a first aggregation area, and removing the position point and the first reference point from the first position list;
if the longitude and latitude distance between the position point and the first reference point is larger than or equal to the proportional distance, the position point is not removed from the first position list;
in the first position list, any one position point is selected as a second reference point again, other position points and the second reference point are subjected to longitude and latitude distance calculation respectively, and the second reference point is different from the first reference point;
judging whether the longitude and latitude distance between the position point and the second reference point is smaller than a proportional distance or not;
if the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance, taking the position point and the second reference point as a second aggregation area, and removing the position point and the second reference point from the first position list; and aggregation and dispersion operations are carried out on a large batch of position points according to the proportional distance, so that the data is overall neat and ordered, and the data is convenient to check.
The first aggregation area and the second aggregation area are displayed in the self-defined map layer of the current map, and the method is suitable for scenes of checking and examining of supervision managers, real-time task arrangement for grid members and the like in various intelligent city management and grid management platforms.
When the first aggregation area and the second aggregation area are displayed in the custom layer of the current map, the first aggregation area and the second aggregation area comprise position information of the first aggregation area and the second aggregation area and position point number information in the first aggregation area and the second aggregation area. Specific position information data in a certain aggregation area can be directly checked, a supervision manager can conveniently master the whole position information, and specific position information can be conveniently searched.
When the current map is zoomed, the scale of the current map is changed, and the proportional distance needs to be recalculated to obtain a new first aggregation area.
And (3) the position point enlarges the map under the condition that the aggregation area exists, and if the longitude and latitude distance between the position point and the reference point in the aggregation area is greater than the proportional distance, the position point exits the aggregation area and independently displays the state of the position point.
Referring to fig. 3, 4, 5 and 6, in the present embodiment, only 6 grid members are taken as an example for explanation, but not limited thereto.
In a heartbeat cycle, position information data of 6 grid members are acquired, a first position list is generated, and position points of the 6 grid members are respectively marked as a point A, a point B, a point C, a point D, a point E and a point F.
And selecting the point A in the first position list as a first reference point, and respectively calculating the coordinate distances between the point A and the point B, between the point C and the point D, between the point E and the point F. And obtaining an AB distance f, an AC distance g, an AD distance h, an AE distance i and an AF distance j, comparing f, g, h, i and j with the proportional distances respectively to obtain that f and g are smaller than the proportional distances, and h, i and j are larger than the proportional distances, then the point A, the point B and the point C are positioned in the first polymerization area, and removing the point A, the point B and the point C from the first position list.
And at the moment, D, E and F are left in the first position list, the D is selected as a second reference point, the distances between the D and the E and between the D and the F are respectively calculated to obtain a DE distance m and a DF distance n, the m and the n are respectively compared with the proportional distance to obtain a condition that both the m and the n are smaller than the proportional distance, and then the D, the E and the F are positioned in a second aggregation area and are removed from the first position list.
At this time, the first location list does not contain any location point, the judgment is finished, and the first aggregation area and the second aggregation area are displayed on the current map.
In the next heartbeat cycle, the above process is repeated.
Example 3
A specific embodiment of the system for displaying the position of the grid member in the mobile terminal of the grid platform map according to the present invention is described below with reference to fig. 7, which includes:
the list generating module 301 is coupled with the latitude and longitude distance calculating module 303, and is configured to acquire position information data of all grid members in a heartbeat cycle, generate a first position list from position points of all grid members in a coordinate form, and transmit the first position list to the latitude and longitude distance calculating module 303; and the accuracy and effectiveness of the position information are ensured according to the heartbeat frequency.
A proportional distance calculating module 302, coupled to the determining module 304, for calculating a proportional distance according to a scale of a current map in the mobile terminal and the aggregation reference distance, and transmitting the proportional distance to the determining module 304;
in the proportional distance calculation module 302, the proportional distance is calculated according to the scale of the current map in the mobile terminal and the aggregation reference distance, and the proportional distance is calculated according to the following method:
r=s×d;
wherein r is a proportional distance, s is a scale of the current map, and d is an aggregation reference distance. The positions of the gridders can be dynamically shown in the spontaneous map service of the gridding platform.
The longitude and latitude distance calculation module 303 is coupled to the list generation module 301 and the judgment module 304, and configured to select any one of the position points in the first position list as a first reference point, perform longitude and latitude distance calculation on other position points and the first reference point, and transmit the calculated longitude and latitude distance to the judgment module 304;
in the latitude and longitude distance calculation module 303, the latitude and longitude distance calculation is performed on other position points and the first reference point respectively according to the following method:
Figure BDA0002910973700000101
wherein L is the longitude and latitude distance between the position point and the first reference point, P1.xThe abscissa of the first reference point, P1.yIs the ordinate of the first reference point, P2.xThe abscissa of the location point, P2.yIs the ordinate of the location point.
A determining module 304, coupled to the proportional distance calculating module 302, the latitude and longitude distance calculating module 303, and the display module 305, respectively, for determining whether the latitude and longitude distance between the location point and the first reference point is less than the proportional distance, if the latitude and longitude distance between the location point and the first reference point is less than the proportional distance, the location point and the first reference point are used as a first aggregation area, and the location point and the first reference point are removed from the first location list, and the first aggregation area is transmitted to the display module 305;
the determining module 304 is further configured to, if the longitude and latitude distance between the location point and the first reference point is greater than or equal to the proportional distance, not remove the location point from the first location list;
in the first position list, any one position point is selected as a second reference point again, other position points and the second reference point are subjected to longitude and latitude distance calculation respectively, and the second reference point is different from the first reference point;
judging whether the longitude and latitude distance between the position point and the second reference point is smaller than a proportional distance or not;
if the longitude and latitude distance between the position point and the second reference point is less than the proportional distance, the position point and the second reference point are used as a second aggregation area, the position point and the second reference point are removed from the first position list, and the second aggregation area is transmitted to the display module 305;
when all the position points in the first position list are removed, or the remaining position points in the first position list are all used as the reference points to participate in the calculation, the determining module 304 ends the determination.
The judgment module 304 performs aggregation and dispersion operations on a large quantity of position points according to the proportional distance, so that the data is tidy and ordered integrally and is convenient to check.
And a display module 305, coupled to the determining module 304, configured to display the first aggregation area and the second aggregation area in a custom layer of the current map, where the display module is applicable to various smart city management and grid management platforms, and supervises and manages managers to check and assess, and arrange tasks for grid operators in real time.
In the display module 305, when the first aggregation area and the second aggregation area are displayed in the custom layer of the current map, the position information of the first aggregation area and the second aggregation area, and the number information of the position points in the first aggregation area and the second aggregation area are included. Specific position information data in a certain aggregation state can be directly checked, a supervision manager can conveniently master the whole position information, and specific position information can be conveniently searched.
In the proportional distance calculating module 302, when the current map is zoomed, the scale of the current map changes, and the proportional distance needs to be recalculated to obtain a new first aggregation area. Or after the micro-scaling, the recalculation is not performed, so that the calculation resources are saved, and the jamming is prevented.
The following calculation process only includes 4 grid member location points, but the number of grid members in the present invention is not limited thereto, and the specific calculation process is as follows:
the grid member information position list is:
Q1(116.350629,37.432777),
Q2(116.350693,37.432733),
Q3(116.369523,37.442657),
Q4(116.369423,37.442557);
the current map has a scale of 1:12000, the aggregation reference distance is 100, and the proportional distance r is calculated according to the following method:
Figure BDA0002910973700000111
with Q1Point is the first reference point, calculate Q1And Q2The longitude and latitude distance between the two points is calculated according to the following method:
Figure BDA0002910973700000112
with Q1Point is the first reference point, calculate Q1And Q3The longitude and latitude distance between the two points is calculated according to the following method:
Figure BDA0002910973700000113
with Q1Point is the first reference point, calculate Q1And Q4The longitude and latitude distance between the two points is calculated according to the following method:
Figure BDA0002910973700000114
L12less than proportional distance r, L13And L14Greater than proportional distance r, i.e. Q1And Q2In the first polymerization zone, Q1And Q2、Q3Not in the same polymerization zone.
Removing aggregated points Q from the location list1And Q2With Q3For the second reference point, calculate Q3And Q4The longitude and latitude distance between the two points is calculated according to the following method:
Figure BDA0002910973700000121
L34less than proportional distance r, i.e. Q3And Q4Within the second polymerization zone.
Removing aggregated points Q from the location list3And Q4At this time, the position point does not exist in the position list, that is, all the position points are calculated, and two polymerization regions, namely the first polymerization region and the second polymerization region, are obtained.
By the embodiment, the method and the system for displaying the position of the grid member in the mobile terminal of the grid platform map provided by the invention at least realize the following beneficial effects:
the method for displaying the positions of the grid members in the mobile terminal of the grid platform map can dynamically display the positions of the grid members in the spontaneous map service of the grid platform, display the first aggregation area in the self-defined layer of the current map, and is suitable for scenes of checking and examining various intelligent city management and grid management platforms, supervising managers, arranging tasks for the grid members in real time and the like. And in a heartbeat period, acquiring position information data of all the grid members, and ensuring the accuracy and effectiveness of the position information according to the heartbeat frequency. Any position point in the first position list is selected as a first reference point, the longitude and latitude distances of other position points and the first reference point are calculated respectively, whether the longitude and latitude distances between the position points and the first reference point are smaller than a proportional distance or not is judged, and aggregation and dispersion operations are performed on a large number of position points according to the proportional distance, so that the data are tidy and ordered integrally, and the data are convenient to check.
Although some specific embodiments of the present invention have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustrative purposes only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.

Claims (10)

1. A method for displaying the position of a gridding member in a mobile terminal by a gridding platform map is characterized by comprising the following steps:
in a heartbeat cycle, acquiring position information data of all grid members, and generating a first position list from position points of all grid members in a coordinate mode;
calculating a proportional distance according to a scale of a current map in the mobile terminal and the aggregation reference distance;
selecting any one position point in the first position list as a first reference point, and respectively calculating the longitude and latitude distances between other position points and the first reference point;
judging whether the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance;
if the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, taking the position point and the first reference point as a first aggregation area, and removing the position point and the first reference point from the first position list;
and displaying the first aggregation area in the custom layer of the current map.
2. The method for displaying the position of the grid member in the mobile terminal according to the grid platform map of claim 1, further comprising:
if the longitude and latitude distance between the position point and the first reference point is greater than or equal to the proportional distance, the position point is not removed from the first position list;
in the first position list, any one position point is selected as a second reference point again, other position points and the second reference point are subjected to longitude and latitude distance calculation respectively, and the second reference point is different from the first reference point;
judging whether the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance;
if the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance, taking the position point and the second reference point as a second aggregation area, and removing the position point and the second reference point from the first position list;
and displaying the first aggregation area and the second aggregation area in a custom layer of the current map.
3. The method for displaying the position of the grid member in the mobile terminal according to the grid platform map of claim 2,
when the first aggregation area and the second aggregation area are displayed in the custom layer of the current map, the first aggregation area and the second aggregation area comprise position information of the first aggregation area and the second aggregation area and position point number information in the first aggregation area and the second aggregation area.
4. The method for displaying the position of the grid member in the mobile terminal of the grid platform map according to claim 1, wherein when the current map is zoomed, the scale of the current map is changed, and the proportional distance needs to be recalculated to obtain a new first aggregation area.
5. The method for displaying the position of the grid member in the mobile terminal according to the grid platform map of claim 1,
and respectively carrying out longitude and latitude distance calculation on the other position points and the first reference point according to the following method:
Figure FDA0002910973690000021
wherein L is the longitude and latitude distance between the position point and the first reference point, P1.xThe abscissa of the first reference point, P1.yIs the ordinate of the first reference point, P2.xThe abscissa of the location point, P2.yAs the ordinate of the position point。
6. A system for displaying the position of a grid member in a mobile terminal by a grid platform map, comprising:
the list generation module is coupled with the latitude and longitude distance calculation module and used for acquiring position information data of all grid members in a heartbeat cycle, generating a first position list of position points of all grid members in a coordinate mode and transmitting the first position list to the latitude and longitude distance calculation module;
the proportional distance calculation module is coupled with the judgment module and used for calculating a proportional distance according to the scale of the current map in the mobile terminal and the aggregation reference distance and transmitting the proportional distance to the judgment module;
the longitude and latitude distance calculation module is respectively coupled with the list generation module and the judgment module, and is used for selecting any one position point in the first position list as a first reference point, respectively calculating the longitude and latitude distance between other position points and the first reference point, and transmitting the calculated longitude and latitude distance to the judgment module;
the judging module is respectively coupled with the proportional distance calculating module, the longitude and latitude distance calculating module and the display module and is used for judging whether the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, if the longitude and latitude distance between the position point and the first reference point is smaller than the proportional distance, the position point and the first reference point are used as a first aggregation area, the position point and the first reference point are removed from the first position list, and the first aggregation area is transmitted to the display module;
and the display module is coupled with the judging module and is used for displaying the first aggregation area in the custom layer of the current map.
7. The gridding platform map in mobile terminal, gridding personnel position display system according to claim 6,
the judging module is further configured to, if the longitude and latitude distance between the location point and the first reference point is greater than or equal to the proportional distance, not remove the location point from the first location list;
in the first position list, any one position point is selected as a second reference point again, other position points and the second reference point are subjected to longitude and latitude distance calculation respectively, and the second reference point is different from the first reference point;
judging whether the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance;
if the longitude and latitude distance between the position point and the second reference point is smaller than the proportional distance, taking the position point and the second reference point as a second aggregation area, removing the position point and the second reference point from the first position list, and transmitting the second aggregation area to the display module;
the display module displays the first aggregation area and the second aggregation area in a custom layer of the current map.
8. The system for displaying the grid member position in the mobile terminal according to the grid platform map of claim 7, wherein the first aggregation area and the second aggregation area include position information of the first aggregation area and the second aggregation area, and the position point number information in the first aggregation area and the second aggregation area when the first aggregation area and the second aggregation area are displayed in a custom layer of the current map in the display module.
9. The system for displaying the grid member position in the mobile terminal of the grid platform map according to claim 6, wherein in the proportional distance calculating module, when the current map is zoomed, the scale of the current map is changed, and the proportional distance needs to be recalculated to obtain a new first aggregation area.
10. The gridding platform map in mobile terminal, gridding personnel position display system according to claim 6,
in the latitude and longitude distance calculation module, the latitude and longitude distance calculation of the other position points and the first reference point is performed according to the following method:
Figure FDA0002910973690000041
wherein L is the longitude and latitude distance between the position point and the first reference point, P1.xThe abscissa of the first reference point, P1.yIs the ordinate of the first reference point, P2.xThe abscissa of the location point, P2.yIs the ordinate of the location point.
CN202110086313.3A 2021-01-22 2021-01-22 Method and system for displaying positions of grid members of grid platform map in mobile terminal Pending CN112764859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110086313.3A CN112764859A (en) 2021-01-22 2021-01-22 Method and system for displaying positions of grid members of grid platform map in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110086313.3A CN112764859A (en) 2021-01-22 2021-01-22 Method and system for displaying positions of grid members of grid platform map in mobile terminal

Publications (1)

Publication Number Publication Date
CN112764859A true CN112764859A (en) 2021-05-07

Family

ID=75702676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110086313.3A Pending CN112764859A (en) 2021-01-22 2021-01-22 Method and system for displaying positions of grid members of grid platform map in mobile terminal

Country Status (1)

Country Link
CN (1) CN112764859A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335393A (en) * 2014-07-11 2016-02-17 阿里巴巴集团控股有限公司 Map display method and device
CN105426387A (en) * 2015-10-23 2016-03-23 北京锐安科技有限公司 K-means algorithm based map aggregation method
CN105550199A (en) * 2015-11-28 2016-05-04 浙江宇视科技有限公司 Point position clustering method and point position clustering apparatus based on multi-source map
CN107291874A (en) * 2017-06-16 2017-10-24 小草数语(北京)科技有限公司 Point map position polymerization and device
CN109977179A (en) * 2019-02-19 2019-07-05 中电海康集团有限公司 A kind of poly- scattered method for visualizing of grid dividing realization magnanimity atural object mark point of layering
CN110019622A (en) * 2017-12-14 2019-07-16 浙江宇视科技有限公司 A kind of real time mass map point polymerization and device
CN110399441A (en) * 2019-07-04 2019-11-01 佳都新太科技股份有限公司 A kind of massive point data aggregate rendering method, device, equipment and storage medium
CN110555088A (en) * 2019-08-30 2019-12-10 高新兴科技集团股份有限公司 Electronic map label aggregation method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335393A (en) * 2014-07-11 2016-02-17 阿里巴巴集团控股有限公司 Map display method and device
CN105426387A (en) * 2015-10-23 2016-03-23 北京锐安科技有限公司 K-means algorithm based map aggregation method
CN105550199A (en) * 2015-11-28 2016-05-04 浙江宇视科技有限公司 Point position clustering method and point position clustering apparatus based on multi-source map
CN107291874A (en) * 2017-06-16 2017-10-24 小草数语(北京)科技有限公司 Point map position polymerization and device
CN110019622A (en) * 2017-12-14 2019-07-16 浙江宇视科技有限公司 A kind of real time mass map point polymerization and device
CN109977179A (en) * 2019-02-19 2019-07-05 中电海康集团有限公司 A kind of poly- scattered method for visualizing of grid dividing realization magnanimity atural object mark point of layering
CN110399441A (en) * 2019-07-04 2019-11-01 佳都新太科技股份有限公司 A kind of massive point data aggregate rendering method, device, equipment and storage medium
CN110555088A (en) * 2019-08-30 2019-12-10 高新兴科技集团股份有限公司 Electronic map label aggregation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
戴凤娇等: "基于百度地图的标记点聚合算法研究", 《中国科技信息》 *
高德技术: "地图兴趣点聚合算法的探索与实践", 《微信公众平台》 *

Similar Documents

Publication Publication Date Title
CN107944618B (en) Point arrangement planning method and device for shared vehicle and electronic equipment
US20050034075A1 (en) GIS-based emergency management
CN106844376A (en) Recommend the method and device of point of interest
CN111933299A (en) Infectious disease infection risk assessment method and apparatus, electronic device, and storage medium
CN103425800B (en) map visualization method, device and processor
CN107289925A (en) A kind of method and apparatus for drawing user trajectory
CN107092623A (en) A kind of point of interest querying method and device
AU2018221091A1 (en) Method for processing logistics package delivery route, and related device
CN111898042B (en) Riding point recommendation method, riding point recommendation device, riding point recommendation equipment and storage medium
WO2016153426A1 (en) Method and apparatus for creating map data for calculating commute time using public transit information
CN110362640B (en) Task allocation method and device based on electronic map data
CN114422885A (en) Route searching method, device, equipment and medium based on topological route
CN105184435A (en) Field staff management method and system
CN110087185A (en) Commercial circle fence generation method, device, equipment and computer readable storage medium
US7487070B2 (en) Method for planning a security array of sensor units
JP2013205852A (en) Information search system and information search device
CN106488402B (en) Ground is made an inventory rendering method and relevant device
CN108291954A (en) The establishment system and its control method of wave condition map
CN112764859A (en) Method and system for displaying positions of grid members of grid platform map in mobile terminal
CN104392101B (en) Data sharing method and device
CN112085379A (en) Land level evaluation method, device and system based on cadastral mapping system
CN112785163A (en) Occupation recognition method, device, equipment and medium
CN114090147A (en) Data processing method based on geographic information platform
CN116227777B (en) Stroke information processing method and electronic equipment
CN108073634A (en) A kind of map rendering intent and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210507

RJ01 Rejection of invention patent application after publication