CN114969233B - Geographic area thermodynamic diagram coordinate optimization method, equipment and medium - Google Patents

Geographic area thermodynamic diagram coordinate optimization method, equipment and medium Download PDF

Info

Publication number
CN114969233B
CN114969233B CN202210576292.8A CN202210576292A CN114969233B CN 114969233 B CN114969233 B CN 114969233B CN 202210576292 A CN202210576292 A CN 202210576292A CN 114969233 B CN114969233 B CN 114969233B
Authority
CN
China
Prior art keywords
coordinate
coordinate points
thermodynamic diagram
sub
subarea
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.)
Active
Application number
CN202210576292.8A
Other languages
Chinese (zh)
Other versions
CN114969233A (en
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.)
Chaozhou Zhuoshu Big Data Industry Development Co Ltd
Original Assignee
Chaozhou Zhuoshu Big Data Industry Development 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 Chaozhou Zhuoshu Big Data Industry Development Co Ltd filed Critical Chaozhou Zhuoshu Big Data Industry Development Co Ltd
Priority to CN202210576292.8A priority Critical patent/CN114969233B/en
Publication of CN114969233A publication Critical patent/CN114969233A/en
Application granted granted Critical
Publication of CN114969233B publication Critical patent/CN114969233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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)
  • 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 geographical area thermodynamic diagram coordinate optimization method, equipment and medium. The thermodynamic diagram coordinate optimization method comprises the steps of obtaining a thermodynamic diagram of a geographical area to be optimized, and dividing the thermodynamic diagram into a plurality of subareas; counting the number of coordinate points in the subarea; calculating the number of coordinate points to be deleted in the subarea according to the number of the coordinate points in the subarea; calculating coordinates of the central position of the subarea; calculating a distance value between each coordinate point in the subarea and the central position, and sequencing the coordinate points in the subarea 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 coordinate points which need to be deleted in the subareas, so as to obtain the optimized subarea coordinate points. By the method, the thermodynamic diagram coordinates of the geographic area are optimized, the space occupied by storing the coordinate data is reduced, the time for transmitting the coordinate data is shortened, the thermodynamic diagram is displayed more smoothly and rapidly, and the user experience is improved.

Description

