CN110555088A - Electronic map label aggregation method - Google Patents
Electronic map label aggregation method Download PDFInfo
- Publication number
- CN110555088A CN110555088A CN201910818329.1A CN201910818329A CN110555088A CN 110555088 A CN110555088 A CN 110555088A CN 201910818329 A CN201910818329 A CN 201910818329A CN 110555088 A CN110555088 A CN 110555088A
- Authority
- CN
- China
- Prior art keywords
- label
- aggregation
- points
- point
- electronic map
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9538—Presentation of query results
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Processing Or Creating Images (AREA)
- Instructional Devices (AREA)
Abstract
The invention belongs to the technical field of network search, and particularly relates to an electronic map label aggregation method. The method comprises the following steps: s1, acquiring a label set in the image or video or map; s2, when the number of the label points on the image or the video or the map is more than two, the distance between each label point and other label points is judged in sequence according to the calculation formula of the distance between the two points of the coordinates of the label points in the screen; and S3, judging whether the distance is smaller than a first threshold value, if so, hiding the label points, and displaying a first aggregation point at the center positions of the two corresponding label points. The invention provides the optimal display mode for the electronic map on the aspect of adding a large number of various labels, so that the visualization degree of the label data of the electronic map is greatly improved.
Description
Technical Field
The invention belongs to the technical field of network search, and particularly relates to an electronic map label aggregation method.
Background
With the application and popularization of network technology, the public is more and more accustomed to searching for required information through the internet. When information is searched on the internet, the method has the advantages of large information amount, fast information growth, fast updating and the like, and has the characteristics of diversification and dispersity. The characteristic of internet information brings inconvenience to the inquiry of information. In daily life, a common means for people to query geographic information is through a search engine or a geographic information website. When a certain place or route is queried, a search engine or a geographic information website generally can only give one-dimensional query results in a list form of the place or route. The one-dimensional query means that the arrangement mode of the query results is a sequential relationship, and the query results are sorted according to the matching degree. However, in practical use, the obtained query result cannot completely meet the requirement of the user, and the user often needs to search for all the desired information through multiple times.
the existing page map display label technology is that a specified picture is displayed on a map through code programming by a given coordinate point, and a picture label is always positioned on the given coordinate point when the map is zoomed in and zoomed out. Has the following defects: 1. when the coordinates of two points to be displayed are close, the prior art can display the points in an overlapping way; 2. when the number of label points required to be marked on the map is large, dense and numb labels exist on the map, so that visual defects are caused, and the map main body is covered.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides an electronic map label aggregation method.
The invention is realized by the following technical scheme:
An electronic map label aggregation method comprises the following steps:
S1, acquiring a label set in the image or video or map;
s2, when the number of the label points on the image or the video or the map is more than two, the distance | AB | between each label point and other label points is judged in sequence according to the calculation formula of the distance between the two coordinates of the label points in the screen;
And S3, judging whether the distance | AB | is smaller than a first threshold value, if so, hiding the label points, and displaying a first aggregation point at the center positions of the two corresponding label points.
Further, in said stepin S2, the distance calculation formula is:Wherein (x)1,y1) And (x)2,y2) Respectively the coordinates of two label points.
Further, when a mouse clicks or moves or stays at the first aggregation point, the aggregated tag point is displayed near the position of the first aggregation point.
Further, step S4 is included, when there are three or more label points, the distance to other label points is calculated according to the position of the first aggregation point, and whether the distance is smaller than a first threshold is determined, if yes, the label point and the first aggregation point are hidden, a second aggregation point is displayed at the center position of the first aggregation point and the center position of the comparison label point, and then the second aggregation point is compared with the remaining label points.
Further, step S4 is repeatedly executed until each of the label points of the map is judged.
further, the first and second polymerization points are dots indicating the polymerization number.
Further, whether the number of the label points displayed in the aggregation point is larger than a second threshold value or not is judged, if yes, a list of the aggregated label points is generated beside the aggregation point when the mouse touches the aggregation point.
further, when the label points of the specified type do not need to be aggregated, the label points of the type which do not need to be aggregated are filtered and excluded according to the type field hidden in the label before the point distance is judged.
the invention also comprises a computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, carries out the steps of the electronic map label aggregation method.
the invention also includes a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the electronic map label aggregation method are implemented when the processor executes the program.
Compared with the prior art, the invention has at least the following beneficial effects or advantages:
1. When the coordinates of two label points to be displayed are close, the close labels are aggregated, so that the overlapping problem is solved.
2. When the number of the label points needing to be marked in one screen of the map is large, the proposal aggregates the labels, only displays one display number point aggregated respectively, and solves the problem that the label covers the map more.
3. The invention provides the optimal display mode for the electronic map on the aspect of adding a large number of various labels, so that the visualization degree of the label data of the electronic map is greatly improved.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings;
FIG. 1 is a display of all aggregated tag points near the aggregation point location of the present invention;
fig. 2 is a listing diagram of the aggregated tag points of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides an electronic map label aggregation method, which is subdivided into no aggregation of map high-point labels, aggregation of low-point labels within a specified distance, and aggregation display of the low-point labels as icons with the number indicated. When the aggregation point is clicked or touched, the hidden label points are uniformly distributed and displayed in the specified number, and when the number of the hidden label points is larger than the specified number, the hidden label points are displayed in a list form.
Which comprises the following steps:
S1, acquiring the label set in the image or video or map.
s2, when there are more than two map label points, according to the coordinate two-point distance formula of the label point in the screen, calculatingAnd judging the distance between each label point and other points in sequence.
s3, determining whether the distance is smaller than a threshold, if so, hiding the label, and displaying a label point (the label point is a dot indicating the aggregation number) at an aggregation point (the aggregation point is a center of two labels).
According to the technical scheme, the labels within the preset distance are subjected to aggregation display, the display number of the labels is greatly reduced, and in addition, the number of the labels which are aggregated and hidden can be visually displayed by displaying one label point which indicates the aggregation number.
Further, when the mouse clicks or moves or stays at the aggregation point, the aggregated label is displayed near the aggregation point position (see fig. 1);
Further (there are three or more label points), calculating the distance to other labels according to the position of the aggregation point, and judging whether the distance is smaller than a threshold value, if so, hiding the label and the aggregation point, and displaying a label point (the label point is a dot indicating the aggregation number) at a new aggregation point position (the new aggregation point position is the center position of the old aggregation point position and the comparison label position).
Therefore, two labels are aggregated into one label, aggregation is formed according to the aggregated distance between the aggregated label and the third label, cyclic judgment is carried out until the judgment of each label point of the map is finished, and finally, the dots indicating the aggregation number are displayed.
And further judging whether the number of the label points in the aggregation point is larger than a second threshold, if so, generating a list of the aggregated label points beside the aggregation point when the mouse touches the aggregation point with the marked number (see fig. 2).
In addition, when the label points of the designated type do not need to be aggregated, for example, when the labels of the high-point camera type do not need to participate in the aggregation between the labels of the low-point camera type, the label points of the high-point camera type which do not need to be aggregated need to be filtered and excluded according to the hidden type field in the labels before the point distance is judged.
The present invention also provides a computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the steps of the electronic map label aggregation method.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the electronic map label aggregation method when executing the program.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the invention are also within the protection scope of the invention.
Claims (10)
1. An electronic map label aggregation method is characterized by comprising the following steps:
S1, acquiring a label set in the image or video or map;
S2, when the number of the label points on the image or the video or the map is more than two, the distance | AB | between each label point and other label points is judged in sequence according to the calculation formula of the distance between the two coordinates of the label points in the screen;
And S3, judging whether the distance | AB | is smaller than a first threshold value, if so, hiding the label points, and displaying a first aggregation point at the center positions of the two corresponding label points.
2. the electronic map label aggregation method according to claim 1, characterized in thatIn step S2, the distance calculation formula is:Wherein (x)1,y1) And (x)2,y2) Respectively the coordinates of two label points.
3. The electronic map tag aggregation method according to claim 1, wherein the aggregated tag point is displayed near a location of the first aggregation point when a mouse clicks or moves or stays at the first aggregation point.
4. The electronic map label aggregation method according to claim 1, further comprising a step S4, when there are three or more label points, calculating distances to other label points according to the position of the first aggregation point, and determining whether the distances are smaller than a first threshold, if so, hiding the label points and the first aggregation point, displaying a second aggregation point at the center positions of the first aggregation point and the comparison label point, and comparing and determining the second aggregation point with the remaining label points.
5. The electronic map label aggregation method of claim 4, wherein step S4 is repeatedly executed until each label point of the map is determined.
6. The electronic map label aggregation method of claim 5, wherein the first aggregation point and the second aggregation point are dots indicating aggregation numbers.
7. The electronic map tag aggregation method according to any one of claims 1 to 6, wherein it is determined whether the number of tag points displayed in the aggregation point is greater than a second threshold, and if so, a list of aggregated tag points is generated beside the aggregation point when a mouse touches the aggregation point.
8. The electronic map tag aggregation method according to any one of claims 1 to 6, wherein when tag points of a specified type do not need to be aggregated, only type tag points that do not need to be aggregated need to be filtered out according to a type field hidden in a tag before determining a point distance.
9. a computer-readable storage medium, on 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 8.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 8 are implemented when the program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910818329.1A CN110555088A (en) | 2019-08-30 | 2019-08-30 | Electronic map label aggregation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910818329.1A CN110555088A (en) | 2019-08-30 | 2019-08-30 | Electronic map label aggregation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110555088A true CN110555088A (en) | 2019-12-10 |
Family
ID=68738598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910818329.1A Pending CN110555088A (en) | 2019-08-30 | 2019-08-30 | Electronic map label aggregation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110555088A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112182457A (en) * | 2020-10-12 | 2021-01-05 | 合肥四相至新科技有限公司 | Positioning data display method and system |
CN112445989A (en) * | 2020-11-23 | 2021-03-05 | 北京思特奇信息技术股份有限公司 | WebGIS (Web geographic information System) -based map text label avoidance display method and device |
CN112529541A (en) * | 2020-12-25 | 2021-03-19 | 山东鲁能软件技术有限公司 | Method and system for generating equipment measurement label in distribution network line diagram |
CN112764859A (en) * | 2021-01-22 | 2021-05-07 | 泰华智慧产业集团股份有限公司 | Method and system for displaying positions of grid members of grid platform map in mobile terminal |
CN113776546A (en) * | 2021-09-03 | 2021-12-10 | 上海擎朗智能科技有限公司 | Method and device for determining robot path, electronic equipment and medium |
CN117171277A (en) * | 2023-09-08 | 2023-12-05 | 北京唯得科技有限公司 | Method, system, equipment and medium for loading marks of electronic map |
Citations (5)
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 |
CN107784017A (en) * | 2016-08-30 | 2018-03-09 | 杭州海康威视系统技术有限公司 | The polymerization and device of map resource point |
US20180075061A1 (en) * | 2016-09-15 | 2018-03-15 | Adobe Systems Incorporated | Labelling of aggregated geolocation tags in a digital mapping system |
CN109657017A (en) * | 2018-11-05 | 2019-04-19 | 北京市天元网络技术股份有限公司 | It polymerize the methods of exhibiting and device of point set in map |
-
2019
- 2019-08-30 CN CN201910818329.1A patent/CN110555088A/en active Pending
Patent Citations (5)
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 |
CN107784017A (en) * | 2016-08-30 | 2018-03-09 | 杭州海康威视系统技术有限公司 | The polymerization and device of map resource point |
US20180075061A1 (en) * | 2016-09-15 | 2018-03-15 | Adobe Systems Incorporated | Labelling of aggregated geolocation tags in a digital mapping system |
CN109657017A (en) * | 2018-11-05 | 2019-04-19 | 北京市天元网络技术股份有限公司 | It polymerize the methods of exhibiting and device of point set in map |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112182457A (en) * | 2020-10-12 | 2021-01-05 | 合肥四相至新科技有限公司 | Positioning data display method and system |
CN112445989A (en) * | 2020-11-23 | 2021-03-05 | 北京思特奇信息技术股份有限公司 | WebGIS (Web geographic information System) -based map text label avoidance display method and device |
CN112529541A (en) * | 2020-12-25 | 2021-03-19 | 山东鲁能软件技术有限公司 | Method and system for generating equipment measurement label in distribution network line diagram |
CN112764859A (en) * | 2021-01-22 | 2021-05-07 | 泰华智慧产业集团股份有限公司 | Method and system for displaying positions of grid members of grid platform map in mobile terminal |
CN113776546A (en) * | 2021-09-03 | 2021-12-10 | 上海擎朗智能科技有限公司 | Method and device for determining robot path, electronic equipment and medium |
CN113776546B (en) * | 2021-09-03 | 2024-05-24 | 上海擎朗智能科技有限公司 | Method and device for determining robot path, electronic equipment and medium |
CN117171277A (en) * | 2023-09-08 | 2023-12-05 | 北京唯得科技有限公司 | Method, system, equipment and medium for loading marks of electronic map |
CN117171277B (en) * | 2023-09-08 | 2024-04-30 | 北京唯得科技有限公司 | Method, system, equipment and medium for loading marks of electronic map |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110555088A (en) | Electronic map label aggregation method | |
US20070234209A1 (en) | Method and system for aggregating and presenting user highlighting of content | |
US6977654B2 (en) | Data visualization with animated speedometer dial charts | |
CN1290043C (en) | Management system and method for data entity and relation data base structure display | |
JP2010191997A (en) | Method for clustering and querying media item | |
CN111177497B (en) | Hierarchical data association relationship visualization processing method, server and storage medium | |
CN103688260A (en) | Entity resolution | |
CN112083973B (en) | Window closing method and device, electronic equipment and storage medium | |
JP4093478B2 (en) | Linked content prefetching device and prefetching method | |
CN104504701A (en) | Image display method and system based on streetscape attribute information | |
US7801889B2 (en) | Search system for providing information of keyword input frequency by category and method thereof | |
CN109062491A (en) | Handwriting processing method and device for interactive intelligent equipment | |
CN104504054A (en) | Location character display method and system based on streetscape attribute information | |
US20080301127A1 (en) | Method and Apparatus for Providing an On-Line Directory Service | |
CN113129155A (en) | Multi-type personnel information processing method, equipment and storage medium | |
CN116186150B (en) | Mobile user data visualization system and method | |
US20160357414A1 (en) | Displaying a network of related entities | |
CN102855223B (en) | Electronic document display method and electronic reading device | |
US20100094823A1 (en) | Enhanced linear presentation of search results based on search result metadata | |
CN106598315B (en) | Touch display device and background image replacement method thereof | |
US9378571B1 (en) | Browsing large geocoded datasets using nested shapes | |
CN110083812B (en) | Picture layout method and device of electronic document and electronic equipment | |
CN103547982A (en) | Identifying contacts and contact attributes in touch sensor data using spatial and temporal features | |
CN110704523A (en) | Data export method, device, equipment and computer readable storage medium | |
US20150310092A1 (en) | Attribute histograms for providing data access |
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: 20191210 |
|
RJ01 | Rejection of invention patent application after publication |