CN110675728B - Generation method, device and equipment of thermodynamic diagram and computer readable storage medium - Google Patents

Generation method, device and equipment of thermodynamic diagram and computer readable storage medium Download PDF

Info

Publication number
CN110675728B
CN110675728B CN201810719736.2A CN201810719736A CN110675728B CN 110675728 B CN110675728 B CN 110675728B CN 201810719736 A CN201810719736 A CN 201810719736A CN 110675728 B CN110675728 B CN 110675728B
Authority
CN
China
Prior art keywords
thermodynamic diagram
longitude
latitude
grid
determining
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
CN201810719736.2A
Other languages
Chinese (zh)
Other versions
CN110675728A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810719736.2A priority Critical patent/CN110675728B/en
Publication of CN110675728A publication Critical patent/CN110675728A/en
Application granted granted Critical
Publication of CN110675728B publication Critical patent/CN110675728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • G09B29/007Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes using computer methods

Abstract

The invention provides a method, a device and equipment for generating a thermodynamic diagram and a computer readable storage medium, wherein the method comprises the following steps: acquiring a plurality of discrete longitude and latitude data points in a preset area range; mapping the longitude and latitude data points to a map display area, wherein a plurality of geographical grids are preset on the map display area; determining the weight of each geographic grid according to the latitude and longitude data points; and mapping the geographical grids to the positions of the pixel points of the screen map, and giving different colors to the pixel points of the geographical grids with different weights according to a preset drawing strategy to generate a thermodynamic diagram. According to the technical scheme, the weight of the geographical grid can be directly determined through the latitude and longitude data points, and the geographical grids with different weights can be endowed with different colors of the pixel points according to a preset drawing strategy, so that the thermodynamic diagram is generated, the complexity of weight calculation of the geographical grid in the thermodynamic diagram is effectively reduced, and further the interactive level response during real-time calculation of the thermodynamic diagram is facilitated.

Description

