CN114969233A - Method, device and medium for optimizing coordinates of thermodynamic diagram of geographical area - Google Patents
Method, device and medium for optimizing coordinates of thermodynamic diagram of geographical area Download PDFInfo
- Publication number
- CN114969233A CN114969233A CN202210576292.8A CN202210576292A CN114969233A CN 114969233 A CN114969233 A CN 114969233A CN 202210576292 A CN202210576292 A CN 202210576292A CN 114969233 A CN114969233 A CN 114969233A
- Authority
- CN
- China
- Prior art keywords
- sub
- region
- coordinate
- coordinate points
- thermodynamic diagram
- 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.)
- Granted
Links
- 238000010586 diagram Methods 0.000 title claims abstract description 147
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000005457 optimization Methods 0.000 claims abstract description 33
- 238000012163 sequencing technique Methods 0.000 claims abstract description 12
- 230000000694 effects Effects 0.000 claims description 46
- 238000003860 storage Methods 0.000 claims description 14
- 238000000638 solvent extraction Methods 0.000 claims 1
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 238000013500 data storage Methods 0.000 abstract description 3
- 238000004590 computer program Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004040 coloring Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
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
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses a method, equipment and medium for optimizing coordinates of a thermodynamic diagram of a geographic area. The thermodynamic diagram coordinate optimization method comprises the steps of obtaining a geographical area thermodynamic diagram to be optimized, and carrying out area division on the thermodynamic diagram to obtain a plurality of sub-areas; counting the number of coordinate points in the sub-region; calculating the number of coordinate points of the sub-region to be deleted according to the number of the coordinate points of the sub-region; calculating coordinates of the central position of the sub-region; calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance values to obtain a coordinate point sequence; and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points of the sub-region to be deleted to obtain the optimized sub-region coordinate points. By the method, the thermodynamic diagram coordinates in the geographic area are optimized, the space occupied by coordinate data storage is reduced, the time required for coordinate data transmission is shortened, the thermodynamic diagram is displayed more smoothly and rapidly, and the user experience is improved.
Description
Technical Field
The application relates to the technical field of electronic maps and data optimization, in particular to a method, equipment and medium for optimizing thermodynamic diagram coordinates of a geographic area.
Background
A thermodynamic diagram is a special graph, which is a statistical graph showing data by coloring color patches. The thermodynamic diagram can show in the form of special highlights an illustration of the page area which is hot for the visitor and the geographical area where the visitor is located.
When drawing a thermodynamic diagram, mapping rules of each color need to be established, and the mapping rules are generally based on the intensity or the hue of the color, such as: the darker the color region represents a larger numerical value and a darker degree; the lighter the color area indicates a larger value and a darker degree. By means of thermodynamic diagrams, the general condition of data can be clearly and clearly checked, special values are observed or differences among a plurality of variables are displayed, whether correlation exists among the variables or not is detected, and the like.
Although the thermodynamic diagram plays a role in facilitating observation, because the data volume carried in the thermodynamic diagram is large and the concurrency of user use is high, when the thermodynamic diagram is drawn through the prior art, the problems of page blocking and the like often occur, and the user experience is affected.
Based on the current situation, a novel method, equipment and medium for optimizing the thermodynamic diagram coordinates in the geographic region are urgently needed to be developed, and the number of coordinate data to be transmitted in the thermodynamic diagram is reduced by optimizing the thermodynamic diagram coordinates under the condition that the original display effect of the thermodynamic diagram is not influenced as much as possible, so that the fluency and the actual use effect of the thermodynamic diagram are ensured.
Disclosure of Invention
The embodiment of the specification provides a method, equipment and a medium for optimizing coordinates of a thermodynamic diagram of a geographical area, which are used for solving the following technical problems in the prior art: in the thermodynamic diagram drawing process, due to the fact that the data transmission quantity is large and the concurrency of the user is high, the situation that the page is stuck frequently occurs, and the user experience is affected.
The embodiment of the specification adopts the following technical scheme:
a geographic area thermodynamic diagram coordinate optimization method comprises the following steps:
acquiring a geographical area thermodynamic diagram to be optimized, and performing area division on the thermodynamic diagram to obtain a plurality of sub-areas;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points of the sub-region to be deleted according to the number of the coordinate points of the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance value to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
Further, the area division of the thermodynamic diagram includes:
the thermodynamic diagrams are evenly partitioned into regions and each sub-region is numbered.
Further, the calculating the number of coordinate points that need to be deleted in the sub-region according to the number of coordinate points in the sub-region includes:
counting the total number of coordinate points in the thermodynamic diagram;
calculating to obtain the coordinate point density of the sub-region according to the total number of the coordinate points in the thermodynamic diagram and the number of the coordinate points in the sub-region;
and calculating to obtain the number of the coordinate points needing to be deleted of the sub-region according to the total number of the set coordinate points needing to be deleted and the density of the coordinate points of the sub-region.
Further, the total number of coordinate points needing to be deleted is set according to the display effect of the geographical area thermodynamic diagram to be optimized, so that the display effect of the optimized geographical area thermodynamic diagram is consistent with the display effect of the geographical area thermodynamic diagram to be optimized.
Further, the sorting the coordinate points in the sub-region according to the distance value includes:
and performing descending arrangement according to the distance values.
Further, the deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points that need to be deleted by the sub-region includes:
and deleting the previous coordinate points in the coordinate point sequence in descending order according to the number of the coordinate points needing to be deleted in the sub-region.
Further, the geographical area thermodynamic diagram coordinate optimization method further comprises the following steps:
acquiring the geographical area thermodynamic diagram to be optimized, and displaying the geographical area thermodynamic diagram to be optimized to obtain a first display effect;
obtaining an optimized geographical region thermodynamic diagram according to the optimized sub-region coordinate point data, and displaying the optimized geographical region thermodynamic diagram to obtain a second display effect;
and comparing the first display effect with the second display effect, and adjusting the number of coordinate points to be deleted according to the comparison result and a preset threshold value.
Further, the adjusting the number of the coordinate points to be deleted according to the comparison result and the preset threshold includes:
if the comparison difference value of the first display effect and the second display effect exceeds the preset threshold value, reducing the number of coordinate points needing to be deleted;
and deleting the coordinate points in the coordinate point sequence according to the reduced number of the coordinate points needing to be deleted to obtain further optimized sub-region coordinate point data.
A geographical area thermodynamic diagram coordinate optimization device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a geographical area thermodynamic diagram to be optimized, and performing area division on the thermodynamic diagram to obtain a plurality of sub-areas;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points needing to be deleted in the sub-region according to the number of the coordinate points in the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance value to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
A non-transitory computer storage medium storing computer-executable instructions for geographical area thermodynamic diagram coordinate optimization, wherein the computer-executable instructions are configured to:
acquiring a geographical area thermodynamic diagram to be optimized, and carrying out area division on the thermodynamic diagram to obtain a plurality of sub-areas;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points of the sub-region to be deleted according to the number of the coordinate points of the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance value to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
in the geographical area thermodynamic diagram coordinate optimization method exemplified in the embodiment of the present specification, by setting a reliable algorithm, coordinate points in a sub-area are reasonably deleted according to the number of coordinate points in the sub-area and the distance value between each coordinate point and a center position, and it can be understood that the more the number of coordinate points in the sub-area is, the more coordinate points can be deleted; the smaller the number of coordinate points in the sub-region, the smaller the number that can be deleted. By the coordinate optimization method exemplified by the embodiment of the specification, the thermal diagram coordinates of the geographic area can be optimized, the space occupied by coordinate data storage is reduced, the time required by coordinate data transmission is shortened, a user can more smoothly and rapidly display a thermodynamic diagram, the thermodynamic diagram can be more rapidly and conveniently watched, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart illustrating a geographic area thermodynamic diagram coordinate optimization method provided in an embodiment of the present disclosure;
fig. 2 is a schematic diagram of each area coordinate point in a geographical area thermodynamic diagram to be optimized in the geographical area thermodynamic diagram coordinate optimization method provided by the embodiment of the present specification;
fig. 3 is a schematic diagram of coordinates of center positions of sub-areas in a geographic area thermodynamic diagram coordinate optimization method provided in an embodiment of the present specification;
fig. 4 is a schematic diagram of coordinate points in a geographical area thermodynamic diagram optimized in the geographical area thermodynamic diagram coordinate optimization method provided in the embodiment of the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to specific embodiments of the present disclosure and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in the description belong to the protection scope of the present application.
First, the technical idea of the technical solution disclosed in the present invention will be explained. The conventional geographical area thermodynamic diagrams are drawn, because the number of coordinate points in the diagrams is large, a large amount of storage space is required for storing the coordinate data, the transmission time required for retrieving the coordinate data is long, and the concurrence of the thermodynamic diagrams used by users is high, so that the situations of page blockage and the like frequently occur during the exhibition of the thermodynamic diagrams, the users are difficult to conveniently, quickly, smoothly and rapidly use the thermodynamic diagrams, and the experience degree of the users is influenced.
Based on the current situation, a novel method, equipment and medium for optimizing the thermodynamic diagram coordinates in the geographic region are urgently needed to be developed, and the number of coordinate data to be transmitted in the thermodynamic diagram is reduced by optimizing the thermodynamic diagram coordinates under the condition that the original display effect of the thermodynamic diagram is not influenced as much as possible, so that the fluency and the actual use effect of the thermodynamic diagram are ensured.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a geographic area thermodynamic diagram coordinate optimization method, where the method includes:
acquiring a geographical area thermodynamic diagram to be optimized, and performing area division on the thermodynamic diagram to obtain a plurality of sub-areas;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points of the sub-region to be deleted according to the number of the coordinate points of the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance value to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
In this embodiment, the performing region division on the thermodynamic diagram includes:
the thermodynamic diagram is evenly partitioned into regions and each sub-region is numbered.
In this embodiment, the calculating, according to the number of coordinate points in the sub-region, the number of coordinate points that need to be pruned in the sub-region includes:
counting the total number of coordinate points in the thermodynamic diagram;
calculating to obtain the coordinate point density of the sub-region according to the total number of the coordinate points in the thermodynamic diagram and the number of the coordinate points in the sub-region;
and calculating to obtain the number of the coordinate points needing to be deleted of the sub-region according to the total number of the set coordinate points needing to be deleted and the density of the coordinate points of the sub-region.
In this embodiment, the total number of coordinate points to be subtracted is set according to the display effect of the geographical area thermodynamic diagram to be optimized, so as to ensure that the display effect of the optimized geographical area thermodynamic diagram is consistent with the display effect of the geographical area thermodynamic diagram to be optimized.
In this embodiment, the sorting coordinate points in the sub-region according to the distance value includes:
and performing descending arrangement according to the distance values.
In this embodiment, the deleting the coordinate points in the coordinate point sequence according to the number of coordinate points that need to be deleted by the sub-region includes:
and deleting the previous coordinate points in the coordinate point sequence in descending order according to the number of the coordinate points needing to be deleted in the sub-region.
In this embodiment, the method for optimizing the geographical area thermodynamic diagram coordinates further includes:
acquiring the geographical area thermodynamic diagram to be optimized, and displaying the geographical area thermodynamic diagram to be optimized to obtain a first display effect;
obtaining an optimized geographical region thermodynamic diagram according to the optimized sub-region coordinate point data, and displaying the optimized geographical region thermodynamic diagram to obtain a second display effect;
and comparing the first display effect with the second display effect, and adjusting the number of coordinate points to be deleted according to the comparison result and a preset threshold value.
In this embodiment, the adjusting the number of coordinate points to be deleted according to the comparison result and the preset threshold includes:
if the comparison difference value of the first display effect and the second display effect exceeds the preset threshold value, reducing the number of coordinate points needing to be deleted;
and deleting the coordinate points in the coordinate point sequence according to the reduced number of the coordinate points needing to be deleted to obtain further optimized sub-region coordinate point data.
In the geographical area thermodynamic diagram coordinate optimization method of the embodiment, by setting a reliable algorithm, coordinate points in a sub-area are reasonably deleted according to the number of the coordinate points in the sub-area and the distance value between each coordinate point and the center position, and it can be understood that the more the number of the coordinate points in the sub-area is, the more the coordinate points can be deleted; the smaller the number of coordinate points in the sub-region, the smaller the number that can be deleted. By the coordinate optimization method exemplified by the embodiment of the specification, optimization processing can be performed on the thermodynamic diagram coordinates of a geographic area, the space occupied by coordinate data storage is reduced, the time required by coordinate data transmission is shortened, a user can more smoothly and rapidly display the thermodynamic diagram, the thermodynamic diagram can be more rapidly and conveniently watched, and the user experience is improved.
In order to facilitate understanding of the geographical area thermodynamic diagram coordinate optimization method of the embodiment of the present invention, the coordinate optimization method is further described below:
because the amount of coordinate data in the thermodynamic diagram of the geographic area is large, the occupied storage space is large, and the retrieval time is long, the coordinate optimization method provided by the embodiment of the invention hopes to achieve the purpose of saving data transmission by reducing the amount of the coordinate data, and simultaneously ensures that the optimized data is similar to the thermodynamic diagram display effect of the original data.
Therefore, the coordinate optimization method according to the embodiment of the present invention filters the coordinate data in the thermodynamic diagram by setting a reliable algorithm, so as to delete the coordinate data in the original thermodynamic diagram. The basic rule of the algorithm is that the more dense coordinate points, the more coordinate data need to be deleted, and the less coordinate points, the less coordinate data need to be deleted.
The geographical area thermodynamic diagram coordinate optimization method disclosed by the embodiment of the invention roughly comprises the following steps of:
1) carrying out uniform region division on the thermodynamic diagram; 2) counting the number of coordinate points of each sub-region; 3) calculating the number of coordinate points needing to be deleted in each sub-region; 4) calculating the center position coordinates of each sub-region; 5) Calculating the distance between each coordinate point in each sub-region and the center position of the sub-region, and sequencing each coordinate point according to the distance; 6) and deleting the corresponding coordinate data according to the deletion number.
The detailed steps are as follows:
step 1:
as shown in fig. 2, according to actual needs, the geographical area thermodynamic diagram to be optimized is subjected to uniform area division, each sub-area is numbered and named as area (i).
Step 2:
the number n (i) of coordinate points in each sub-region area (i) is counted, as shown in the following table.
Sub-area | Number of coordinate points |
Area01 | n01 |
Area02 | n02 |
… | … |
Area(i) | n(i) |
… | … |
Area15 | n15 |
Area16 | n16 |
And step 3:
the total number of coordinate points in the geographical area thermodynamic diagram to be optimized is n (total), and according to the number of coordinate points n (i) in each sub-area (i) and the total number of coordinate points n (total), the density of the coordinate points in each sub-area (i) can be calculated by the following formula: ρ (i) ═ n (i) ÷ n (total).
If the total number of coordinate points to be deleted is set to n (minus), the number of coordinate points to be deleted in each sub-region area (i) can be calculated as m (i) ═ n (minus) × ρ (i) in the following table.
It can be understood, of course, that the total number n (subtraction) of coordinate points to be subtracted is set based on the displaying effect of the geographical area thermodynamic diagram to be optimized, so as to ensure that the displaying effect of the optimized geographical area thermodynamic diagram is substantially consistent with the displaying effect of the geographical area thermodynamic diagram to be optimized, and no distortion occurs.
Sub-area | Number of coordinate points | Density of coordinates | Number of deletions |
Area01 | n01 | ρ01 | m01 |
Area02 | n02 | ρ02 | m02 |
… | … | … | … |
Area(i) | n(i) | ρ(i) | m(i) |
… | … | … | … |
Area15 | n15 | ρ15 | m15 |
Area16 | n16 | ρ16 | m16 |
And 4, step 4:
the coordinates (xi, yi) of the central position c (i) of each sub-region area (i) are calculated, as shown in fig. 3.
And 5:
calculating the distance value d (ij) between each coordinate point (xij, yij) in each sub-region and the center position c (i), and sequencing the coordinate points of the sub-regions in a descending order according to the size of the distance value d (ij).
Step 6:
according to the deletion number m (i), the first m (i) coordinate data are deleted to obtain the optimized coordinate point data of the sub-region, so as to obtain the optimized geographical thermodynamic diagram, as shown in fig. 4.
Of course, it can be understood that after the foregoing steps 1-6 are performed, the geographical area thermodynamic diagram coordinate optimization method of this embodiment may further include the following steps:
firstly, a geographical area thermodynamic diagram to be optimized and coordinate data in the geographical area thermodynamic diagram are obtained, and the geographical area thermodynamic diagram to be optimized is displayed to obtain a first display effect.
And then, displaying the optimized geographical region thermodynamic diagram to obtain a second display effect.
And comparing the first display effect with the second display effect to obtain an effect difference value, and if the difference is within a preset threshold range, determining that the optimized display effect of the thermodynamic diagram of the geographic area is substantially consistent with the display effect of the original diagram.
If the difference exceeds the preset threshold range, the processed geographical region thermodynamic diagram is considered to be in an unreal state, and the number of the deleted coordinate points needs to be correspondingly reduced to ensure that the display effect is approximately consistent.
Based on the same idea, some embodiments of the present application further provide a device and a non-volatile computer storage medium corresponding to the above method.
Some embodiments of the present application provide a geographical area thermodynamic diagram coordinate optimization device corresponding to fig. 1, the device comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a geographical area thermodynamic diagram to be optimized, and performing area division on the thermodynamic diagram to obtain a plurality of sub-areas;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points of the sub-region to be deleted according to the number of the coordinate points of the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance value to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
Some embodiments of the present application provide a non-transitory computer storage medium corresponding to a geographical area thermodynamic diagram coordinate optimization of fig. 1, storing computer-executable instructions configured to:
acquiring a geographical area thermodynamic diagram to be optimized, and performing area division on the thermodynamic diagram to obtain a plurality of sub-areas;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points of the sub-region to be deleted according to the number of the coordinate points of the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance values to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is directed to methods, apparatus (systems), and computer program products according to embodiments of the present invention
A flowchart and/or block diagram of an article. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A geographical region thermodynamic diagram coordinate optimization method is characterized by comprising the following steps:
carrying out region division on the thermodynamic diagram of the geographic region to be optimized to obtain a plurality of sub-regions;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points needing to be deleted in the sub-region according to the number of the coordinate points in the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance values to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
2. The geographic area thermodynamic diagram coordinate optimization method of claim 1, wherein the area partitioning the thermodynamic diagram comprises:
the thermodynamic diagrams are evenly partitioned into regions and each sub-region is numbered.
3. The geographical area thermodynamic diagram coordinate optimization method of claim 1, wherein the calculating the number of coordinate points that need to be pruned for the sub-area according to the number of coordinate points in the sub-area comprises:
counting the total number of coordinate points in the thermodynamic diagram;
calculating to obtain the coordinate point density of the sub-region according to the total number of the coordinate points in the thermodynamic diagram and the number of the coordinate points in the sub-region;
and calculating the number of the coordinate points needing to be deleted of the sub-region according to the set total number of the coordinate points needing to be deleted and the density of the coordinate points of the sub-region.
4. The geographical thermodynamic diagram coordinate optimization method of claim 3, wherein:
and setting the total number of coordinate points needing to be deleted according to the display effect of the geographical area thermodynamic diagram to be optimized so as to ensure that the display effect of the optimized geographical area thermodynamic diagram is consistent with the display effect of the geographical area thermodynamic diagram to be optimized.
5. The geographical area thermodynamic diagram coordinate optimization method of claim 1, wherein the ordering coordinate points in the sub-area according to the distance values comprises:
and performing descending arrangement according to the distance values.
6. The geographical area thermodynamic diagram coordinate optimization method of claim 4, wherein the deleting coordinate points in the sequence of coordinate points according to the number of coordinate points that the sub-area needs to be deleted comprises:
and deleting the previous coordinate points in the coordinate point sequence in descending order according to the number of the coordinate points needing to be deleted in the sub-region.
7. The geographic area thermodynamic diagram coordinate optimization method of claim 1, further comprising:
acquiring the geographical area thermodynamic diagram to be optimized, and displaying the geographical area thermodynamic diagram to be optimized to obtain a first display effect;
obtaining an optimized geographical region thermodynamic diagram according to the optimized sub-region coordinate point data, and displaying the optimized geographical region thermodynamic diagram to obtain a second display effect;
and comparing the first display effect with the second display effect, and adjusting the number of coordinate points to be deleted according to the comparison result and a preset threshold value.
8. The method for optimizing the coordinates of the thermodynamic diagram of a geographical area according to claim 7, wherein the adjusting the number of coordinate points to be deleted according to the comparison result and the preset threshold value comprises:
if the comparison difference value of the first display effect and the second display effect exceeds the preset threshold value, reducing the number of coordinate points needing to be deleted;
and deleting the coordinate points in the coordinate point sequence according to the reduced number of the coordinate points needing to be deleted to obtain further optimized sub-region coordinate point data.
9. A geographical area thermodynamic diagram coordinate optimization device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a geographical region thermodynamic diagram to be optimized, and performing region division on the thermodynamic diagram to obtain a plurality of sub-regions;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points needing to be deleted in the sub-region according to the number of the coordinate points in the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance values to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
10. A non-transitory computer storage medium for coordinate optimization of a geographical area thermodynamic diagram, storing computer-executable instructions configured to:
acquiring a geographical region thermodynamic diagram to be optimized, and performing region division on the thermodynamic diagram to obtain a plurality of sub-regions;
counting the number of coordinate points in at least one sub-region;
calculating the number of coordinate points needing to be deleted in the sub-region according to the number of the coordinate points in the sub-region;
calculating coordinates of the central position of the sub-region;
calculating a distance value between each coordinate point in the sub-area and the central position, and sequencing the coordinate points in the sub-area according to the distance values to obtain a coordinate point sequence;
and deleting the coordinate points in the coordinate point sequence according to the number of the coordinate points needing to be deleted by the sub-region to obtain optimized sub-region coordinate point data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210576292.8A CN114969233B (en) | 2022-05-25 | 2022-05-25 | Geographic area thermodynamic diagram coordinate optimization method, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210576292.8A CN114969233B (en) | 2022-05-25 | 2022-05-25 | Geographic area thermodynamic diagram coordinate optimization method, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114969233A true CN114969233A (en) | 2022-08-30 |
CN114969233B CN114969233B (en) | 2024-04-26 |
Family
ID=82956392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210576292.8A Active CN114969233B (en) | 2022-05-25 | 2022-05-25 | Geographic area thermodynamic diagram coordinate optimization method, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114969233B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090195500A1 (en) * | 2008-02-01 | 2009-08-06 | Quanta Computer Inc. | System and method for determining coordinates |
CN103605716A (en) * | 2013-11-14 | 2014-02-26 | 北京国双科技有限公司 | Data processing method and device used for webpage click display |
CN105206057A (en) * | 2015-09-30 | 2015-12-30 | 哈尔滨工业大学深圳研究生院 | Detection method and system based on floating car resident trip hot spot regions |
CN110110159A (en) * | 2017-11-10 | 2019-08-09 | 北京国双科技有限公司 | Thermodynamic chart methods of exhibiting and device |
CN110717005A (en) * | 2019-10-10 | 2020-01-21 | 支付宝(杭州)信息技术有限公司 | Thermodynamic diagram texture generation method, device and equipment |
CN111966767A (en) * | 2020-06-28 | 2020-11-20 | 北京百度网讯科技有限公司 | Track thermodynamic diagram generation method and device, electronic equipment and storage medium |
-
2022
- 2022-05-25 CN CN202210576292.8A patent/CN114969233B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090195500A1 (en) * | 2008-02-01 | 2009-08-06 | Quanta Computer Inc. | System and method for determining coordinates |
CN103605716A (en) * | 2013-11-14 | 2014-02-26 | 北京国双科技有限公司 | Data processing method and device used for webpage click display |
CN105206057A (en) * | 2015-09-30 | 2015-12-30 | 哈尔滨工业大学深圳研究生院 | Detection method and system based on floating car resident trip hot spot regions |
CN110110159A (en) * | 2017-11-10 | 2019-08-09 | 北京国双科技有限公司 | Thermodynamic chart methods of exhibiting and device |
CN110717005A (en) * | 2019-10-10 | 2020-01-21 | 支付宝(杭州)信息技术有限公司 | Thermodynamic diagram texture generation method, device and equipment |
CN111966767A (en) * | 2020-06-28 | 2020-11-20 | 北京百度网讯科技有限公司 | Track thermodynamic diagram generation method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114969233B (en) | 2024-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102129442A (en) | Distributed database system and data accessing method | |
CN106033510A (en) | Method and system for identifying user equipment | |
EP3425523A1 (en) | Application program classification method and apparatus | |
CN107092624B (en) | Data storage method, device and system | |
CN110933480B (en) | Control method and device for bullet screen display, storage medium and processor | |
CN114239097A (en) | Method and device for generating process file, storage medium and electronic device | |
CN111475772B (en) | Capacity assessment method and device | |
CN109388644B (en) | Data updating method and device | |
CN114969233A (en) | Method, device and medium for optimizing coordinates of thermodynamic diagram of geographical area | |
CN111291174A (en) | Block chain-based online reading article information sorting method, device and medium | |
CN111277915B (en) | Video conversion method and device | |
CN113360350A (en) | Method, device, equipment and storage medium for positioning root cause alarm of network equipment | |
CN117057484B (en) | Carbon emission prediction method and system for mine ecological restoration area | |
CN117196850A (en) | Method and device for determining financial product combination, electronic equipment and storage medium | |
CN113129328A (en) | Target hotspot area fine analysis method | |
CN110969483B (en) | Method and device for identifying merchant position and electronic equipment | |
CN113794727B (en) | Threat information feature library generation method, threat information feature library generation device, storage medium and processor | |
CN114821425A (en) | Equipment linkage processing method, equipment and medium for accidents in tunnel | |
CN110968993A (en) | Information processing method and device, storage medium and processor | |
CN113792237A (en) | Card type layout optimization method and device, storage medium and processor | |
CN114817209A (en) | Monitoring rule processing method and device, processor and electronic equipment | |
CN112612784B (en) | River basin calculation unit automatic dividing method and device and computer equipment | |
CN114820729A (en) | Element one-key layout method and device | |
CN111553187B (en) | Method and system for identifying form in CAD drawing | |
CN108073596B (en) | Data deletion method and device for OLAP database |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |