CN111090716B - Vector tile data processing method, device, equipment and storage medium - Google Patents
Vector tile data processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111090716B CN111090716B CN201911406151.6A CN201911406151A CN111090716B CN 111090716 B CN111090716 B CN 111090716B CN 201911406151 A CN201911406151 A CN 201911406151A CN 111090716 B CN111090716 B CN 111090716B
- Authority
- CN
- China
- Prior art keywords
- target
- tile
- filtering
- tile data
- distribution density
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/215—Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/05—Geographic models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Geometry (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Remote Sensing (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Computer Graphics (AREA)
- Image Generation (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a vector tile data processing method, a device, equipment and a storage medium, wherein in the method, tile request parameters are acquired; calculating the space range of the requested tile according to the tile request parameters; determining a target layer according to the layer display level filtering rule; calculating a target filtering rule according to the tile request parameters and the target distribution density of the target image layer in the space range; and filtering the tile data to be requested according to the target filtering rule to determine target tile data, wherein the front-end equipment generates vector tiles according to the target tile data. The tile generation efficiency and the performance of vector tile services are improved.
Description
Technical Field
The invention relates to the technical field of tile maps, in particular to a vector tile data processing method, a vector tile data processing device, vector tile data processing equipment and a vector tile data storage medium.
Background
With the continuous development of national economy and the continuous enrichment and perfection of national basic geographic information data, the map is used as a carrier for data information visualization, and plays an increasingly important role in superior decision making. Map drawing is based mainly on grid tile technology and vector tile technology.
However, the geographic element style of the grid tile technology is not easy to update, and a map with high resolution is not easy to obtain, and in practice, the vector tile technology is mostly adopted. The vector tile technology is a new technology for map data request and rendering, and the vector data is transmitted in blocks in a certain format, and is rendered and drawn at the front end, so that map generation is more flexible and convenient, the use requirements of various resolution devices can be met, and the user experience is greatly improved.
Under the current environment, vector tiles are mainly generated by preprocessing and slicing vector data, so that the request efficiency is improved, but the problems of large tile data generation amount, low generation efficiency and the like generally exist. In addition, in the real-time vector tile data processing mode, all data are directly obtained from a space database according to the size of a front-end tile and vector tiles are generated, however, as the scale is reduced, the larger the space range represented by a single tile is, the more and more data are queried, so that a large amount of space data exist in the single tile under a small scale, and the data production efficiency is greatly reduced. In addition, in the case of multiple layers, in the related art, all layers of data are queried out and put into the tile data, which also causes redundancy of the tile data and too large a single tile data.
Disclosure of Invention
In view of the above, a method, apparatus, device and storage medium for vector tile data processing are provided to solve the problems of low vector tile generation efficiency and poor performance of vector tile service.
The invention adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a vector tile data processing method, where the method includes:
acquiring tile request parameters;
calculating the space range of the requested tile according to the tile request parameters;
determining a target layer according to the layer display level filtering rule;
calculating a target filtering rule according to the tile request parameters and the target distribution density of the target image layer in the space range;
and filtering the tile data to be requested according to the target filtering rule to determine target tile data, wherein the front-end equipment generates vector tiles according to the target tile data.
In a second aspect, an embodiment of the present application provides a vector tile data processing apparatus, including:
the request parameter acquisition module is used for acquiring the tile request parameters;
the space range calculation module is used for calculating the space range of the requested tile according to the tile request parameters;
the target layer determining module is used for determining a target layer according to the layer display level filtering rule;
the target filtering rule calculation module is used for calculating a target filtering rule according to the tile request parameters and the target distribution density of the target image layer in the space range;
and the target tile data determining module is used for filtering the tile data to be requested according to the target filtering rule so as to determine target tile data, wherein the front-end equipment generates vector tiles according to the target tile data.
In a third aspect, embodiments of the present application provide an apparatus, including:
a processor, and a memory coupled to the processor;
the memory is used for storing a computer program, and the computer program is at least used for executing the vector tile data processing method according to the first aspect of the embodiment of the application;
the processor is configured to invoke and execute the computer program in the memory.
In a fourth aspect, embodiments of the present application provide a storage medium storing a computer program, where the computer program implements the steps of the vector tile data processing method according to the first aspect when the computer program is executed by a processor.
According to the technical scheme, the space range of the requested tile is calculated according to the acquired tile request parameters, so that the space range of other tiles does not need to be concerned; determining target layers according to the layer display level filtering rules, and calculating the target filtering rules of all the layers; calculating a target filtering rule according to the tile request parameters and the target distribution density of the target layer in the space range, so that hierarchical filtering is realized; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein the data volume of the target tile data is greatly reduced compared with the tile data to be requested, and the front-end equipment generates vector tiles according to the target tile data. Therefore, filtering is performed in the space database query stage, the tile generation efficiency is improved by reducing the data volume of a single tile, the performance of vector tile service is improved, in addition, the network transmission volume can be reduced in the process of sending to the front end, and the rendering effect of the front end is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a vector tile data processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another vector tile data processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a vector tile data processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
Firstly, describing an application process of the embodiment of the application, a basic flow of vector tile service is to receive a request containing a level, a line number and a column number from a front end, calculate a space range according to the level, the line number and the column number, query space data under the range from a space database, generate tile data, return the tile data to the front end, and cache the tile data at a tile server end. Based on the above, in the embodiment of the application, filtering is performed in the space database query stage, so that the data size of a single tile is reduced, the tile service performance is improved, the response speed of tile service is accelerated, and the visualization efficiency of a client is improved.
Examples
Fig. 1 is a flowchart of a vector tile data processing method according to an embodiment of the present invention, where the method may be performed by a vector tile data processing apparatus according to an embodiment of the present invention, and the apparatus may be implemented in software and/or hardware. Referring to fig. 1, the method may specifically include the steps of:
s101, acquiring tile request parameters.
Typically, the front end sends a tile request to the processor, which responds to the tile request for a query of tile data. In the actual application process, firstly, a geographic image of an area to be processed is acquired, then, the geographic image of the area to be processed is sliced, tile information of each tile of each level is obtained, the tile information forms all tile data, and then, query is carried out in all tile data. In a specific example, the area to be treated may be a relevant area of a sea lake area in beijing city.
Illustratively, the front end, when sending a tile request, may be, for example, a tile OGC (Open Geospatial Consortium, open geospatial information alliance) standard request of WMTS (Web Map Tile Service, map tile services) protocol.
Optionally, the tile request parameters include a coordinate system, a level, a row number, and a column number. Wherein, the map tile is a map slice file containing a series of scales and within a certain map/space range. Map tiles are organized in a pyramid structure, each tile being uniquely identifiable by a level, a row number and a column number. When the map is translated and scaled, the browser calculates the required tiles according to pyramid rules, and acquires and splices the tiles from the tile server. Thus, map tiles are an optimization strategy that improves the map browsing user experience.
The tile request parameter also comprises a coordinate system, which can be a longitude and latitude coordinate system or a ground projection coordinate system. The tile request parameters include a coordinate system that may be considered in calculating the tile space range, and then a coordinate system matching the coordinate system or a matching calculation rule may be applied to calculate the tile space range.
S102, calculating the space range of the requested tile according to the tile request parameters.
Typically, each tile is uniquely identifiable by a level, a row number, and a column number, and each tile corresponds to a different spatial extent, e.g., tile 1 includes elements within region 1 in its spatial extent and tile 2 includes elements within region 2 in its spatial extent. After the processor receives the tile request parameters, the space range corresponding to the current tile is calculated according to the tile request parameters, so that the query range can be reduced, the query is not performed in the whole tile data range, and the query efficiency is improved.
S103, determining a target layer according to the layer display level filtering rule.
Wherein, the layers are like films containing characters or graphics, and a sheet Zhang An is sequentially stacked together to form the final effect of the page. The layers can accurately position elements on the page, and the elements included in each layer are different, for example, the elements can be greenbelts, rivers, houses, road networks and the like. In a specific example, coordinates of each element may be calculated, for example, longitude and latitude coordinates of each greenfield, longitude and latitude coordinates of each river, longitude and latitude coordinates of each house, or longitude and latitude coordinates of each road network.
Specifically, the filtering rule of the layer display level can be preset or can be adjusted in real time according to the application requirement. The layer display level filtering rule is a rule that which layer can be displayed or which layer has good display effect. Thus, in the embodiments of the present application, the target layer is determined according to the layer display level filtering rules. For example, if the determined target layer is a building, tile data of the green map layer can be directly discarded, so that the data processing efficiency is further improved. It should be noted that the target layer herein merely represents a category of the target layer, and does not limit the number of target layers, for example, a plurality of target layers, that is, a plurality of buildings may be included.
S104, calculating a target filtering rule according to the tile request parameters and the target distribution density of the target image layer in the space range.
The distribution density is the distribution density of the target layer in a certain space range, for example, more buildings in the middle-guan village indicate that the distribution density in the space range is higher, and the distribution density can be used as a consideration factor of the distribution density.
Specifically, the layers are different, the spatial ranges are different, and the distribution densities are also different. The target layer is exemplified by a building, the village in the space range is exemplified by a target distribution density which can be generally set according to the layer and the space range. And by applying the target filtering rule, a part of tile data which does not meet the requirements can be filtered, so that the data query efficiency is improved.
Optionally, the target filtering rules include primitive filtering rules and distribution density filtering rules. Wherein, the graphic element refers to a basic graphic element, and any graphic expression is formed by circularly combining a plurality of different point, line and surface patterns or the same pattern. The dot, line and plane patterns are basic graphic elements. Illustratively, the primitive filtering rule refers to filtering according to primitive size, and the distribution density filtering rule refers to filtering according to distribution density of a spatial range. Thus, vector data is filtered from two angles, and hierarchical filtering is realized.
S105, filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein the front-end equipment generates vector tiles according to the target tile data.
The requested tile data is stored in a spatial database, at this time, the requested tile data may be filtered according to the target filtering rule, some tile data that does not meet the condition may be filtered, and then the filtered data may be used as target tile data. The target tile data is sent to the front end. And after receiving the target tile data, the front end generates a vector tile according to a vector tile generation rule.
According to the technical scheme, the space range of the requested tile is calculated according to the acquired tile request parameters, so that the space range of other tiles does not need to be concerned; determining target layers according to the layer display level filtering rules, and calculating the target filtering rules of all the layers; calculating a target filtering rule according to the tile request parameters and the target distribution density of the target layer in the space range, so that hierarchical filtering is realized; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein the data volume of the target tile data is greatly reduced compared with the tile data to be requested, and the front-end equipment generates vector tiles according to the target tile data. Therefore, filtering is performed in the space database query stage, the tile generation efficiency is improved by reducing the data volume of single tiles, and the performance of vector tile service is improved. In addition, in the process of sending to the front end, the network transmission quantity can be reduced, and the rendering effect of the front end is improved.
Fig. 2 is a flowchart of a vector tile data processing method according to still another embodiment of the present invention, where the present embodiment is implemented on the basis of the foregoing embodiments. Referring to fig. 2, the method may specifically include the steps of:
s201, acquiring tile request parameters.
S202, calculating the resolution according to the level in the tile request parameters.
In a specific example, the tile solution proposed by Google Map may be adopted in the embodiments of the present application, and the Map projection adopts Web mercator projection. Thus, for convenience, the Web Mokato projection ignores the region of greater distortion of the north and south poles in the Mokato projection, projects an elliptical earth into a square on a plane that becomes equal to the equatorial circumference, the square having a geodetic coordinate range of [ -180, -85.05112877980659,180,85.05112877980659], and a projection coordinate range of [ -20037508.3427892, -20037508.3427892,20037508.3427892,20037508.3427892].
In particular, segmentation with different resolutions can be performed based on the projection coordinate system. Taking a world Map as an example, google Map divides a world Map into 0 to 22 levels, each corresponding to a tile pyramid layer of corresponding resolution. The Resolution of the pyramid of each level tile is calculated as follows:
each layer of pyramid has 4 n 256 x 256 tiles, n is the level of the pyramid, that is, the tile level, and each level of tile division may use a quadtree method, that is, using the intersection of the equator and the primary meridian as the midline, the map is continuously divided into four parts until each grid size is 256 x 256. For example, a level 0 world map is represented by one tile, a level 1 world map is represented by 4 tiles, and so on down each level.
S203, determining corresponding ellipsoid parameters according to the coordinate system.
Among the commonly used ellipsoidal parameters are the major half axis of the ellipse, the minor half axis of the ellipse, the ellipticity of the ellipse, the first eccentricity of the ellipse, and the second eccentricity of the ellipse. The coordinate systems are different, and the types of the ellipsoid parameters and the calculation modes of the parameters may be different, so that when calculating the ellipsoid parameters, the calculation is performed according to the coordinate system in the tile request parameters.
S204, calculating the space range of the request tile according to the resolution, the ellipsoid parameters, the line number and the column number.
Specifically, the spatial range of the request tile is calculated according to the calculated resolution, the ellipsoid parameter, the line number and the column number, and the specific calculation mode can refer to a calculation formula in the related art, which is not described herein again. In the practical application process, the selected coordinate systems are different, and the calculated space ranges are different in representation mode.
S205, determining a target layer according to the layer display level filtering rule.
S206, calculating the minimum primitive of the target layer according to the resolution and the level in the tile request parameters aiming at the target layer.
The target layer takes a building as an example, and here the minimum primitive of the target layer is calculated according to the resolution and the level in the request parameters. In a specific example, the areas of the target layers are different, the area of each target layer is calculated, and the target layer with the smallest area is taken as the smallest primitive.
S207, calculating a primitive filtering rule according to the minimum primitive.
Specifically, the filtering rule may be to filter the layer whose layer area is smaller than the area of the minimum primitive, or filter the layer whose layer area is smaller than a certain percentage of the area of the minimum primitive.
S208, comparing the area of each target layer in the tile data to be requested with the minimum primitive according to the primitive filtering rule, and filtering the target layers with the areas smaller than the minimum primitive to determine the target tile data.
Specifically, the area of each target layer in the tile data to be requested is calculated, then the area of each target layer is compared with the minimum primitive, the target layer with the area smaller than the minimum primitive is filtered, and the target layer with the area larger than or equal to the minimum primitive is screened, so that the data included in the screened target layer is the target tile data. In a specific example, for the area calculation of the line and plane layers, the area may be calculated according to a method of calculating the minimum outside rectangle.
S209, calculating a distribution density filtering rule according to the target distribution density in the space range aiming at the target layer.
Specifically, the distribution density filtering rule may be to filter the layers with the distribution density greater than the target distribution density, or filter the layers with the distribution density greater than a certain percentage of the target distribution density.
S210, comparing the distribution density of each target layer in the tile data to be requested with the target distribution density according to the distribution density filtering rule, and filtering the target layers with the target distribution density larger than the target distribution density to determine the target tile data.
Specifically, when filtering is performed, calculating the distribution density of each target layer in the tile data to be requested, comparing each distribution density with the target distribution density, filtering the target layer with the distribution density larger than the target distribution density, and reserving the target layer with the distribution density smaller than the target distribution density. This shows that filtering out the denser target layers in the spatial range improves the efficiency of tile data querying.
It should be noted that, S206-S208 are specific implementations of determining the target tile data by applying the primitive filtering rule, and S209-S210 are implementations of determining the target tile data by applying the distribution density filtering rule, which have no obvious precedence relationship before. In the actual application process, the two filtering rules are applied simultaneously, so that the data processing effect is better.
S211, performing thinning and filtering on target tile data; wherein the front-end device generates vector tiles from the target tile data.
In this case, when the vectorized data is processed, many repeated data often exist in the record, which brings about many inconveniences for further data processing. The redundant data wastes more memory space on the one hand and causes the graphics to be expressed to be not smooth or to be out of compliance on the other hand. Therefore, the number of data points is reduced to the maximum extent under the condition of ensuring that the shape of the vector curve is unchanged through a certain rule, and the process is called thinning. In the embodiment of the application, the target data can be thinned, so that the data size of a single tile is reduced, the front end receives less data, the tile service performance is improved, the response speed of the tile service is accelerated, and the visualization efficiency of the client is improved. Therefore, the data processing amount is reduced and the processing speed of the front end is improved under the condition of ensuring that the primitives are unchanged.
In the embodiment of the application, the spatial range of the request tile is calculated according to the resolution, the ellipsoid parameters, the line number, the column number and the like, so that the calculated spatial range is more accurate; then, calculating a primitive filtering rule according to the minimum primitive and calculating a distribution density filtering rule according to the target distribution density, so that hierarchical filtering is realized by using the primitive filtering rule and the distribution density filtering rule to determine the target tile data; and then the target tile is subjected to thinning and filtering, so that the data volume is further reduced, and the situations of tile data redundancy and overlarge single tile data volume are avoided. The response speed of the front end in the rendering process is improved, and the problems of blocking and the like are avoided.
In addition, compared with the existing vector tile generation technology, the vector tile generation technology has the advantages that the data volume of the tile is smaller, the performance of vector tile service is higher, the service response is faster, and the performance of vector data query and visualization can be greatly improved.
Fig. 3 is a schematic structural diagram of a vector tile data processing apparatus according to an embodiment of the present invention, where the apparatus is adapted to perform a vector tile data processing method according to an embodiment of the present invention. As shown in fig. 3, the apparatus may specifically include: a request parameter acquisition module 301, a spatial range calculation module 302, a target layer determination module 303, a target filtering rule calculation module 304, and a target tile data determination module 305.
The request parameter obtaining module 301 is configured to obtain a tile request parameter; a spatial range calculation module 302, configured to calculate a spatial range of the requested tile according to the tile request parameter; a target layer determining module 303, configured to determine a target layer according to a layer display level filtering rule; the target filtering rule calculation module 304 is configured to calculate a target filtering rule according to the tile request parameter and a target distribution density of the target layer in a spatial range; the target tile data determining module 305 is configured to filter the tile data to be requested according to a target filtering rule to determine target tile data, where the front-end device generates a vector tile according to the target tile data.
According to the technical scheme, the space range of the requested tile is calculated according to the acquired tile request parameters, so that the space range of other tiles does not need to be concerned; determining target layers according to the layer display level filtering rules, and calculating the target filtering rules of all the layers; calculating a target filtering rule according to the tile request parameters and the target distribution density of the target layer in the space range, so that hierarchical filtering is realized; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein the data volume of the target tile data is greatly reduced compared with the tile data to be requested, and the front-end equipment generates vector tiles according to the target tile data. Therefore, filtering is performed in the space database query stage, the tile generation efficiency is improved by reducing the data volume of a single tile, the performance of vector tile service is improved, in addition, the network transmission volume can be reduced in the process of sending to the front end, and the rendering effect of the front end is improved.
Further, the system also comprises a thinning module for thinning and filtering the target tile data after determining the target tile data.
Further, the target filtering rule comprises a primitive filtering rule and a distribution density filtering rule;
accordingly, the target filtering rule calculation module 304 includes a primitive filtering rule calculation sub-module and a distribution density filtering rule sub-module:
the target filtering rule calculation module 304 is specifically configured to calculate a primitive filtering rule and a distribution density filtering rule according to the tile request parameter and the target distribution density of the target layer in the spatial range.
Further, the system also comprises a resolution calculation module, which is specifically used for calculating the resolution according to the level in the tile request parameters;
correspondingly, the primitive filtering rule calculation submodule is specifically used for:
for the target layer, calculating the minimum primitive of the target layer according to the resolution and the level in the tile request parameter;
the primitive filtering rules are calculated from the minimum primitives.
Further, the target tile data determining module 305 is specifically configured to:
comparing the area of each target layer in the tile data to be requested with the minimum primitive, and filtering the target layers with areas smaller than the minimum primitive to determine the target tile data.
Further, the distribution density filtering rule submodule is specifically configured to:
and calculating a distribution density filtering rule according to the target distribution density in the space range aiming at the target layer.
Further, the target tile data determining module 305 is specifically configured to:
and comparing the distribution density of each target image layer in the tile data to be requested with the target distribution density, and filtering the target image layers with the target distribution density larger than the target distribution density to determine the target tile data.
Further, the tile request parameters include a coordinate system, a level, a line number, and a column number; accordingly, the spatial range calculation module 302 is specifically configured to:
determining corresponding ellipsoid parameters according to the coordinate system;
and calculating the space range of the request tile according to the resolution, the ellipsoid parameters, the line number and the column number.
The vector tile data processing device provided by the embodiment of the invention can execute the vector tile data processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
An embodiment of the present invention further provides an apparatus, referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus, as shown in fig. 4, where the apparatus includes: a processor 410 and a memory 420 coupled to the processor 410; the memory 420 is used for storing a computer program at least for executing the vector tile data processing method in the embodiment of the present invention; the processor 410 is used to call and execute the computer program in the memory; the vector tile data processing and calculating method can comprise the following steps: acquiring tile request parameters; calculating the space range of the requested tile according to the tile request parameters; determining a target layer according to the layer display level filtering rule; calculating a target filtering rule according to the tile request parameters and the target distribution density of the target image layer in the space range; and filtering the tile data to be requested according to the target filtering rule to determine target tile data, wherein the front-end equipment generates vector tiles according to the target tile data.
The embodiment of the invention also provides a storage medium, which stores a computer program, and when the computer program is executed by a processor, each step in the vector tile data processing method in the embodiment of the invention is realized; the vector tile data processing and calculating method can comprise the following steps: acquiring tile request parameters; calculating the space range of the requested tile according to the tile request parameters; determining a target layer according to the layer display level filtering rule; calculating a target filtering rule according to the tile request parameters and the target distribution density of the target image layer in the space range; and filtering the tile data to be requested according to the target filtering rule to determine target tile data, wherein the front-end equipment generates vector tiles according to the target tile data.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "plurality" means at least two.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.
Claims (11)
1. A method for vector tile data processing, comprising:
acquiring tile request parameters;
calculating the space range of the requested tile according to the tile request parameters;
determining a target layer according to the layer display level filtering rule;
calculating a target filtering rule according to the tile request parameters and the target distribution density of the target image layer in the space range;
and filtering the tile data to be requested according to the target filtering rule to determine target tile data, wherein the front-end equipment generates vector tiles according to the target tile data.
2. The method of claim 1, wherein after determining the target tile data, further comprising:
and performing thinning filtering on the target tile data.
3. The method of claim 1, wherein the target filtering rules include primitive filtering rules and distribution density filtering rules;
correspondingly, the calculating the target filtering rule according to the tile request parameter and the target distribution density of the target image layer in the space range comprises:
and calculating the primitive filtering rule and the distribution density filtering rule according to the tile request parameters and the target distribution density of the target layer in the space range.
4. A method according to claim 3, further comprising:
calculating resolution according to the level in the tile request parameters;
correspondingly, the calculating the primitive filtering rule according to the tile request parameter and the target distribution density of the target layer in the space range comprises:
calculating a minimum primitive of the target layer according to the resolution and the level in the tile request parameter for the target layer;
and calculating a primitive filtering rule according to the minimum primitive.
5. The method of claim 4, wherein filtering the tile data to be requested according to the target filtering rule to determine target tile data comprises:
and comparing the area of each target layer in the tile data to be requested with the minimum primitive according to the primitive filtering rule, and filtering the target layers with areas smaller than the minimum primitive to determine the target tile data.
6. The method of claim 3 wherein said calculating a distribution density filtering rule based on said tile request parameters and a target distribution density of said target layer over said spatial range comprises:
and calculating a distribution density filtering rule according to the target distribution density in the space range aiming at the target layer.
7. The method of claim 6, wherein filtering the tile data to be requested according to the target filtering rule to determine target tile data comprises:
and comparing the distribution density of each target layer in the tile data to be requested with the target distribution density, and filtering the target layers with the target distribution density larger than the target distribution density to determine the target tile data.
8. The method of claim 4 wherein the tile request parameters further comprise a coordinate system, a row number, and a column number;
correspondingly, the calculating the spatial range of the requested tile according to the tile request parameter comprises the following steps:
determining corresponding ellipsoid parameters according to the coordinate system;
and calculating the space range of the request tile according to the resolution, the ellipsoid parameters, the row number and the column number.
9. A vector tile data processing apparatus, comprising:
the request parameter acquisition module is used for acquiring the tile request parameters;
the space range calculation module is used for calculating the space range of the requested tile according to the tile request parameters;
the target layer determining module is used for determining a target layer according to the layer display level filtering rule;
the target filtering rule calculation module is used for calculating a target filtering rule according to the tile request parameters and the target distribution density of the target image layer in the space range;
and the target tile data determining module is used for filtering the tile data to be requested according to the target filtering rule so as to determine target tile data, wherein the front-end equipment generates vector tiles according to the target tile data.
10. An apparatus, comprising:
a processor, and a memory coupled to the processor;
the memory is used for storing a computer program at least for executing the vector tile data processing method of any one of claims 1-8;
the processor is configured to invoke and execute the computer program in the memory.
11. A storage medium storing a computer program which, when executed by a processor, implements the steps of the vector tile data processing method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911406151.6A CN111090716B (en) | 2019-12-31 | 2019-12-31 | Vector tile data processing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911406151.6A CN111090716B (en) | 2019-12-31 | 2019-12-31 | Vector tile data processing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111090716A CN111090716A (en) | 2020-05-01 |
CN111090716B true CN111090716B (en) | 2023-05-05 |
Family
ID=70396995
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911406151.6A Active CN111090716B (en) | 2019-12-31 | 2019-12-31 | Vector tile data processing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111090716B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112231426A (en) * | 2020-10-13 | 2021-01-15 | 重庆紫光华山智安科技有限公司 | Vector tile point data based updating method, system, medium and terminal |
CN112233240B (en) * | 2020-10-29 | 2021-10-22 | 湖北亿咖通科技有限公司 | Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment |
CN113761101B (en) * | 2021-10-13 | 2024-07-02 | 史原东 | Custom map matching system and method for vector tile electronic map |
CN114064836A (en) * | 2021-11-25 | 2022-02-18 | 重庆宝图科技发展有限公司 | Method for improving off-line map display stability |
CN113987233B (en) * | 2021-12-30 | 2022-03-29 | 成都国星宇航科技有限公司 | Tile request method and device and electronic equipment |
CN115080779A (en) * | 2022-05-11 | 2022-09-20 | 中科星图股份有限公司 | Vector tile drawing method, device and equipment based on webpage digital earth |
CN115018712B (en) * | 2022-08-01 | 2022-11-15 | 广州城市信息研究所有限公司 | Distributed scheduling method and system for map data |
CN114998108B (en) * | 2022-08-01 | 2022-11-15 | 广州城市信息研究所有限公司 | Vector data optimization processing method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102607569A (en) * | 2012-01-17 | 2012-07-25 | 光庭导航数据(武汉)有限公司 | Method for automatically generating data of multiple small scales by using large scale water system in navigation |
CN105550344A (en) * | 2015-12-24 | 2016-05-04 | 中科宇图科技股份有限公司 | Grid and weight relation-based vector point element thinning method |
CN108363808A (en) * | 2018-03-07 | 2018-08-03 | 浙江科澜信息技术有限公司 | The dynamic dispatching of mass data and display methods, device, equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7660441B2 (en) * | 2004-07-09 | 2010-02-09 | Southern California, University | System and method for fusing geospatial data |
US10339691B2 (en) * | 2017-10-09 | 2019-07-02 | Mapbox, Inc. | Storage of time-varying data as parametrized functions |
-
2019
- 2019-12-31 CN CN201911406151.6A patent/CN111090716B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102607569A (en) * | 2012-01-17 | 2012-07-25 | 光庭导航数据(武汉)有限公司 | Method for automatically generating data of multiple small scales by using large scale water system in navigation |
CN105550344A (en) * | 2015-12-24 | 2016-05-04 | 中科宇图科技股份有限公司 | Grid and weight relation-based vector point element thinning method |
CN108363808A (en) * | 2018-03-07 | 2018-08-03 | 浙江科澜信息技术有限公司 | The dynamic dispatching of mass data and display methods, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
葛银杰等.基于四叉树算法的POI分级优化显示方法研究.测绘与空间地理信息.2017,第40卷(第03期),第160-162页. * |
Also Published As
Publication number | Publication date |
---|---|
CN111090716A (en) | 2020-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111090716B (en) | Vector tile data processing method, device, equipment and storage medium | |
CN110347769B (en) | Processing method, device, equipment and storage medium for multi-level map tiles | |
US8078641B2 (en) | Adjusting spatial operations based on map density | |
CN112233240B (en) | Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment | |
US12031836B2 (en) | Map data adjustments for anomaly correction | |
US9129428B2 (en) | Map tile selection in 3D | |
CN112579885B (en) | Ocean forecast information service method based on user interest points and storage medium | |
CN112966134A (en) | Remote sensing image data processing method, system and storage medium | |
WO2015110319A1 (en) | Methods, apparatuses and computer program products for three dimensional segmentation and textured modeling of photogrammetry surface meshes | |
CN112069285B (en) | Map generation method and device based on three-dimensional high-precision map slice and electronic equipment | |
US20240310184A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN112115226B (en) | Map rendering method and map rendering device | |
CN114611036A (en) | Gis data processing and rendering method | |
CN112085826A (en) | Efficient three-dimensional space grid rendering method and device | |
US10067950B1 (en) | Systems and methods for efficiently organizing map styling information | |
CN115471617A (en) | Local updating method for large-scene real-scene three-dimensional slice data | |
CN112598800A (en) | Air quality mode forecast data acquisition method and device based on terrain | |
CN116246069B (en) | Method and device for self-adaptive terrain point cloud filtering, intelligent terminal and storage medium | |
US10460427B2 (en) | Converting imagery and charts to polar projection | |
CN111767295B (en) | Map data processing method, device, computing equipment and medium | |
CN113495935A (en) | Terrain slicing method and system based on irregular triangularization mesh generation | |
JP2015212964A (en) | Information processing device, method and computer program | |
CN114840629B (en) | Resident position correction method and device, electronic equipment and readable storage medium | |
Liu et al. | Fusing multiscale charts into 3D ENC systems based on underwater topography and remote sensing image | |
CN113313829B (en) | Rapid construction processing method and device for display model |
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 |