Generation method, device and equipment of thermodynamic diagram and computer readable storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for generating a thermal map.
Background
The thermodynamic diagram is essentially a density distribution diagram of a target element, and is widely applied to the field of data visualization. Map thermodynamic diagrams are used for showing the density distribution of target elements (such as people) in geography, and are often one of the core functions of LBS services such as Geographic Information Systems (GIS), online map applications and the like. The interactive map thermodynamic diagram can further dynamically draw a map according to data distribution and operations of dragging, circle selection, zooming and the like of a user, and can be used for realizing abundant business requirements of people flow monitoring, address selection planning and the like.
In the prior art, a thermodynamic diagram may be generated by using a nuclear density analysis method, wherein the nuclear density analysis method mainly includes: for each pixel, first map to a geographic location, then based on the geographic index of the dataset in latitude and longitude, find data points within a search radius from it, apply a kernel function (usually non-linear) to the distance of the pixel and each data point, and accumulate the results to obtain the weight of the pixel. However, when the number of data points is large, the computational complexity of one map is high; when the map scale is changed by a user, the geographic position corresponding to the pixel is changed, so that a new thermodynamic diagram has to be recalculated according to the algorithm, and the interaction level response is hardly realized, thereby reducing the good experience of the user.
Disclosure of Invention
The invention provides a method, a device and equipment for generating a thermodynamic diagram and a computer readable storage medium, which are used for solving the problems that in the prior art, the computational complexity is high, the interaction level response is hardly realized and the good experience of a user is reduced.
One aspect of the present invention provides a method for generating a thermodynamic diagram, including:
acquiring a plurality of discrete longitude and latitude data points in a preset area range;
mapping the longitude and latitude data points to a map display area, wherein a plurality of geographical grids are preset in the map display area;
determining the weight of each geographic grid according to the longitude and latitude data points;
and mapping the geographical grids to the positions of the pixel points of the screen map, and giving different colors to the pixel points of the geographical grids with different weights according to a preset drawing strategy to generate a thermodynamic diagram.
Another aspect of the present invention provides a thermal map generating apparatus, including:
the acquisition module is used for acquiring a plurality of discrete longitude and latitude data points in a preset area range;
the mapping module is used for mapping the longitude and latitude data points to a map display area, and a plurality of geographical grids are preset on the map display area;
the determining module is used for determining the weight of each geographic grid according to the longitude and latitude data points;
and the generation module is used for mapping the geographical grids to the positions of the pixel points of the screen map, giving different colors to the pixel points of the geographical grids with different weights according to a preset drawing strategy, and generating the thermodynamic diagram.
Another aspect of the present invention provides a thermal map generating apparatus including:
a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor, when running the computer program, implements the method of generating a thermodynamic diagram as described above.
Another aspect of the present invention provides a computer-readable storage medium storing a computer program,
which when executed by a processor implements the method for generating a thermodynamic diagram as described above.
According to the method, the device and the equipment for generating the thermodynamic diagram and the computer readable storage medium, the weight of the geographical grid can be directly determined through the latitude and longitude data points, the geographical grids with different weights can be endowed with different colors according to a preset drawing strategy, so that the thermodynamic diagram is generated, the complexity of weight calculation of the geographical grid in the thermodynamic diagram is effectively reduced, the interactive level response during real-time calculation of the thermodynamic diagram is facilitated, the practicability of the method is improved, and the popularization and the application of the market are facilitated.
Drawings
Fig. 1 is a schematic flow chart of a method for generating a thermodynamic diagram according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another thermal diagram generation method provided by an embodiment of the present invention;
fig. 3 is a first schematic flowchart of the process of determining the weight of each geographic grid according to the latitude and longitude data points according to the embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating a process of determining the weight of each geographic grid according to the latitude and longitude data points according to the embodiment of the present invention;
FIG. 5 is a schematic flow chart of a method for generating a thermodynamic diagram according to another embodiment of the present invention;
fig. 6 is a schematic flowchart of determining a range of at least one hot spot region in the thermodynamic diagram according to the data volume information according to the embodiment of the present invention;
FIG. 7 is a schematic flow chart of a method for generating a thermal map according to another embodiment of the present invention;
FIG. 8 is a schematic flow chart of another thermal diagram generation method provided by an embodiment of the present invention;
fig. 9 is a schematic flowchart illustrating a process of determining a geography grid granularity corresponding to the thermodynamic diagram by using a preset mapping relationship between a screen grid granularity and the geography grid granularity according to the embodiment of the present invention;
fig. 10 is a schematic structural diagram of a thermal diagram generating device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a thermal diagram generating device according to an embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a schematic flow chart of a method for generating a thermodynamic diagram according to an embodiment of the present invention; FIG. 2 is a schematic flow chart of another thermal diagram generation method provided by an embodiment of the present invention; referring to fig. 1-2, the present embodiment provides a method for generating a thermodynamic diagram, which is suitable for LBS data of millions of orders and can generate a map thermodynamic diagram corresponding to an interaction level, and specifically, the method includes:
s101: acquiring a plurality of discrete longitude and latitude data points in a preset area range;
the preset area range may be selected by a user in advance, or may also be a preset display area, and the preset display area may be an area where the whole display screen is located or an area for displaying a thermodynamic diagram in the display screen.
S102: mapping the longitude and latitude data points to a map display area, wherein a plurality of geographical grids are preset on the map display area;
it should be noted that before mapping the longitude and latitude data points onto the map display area, the method in this embodiment may generate a geographic grid for the map display area in advance, and specifically, the method for generating the geographic grid includes:
s001: acquiring a rectangular geographic area corresponding to a map display area;
s002: and respectively segmenting the rectangular geographic area along the longitude and latitude directions to generate a geographic grid (geographic grid).
It is conceivable that the rectangular geographic area may also be a square geographic area, a circular geographic area, an oval geographic area, or the like, and here, the rectangular geographic area is merely used as a conventional example for illustration, after the rectangular geographic area is determined, the rectangular geographic area is segmented according to latitude and longitude squares, and for a specific segmentation granularity, a user may set the rectangular geographic area according to a specific design requirement; therefore, a plurality of geographic grids corresponding to the rectangular geographic area can be obtained, and the stable reliability of the generation of the geographic grids is effectively ensured.
Furthermore, after the longitude and latitude data points are obtained, the longitude and latitude data points can be directly mapped to the map display area, and the longitude and latitude data points can fall into the geographic grids due to the fact that the map display area is provided with the geographic grids.
S103: determining the weight of each geographic grid according to the latitude and longitude data points;
for each geographic grid, the latitude and longitude data points falling into each geographic grid may be counted, and the weight of the geographic grid may be determined according to the latitude and longitude data points, for example: the number of latitude and longitude data points can be used as the weight of the geographic grid, or the density of the latitude and longitude data points can be used as the weight of the geographic grid; alternatively, the space area occupied by the latitude and longitude data points can be determined as the weight of the geographic grid, and the like.
S104: and mapping the geographical grids to the positions of the pixel points of the screen map, and giving different colors to the pixel points of the geographical grids with different weights according to a preset drawing strategy to generate a thermodynamic diagram.
After determining the weights of the geographical grid, different geographical grids may be given different colors depending on the size of the weights, for example: the thermodynamic diagram can be acquired by assigning a certain color (red, blue, green, or the like) of the darkest color value to the geographical grid with the largest weight, assigning a certain color (red, blue, green, or the like) of the lightest color value to the geographical grid with the smallest weight, and rendering the geographical grid with the largest weight and the geographical grid with the smallest weight by adopting a certain color descending gradient.
According to the method for generating the thermodynamic diagram, the weight of the geographic grid can be directly determined through the latitude and longitude data points, different colors can be given to the pixel points for the geographic grids with different weights according to a preset drawing strategy, so that the thermodynamic diagram is generated, the complexity of weight calculation of the geographic grid in the thermodynamic diagram is effectively reduced, interaction level response during real-time calculation of the thermodynamic diagram is facilitated, the practicability of the method is improved, and popularization and application of the market are facilitated.
Fig. 3 is a first schematic flowchart of determining a weight of each geographic grid according to latitude and longitude data points according to an embodiment of the present invention; fig. 4 is a schematic flow chart illustrating a process of determining the weight of each geographic grid according to latitude and longitude data points according to an embodiment of the present invention; on the basis of the foregoing embodiments, with continuing reference to fig. 3-4, in this embodiment, a specific implementation manner for determining the weight of each geographic grid according to the longitude and latitude data points is not limited, and those skilled in the art may set the weights according to specific design requirements, where one implementation manner is: determining the weight for each geographic grid from the latitude and longitude data points may include:
s1031: acquiring the number of data points falling into each geographic grid according to preset coordinate information;
s1032: the number of data points is determined as the weight of the geographic grid.
Because the longitude and latitude data points are not sparse, an interpolation mode as fine as the kernel density analysis is not needed, and the weight of the longitude and latitude data points is simply given to the whole geographic grid, namely: and the weight of the geographic grid is the data point number of the longitude and latitude data point positioned in the geographic grid.
The number of data points is determined as the weight of the geographic grid, the calculation mode is simple, and the method is easy to implement, so that the calculation complexity of thermodynamic diagram generation is reduced, and the practicability of the method is effectively improved.
Another way that can be achieved is: determining the weight for each geographic grid from the latitude and longitude data points may include:
s1033: acquiring the side length of each geographic grid;
s1034: building a longitude and latitude numerical index by using longitude and latitude lines of the cut geographic grid;
s1035: and determining the weight of the geography grid according to the side length and longitude and latitude numerical index and by utilizing a barrel aggregation calculation mode.
In addition, in order to simply and accurately calculate the weight of each geographic grid, the side length of each geographic grid can be obtained first, two layers (one layer of longitude and one layer of latitude) of numerical indexes are established on the longitude and latitude of all longitude and latitude data points according to the side length of the grid, and then barrel-division polymerization calculation is carried out, so that the weight of the geographic grid can be obtained.
The weight of the grid is determined by means of hierarchical numerical index, so that the complexity of the thermodynamic diagram is reduced to O (kN) (k is a constant related to the number of the grid, and N is the number of data points), the calculation accuracy is ensured, and the interactive level response in real-time calculation of the thermodynamic diagram is further facilitated.
In the prior art, when a map is displayed, the function of thermodynamic diagrams of hot spot areas is not displayed, so that the good experience of a user is reduced.
FIG. 5 is a schematic flow chart of a method for generating a thermodynamic diagram according to another embodiment of the present invention; fig. 6 is a schematic flowchart of determining a range of at least one hot spot region in a thermodynamic diagram according to data volume information according to an embodiment of the present invention; on the basis of the foregoing embodiments, in order to overcome the defect existing in the prior art that the function of the thermodynamic diagram of the hot spot region is not shown, as can be seen with reference to fig. 5-6, after generating the thermodynamic diagram, the method in this embodiment further includes:
s201: acquiring data volume information of a preset area range in the thermodynamic diagram;
the data amount information may be a number of data points, that is, the data amount information is a weight of the geographic grid. In addition, the preset area range may be selected in advance in the thermodynamic diagram by the user, or may be a certain display area in the preset thermodynamic diagram; and, the number of the preset area range may be one or more.
S202: and determining at least one hot spot area range in the thermodynamic diagram according to the data volume information.
Specifically, determining at least one hot spot area range in the thermodynamic diagram according to the data volume information may include:
s2021: acquiring proportion information of the data volume information relative to the data total volume information of the whole thermodynamic diagram;
s2022: and if the occupation ratio information is larger than a preset occupation ratio threshold, determining a preset area range corresponding to the data volume information as a hot spot area range.
The ratio threshold is preset by a user, a specific numerical range may be set according to specific design requirements, for example, the ratio threshold may be 90%, 95%, 80%, or 85%, and when the ratio information is greater than the ratio threshold, it is indicated that the data amount information of the preset area range is dense, so that the preset area range may be determined to be a hot spot area range.
Taking the percentage of the area of 90% as an example for explanation, the area of the hot spot at this time may be referred to as a 90% hot spot area, and in particular, in application, the 90% hot spot area may refer to a rectangular area (a square area, a circular area, or an area with another shape, etc.) as small as possible on the thermodynamic diagram, and the data amount information covered by the area of 90% of the total data amount information of the entire thermodynamic diagram.
In the process of confirming the hot spot area range, the whole thermodynamic diagram can be abstracted into a two-dimensional matrix, each element of the matrix corresponds to a geographical grid in the thermodynamic diagram, the hot spot area range can be confirmed by obtaining a minimum target matrix in the two-dimensional matrix, in the process, an application problem is converted into an optimization algorithm problem for searching the minimum target matrix in the two-dimensional matrix, and the algorithm complexity is O (M) at the moment3) Where M is the number of rows (columns) of the matrix; compared with the prior art, the method effectively reduces the complexity of calculation.
FIG. 7 is a schematic flow chart of a method for generating a thermal map according to another embodiment of the present invention; on the basis of the foregoing embodiment, with reference to fig. 7, in order to facilitate real-time interaction with a user, the method in this embodiment further includes:
s301: acquiring a target area range selected by a user;
the number of the target area ranges selected by the user is one or more; specifically, instruction information input by a user may be acquired, and the target area range is acquired through the instruction information, where the instruction information may be instruction information input by voice, instruction information input by sliding a screen with a finger of the user, or instruction information input by text.
S302: and determining at least one target hot spot area range positioned in the target area range, and displaying the target hot spot area range.
After determining the target area range, at least one target characteristic area range in the target area range may be determined by the above method, and after determining the target characteristic area range, the target characteristic area range may be displayed according to a preset display policy, for example: the target hot spot area range can be highlighted; alternatively, the target characteristic region range may be displayed in an enlarged manner, or the like.
By determining the range of the target hot spot area and independently highlighting the range of the target hot spot area, the user can intuitively know corresponding data information, and the good experience of the user is effectively improved.
It should be noted that step S301 in the present embodiment may be executed before step S101 in the above embodiment, and in this case, the preset area range in step S101 may be the target area range in the present embodiment.
In the prior art, after the thermodynamic diagram is generated, the granularity of the geographic grid in the thermodynamic diagram is fixed, but the fixed granularity of the geographic grid is not suitable for an interactive operation scene; at this time, if the grid granularity is too coarse, the resolution of the thermodynamic diagram may be too low, and when the user amplifies the thermodynamic diagram, the density distribution details cannot be displayed; if the grid granularity is too fine, when the user reduces the thermodynamic diagram, the geographic range becomes large, the grid data volume may be large, and the transmission of data, the loading and the rendering at the front end are stressed.
In addition, in order to smooth the zooming and translating interaction of the thermodynamic diagram, a relatively stable data loading speed is required, and the data loading speed is more directly caused by controlling and loading a relatively stable data volume besides the limitation of the network speed, and the problem is not well solved by the existing scheme.
Based on this, in order to solve the problem that the offline calculation scheme geography grid granularity is fixed and the data loading speed is not controllable in the prior art, referring to fig. 8 to 9, the method in this embodiment further includes:
s401: acquiring screen grid granularity of a display window in a screen;
the screen grid granularity may be (H, W) and the unit is the number of pixels, specifically, H is a high pixel in the screen grid granularity, and W is a wide pixel in the screen grid granularity.
S402: determining the geographic grid granularity corresponding to the thermodynamic diagram by utilizing a preset mapping relation between the screen grid granularity and the geographic grid granularity;
wherein the unit of the geography grid granularity is meter; at this time, determining the geography grid granularity corresponding to the thermodynamic diagram by using the mapping relationship between the preset screen grid granularity and the geography grid granularity may include:
s4021: cutting the screen grid granularity in the vertical direction according to the preset P pixel granularity to obtain H/P cutting sections, wherein H is a high pixel in the screen grid granularity;
s4022: acquiring longitude and latitude information between an upper left data point and a lower left data point in a display window, and determining the distance S m between the two data points according to the longitude and latitude information;
s4023: and determining the granularity of the geographic grid to be P × S/H according to the H/P cutting segments and the distance S m.
S403: displaying the thermodynamic diagram according to the granularity of the geographic grids, wherein the number of the geographic grids in the thermodynamic diagram is fixed.
Wherein the number of the geographic grids in the thermodynamic diagram is W × H/P2Where W is the wide pixel in the screen grid granularity.
In a specific application, data points nationwide or data points of a certain block can be seen through zooming operation under the same rendering window, but the data amount of nationwide and block is greatly different. Unified granularity aggregation cannot solve this problem, and hierarchical aggregation granularity can solve part of the problem, but the data volume is still uncontrollable. Therefore, in order to achieve a stable data volume, starting from a rendering window (screen grid granularity), the height of the rendering window (high H pixels and wide W pixels) is vertically divided by preset P pixel granularity, and the distance S m between two points is calculated through the latitude and longitude of the upper left and the lower left of a visual area; finally, when the data aggregation granularity (geography grid granularity) P S/H meters is obtained, the distance S and the geography grid granularity are changed when the map scale is changed, and the number of the geography grids is fixed. Therefore, no matter how the region is scaled, the blank data points are excluded, and the data volume information can be always less than or equal to H × W/(P × P), so that the stable data volume loading speed is guaranteed.
In the embodiment, the screen grids and the geographical grids are corresponding to each other, and the number of the geographical grids is ensured to be fixed when the thermodynamic diagram is displayed, so that the stable data volume loading speed can be ensured, the smoothness of expansion or reduction display of the thermodynamic diagram by a user is further ensured, and the display quality and the display effect of the thermodynamic diagram are effectively improved.
Fig. 10 is a schematic structural diagram of a thermal diagram generating device according to an embodiment of the present invention; referring to fig. 10, the present embodiment provides a thermal diagram generation apparatus, which may be used to perform the above thermal diagram generation method, and specifically, the apparatus may include:
the acquisition module 1 is used for acquiring a plurality of discrete longitude and latitude data points in a preset area range;
the mapping module 2 is used for mapping the longitude and latitude data points to a map display area, and a plurality of geographical grids are preset on the map display area;
the determining module 3 is used for determining the weight of each geographic grid according to the longitude and latitude data points;
and the generating module 4 is used for mapping the geographical grids to the positions of the pixel points of the screen map, giving different colors to the pixel points of the geographical grids with different weights according to a preset drawing strategy, and generating the thermodynamic diagram.
The acquiring module 1 is further configured to acquire a rectangular geographic area corresponding to the map display area before mapping the longitude and latitude data points onto the map display area;
at this time, the apparatus further includes: and the segmentation module 5 is used for segmenting the rectangular geographic area along the longitude and latitude directions respectively to generate the geographic grid.
In this embodiment, specific shape structures of the obtaining module 1, the mapping module 2, the determining module 3, the generating module 4, and the dividing module 5 are not limited, and those skilled in the art can arbitrarily set the obtaining module, the mapping module, the determining module 3, the generating module 4, and the dividing module 5 according to the implemented function, and no further description is given here; in addition, in this embodiment, the specific implementation process and implementation effect of the operation steps implemented by the obtaining module 1, the mapping module 2, the determining module 3, the generating module 4, and the dividing module 5 are the same as those of the steps S101 to S104 and S001 to S002 in the above embodiment, and the above statements may be specifically referred to, and are not repeated herein.
On the basis of the foregoing embodiment, as can be seen by referring to fig. 10, in this embodiment, a specific implementation manner of determining the weight of each geographic grid by the determining module 3 according to the longitude and latitude data points is not limited, and a person skilled in the art may set the determination according to specific design requirements, where when the determining module 3 determines the weight of each geographic grid according to the longitude and latitude data points:
one way that can be achieved is: the determination module 3 may be configured to perform:
acquiring the number of data points falling into each geographic grid according to preset coordinate information; the number of data points is determined as the weight of the geographic grid.
Another way that can be achieved is: the determination module 3 is configured to perform:
acquiring the side length of each geographic grid; building a longitude and latitude numerical index by using longitude and latitude lines of the cut geographic grid; and determining the weight of the geography grid according to the side length and longitude and latitude numerical index and by utilizing a barrel aggregation calculation mode.
On the basis of the foregoing embodiment, in order to overcome the defect of the prior art that the thermodynamic diagram function of the hot spot area is not shown, as shown in fig. 10, the obtaining module 1 and the determining module 3 in this embodiment are further configured to perform the following steps, specifically:
the acquisition module 1 is further configured to acquire data volume information of a preset area range in the thermodynamic diagram after the thermodynamic diagram is generated;
the determining module 3 is further configured to determine at least one hot spot area range in the thermodynamic diagram according to the data volume information.
When the determining module 3 determines at least one hot spot area range in the thermodynamic diagram according to the data volume information, the determining module 3 is configured to perform: acquiring proportion information of the data volume information relative to the data total volume information of the whole thermodynamic diagram; and if the occupation ratio information is larger than a preset occupation ratio threshold, determining a preset area range corresponding to the data volume information as a hot spot area range.
On the basis of the foregoing embodiment, with reference to fig. 10, in order to facilitate real-time interaction with a user, the obtaining module 1 and the determining module 3 in this embodiment are further configured to execute the following steps, specifically:
the acquisition module 1 is further used for acquiring a target area range selected by a user;
the determining module 3 is further configured to determine at least one target hot spot area range located within the target area range, and display the target hot spot area range.
Further, in order to solve the problem of fixed geography grid granularity and uncontrollable data loading speed of the offline calculation scheme in the prior art, referring to fig. 10, the obtaining module 1 and the determining module 3 in this embodiment are further configured to perform the following steps, specifically:
the acquisition module 1 is further configured to acquire a screen grid granularity of a display window in a screen;
the determining module 3 is further configured to determine the geographic grid granularity corresponding to the thermodynamic diagram by using a mapping relationship between preset screen grid granularity and the geographic grid granularity;
at this time, the apparatus may further include:
and the display module 6 is used for displaying the thermodynamic diagram according to the geographic grid granularity, wherein the number of the geographic grids in the thermodynamic diagram is fixed. Wherein the number of the geographic grids in the thermodynamic diagram is W × H/P2Where W is the wide pixel in the screen grid granularity.
Specifically, when the determining module 3 determines the geography grid granularity corresponding to the thermodynamic diagram by using the preset mapping relationship between the screen grid granularity and the geography grid granularity, the determining module 3 is configured to perform:
cutting the screen grid granularity in the vertical direction according to the preset P pixel granularity to obtain H/P cutting sections, wherein H is a high pixel in the screen grid granularity; acquiring longitude and latitude information between an upper left data point and a lower left data point in a display window, and determining the distance S m between the two data points according to the longitude and latitude information; and determining the granularity of the geographic grid to be P × S/H according to the H/P cutting segments and the distance S m.
The device for generating a thermodynamic diagram provided in this embodiment can be used to execute the methods corresponding to the embodiments in fig. 2 to 9, and the specific execution manner and the beneficial effects thereof are similar and will not be described again here.
Fig. 11 is a schematic structural diagram of a thermal diagram generating apparatus according to an embodiment of the present invention, and referring to fig. 11, a further embodiment of the present invention provides a thermal diagram generating apparatus 50, including:
a memory 502, a processor 501, and a computer program stored on the memory 502 and executable on the processor 501,
the processor 501, when running the computer program, implements the method of generating a thermal map in any of the embodiments described above.
Another embodiment of the present invention provides a computer-readable storage medium, storing a computer program,
the computer program, when executed by a processor, implements a method of generating a thermal map as in any of the embodiments described above.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (20)

