CN111915690A - Thermodynamic diagram data reduction method based on vector tiles - Google Patents
Thermodynamic diagram data reduction method based on vector tiles Download PDFInfo
- Publication number
- CN111915690A CN111915690A CN202010770313.0A CN202010770313A CN111915690A CN 111915690 A CN111915690 A CN 111915690A CN 202010770313 A CN202010770313 A CN 202010770313A CN 111915690 A CN111915690 A CN 111915690A
- Authority
- CN
- China
- Prior art keywords
- tile
- data
- vector
- preset
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000010586 diagram Methods 0.000 title claims abstract description 49
- 230000009467 reduction Effects 0.000 title claims abstract description 17
- 238000009877 rendering Methods 0.000 claims abstract description 26
- 230000002776 aggregation Effects 0.000 claims abstract description 24
- 238000004220 aggregation Methods 0.000 claims abstract description 24
- 238000006243 chemical reaction Methods 0.000 claims abstract description 18
- 230000009466 transformation Effects 0.000 claims abstract description 10
- 238000009792 diffusion process Methods 0.000 claims description 21
- 239000011159 matrix material Substances 0.000 claims description 12
- 230000004044 response Effects 0.000 abstract description 12
- 230000000694 effects Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010438 heat treatment Methods 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008602 contraction Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to the technical field of data processing, in particular to a thermodynamic diagram data reduction method based on vector tiles. The method comprises the following steps: acquiring original vector data of a thermal map; carrying out grid storage format conversion on the original vector data to obtain tile vector data; performing tile coordinate transformation on the tile vector data to generate vector tile data; and carrying out pixel aggregation on the vector tile data according to preset tile pixel precision to generate the compilation data of the thermal map. By the method, vector data are converted into vector tile data, so that the thermal map can be loaded in blocks according to tile grids, and the response speed is increased; making the amount of data for thermal map rendering small; the thermal map data is simple and quick to generate, high in loading performance and quick in response, and user experience is improved.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to a thermodynamic diagram data reduction method based on vector tiles.
Background
The existing thermodynamic diagram is usually a front-end rendering effect, rendering needs to be performed after data is loaded to a front end, when the data volume is large, the transmission data volume is remarkably increased, the front-end data loading is very slow, and user experience is very influenced. If the problem of large data volume needs to be solved, a series of processing needs to be carried out on the data, and the process is complicated and tedious. Meanwhile, data obtained by traditional data processing is a whole, and one-time loading at the front end is slow.
Disclosure of Invention
The invention mainly aims to provide a thermodynamic diagram data compilation method based on vector tiles, and aims to solve the technical problem of slow loading caused by large data transmission quantity of a thermodynamic diagram in the prior art.
In order to achieve the above object, the present invention provides a thermodynamic diagram data compilation method based on vector tiles, where the thermodynamic diagram data compilation method based on vector tiles includes:
acquiring original vector data of a thermal map;
carrying out grid storage format conversion on the original vector data to obtain tile vector data;
performing tile coordinate transformation on the tile vector data to generate vector tile data;
and carrying out pixel aggregation on the vector tile data according to preset tile pixel precision to generate the compilation data of the thermal map.
Optionally, the step of performing grid storage format conversion on the original vector data to obtain tile vector data specifically includes:
acquiring the maximum diffusion radius of the thermal map, and acquiring the buffer area range of a preset tile grid according to the maximum diffusion radius;
and carrying out grid storage conversion on the original vector data according to the preset tile grid and the buffer area range so as to obtain the tile vector data.
Optionally, before the step of obtaining the raw vector data of the thermal map, the method further includes:
acquiring a data range of a thermal map;
acquiring a preset level of the thermal map according to the data range;
and acquiring a preset tile grid corresponding to the preset hierarchy.
Optionally, the step of performing tile coordinate transformation on the tile vector data to generate vector tile data specifically includes:
acquiring geographic coordinates contained in the tile vector data;
and converting the geographic coordinates into tile grid coordinates corresponding to the tile vector data, and generating vector tile data according to the tile grid coordinates.
Optionally, the step of performing pixel aggregation on the vector tile data according to a preset tile pixel precision to generate the compilation data of the thermal map specifically includes:
traversing the preset tile grids, and acquiring target vector tile data corresponding to the traversed current tile grids;
performing pixel aggregation on the target vector tile data to generate a plurality of tile pixel data;
performing weighted aggregation on the generated tile pixel data according to the weight field and the preset tile pixel precision to generate tile weight data;
and when the traversal is finished, acquiring all tile weight data corresponding to the preset tile grid, generating a tile pixel weight matrix according to all the tile weight data, and taking the tile pixel weight matrix as compilation data of the thermal map.
Optionally, before the step of performing weighted aggregation on the generated tile pixel data according to the weight field and the preset tile pixel precision to generate the tile weight data, the method further includes:
acquiring an attribute value of a weight field corresponding to the vector tile data according to the thermal map;
and when the attribute value is empty, assigning a value to the weight field according to a preset weight value.
Optionally, after the step of performing tile coordinate transformation on the tile vector data to generate vector tile data, the method further includes:
and performing redundant storage on the vector tile data according to the maximum diffusion radius.
Optionally, after the step of performing pixel aggregation on the vector tile data according to a preset tile pixel precision to generate the compilation data of the thermal map, the method further includes:
and rendering the heat map according to the editing data.
The method comprises the steps of obtaining original vector data of a thermal map; carrying out grid storage format conversion on the original vector data to obtain tile vector data; performing tile coordinate transformation on the tile vector data to generate vector tile data; and carrying out pixel aggregation on the vector tile data according to preset tile pixel precision to generate the compilation data of the thermal map. Converting the vector data into vector tile data, so that the thermal map can be loaded in blocks according to the tile grids, and the response speed is increased; making the amount of data for thermal map rendering small; the thermal map data is generated simply and quickly; the loading performance is high, the response is fast, and the user experience is improved.
Drawings
FIG. 1 is a schematic flowchart of a first embodiment of a method for compiling thermodynamic diagram data based on vector tiles according to the present invention;
FIG. 2 is a schematic diagram of a tile grid according to an embodiment of a method for compiling thermodynamic diagram data based on vector tiles;
FIG. 3 is a schematic diagram of a pixel point of an embodiment of a thermodynamic diagram data reduction method based on vector tiles according to the present invention;
FIG. 4 is a flowchart illustrating a thermodynamic diagram data compiling method based on vector tiles according to a second embodiment of the present invention;
FIG. 5 is a block diagram illustrating a first embodiment of the apparatus for data reduction of thermodynamic diagrams based on vector tiles according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a thermodynamic diagram data compilation method based on vector tiles, and referring to fig. 1, fig. 1 is a schematic flow diagram of a first embodiment of the thermodynamic diagram data compilation method based on vector tiles.
In this embodiment, the thermodynamic diagram data reduction method based on vector tiles includes the following steps:
step S10: and acquiring original vector data of the thermal map.
It should be understood that the thermodynamic diagram is a heat map, which is a map showing the page area on which the visitor is keen and the geographical area in which the visitor is located in a particularly highlighted form. In the thermal map rendering, discrete point data is generally used, and is weighted by attribute information of the data, and the rendering of the thermal map is realized by parameters such as transparency and diffusion radius. Too much discrete point data can influence the rendering effect; too much point data may affect the speed of network transmission and the performance of rendering. If the data is processed, the processing flow is complex and tedious, the time consumption is long, and a standardized processing flow is lacked. And the problem of taking over the loading speed and the rendering effect still exists when the processed data is loaded on a browser end (also can be an APP end and the like).
Note that, before step S10, the method further includes: acquiring a data range of a thermal map; acquiring a preset level of the thermal map according to the data range; and acquiring a preset tile grid corresponding to the preset hierarchy.
It is easy to understand that according to the data range of the thermal map, multiple preset levels of the tile map corresponding to the thermal map can be obtained, and each preset level has a corresponding preset tile grid. And parameters such as the number of tiles of the covered preset tile grids, the size of the tiles and the like are corresponding to each preset level of the map.
Step S20: and carrying out grid storage format conversion on the original vector data to obtain tile vector data.
It should be understood that the resolution of the tile map is different for different levels, but the geographic extent of the tile map does not change. The higher the rank of the tiles, the more tiles that make up the map, the more detailed the tile map. The original data of the thermal map are vector data, and the original vector data are required to be taken out according to tile grids when being converted into vector tile data.
Step S20 specifically includes: acquiring the maximum diffusion radius of the thermal map, and acquiring the buffer area range of a preset tile grid according to the maximum diffusion radius; and carrying out grid storage conversion on the original vector data according to the preset tile grid and the buffer area range so as to obtain the tile vector data.
Referring to fig. 2, fig. 2 is a schematic diagram of a tile grid according to an embodiment of a thermodynamic diagram data compiling method based on vector tiles. Since the area on the map corresponds to a certain attribute value, "flow" occurs depending on the density area, and the flow from a region with high density to a region with low density is called diffusion. The maximum diffusion radius can be obtained according to the thermal map. Referring to fig. 2, wherein the buffer length is the maximum diffusion radius, the tile grid peripheral area is the buffer.
It is easy to understand that the tile vector data is vector data in a tile format, and the coordinate information corresponding to the data is geographic coordinates. And for original vector data taken out according to the tile grids and the buffer area range thereof, if the data range corresponding to the original vector data exceeds the buffer area range, cutting the original vector data according to the buffer area range so as to improve the edge connecting effect of the tiles.
Step S30: performing tile coordinate transformation on the tile vector data to generate vector tile data.
Step S30 specifically includes: acquiring geographic coordinates contained in the tile vector data; and converting the geographic coordinates into tile grid coordinates corresponding to the tile vector data, and generating vector tile data according to the tile grid coordinates.
It is easy to understand that the vector tile data is data in the form of vector tiles, and the original vector data is stored and coordinate-transformed in the form of a grid, and the content of the data itself is not changed. The coordinate points of the vector data become pixel points of the vector tile data. When loading is carried out, vector data needs to be loaded integrally, and the response speed of loading all data at one time is low; and the vector tile data can be loaded in a blocking mode, the response speed is increased, and the loading speed is high.
In specific implementation, when the geographic coordinates are converted into tile grid coordinates corresponding to the tile vector data, the geographic coordinates can be reduced according to accuracy requirements of pixel points. Suppose that: the geographic coordinates are (39 ° 52 '48 "N, 116 ° 24' 20" E), which can be reduced to (39 ° 53 'N, 116 ° 24' E). The number of reduced bits is not limited in this embodiment.
It should be understood that the tile grid has corresponding coordinates in the map, and that the conversion from vector data to vector tile data is done by correspondingly converting the geographic coordinates of the vector data in the same tile grid to said tile coordinates.
Step S40: and carrying out pixel aggregation on the vector tile data according to preset tile pixel precision to generate the compilation data of the thermal map.
Step S40 specifically includes: traversing the preset tile grids, and acquiring target vector tile data corresponding to the traversed current tile grids; performing pixel aggregation on the target vector tile data to generate a plurality of tile pixel data; performing weighted aggregation on the generated tile pixel data according to the weight field and the preset tile pixel precision to generate tile weight data; and when the traversal is finished, acquiring all tile weight data corresponding to the preset tile grid, generating a tile pixel weight matrix according to all the tile weight data, and taking the tile pixel weight matrix as compilation data of the thermal map.
Fig. 3 is a schematic pixel point diagram of an embodiment of a thermodynamic diagram data reduction method based on vector tiles according to the present invention. It should be noted that different preset levels correspond to different tile pixel accuracies. For example, the vector tile data corresponding to a preset hierarchy, in which each map tile corresponds to four map tiles one level lower, is composed of map tiles with a resolution of 256 × 256 pixels. The tile map corresponding to the same preset level has a plurality of tile grids, so that the tile grids are traversed, and the target vector tile data corresponding to the current tile grid is obtained. Each tile grid corresponds to the point data of the pixels, and the data in the same pixel range can be subjected to weighted aggregation according to the weight fields. For example: referring to fig. 3, in fig. 3, six data are aggregated in one pixel point, weight fields corresponding to the six data are P1, P2, P3, P4, P5, and P6, respectively, and each pixel point only retains weight data (N), so that the weight data corresponding to the pixel point is N ═ P1+ P2+ P3+ P4+ P5+ P6.
It is easy to understand that the tile grids correspond to a plurality of pixel point data, each pixel point data only retains weight data, the weight data of all the pixel point data in the tile grids form tile weight data, one map comprises a plurality of tile grids, the tile weight data of the plurality of tile grids form a tile pixel weight matrix, and the tile pixel weight matrix is used as the compilation data of the thermal map.
It should be understood that, through the above-mentioned compilation process, vector data is fetched according to the tile grid, so that the data can be block-loaded according to the tile grid, and the response speed is increased; the geographic coordinates are converted into tile coordinates, coordinate points are converted into pixel points, and then the pixel points are reduced and weighted and aggregated, so that data is further compiled in a shortened mode, the occupied amount of the data is reduced under the condition that the data content is kept, and the operations of loading, rendering or calling and the like are facilitated.
The implementation has the advantages that the data volume for rendering the heat map is small through the method; the thermal map data is generated simply and quickly; the generated data are vector tile data, the browser can perform block loading according to the tile grids, the loading performance is high, the response is fast, and the user experience is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a thermodynamic diagram data compiling method based on vector tiles according to a second embodiment of the present invention; based on the first embodiment, after step S30, the method for compiling thermodynamic diagram data based on vector tiles according to this embodiment further includes:
step S301: and performing redundant storage on the vector tile data according to the maximum diffusion radius.
It should be noted that after vector data is converted into vector tile data, the vector tile data is redundantly stored according to the buffer area range corresponding to the maximum diffusion radius, so that a plurality of vector tiles can be seamlessly connected in the thermal map. The heating power map is convenient to perform superposition analysis, large-range roaming of the heating power map is achieved, and the experience effect of a user on the heating power map is enhanced.
It should be noted that, before the step of performing weighted aggregation on the generated tile pixel data according to the weight field and the preset tile pixel precision to generate the tile weight data, the method further includes:
acquiring an attribute value of a weight field corresponding to the vector tile data according to the thermal map; and when the attribute value is empty, assigning a value to the weight field according to a preset weight value.
In a specific implementation, when the weight field is not set, that is, the weight field is empty (null), the weight field may be set, for example, the empty weight field is set to 1 by default. The weight field may also be set to other values according to different editing requirements.
The step S40 is followed by: and rendering the heat map according to the editing data.
It is easy to understand that, with the thermodynamic diagram data compilation method based on vector tiles of the embodiment of the present invention, the thermodynamic diagram can be loaded in blocks and can also be rendered in blocks. When tile data in the thermal map is rendered, for each pixel point with weight data (N) not 0 in the tile grid, a rendering area is formed by taking the pixel point as a circle center and the diffusion radius of the thermal map as a radius. And the filling color and the transparency corresponding to the rendering area are interpolated on the configured color band by using the value corresponding to the weight data (N), so that the rendering of the thermodynamic tile can be completed quickly.
According to the embodiment of the invention, by the method, the vector tile data formed after the contraction coding is subjected to redundant storage, so that the tiles in the thermal map can be in seamless edge connection; the weight field is set, so that the weight aggregation can be carried out when the weight field does not exist; rendering is carried out according to the contracted and compiled data, and rendering efficiency is improved.
In addition, in order to achieve the above object, an exemplary embodiment of the present invention further provides a thermodynamic diagram data compiling device based on vector tiles, and referring to fig. 5, fig. 5 is a block diagram of a first exemplary embodiment of the thermodynamic diagram data compiling device based on vector tiles according to the present invention.
And the acquisition module 10 is used for acquiring the original vector data of the thermal map.
It should be understood that the thermal map is a map showing the page area where visitors are keen and the geographical area where the visitors are located in a particularly highlighted form. In the thermal map rendering, discrete point data is generally used, and is weighted by attribute information of the data, and the rendering of the thermal map is realized by parameters such as transparency and diffusion radius. Too much discrete point data can influence the rendering effect; too much point data may affect the speed of network transmission and the performance of rendering. If the data is processed, the processing flow is complex and tedious, the time consumption is long, and a standardized processing flow is lacked. And the problem of taking over the loading speed and the rendering effect still exists when the processed data is loaded on a browser end (also can be an APP end and the like).
It should be noted that the obtaining module 10 is further configured to obtain a data range of the thermal map; acquiring a preset level of the thermal map according to the data range; and acquiring a preset tile grid corresponding to the preset hierarchy.
It is easy to understand that according to the data range of the thermal map, multiple preset levels of the tile map corresponding to the thermal map can be obtained, and each preset level has a corresponding preset tile grid. And parameters such as the number of tiles of the covered preset tile grids, the size of the tiles and the like are corresponding to each preset level of the map.
And a format conversion module 20, configured to perform a grid storage format conversion on the original vector data to obtain tile vector data.
It should be understood that the resolution of the tile map is different for different levels, but the geographic extent of the tile map does not change. The higher the rank of the tiles, the more tiles that make up the map, the more detailed the tile map. The original data of the thermal map are vector data, and the original vector data are required to be taken out according to tile grids when being converted into vector tile data.
It should be noted that, the format conversion module 20 is further configured to obtain a maximum diffusion radius of the thermal map, and obtain a buffer area range of a preset tile grid according to the maximum diffusion radius; and carrying out grid storage conversion on the original vector data according to the preset tile grid and the buffer area range so as to obtain the tile vector data.
Referring to fig. 2, fig. 2 is a schematic diagram of a tile grid according to an embodiment of a thermodynamic diagram data compiling method based on vector tiles. Since the area on the map corresponds to a certain attribute value, "flow" occurs depending on the density area, and the flow from a region with high density to a region with low density is called diffusion. The maximum diffusion radius can be obtained according to the thermal map. Referring to fig. 2, wherein the buffer length is the maximum diffusion radius, the tile grid peripheral area is the buffer.
It is easy to understand that the tile vector data is vector data in a tile format, and the coordinate information corresponding to the data is geographic coordinates. And for original vector data taken out according to the tile grids and the buffer area range thereof, if the data range corresponding to the original vector data exceeds the buffer area range, cutting the original vector data according to the buffer area range so as to improve the edge connecting effect of the tiles.
And a coordinate conversion module 30, configured to perform tile coordinate conversion on the tile vector data to generate vector tile data.
It should be noted that, the coordinate transformation module 30 is further configured to obtain geographic coordinates included in the tile vector data; and converting the geographic coordinates into tile grid coordinates corresponding to the tile vector data, and generating vector tile data according to the tile grid coordinates.
It is easy to understand that the vector tile data is data in the form of vector tiles, and the original vector data is stored and coordinate-transformed in the form of a grid, and the content of the data itself is not changed. The coordinate points of the vector data become pixel points of the vector tile data. When loading is carried out, vector data needs to be loaded integrally, and the response speed of loading all data at one time is low; and the vector tile data can be loaded in a blocking mode, the response speed is increased, and the loading speed is high.
In specific implementation, when the geographic coordinates are converted into tile grid coordinates corresponding to the tile vector data, the geographic coordinates can be reduced according to accuracy requirements of pixel points. Suppose that: the geographic coordinates are (39 ° 52 '48 "N, 116 ° 24' 20" E), which can be reduced to (39 ° 53 'N, 116 ° 24' E). The number of reduced bits is not limited in this embodiment.
It should be understood that the tile grid has corresponding coordinates in the map, and that the conversion from vector data to vector tile data is done by correspondingly converting the geographic coordinates of the vector data in the same tile grid to said tile coordinates.
And the compiling reduction module 40 is configured to perform pixel aggregation on the vector tile data according to a preset tile pixel precision to generate compiling reduction data of the thermal map.
It should be noted that the compiling reduction module 40 is further configured to traverse the preset tile grid, and obtain target vector tile data corresponding to the traversed current tile grid; performing pixel aggregation on the target vector tile data to generate a plurality of tile pixel data; performing weighted aggregation on the generated tile pixel data according to the weight field and the preset tile pixel precision to generate tile weight data; and when the traversal is finished, acquiring all tile weight data corresponding to the preset tile grid, generating a tile pixel weight matrix according to all the tile weight data, and taking the tile pixel weight matrix as compilation data of the thermal map.
Fig. 3 is a schematic pixel point diagram of an embodiment of a thermodynamic diagram data reduction method based on vector tiles according to the present invention. It should be noted that different preset levels correspond to different tile pixel accuracies. For example, the vector tile data corresponding to a preset hierarchy, in which each map tile corresponds to four map tiles one level lower, is composed of map tiles with a resolution of 256 × 256 pixels. The tile map corresponding to the same preset level has a plurality of tile grids, so that the tile grids are traversed, and the target vector tile data corresponding to the current tile grid is obtained. Each tile grid corresponds to the point data of the pixels, and the data in the same pixel range can be subjected to weighted aggregation according to the weight fields. For example: referring to fig. 3, in fig. 3, six data are aggregated in one pixel point, weight fields corresponding to the six data are P1, P2, P3, P4, P5, and P6, respectively, and each pixel point only retains weight data (N), so that the weight data corresponding to the pixel point is N ═ P1+ P2+ P3+ P4+ P5+ P6.
It is easy to understand that the tile grids correspond to a plurality of pixel point data, each pixel point data only retains weight data, the weight data of all the pixel point data in the tile grids form tile weight data, one map comprises a plurality of tile grids, the tile weight data of the plurality of tile grids form a tile pixel weight matrix, and the tile pixel weight matrix is used as the compilation data of the thermal map.
It should be understood that, through the above-mentioned compilation process, vector data is fetched according to the tile grid, so that the data can be block-loaded according to the tile grid, and the response speed is increased; the geographic coordinates are converted into tile coordinates, coordinate points are converted into pixel points, and then the pixel points are reduced and weighted and aggregated, so that data is further compiled in a shortened mode, the occupied amount of the data is reduced under the condition that the data content is kept, and the operations of loading, rendering or calling and the like are facilitated.
The implementation enables the data volume for rendering the heat map to be small through the device; the thermal map data is generated simply and quickly; the generated data are vector tile data, the browser can perform block loading according to the tile grids, the loading performance is high, the response is fast, and the user experience is improved.
Furthermore, an embodiment of the present invention further provides a storage medium having stored thereon a vector tile-based thermodynamic diagram data reduction program, where the vector tile-based thermodynamic diagram data reduction program is executed by a processor to perform the steps of a vector tile-based thermodynamic diagram data reduction method as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may be referred to a thermodynamic diagram data reduction method based on vector tiles provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network terminal device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (8)
1. A thermodynamic diagram data reduction method based on vector tiles is characterized by comprising the following steps:
acquiring original vector data of a thermal map;
carrying out grid storage format conversion on the original vector data to obtain tile vector data;
performing tile coordinate transformation on the tile vector data to generate vector tile data;
and carrying out pixel aggregation on the vector tile data according to preset tile pixel precision to generate the compilation data of the thermal map.
2. The method for compiling thermodynamic diagram data based on vector tiles as claimed in claim 1, wherein the step of performing grid storage format conversion on the original vector data to obtain tile vector data specifically includes:
acquiring the maximum diffusion radius of the thermal map, and acquiring the buffer area range of a preset tile grid according to the maximum diffusion radius;
and carrying out grid storage conversion on the original vector data according to the preset tile grid and the buffer area range so as to obtain the tile vector data.
3. The method for compiling thermodynamic diagram data based on vector tiles as claimed in claim 2, wherein the step of obtaining the original vector data of the thermodynamic map is preceded by the steps of:
acquiring a data range of a thermal map;
acquiring a preset level of the thermal map according to the data range;
and acquiring a preset tile grid corresponding to the preset hierarchy.
4. The method for compiling thermodynamic diagram data based on vector tiles as claimed in claim 3, wherein the step of performing tile coordinate transformation on the tile vector data to generate vector tile data specifically comprises:
acquiring geographic coordinates contained in the tile vector data;
and converting the geographic coordinates into tile grid coordinates corresponding to the tile vector data, and generating vector tile data according to the tile grid coordinates.
5. The method for compiling thermodynamic diagram data based on vector tiles as claimed in claim 4, wherein the step of performing pixel aggregation on the vector tile data according to a preset tile pixel precision to generate the compiled data of the thermodynamic diagram specifically comprises:
traversing the preset tile grids, and acquiring target vector tile data corresponding to the traversed current tile grids;
performing pixel aggregation on the target vector tile data to generate a plurality of tile pixel data;
performing weighted aggregation on the generated tile pixel data according to the weight field and the preset tile pixel precision to generate tile weight data;
and when the traversal is finished, acquiring all tile weight data corresponding to the preset tile grid, generating a tile pixel weight matrix according to all the tile weight data, and taking the tile pixel weight matrix as compilation data of the thermal map.
6. The method for compiling thermodynamic diagram data based on vector tiles as claimed in claim 5, wherein the step of performing weighted aggregation on the generated tile pixel data according to the weight field and the preset tile pixel precision to generate the tile weight data is preceded by the steps of:
acquiring an attribute value of a weight field corresponding to the vector tile data according to the thermal map;
and when the attribute value is empty, assigning a value to the weight field according to a preset weight value.
7. The method for compiling vector tile-based thermodynamic diagram data according to claim 2, wherein after the step of performing tile coordinate transformation on the tile vector data to generate vector tile data, further comprising:
and performing redundant storage on the vector tile data according to the maximum diffusion radius.
8. The method for compiling vector tile-based thermodynamic map data according to any one of claims 1 to 7, wherein after the step of performing pixel aggregation on the vector tile data according to a preset tile pixel precision to generate the compilation data of the thermodynamic map, the method further comprises:
and rendering the heat map according to the editing data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010770313.0A CN111915690A (en) | 2020-08-03 | 2020-08-03 | Thermodynamic diagram data reduction method based on vector tiles |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010770313.0A CN111915690A (en) | 2020-08-03 | 2020-08-03 | Thermodynamic diagram data reduction method based on vector tiles |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111915690A true CN111915690A (en) | 2020-11-10 |
Family
ID=73286487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010770313.0A Pending CN111915690A (en) | 2020-08-03 | 2020-08-03 | Thermodynamic diagram data reduction method based on vector tiles |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111915690A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010626A (en) * | 2021-04-27 | 2021-06-22 | 威创集团股份有限公司 | Thermodynamic diagram generation method, device, equipment and storage medium |
CN113345049A (en) * | 2021-08-04 | 2021-09-03 | 武大吉奥信息技术有限公司 | Thermodynamic diagram generation method based on land parcel |
CN114862663A (en) * | 2022-05-17 | 2022-08-05 | 浙江省测绘科学技术研究院 | Dynamic adjustment method for grid tile data precision |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090037441A1 (en) * | 2007-07-31 | 2009-02-05 | Microsoft Corporation | Tiled packaging of vector image data |
WO2013044938A1 (en) * | 2011-09-30 | 2013-04-04 | Houthoff Buruma Cooperatief U.A. | Method and system for providing a three-dimensional graphical user interface for display on a handheld device |
US20140253577A1 (en) * | 2013-03-08 | 2014-09-11 | Electronics And Telecommunications Research Institute | System and method for providing tile-map using electronic navigation chart |
EP3133510A1 (en) * | 2015-08-17 | 2017-02-22 | Palantir Technologies, Inc. | Interactive geospatial map |
US20170221239A1 (en) * | 2016-02-03 | 2017-08-03 | Joshua P. Lintz | System for geospatial mapping of cemetery properties |
CN110209856A (en) * | 2019-06-17 | 2019-09-06 | 广东电网有限责任公司清远供电局 | A kind of the map rendering method and device of O&M of transmitting electricity |
CN110716935A (en) * | 2019-10-09 | 2020-01-21 | 重庆市地理信息和遥感应用中心(重庆市测绘产品质量检验测试中心) | Track data analysis and visualization method and system based on online taxi appointment travel |
CN110737737A (en) * | 2019-09-19 | 2020-01-31 | 中国国土勘测规划院 | territorial earth vector data rendering method and system |
CN111090712A (en) * | 2019-12-17 | 2020-05-01 | 国汽(北京)智能网联汽车研究院有限公司 | Data processing method, device and equipment and computer storage medium |
-
2020
- 2020-08-03 CN CN202010770313.0A patent/CN111915690A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090037441A1 (en) * | 2007-07-31 | 2009-02-05 | Microsoft Corporation | Tiled packaging of vector image data |
WO2013044938A1 (en) * | 2011-09-30 | 2013-04-04 | Houthoff Buruma Cooperatief U.A. | Method and system for providing a three-dimensional graphical user interface for display on a handheld device |
US20140253577A1 (en) * | 2013-03-08 | 2014-09-11 | Electronics And Telecommunications Research Institute | System and method for providing tile-map using electronic navigation chart |
EP3133510A1 (en) * | 2015-08-17 | 2017-02-22 | Palantir Technologies, Inc. | Interactive geospatial map |
US20170221239A1 (en) * | 2016-02-03 | 2017-08-03 | Joshua P. Lintz | System for geospatial mapping of cemetery properties |
CN110209856A (en) * | 2019-06-17 | 2019-09-06 | 广东电网有限责任公司清远供电局 | A kind of the map rendering method and device of O&M of transmitting electricity |
CN110737737A (en) * | 2019-09-19 | 2020-01-31 | 中国国土勘测规划院 | territorial earth vector data rendering method and system |
CN110716935A (en) * | 2019-10-09 | 2020-01-21 | 重庆市地理信息和遥感应用中心(重庆市测绘产品质量检验测试中心) | Track data analysis and visualization method and system based on online taxi appointment travel |
CN111090712A (en) * | 2019-12-17 | 2020-05-01 | 国汽(北京)智能网联汽车研究院有限公司 | Data processing method, device and equipment and computer storage medium |
Non-Patent Citations (1)
Title |
---|
聂沛;陈广胜;景维鹏;: "矢量瓦片并行构建与分布式存储模型研究", 地球信息科学学报, vol. 22, no. 07, 21 July 2020 (2020-07-21), pages 1487 - 1496 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010626A (en) * | 2021-04-27 | 2021-06-22 | 威创集团股份有限公司 | Thermodynamic diagram generation method, device, equipment and storage medium |
CN113010626B (en) * | 2021-04-27 | 2023-12-05 | 威创集团股份有限公司 | Thermodynamic diagram generation method, device, equipment and storage medium |
CN113345049A (en) * | 2021-08-04 | 2021-09-03 | 武大吉奥信息技术有限公司 | Thermodynamic diagram generation method based on land parcel |
CN114862663A (en) * | 2022-05-17 | 2022-08-05 | 浙江省测绘科学技术研究院 | Dynamic adjustment method for grid tile data precision |
CN114862663B (en) * | 2022-05-17 | 2023-01-20 | 浙江省测绘科学技术研究院 | Dynamic adjustment method for grid tile data precision |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111915690A (en) | Thermodynamic diagram data reduction method based on vector tiles | |
CN110751696B (en) | Method, device, equipment and medium for converting BIM (building information modeling) model data into glTF (glTF) data | |
CN101719154B (en) | Grid structure-based spatial index establishing method and grid structure-based spatial index establishing system | |
CN112559667B (en) | Map editor, map engine, map editing system, map editing method, and storage medium | |
WO2021164233A1 (en) | Model rendering method, apparatus, and device, and computer readable storage medium | |
CN114020756B (en) | Remote sensing image real-time map service publishing method and device | |
CN104391991A (en) | Method for converting AutoCAD data into GIS spatial data | |
CN111815740A (en) | Map drawing method, system, terminal and storage medium | |
CN114723869B (en) | Image processing method and device | |
CN115268904A (en) | User interface design file generation method, device, equipment and medium | |
CN102004633B (en) | Method and device for processing control property | |
CN103915035B (en) | A kind of data transfer device and DTU | |
CN111950057A (en) | Loading method and device of Building Information Model (BIM) | |
CN114627262B (en) | Image generation method and system based on oblique grid data | |
CN110989886A (en) | Three-dimensional space grid selection method and device based on space map | |
CN104111951A (en) | Method and device for drawing grid pictures | |
CN116737852A (en) | Vector tile data-based vector drawing method and device and electronic equipment | |
CN114018243A (en) | Map data processing method, device, equipment and storage medium | |
CN112612427A (en) | Vehicle stop data processing method and device, storage medium and terminal | |
CN112015929A (en) | Raster data access method and device, electronic equipment and computer storage medium | |
CN115495469B (en) | Method and device for updating chart file and electronic equipment | |
CN111445551B (en) | Image design method and device, electronic equipment and storage medium | |
CN115965752B (en) | Method and device for generating environment data distribution map, storage medium and electronic equipment | |
CN117078825B (en) | Rendering modification method, system, equipment and medium on point cloud data line | |
CN116302579B (en) | Space-time big data efficient loading rendering method and system for Web end |
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 |