Geographic area thermodynamic diagram coordinate optimization method, equipment and medium
Technical Field
The application relates to the technical field of electronic map and data optimization, in particular to a geographic area thermodynamic diagram coordinate optimization method, equipment and medium.
Background
Thermodynamic diagrams are a special type of graph, which is a statistical graph that displays data by coloring color patches. The thermodynamic diagram can display a graphical representation of the page area in which the visitor is enthusiastic and the geographic area in which the visitor is located in a particularly highlighted form.
In mapping thermodynamic diagrams, mapping rules of each color need to be formulated, and the mapping rules are generally based on the intensity or tone of the color, for example: the darker areas represent greater values and darker degrees; the lighter the color the greater the number and the darker the degree. By thermodynamic diagrams, it is possible to clearly view the overall situation of data, observe a special value or display the difference between a plurality of variables, detect whether there is a correlation between them, and the like.
Although the thermodynamic diagram plays a role in facilitating observation, due to the fact that the amount of data carried in the thermodynamic diagram is large, the concurrency of user use is high, problems such as page blocking and the like often occur when the thermodynamic diagram is drawn through the prior art, and user experience is affected.
Under such circumstances, there is an urgent need to develop a novel method, apparatus and medium for optimizing thermodynamic diagram coordinates in a geographical area, which reduces the amount of coordinate data to be transmitted in the thermodynamic diagram to ensure the smoothness and practical use effect of the thermodynamic diagram, while optimizing the thermodynamic diagram coordinates so as not to affect the original display effect of the thermodynamic diagram as much as possible.
Disclosure of Invention
The embodiment of the specification provides a geographical area thermodynamic diagram coordinate optimization method, equipment and medium, which are used for solving the following technical problems in the prior art: in the thermodynamic diagram drawing process, as the data transmission quantity is large and the concurrency of user use is high, the situation of jamming and the like often occurs on the page, and the user experience is affected.
The embodiment of the specification adopts the following technical scheme:
a method for thermodynamic diagram coordinate optimization of a geographic area, comprising:
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 at least one sub-area;
calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 coordinate points to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
Further, the performing area division on the thermodynamic diagram includes:
The thermodynamic diagram is uniformly divided into regions and each sub-region is numbered.
Further, the calculating the number of coordinate points 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;
Obtaining the coordinate point density of the subarea according to the total number of the coordinate points in the thermodynamic diagram and the calculation of the coordinate point number in the subarea;
And calculating the number of coordinate points needing to be deleted in the subarea according to the set total number of the coordinate points needing to be deleted and the coordinate point density of the subarea.
Further, setting the total number of coordinate points 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.
Further, the sorting the coordinate points in the sub-area according to the distance value includes:
and performing descending order arrangement according to the distance values.
Further, the deleting the coordinate points in the coordinate point sequence according to the number of coordinate points to be deleted in the sub-region includes:
and deleting the previous coordinate points in the coordinate point sequence arranged in a descending order according to the number of the coordinate points to be deleted in the subarea.
Further, the thermodynamic diagram coordinate optimization method of the geographic area 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 area thermodynamic diagram according to the optimized sub-area coordinate point data, and displaying the optimized geographical area 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 coordinate points to be pruned according to the comparison result and the preset threshold value includes:
If the comparison difference value between the first display effect and the second display effect exceeds the preset threshold value, reducing the number of coordinate points to be deleted;
And deleting the coordinate points in the coordinate point sequence according to the reduced number of the coordinate points to be deleted, so as to obtain the further optimized data of the coordinate points in the subarea.
A geographical area thermodynamic diagram coordinate optimization device, comprising:
At least one processor; and
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:
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 at least one sub-area;
calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 coordinate points to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
A non-transitory computer storage medium storing computer-executable instructions for thermodynamic diagram coordinate optimization of a geographic area, wherein the computer-executable instructions are configured to:
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 at least one sub-area;
calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 coordinate points to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect:
According to the geographical area thermodynamic diagram coordinate optimization method illustrated in the embodiment of the present disclosure, 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 sequence between each coordinate point and a central 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 of deletable points. By the coordinate optimization method of the embodiment example of the specification, the geographic area thermodynamic diagram coordinates can be optimized, the occupied space for storing the coordinate data is reduced, the time for transmitting the coordinate data is shortened, the user side can be smoother and quicker when displaying thermodynamic diagrams, the thermodynamic diagrams can be watched more quickly and conveniently, 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 specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart illustrating a method for optimizing thermodynamic diagram coordinates of a geographic area according to an embodiment of the present disclosure;
Fig. 2 is a schematic diagram of coordinate points of each region in a geographical area thermodynamic diagram to be optimized in the geographical area thermodynamic diagram coordinate optimization method provided in the embodiment of the present disclosure;
FIG. 3 is a schematic diagram of coordinates of a central position of each sub-region in the thermodynamic diagram coordinate optimization method of a geographic area according to the embodiment of the present disclosure;
fig. 4 is a schematic diagram of coordinate points in an optimized thermodynamic diagram of a geographical area in the thermodynamic diagram coordinate optimization method of the geographical area according to the embodiment of the present disclosure.
Detailed Description
For the purposes of clarity, technical solutions and advantages of the present specification, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art without the exercise of inventive faculty, are intended to be within the scope of the application, based on the embodiments in the specification.
First, the technical idea of the technical proposal disclosed by the invention is explained. The existing thermodynamic diagrams of the geographic area are drawn, a large amount of storage space is required for storing the coordinate data due to the large number of coordinate points in the diagrams, the transmission time required for calling the coordinate data is long, and meanwhile, the concurrency of the thermodynamic diagrams used by users is high, so that page clamping and the like frequently occur when the thermodynamic diagrams are displayed, the users are difficult to conveniently, quickly, smoothly and rapidly use the thermodynamic diagrams, and the experience of the users is influenced.
Under such circumstances, there is an urgent need to develop a novel method, apparatus and medium for optimizing thermodynamic diagram coordinates in a geographical area, which reduces the amount of coordinate data to be transmitted in the thermodynamic diagram to ensure the smoothness and practical use effect of the thermodynamic diagram, while optimizing the thermodynamic diagram coordinates so as not to affect the original display effect of the thermodynamic diagram as much as possible.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a thermodynamic diagram coordinate optimization method for a geographic area, which includes:
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 at least one sub-area;
calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 coordinate points to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
In this embodiment, the dividing the thermodynamic diagram includes:
The thermodynamic diagram is uniformly divided 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 subtracted from the sub-region includes:
Counting the total number of coordinate points in the thermodynamic diagram;
Obtaining the coordinate point density of the subarea according to the total number of the coordinate points in the thermodynamic diagram and the calculation of the coordinate point number in the subarea;
And calculating the number of coordinate points needing to be deleted in the subarea according to the set total number of the coordinate points needing to be deleted and the coordinate point density of the subarea.
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 the coordinate points in the sub-area according to the distance value includes:
and performing descending order 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 in the sub-region includes:
and deleting the previous coordinate points in the coordinate point sequence arranged in a descending order according to the number of the coordinate points to be deleted in the subarea.
In this embodiment, the thermodynamic diagram coordinate optimization method for a geographic area 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 area thermodynamic diagram according to the optimized sub-area coordinate point data, and displaying the optimized geographical area 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 value includes:
If the comparison difference value between the first display effect and the second display effect exceeds the preset threshold value, reducing the number of coordinate points to be deleted;
And deleting the coordinate points in the coordinate point sequence according to the reduced number of the coordinate points to be deleted, so as to obtain the further optimized data of the coordinate points in the subarea.
According to the geographical area thermodynamic diagram coordinate optimization method, a reliable algorithm is set, 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 sequence between each coordinate point and the central 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 of deletable points. By the coordinate optimization method of the embodiment of the specification, the thermodynamic diagram coordinates of the geographic area can be optimized, the occupied space for storing the coordinate data is reduced, the time for transmitting the coordinate data is shortened, the user side can display the thermodynamic diagram more smoothly and rapidly, the thermodynamic diagram can be watched more rapidly and conveniently, and the user experience is improved.
To facilitate understanding of the geographical area thermodynamic diagram coordinate optimization method illustrated in the embodiments 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 of 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 thermodynamic diagram display effect of the optimized data is similar to that of the original data.
Therefore, the coordinate optimization method of the embodiment of the invention screens 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 coordinate data need to be truncated in a region with denser coordinate points, the less coordinate data need to be truncated in a region with fewer coordinate points.
The geographical area thermodynamic diagram coordinate optimization method of the embodiment of the invention mainly comprises the following steps:
1) Dividing the thermodynamic diagram into uniform areas; 2) Counting the number of coordinate points of each sub-area; 3) Calculating the number of coordinate points to be deleted in each sub-region; 4) Calculating the central position coordinate of each sub-area; 5) Calculating the distance between each coordinate point in each sub-region and the central position of the sub-region, and sorting the coordinate points according to the distance; 6) The corresponding coordinate data is pruned according to the pruned amount.
The detailed steps are as follows:
step 1:
as shown in fig. 2, according to actual requirements, the thermodynamic diagram of the geographical Area to be optimized is divided into uniform areas, and each sub-Area is numbered and named as Area (i).
Step 2:
the number n (i) of coordinate points in each sub-Area (i) is counted as shown in the following table.
Sub-regions Number of coordinate points
Area01 n01
Area02 n02
Area(i) n(i)
Area15 n15
Area16 n16
Step 3:
The total number of coordinate points in the thermodynamic diagram of the geographic Area to be optimized is n (total), and according to the number of coordinate points n (i) and the total number of coordinate points n (total) in each sub-Area (i), the coordinate point density of each sub-Area (i) can be calculated, wherein the calculation formula is as follows: ρ (i) =n (i)/(n) (total).
Setting the total number of coordinate points to be pruned to n (subtraction), the number of coordinate points to be pruned in each sub-Area (i) can be calculated as shown in the following table, where the calculation formula is m (i) =n (subtraction) ×ρ (i).
It will be understood, of course, that the total number n (subtraction) of coordinate points to be subtracted is set based on 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 substantially consistent with the display effect of the geographical area thermodynamic diagram to be optimized, and no distortion condition can occur.
Sub-regions Number of coordinate points Density of coordinates Pruning number
Area01 n01 ρ01 m01
Area02 n02 ρ02 m02
Area(i) n(i) ρ(i) m(i)
Area15 n15 ρ15 m15
Area16 n16 ρ16 m16
Step 4:
coordinates (xi, yi) of the center position c (i) of each sub-Area (i) are calculated as shown in fig. 3.
Step 5:
distance values d (ij) between the respective coordinate points (xij, yij) in each sub-region and the center position c (i) are calculated, and the sub-region coordinate points are sorted in descending order according to the magnitudes of the distance values d (ij).
Step 6:
And (3) deleting the first m (i) coordinate data according to the deleted quantity m (i) to obtain optimized sub-region coordinate point data, so as to obtain an optimized geographic thermodynamic diagram, as shown in fig. 4.
It will be understood, of course, that after performing steps 1-6 above, the geographical area thermodynamic diagram coordinate optimization method according to this embodiment may further include the following steps:
firstly, obtaining a geographical area thermodynamic diagram to be optimized and coordinate data in the geographical area thermodynamic diagram, and displaying the geographical area thermodynamic diagram to be optimized to obtain a first display effect.
And then, displaying the optimized geographical area thermodynamic diagram to obtain a second display effect.
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, considering that the optimized thermodynamic diagram display effect of the geographic area is approximately consistent with the original diagram display effect.
If the difference exceeds the preset threshold range, the processed geographical area thermodynamic diagram is considered to have the distortion condition, and the number of the deleted coordinate points is required to be correspondingly reduced so as to ensure that the display effect is approximately consistent.
Based on the same thought, some embodiments of the present application also 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
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:
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 at least one sub-area;
calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 coordinate points to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
Some embodiments of the application provide a non-volatile computer storage medium corresponding to the geographic area thermodynamic diagram coordinate optimization of fig. 1, storing computer-executable instructions configured to:
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 at least one sub-area;
calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 coordinate points to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the apparatus and medium embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, with reference to the section of the method embodiments being relevant.
The devices and media provided in the embodiments of the present application are in one-to-one correspondence with the methods, so that the devices and media also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media are not repeated here.
It will be appreciated by those skilled in the art that 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 in accordance with embodiments of the present invention
And a flowchart and/or block diagram of an article. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may be implemented in any method or technology for information storage. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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 Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
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, the element defined by the phrase "comprising one … …" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method for optimizing thermodynamic diagram coordinates of a geographic area, comprising:
performing region division on the geographical region thermodynamic diagram to be optimized to obtain a plurality of sub-regions;
Counting the number of coordinate points in at least one sub-area;
Calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
2. The method of optimizing thermodynamic diagrams of a geographic area as claimed in claim 1, wherein said dividing the thermodynamic diagram into regions comprises:
The thermodynamic diagram is uniformly divided 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 the sub-area needs to prune according to the number of coordinate points in the sub-area comprises:
Counting the total number of coordinate points in the thermodynamic diagram;
calculating the coordinate point density of the subarea according to the total number of the coordinate points in the thermodynamic diagram and the number of the coordinate points in the subarea;
and calculating the number of coordinate points to be deleted of the subarea according to the set total number of the coordinate points to be deleted and the coordinate point density of the subarea.
4. A geographical area thermodynamic diagram coordinate optimization method as claimed in claim 3, wherein:
setting the total number of coordinate points 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 order arrangement according to the distance values.
6. The geographical area thermodynamic diagram coordinate optimization method of claim 4, wherein the deleting the coordinate points in the sequence of coordinate points according to the number of coordinate points that the sub-area needs to be pruned comprises:
And deleting the previous coordinate points in the coordinate point sequence arranged in a descending order according to the number of the coordinate points to be deleted in the subarea.
7. The geographical area thermodynamic diagram coordinate optimization method of claim 1, wherein the coordinate optimization method further comprises:
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 area thermodynamic diagram according to the optimized sub-area coordinate point data, and displaying the optimized geographical area 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 thermodynamic diagram coordinates of a geographic area according to claim 7, wherein the adjusting the number of coordinate points to be pruned according to the comparison result and a preset threshold value comprises:
If the comparison difference value between the first display effect and the second display effect exceeds the preset threshold value, reducing the number of coordinate points to be deleted;
And deleting the coordinate points in the coordinate point sequence according to the reduced number of the coordinate points to be deleted, so as to obtain the further optimized data of the coordinate points in the subarea.
9. A geographical area thermodynamic diagram coordinate optimization device, comprising:
At least one processor; and
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:
obtaining a geographical area thermodynamic diagram to be optimized, and carrying out area division on the thermodynamic diagram to obtain a plurality of subareas;
Counting the number of coordinate points in at least one sub-area;
Calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
10. A non-transitory computer storage medium storing computer-executable instructions for thermodynamic diagram coordinate optimization of a geographic area, the computer-executable instructions configured to:
obtaining a geographical area thermodynamic diagram to be optimized, and carrying out area division on the thermodynamic diagram to obtain a plurality of subareas;
Counting the number of coordinate points in at least one sub-area;
Calculating the number of coordinate points to be deleted in the subarea according to the number of coordinate points in the subarea;
Calculating coordinates of the central position of the subarea;
Calculating a distance value between each coordinate point in the sub-region and the central position, and sequencing the coordinate points in the sub-region 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 to be deleted in the sub-region, so as to obtain the optimized sub-region coordinate point data.
CN202210576292.8A 2022-05-25 2022-05-25 Geographic area thermodynamic diagram coordinate optimization method, equipment and medium Active CN114969233B (en)

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 CN114969233A (en) 2022-08-30
CN114969233B true 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI351653B (en) * 2008-02-01 2011-11-01 Quanta Comp Inc System and method for determining coordinates

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114969233A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN103347009B (en) A kind of information filtering method and device
CN110019353B (en) Data processing method and device
CN111143685B (en) Commodity recommendation method and device
CN105975493A (en) File combination method and apparatus
CN114969233B (en) Geographic area thermodynamic diagram coordinate optimization method, equipment and medium
CN107092624B (en) Data storage method, device and system
CN111125115A (en) Data storage method, device and medium based on block chain
CN112766397A (en) Classification network and implementation method and device thereof
CN106934015A (en) Address date treating method and apparatus
CN113794727B (en) Threat information feature library generation method, threat information feature library generation device, storage medium and processor
CN109165305B (en) Characteristic value storage and retrieval method and device
CN113869438B (en) Key defense area dividing method for storm surge disaster based on k-means
CN116341839A (en) Order pushing method, equipment and medium for household service personnel
CN115665677A (en) Method and system for acquiring regional population based on mobile phone signaling data
CN114817209A (en) Monitoring rule processing method and device, processor and electronic equipment
CN114968028A (en) Method, apparatus, and medium for dynamically changing menu layout based on user behavior analysis
CN114820729A (en) Element one-key layout method and device
CN111553187B (en) Method and system for identifying form in CAD drawing
CN109582696B (en) Scanning task generation method and device and electronic equipment
CN106844601B (en) Data storage method and data storage device
CN114722645B (en) Method, system, medium, and apparatus for obtaining contribution rate of factors affecting runoff change
CN110688317A (en) Application interface test method and device
CN111126624A (en) Method for judging validity of model prediction result
CN109784495B (en) Method and device for establishing characteristic processing flow, storage medium and electronic equipment
CN110825759B (en) Data updating method based on key tool

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