1. A method of generating a thermodynamic diagram, comprising:
acquiring a plurality of discrete longitude and latitude data points in a preset area range;
mapping the longitude and latitude data points to a map display area, wherein a plurality of geographical grids are preset in the map display area;
determining the weight of each geographic grid according to the longitude and latitude data points;
mapping the geographical grids to pixel positions of a screen map, and giving different colors to the pixels of the geographical grids with different weights according to a preset drawing strategy to generate a thermodynamic diagram;
the method further comprises the following steps:
acquiring screen grid granularity of a display window in a screen;
determining the geographic grid granularity corresponding to the thermodynamic diagram by utilizing a preset mapping relation between the screen grid granularity and the geographic grid granularity;
displaying the thermodynamic diagram according to the geography grid granularity, wherein the number of geographies in the thermodynamic diagram is fixed and unchanged.
2. The method of claim 1, wherein prior to mapping the latitude and longitude data points onto a map presentation area, the method further comprises:
acquiring a rectangular geographic area corresponding to the map display area;
and segmenting the rectangular geographic area along the longitude and latitude directions respectively to generate the geographic grid.
3. The method of claim 1, wherein determining a weight for each geographic grid from the latitude and longitude data points comprises:
acquiring the number of data points falling into each geographic grid according to preset coordinate information;
determining the number of data points as a weight of the geographic grid.
4. The method of claim 1, wherein determining a weight for each geographic grid from the latitude and longitude data points comprises:
acquiring the side length of each geographic grid;
building a longitude and latitude numerical index by using the longitude and latitude lines of the cut geographic grid;
and determining the weight of the geography grid according to the side length and longitude and latitude numerical value index and by utilizing a barrel aggregation calculation mode.
5. The method of any one of claims 1-4, wherein after generating the thermodynamic diagram, the method further comprises:
acquiring data volume information of a preset area range in the thermodynamic diagram;
and determining at least one hot spot area range in the thermodynamic diagram according to the data volume information.
6. The method of claim 5, wherein determining at least one hot spot zone range in the thermodynamic diagram from the data volume information comprises:
acquiring proportion information of the data volume information relative to the data total volume information of the whole thermodynamic diagram;
and if the proportion information is larger than a preset proportion threshold, determining a preset area range corresponding to the data volume information as the hotspot area range.
7. The method according to any one of claims 1-4, further comprising:
acquiring a target area range selected by a user;
and determining at least one target hot spot area range positioned in the target area range, and displaying the target hot spot area range.
8. The method of claim 1, wherein determining the geography grid granularity corresponding to the thermodynamic diagram by using a mapping relationship between preset screen grid granularity and geography grid granularity comprises:
cutting the screen grid granularity in the vertical direction according to the preset P pixel granularity to obtain H/P cutting sections, wherein H is a high pixel in the screen grid granularity;
acquiring longitude and latitude information between an upper left data point and a lower left data point in the display window, and determining the distance S m between the two data points according to the longitude and latitude information;
and determining the granularity of the geographic grid to be P × S/H according to the H/P cutting segments and the distance S m.
9. The method of claim 8, wherein the number of geographies in the thermodynamic diagram is W x H/P2Where W is the wide pixel in the screen grid granularity.
10. A thermal map generation apparatus, comprising:
the acquisition module is used for acquiring a plurality of discrete longitude and latitude data points in a preset area range;
the mapping module is used for mapping the longitude and latitude data points to a map display area, and a plurality of geographical grids are preset on the map display area;
the determining module is used for determining the weight of each geographic grid according to the longitude and latitude data points;
the generating module is used for mapping the geographical grids to the positions of the pixel points of the screen map, giving different colors to the pixel points of the geographical grids with different weights according to a preset drawing strategy, and generating a thermodynamic diagram;
the acquisition module is also used for acquiring the screen grid granularity of a display window in a screen;
the determining module is further configured to determine a geographic grid granularity corresponding to the thermodynamic diagram by using a preset mapping relationship between the screen grid granularity and the geographic grid granularity;
the device, still include:
the display module is used for displaying the thermodynamic diagram according to the geographic grid granularity, wherein the number of geographic grids in the thermodynamic diagram is fixed.
11. The apparatus of claim 10,
the obtaining module is further configured to obtain a rectangular geographic area corresponding to the map display area before mapping the longitude and latitude data points onto the map display area;
the device further comprises:
and the segmentation module is used for segmenting the rectangular geographic area along the longitude and latitude directions respectively to generate the geographic grid.
12. The apparatus of claim 10, wherein the determining module is configured to:
acquiring the number of data points falling into each geographic grid according to preset coordinate information;
determining the number of data points as a weight of the geographic grid.
13. The apparatus of claim 10, wherein the determining module is configured to:
acquiring the side length of each geographic grid;
building a longitude and latitude numerical index by using the longitude and latitude lines of the cut geographic grid;
and determining the weight of the geography grid according to the side length and longitude and latitude numerical value index and by utilizing a barrel aggregation calculation mode.
14. The apparatus according to any one of claims 10 to 13,
the acquisition module is further used for acquiring data volume information of a preset area range in the thermodynamic diagram after the thermodynamic diagram is generated;
the determining module is further configured to determine at least one hot spot area range in the thermodynamic diagram according to the data volume information.
15. The apparatus of claim 14, wherein the determining module is configured to:
acquiring proportion information of the data volume information relative to the data total volume information of the whole thermodynamic diagram;
and if the proportion information is larger than a preset proportion threshold, determining a preset area range corresponding to the data volume information as the hotspot area range.
16. The apparatus according to any one of claims 10 to 13,
the acquisition module is also used for acquiring a target area range selected by a user;
the determining module is further configured to determine at least one target hot spot area range located within the target area range, and display the target hot spot area range.
17. The apparatus of claim 10, wherein the determining module is configured to:
cutting the screen grid granularity in the vertical direction according to the preset P pixel granularity to obtain H/P cutting sections, wherein H is a high pixel in the screen grid granularity;
acquiring longitude and latitude information between an upper left data point and a lower left data point in the display window, and determining the distance S m between the two data points according to the longitude and latitude information;
and determining the granularity of the geographic grid to be P × S/H according to the H/P cutting segments and the distance S m.
18. The apparatus of claim 17, wherein the number of geogrids in the thermodynamic diagram is W x H/P2Where W is the wide pixel in the screen grid granularity.
19. A thermal map generating apparatus, characterized by comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor, when running the computer program, implements a method of generating a thermodynamic diagram as claimed in any one of claims 1-9.
20. A computer-readable storage medium, in which a computer program is stored,
the computer program, when executed by a processor, implements a method of generating a thermodynamic diagram as claimed in any one of claims 1-9.
CN201810719736.2A 2018-07-03 2018-07-03 Generation method, device and equipment of thermodynamic diagram and computer readable storage medium Active CN110675728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810719736.2A CN110675728B (en) 2018-07-03 2018-07-03 Generation method, device and equipment of thermodynamic diagram and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810719736.2A CN110675728B (en) 2018-07-03 2018-07-03 Generation method, device and equipment of thermodynamic diagram and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110675728A CN110675728A (en) 2020-01-10
CN110675728B true CN110675728B (en) 2021-08-31

Family

ID=69066028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810719736.2A Active CN110675728B (en) 2018-07-03 2018-07-03 Generation method, device and equipment of thermodynamic diagram and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110675728B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737396A (en) * 2020-08-26 2020-10-02 成都四方伟业软件股份有限公司 Method and device for improving thermodynamic diagram display performance based on 2D convolution
CN112035559B (en) * 2020-11-02 2021-02-02 浙江口碑网络技术有限公司 Thermodynamic diagram display method, server and system
CN113345049A (en) * 2021-08-04 2021-09-03 武大吉奥信息技术有限公司 Thermodynamic diagram generation method based on land parcel

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043850A (en) * 2010-12-20 2011-05-04 百度在线网络技术(北京)有限公司 Method and equipment for generating thermodynamic diagram
CN102054388A (en) * 2009-11-03 2011-05-11 厦门雅迅网络股份有限公司 Method for receiving and displaying map
CN102612678A (en) * 2009-08-14 2012-07-25 特洛吉斯有限公司 Real time map rendering with data clustering and expansion and overlay
CN104270785A (en) * 2014-10-17 2015-01-07 四川公用信息产业有限责任公司 Wireless network region problem positioning method based on geography grid aggregation
CN106528398A (en) * 2015-09-15 2017-03-22 网易(杭州)网络有限公司 Game software performance visual analysis method
CN106708955A (en) * 2016-11-29 2017-05-24 浙江宇视科技有限公司 Thermodynamic diagram generation method and equipment
CN107766375A (en) * 2016-08-19 2018-03-06 华为技术有限公司 A kind of method and device for generating thermodynamic chart
CN108009189A (en) * 2017-08-16 2018-05-08 北京嘀嘀无限科技发展有限公司 Thermodynamic chart methods of exhibiting, system, terminal and server

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5562075B2 (en) * 2010-03-09 2014-07-30 カルソニックカンセイ株式会社 Method and apparatus for creating surface processing data
US20140007017A1 (en) * 2012-06-27 2014-01-02 Marinexplore Inc. Systems and methods for interacting with spatio-temporal information
US9204260B2 (en) * 2013-03-13 2015-12-01 Qualcomm Incorporated Method and apparatus for generating positioning assistance data
CN104731894B (en) * 2015-03-18 2018-10-16 百度在线网络技术(北京)有限公司 Thermodynamic chart shows method and device
CN106294474B (en) * 2015-06-03 2019-07-16 阿里巴巴集团控股有限公司 Show processing method, the apparatus and system of data
CN105188030B (en) * 2015-08-21 2018-12-28 北京拓明科技有限公司 A kind of method that mobile network data carries out geographical grid mapping
CN106991576B (en) * 2016-01-20 2020-10-09 阿里巴巴集团控股有限公司 Method and device for displaying heat of geographic area
CN106934764B (en) * 2016-11-03 2020-09-11 阿里巴巴集团控股有限公司 Image data processing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102612678A (en) * 2009-08-14 2012-07-25 特洛吉斯有限公司 Real time map rendering with data clustering and expansion and overlay
CN102054388A (en) * 2009-11-03 2011-05-11 厦门雅迅网络股份有限公司 Method for receiving and displaying map
CN102043850A (en) * 2010-12-20 2011-05-04 百度在线网络技术(北京)有限公司 Method and equipment for generating thermodynamic diagram
CN104270785A (en) * 2014-10-17 2015-01-07 四川公用信息产业有限责任公司 Wireless network region problem positioning method based on geography grid aggregation
CN106528398A (en) * 2015-09-15 2017-03-22 网易(杭州)网络有限公司 Game software performance visual analysis method
CN107766375A (en) * 2016-08-19 2018-03-06 华为技术有限公司 A kind of method and device for generating thermodynamic chart
CN106708955A (en) * 2016-11-29 2017-05-24 浙江宇视科技有限公司 Thermodynamic diagram generation method and equipment
CN108009189A (en) * 2017-08-16 2018-05-08 北京嘀嘀无限科技发展有限公司 Thermodynamic chart methods of exhibiting, system, terminal and server

Also Published As

Publication number Publication date
CN110675728A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN110675728B (en) Generation method, device and equipment of thermodynamic diagram and computer readable storage medium
JP6141393B2 (en) Method and apparatus for determining a target position
US11042278B2 (en) Providing graphical indication of label boundaries in digital maps
US8411107B2 (en) Adaptive snapping
CN107193911B (en) BIM model-based three-dimensional visualization engine and WEB application program calling method
US20130194272A1 (en) Placing pixels according to attribute values in positions in a graphical visualization that correspond to geographic locations
US9413807B1 (en) Browser rendering and computation
US10565560B2 (en) Alternative people charting for organizational charts
CN104657417B (en) The processing method and system of thermodynamic chart
US20140365647A1 (en) Network Visualization Systems And Methods
CN103839479A (en) High-efficiency electronic-map lettering interaction method
CN102156739A (en) GIS (Geographic Information System) platform processing method for mass lightning data
US20140192082A1 (en) Methods and systems for generating an aggregated data visualization
CN107977407A (en) tile map storage method, device, storage medium and computer equipment
US9275481B2 (en) Viewport-based contrast adjustment for map features
WO2017206484A1 (en) Geographic data presentation method and apparatus
CN111489443A (en) Construction site construction scene three-dimensional visualization method and device
CN107992589B (en) SVG map data loading method, device and system
US9984179B2 (en) Providing building information modeling data
CN109729423A (en) A kind of desktop wallpaper setting method and device
CN110741229A (en) Dynamically changing visual attributes of indicators on a digital map
CN108961406A (en) Geographical information visualization method, apparatus and user terminal
CN107977923A (en) Image processing method, device, electronic equipment and computer-readable recording medium
CN111966853B (en) Management method of remote sensing image
CN112162668B (en) Interface updating method and monitoring terminal

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