CN111090716A - Vector tile data processing method, device, equipment and storage medium - Google Patents

Vector tile data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111090716A
CN111090716A CN201911406151.6A CN201911406151A CN111090716A CN 111090716 A CN111090716 A CN 111090716A CN 201911406151 A CN201911406151 A CN 201911406151A CN 111090716 A CN111090716 A CN 111090716A
Authority
CN
China
Prior art keywords
target
tile
filtering rule
calculating
filtering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911406151.6A
Other languages
Chinese (zh)
Other versions
CN111090716B (en
Inventor
祁明亮
李志平
张义文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Founder International Beijing Co Ltd
Original Assignee
Founder International Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Founder International Beijing Co Ltd filed Critical Founder International Beijing Co Ltd
Priority to CN201911406151.6A priority Critical patent/CN111090716B/en
Publication of CN111090716A publication Critical patent/CN111090716A/en
Application granted granted Critical
Publication of CN111090716B publication Critical patent/CN111090716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume

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 obtained; calculating the space range of the request 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 layer in the space range; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein the front-end equipment generates a vector tile according to the target tile data. The tile generation efficiency and the performance of the vector tile service are improved.

Description

Vector tile data processing method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of tile maps, in particular to a vector tile data processing method, device, equipment and storage medium.
Background
With the continuous development of national economy and the continuous enrichment and improvement of national basic geographic information data, maps are used as visual carriers of data information and play an increasingly important role in upper-level decision making. The map is mainly drawn based on the grid tile technology and the vector tile technology.
However, the geographic element style of the grid tile technology is not easy to update, and a high-resolution map is not easy to obtain, and the vector tile technology is mostly adopted in practice. The vector tile technology is a new technology for map data request and rendering, vector data are transmitted in a certain format in a blocking mode, rendering and drawing are carried out at the front end, map generation is flexible and convenient, the use requirements of various resolution equipment can be met, and user experience is greatly improved.
Under the current environment, vector tiles are mainly generated by means of preprocessing and slicing vector data, so that request efficiency is improved, but the problems of large data quantity of generated tiles, low generation efficiency and the like generally exist. In addition, in the real-time vector tile data processing mode, all data are directly acquired from the spatial database according to the size of the front-end tile and the vector tile is generated, however, with the reduction of the scale, the larger the spatial range represented by a single tile is, the more and more queried data are, so that a large amount of spatial 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 image layers, in the related art, data of all image layers are queried and placed in tile data, which also causes redundant tile data and a situation that a single tile data is too large.
Disclosure of Invention
In view of the above, a method, an apparatus, a device and a storage medium for processing vector tile data are provided to solve the problems of low vector tile generation efficiency and poor performance of vector tile services.
The invention adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for processing vector tile data, where the method includes:
obtaining a tile request parameter;
calculating the space range of the request 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 parameter and the target distribution density of the target 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 a vector tile according to the target tile data.
In a second aspect, an embodiment of the present application provides a vector tile data processing apparatus, including:
a request parameter obtaining module for obtaining the tile request parameter;
the spatial range calculation module is used for calculating the spatial range of the request 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 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 the target tile data, wherein the front-end equipment generates the vector tile according to the target tile data.
In a third aspect, an embodiment of the present application provides an apparatus, including:
a processor, and a memory coupled to the processor;
the memory is configured to store a computer program for executing at least the vector tile data processing method according to the first aspect of the embodiments of the present application;
the processor is used for calling and executing the computer program in the memory.
In a fourth aspect, the present application provides a storage medium storing a computer program, and when the computer program is executed by a processor, the computer program implements the steps in the vector tile data processing method according to the first aspect.
By adopting the technical scheme, the space range of the request tile is calculated according to the acquired tile request parameters, so that the space ranges of other tiles do not need to be concerned; determining a target layer according to the layer display level filtering rule without calculating the target filtering rules of all 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, thereby realizing hierarchical filtering; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein compared with the tile data to be requested, the data volume of the target tile data is greatly reduced, and the front-end equipment generates the vector tile according to the target tile data. Therefore, filtering is performed in a spatial database query stage, tile generation efficiency is improved by reducing the data volume of a single tile, performance of vector tile service is improved, in addition, network transmission volume can be reduced in the process of sending the tile to the front end, and front end rendering effect is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for processing vector tile data according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for processing vector tile data according to an embodiment of the present invention;
FIG. 3 is a schematic structural 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 is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
First, an application process of the embodiment of the present application is explained, and a basic flow of the vector tile service is to receive a request including a level, a line number, and a column number from a front end, calculate a spatial range according to the level, the line number, and the column number, query spatial data in the range from a spatial database, generate tile data, return the tile data to the front end, and perform caching at a tile server. Based on this, in the embodiment of the application, filtering is performed in the query stage of the spatial database, so that the data size of a single tile is reduced, the tile service performance is improved, the response speed of the tile service is accelerated, and the visualization efficiency of the client is improved.
Examples
Fig. 1 is a flowchart of a vector tile data processing method according to an embodiment of the present invention, which may be executed 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 following steps:
s101, obtaining 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 an actual application process, a geographic image of a region to be processed is obtained, then slicing processing is performed on the geographic image of the region to be processed, tile information of each tile of each level is obtained, the tile information forms all tile data, and then query is performed on all tile data. In one specific example, the area to be treated may be a relevant area of the Haisher area of Beijing.
Illustratively, the front end may be a Tile OGC (Open geographic information Consortium) standard request of WMTS (Web Map Tile Service) protocol when sending the Tile request, for example.
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 which comprises a series of scales and is within a certain map/space range. The map tiles are organized in a pyramid structure, and each tile can be uniquely marked by a level, a row number and a column number. And when the map is translated and zoomed, the browser calculates the required tiles according to the pyramid rule, and the tiles are obtained from the tile server and spliced. Thus, map tiles are an optimization strategy that improves the map browsing user experience.
The tile request parameters also include a coordinate system, which may be a longitude and latitude coordinate system or a geodetic projection coordinate system. The tile request parameters include a coordinate system, which may be considered when calculating the tile space range, and then a coordinate system matching the coordinate system or a matching calculation rule is applied to calculate the tile space range.
And S102, calculating the space range of the request tile according to the tile request parameters.
Typically, each tile is uniquely labeled by a level, a row number, and a column number, and each tile corresponds to a different spatial range, e.g., tile 1 includes elements within area 1 in the spatial range and tile 2 includes elements within area 2 in the spatial range. After the processor receives the tile request parameters, the processor calculates the space range corresponding to the current tile according to the tile request parameters, so that the query range can be reduced, the query is not carried out in all tile data ranges, 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 elements such as characters or figures, and are stacked together in sequence to form the final effect of the page. The layers can accurately position elements on the page, and each layer comprises different elements, for example, the elements can be greenbelts, rivers, houses, road networks and the like. In a specific example, the coordinates of each element may be calculated, for example, the longitude and latitude coordinates of each green space, the longitude and latitude coordinates of each river, the longitude and latitude coordinates of each house, or the longitude and latitude coordinates of each road network.
Specifically, the layer display level filtering rule may be preset, or may be adjusted in real time according to an application requirement. And the layer display level filtering rule is a rule which can display which layer, or which layer has a good display effect, and the like. Therefore, in the embodiment of the present application, the target layer is determined according to the layer display level filtering rule. For example, if the determined target layer is a building, the tile data of the green map layer can be directly discarded, and the data processing efficiency is further improved. It should be noted that the target layers herein only represent the categories of the target layers, and the number of the target layers is not limited, for example, a plurality of target layers, that is, a plurality of buildings, may be included.
And S104, calculating a target filtering rule according to the tile request parameters and the target distribution density of the target layer in the space range.
The distribution density is the distribution density of the target map layer in a certain spatial range, for example, more buildings in the middle customs area indicate that the distribution density in this spatial range is higher, and the distribution density can be a factor of the distribution density.
Specifically, the layers are different, the spatial ranges are different, and the distribution densities are also different. The target map layer is exemplified by a building, the spatial range is exemplified by a middle village, and the target distribution density can be generally set according to the map layer and the spatial range. And a part of tile data which do not meet the requirements can be filtered by applying the target filtering rule, so that the data query efficiency is improved.
Optionally, the target filtering rule includes a primitive filtering rule and a distribution density filtering rule. The primitive is a basic graphic element, and any graphic expression of the basic graphic element is formed by circularly combining a plurality of different points, lines and plane patterns or the same pattern. The dot, line and plane patterns are basic figure elements. Illustratively, the primitive filtering rule refers to filtering according to the size of a primitive, and the distribution density filtering rule refers to filtering according to the distribution density of a spatial range. Thus, the vector data is filtered from two angles, and the hierarchical filtering is realized.
And 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 a vector tile according to the target tile data.
The request tile data is stored in the spatial database, the request tile data can be filtered according to the target filtering rule, some tile data which do not meet the condition are filtered, and then the screened data are used as target tile data. And sending the target tile data to the front end. And after receiving the target tile data, the front end generates a vector tile according to the vector tile generation rule.
By adopting the technical scheme, the space range of the request tile is calculated according to the acquired tile request parameters, so that the space ranges of other tiles do not need to be concerned; determining a target layer according to the layer display level filtering rule without calculating the target filtering rules of all 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, thereby realizing hierarchical filtering; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein compared with the tile data to be requested, the data volume of the target tile data is greatly reduced, and the front-end equipment generates the vector tile according to the target tile data. Therefore, filtering is performed in the spatial database query stage, tile generation efficiency is improved by reducing the data volume of a single tile, and the performance of vector tile service is improved. In addition, in the process of sending the data to the front end, the network transmission amount can be reduced, and the front end rendering effect is improved.
Fig. 2 is a flowchart of a vector tile data processing method according to another embodiment of the present invention, which is implemented on the basis of the foregoing embodiment. Referring to fig. 2, the method may specifically include the following steps:
s201, obtaining tile request parameters.
And S202, calculating the resolution according to the level in the tile request parameter.
In a specific example, the tile solution proposed by Google Map may be used in the embodiment of the present application, and the Map projection thereof is Web mercator projection. Therefore, for convenience, the Web mercator projection ignores the region with large north-south dipolar deformation in the mercator projection, and projects the elliptic earth into a square which becomes equal to the circumference of the equator on a plane, wherein the geodetic coordinate range of the square is [ -180, -85.05112877980659,180,85.05112877980659], and the projection coordinate range is [ -20037508.3427892, -20037508.3427892,20037508.3427892,20037508.3427892 ].
In particular, different resolutions of segmentation can be performed based on this projection coordinate system. Taking a world Map as an example, Google Map divides a world Map into 0 to 22 levels, each level corresponding to a tile pyramid level of a corresponding resolution. The calculation method of the pyramid Resolution of each level of the tile is as follows:
Figure BDA0002348696600000071
the pyramid of each layer has 4n256 tiles by 256, n is the pyramid level, that is, the tile level, and the tile division of each level can adopt a quadtree method, that is, the intersection point of the equator and the initial meridian is taken as a central line, and the map is divided into four parts continuously until the size of each grid is 256 by 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 for each level down.
And S203, determining corresponding ellipsoid parameters according to the coordinate system.
The commonly used parameters of the ellipsoid include a major semi-axis of the ellipse, a minor semi-axis of the ellipse, an ellipticity of the ellipse, a first eccentricity of the ellipse and a second eccentricity of the ellipse. The coordinate system is different, the ellipsoid parameter type and the calculation mode of the parameters may be different, so that the ellipsoid parameters are calculated according to the coordinate system in the tile request parameters.
And S204, calculating the space range of the request tile according to the resolution, the ellipsoid parameters, the row number and the column number.
Specifically, the spatial range of the request tile is calculated according to the calculated resolution, ellipsoid parameter, row number, and column number, and the specific calculation manner may refer to a calculation formula in the related art, which is not described herein again. In the actual application process, the selected coordinate systems are different, and the representation modes of the calculated spatial range are also different.
And S205, determining a target layer according to the layer display level filtering rule.
S206, aiming at the target layer, calculating the minimum primitive of the target layer according to the resolution and the level in the tile request parameter.
The target layer is 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 parameter. In a specific example, the areas of the target layers are different, the area of each target layer is obtained through calculation, and the target layer with the smallest area is used as the smallest primitive.
And S207, calculating a primitive filtering rule according to the minimum primitive.
Specifically, the filtering rule may be to filter the layer whose area of the layer is smaller than the area of the minimum primitive, or filter the layer whose area of the layer is smaller than a certain percentage of the area of the minimum primitive.
S208, according to the primitive filtering rule, comparing the area of each target layer in the tile data to be requested with the minimum primitive, 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 layers with the areas smaller than the minimum primitive are filtered, and the target layers with the areas larger than or equal to the minimum primitive are screened, so that the data included in the screened target layers are the target tile data. In a specific example, for area calculation of the layer of lines and faces, the area may be calculated according to a method of calculating a minimum outer rectangle.
S209, aiming at the target layer, calculating a distribution density filtering rule according to the target distribution density in the space range.
Specifically, the distribution density filtering rule may filter the image layer with the distribution density greater than the target distribution density, or filter the image layer with the distribution density greater than the target distribution density by a certain percentage.
S210, comparing the distribution density of each target layer in the tile data to be requested with the target distribution density according to a distribution density filtering rule, and filtering the target layers with the distribution densities larger than the target distribution density to determine the target tile data.
Specifically, during filtering, the distribution density of each target layer in the tile data to be requested is calculated, then each distribution density is compared with the target distribution density, the target layers with the distribution densities higher than the target distribution density are filtered, and the target layers with the distribution densities lower than the target distribution density are reserved. This shows that the efficiency of tile data query is improved by filtering out denser target layers within the spatial range.
It should be noted that, S206-S208 determine the specific implementation of the target tile data for applying the primitive filtering rule, and S209-S210 determine the implementation of the target tile data for applying the distribution density filtering rule, where the two have no obvious precedence before. In the actual application process, the two filtering rules are applied simultaneously, so that the data processing effect is better.
S211, performing thinning filtration on the target tile data; and the front-end equipment generates a vector tile according to the target tile data.
When processing vectorized data, there are often many duplicate data in the records, which brings inconvenience to further data processing. The redundant data wastes more storage space on the one hand and causes the graphic to be expressed to be unsmooth or not to meet the standard on the other hand. Therefore, the number of data points is reduced to the maximum by some rule under the condition of ensuring that the shape of the vector curve is not changed, and the process is called thinning. In the embodiment of the application, 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 increased, and the visualization efficiency of the client is improved. Therefore, under the condition of ensuring that the primitive is not changed, the data processing amount is reduced, and the processing speed of the front end is improved.
In the embodiment of the application, the spatial range of the request tile is calculated according to the resolution, the ellipsoid parameters, the row 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 the target tile data is determined by realizing graded filtering by using the primitive filtering rule and the distribution density filtering rule; and then, thinning and filtering are carried out on the target tile, so that the data volume is further reduced, and the situations of redundant tile data and overlarge data volume of a single tile 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 data size 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, which is suitable for executing 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 obtaining module 301, a spatial range calculating module 302, a target layer determining module 303, a target filtering rule calculating module 304 and a target tile data determining 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 request tile according to the tile request parameter; a target layer determining module 303, configured to determine a target layer according to the layer display level filtering rule; a target filtering rule calculating module 304, configured to calculate a target filtering rule according to the tile request parameter and the target distribution density of the target layer in the spatial range; a target tile data determining module 305, 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.
By adopting the technical scheme, the space range of the request tile is calculated according to the acquired tile request parameters, so that the space ranges of other tiles do not need to be concerned; determining a target layer according to the layer display level filtering rule without calculating the target filtering rules of all 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, thereby realizing hierarchical filtering; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein compared with the tile data to be requested, the data volume of the target tile data is greatly reduced, and the front-end equipment generates the vector tile according to the target tile data. Therefore, filtering is performed in a spatial database query stage, tile generation efficiency is improved by reducing the data volume of a single tile, performance of vector tile service is improved, in addition, network transmission volume can be reduced in the process of sending the tile to the front end, and front end rendering effect is improved.
The data processing device further 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;
correspondingly, the target filtering rule calculating module 304 includes a primitive filtering rule calculating sub-module and a distribution density filtering rule sub-module:
the target filtering rule calculating 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 comprises a resolution calculation module, specifically configured to calculate a resolution according to a level in the tile request parameter;
correspondingly, the primitive filtering rule calculating submodule is specifically configured to:
aiming at the target layer, calculating the minimum primitive of the target layer according to the resolution and the level in the tile request parameter;
and calculating a primitive filtering rule according to the minimum primitive.
Further, the target tile data determining module 305 is specifically configured to:
and comparing the area of each target layer in the tile data to be requested with the minimum primitive, and filtering the target layers with the areas smaller than the minimum primitive to determine the target tile data.
Further, the distribution density filtering rule sub-module is specifically configured to:
and aiming at the target layer, calculating a distribution density filtering rule according to the target distribution density in the space range.
Further, the target tile data determining module 305 is specifically configured to:
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 distribution densities larger than the target distribution density to determine the target tile data.
Further, the tile request parameters include a coordinate system, a level, a row number, and a column number; correspondingly, the spatial range calculation module 302 is specifically configured to:
determining corresponding ellipsoid parameters according to a 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.
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 corresponding functional modules and beneficial effects of the execution method.
An embodiment of the present invention further provides an apparatus, please refer to fig. 4, where fig. 4 is a schematic structural diagram of an apparatus, and as shown in fig. 4, 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 for executing at least the vector tile data processing method in the embodiment of the present invention; the processor 410 is used for calling and executing the computer program in the memory; the vector tile data processing and calculating method can comprise the following steps: obtaining a tile request parameter; calculating the space range of the request 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 layer in the space range; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein the front-end equipment generates a vector tile according to the target tile data.
The embodiment of the present invention further provides a storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the vector tile data processing method in the embodiment of the present invention are implemented; the vector tile data processing and calculating method can comprise the following steps: obtaining a tile request parameter; calculating the space range of the request 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 layer in the space range; and filtering the tile data to be requested according to a target filtering rule to determine target tile data, wherein the front-end equipment generates a vector tile according to the target tile data.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
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 alternate 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 should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (11)

1. A method of vector tile data processing, comprising:
obtaining a tile request parameter;
calculating the space range of the request 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 parameter and the target distribution density of the target 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 a vector tile according to the target tile data.
2. The method of claim 1, wherein after determining the target tile data, further comprising:
and performing thinning filtration 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 a target filtering rule according to the tile request parameter and the target distribution density of the target layer in the spatial range includes:
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. The method of claim 3, further comprising:
calculating a resolution according to a level in the tile request parameter;
correspondingly, the calculating the primitive filtering rule according to the tile request parameter and the target distribution density of the target layer in the spatial range includes:
aiming at the target layer, calculating a minimum primitive of the target layer according to the resolution and the level in the tile request parameter;
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 the target tile data comprises:
and according to the primitive filtering rule, comparing the area of each target layer in the tile data to be requested with the minimum primitive, and filtering the target layers with the areas smaller than the minimum primitive to determine the target tile data.
6. The method of claim 3, wherein the calculating a distribution density filter rule according to the tile request parameter and the target distribution density of the target layer over the spatial range comprises:
and aiming at the target image layer, calculating a distribution density filtering rule according to the target distribution density in the space range.
7. The method of claim 6, wherein filtering the tile data to be requested according to the target filtering rule to determine the target tile data comprises:
and according to the distribution density filtering rule, 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 distribution densities larger than the target distribution density to determine the target tile data.
8. The method of claim 4, wherein the tile request parameters further include a coordinate system, a row number, and a column number;
correspondingly, the calculating the spatial range of the request tile according to the tile request parameters includes:
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:
a request parameter obtaining module for obtaining the tile request parameter;
the spatial range calculation module is used for calculating the spatial range of the request 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 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 the target tile data, wherein the front-end equipment generates the vector tile according to the target tile data.
10. An apparatus, comprising:
a processor, and a memory coupled to the processor;
the memory for storing a computer program for performing at least the vector tile data processing method of any one of claims 1-8;
the processor is used for calling and executing the computer program in the memory.
11. A storage medium storing a computer program which, when executed by a processor, performs the steps of the vector tile data processing method according to any one of claims 1 to 8.
CN201911406151.6A 2019-12-31 2019-12-31 Vector tile data processing method, device, equipment and storage medium Active CN111090716B (en)

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 true CN111090716A (en) 2020-05-01
CN111090716B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112233240A (en) * 2020-10-29 2021-01-15 湖北亿咖通科技有限公司 Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment
CN112231426A (en) * 2020-10-13 2021-01-15 重庆紫光华山智安科技有限公司 Vector tile point data based updating method, system, medium and terminal
CN113761101A (en) * 2021-10-13 2021-12-07 史原东 System and method for custom map matching of vector tile electronic map
CN113987233A (en) * 2021-12-30 2022-01-28 成都国星宇航科技有限公司 Tile request method and device and electronic equipment
CN114998108A (en) * 2022-08-01 2022-09-02 广州城市信息研究所有限公司 Vector data optimization processing method and system
CN115018712A (en) * 2022-08-01 2022-09-06 广州城市信息研究所有限公司 Distributed scheduling method and system for map data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070014488A1 (en) * 2004-07-09 2007-01-18 Ching-Chien Chen Automatically and accurately conflating road vector data, street maps, and orthoimagery
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
US20190108669A1 (en) * 2017-10-09 2019-04-11 Mapbox, Inc. Storage of time-varying data as parametrized functions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070014488A1 (en) * 2004-07-09 2007-01-18 Ching-Chien Chen Automatically and accurately conflating road vector data, street maps, and orthoimagery
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
US20190108669A1 (en) * 2017-10-09 2019-04-11 Mapbox, Inc. Storage of time-varying data as parametrized functions
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)

* Cited by examiner, † Cited by third party
Title
葛银杰等: "基于四叉树算法的POI分级优化显示方法研究" *

Cited By (10)

* Cited by examiner, † Cited by third party
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
CN112233240A (en) * 2020-10-29 2021-01-15 湖北亿咖通科技有限公司 Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment
CN112233240B (en) * 2020-10-29 2021-10-22 湖北亿咖通科技有限公司 Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment
CN113761101A (en) * 2021-10-13 2021-12-07 史原东 System and method for custom map matching of vector tile electronic map
CN113987233A (en) * 2021-12-30 2022-01-28 成都国星宇航科技有限公司 Tile request method and device and electronic equipment
CN113987233B (en) * 2021-12-30 2022-03-29 成都国星宇航科技有限公司 Tile request method and device and electronic equipment
CN114998108A (en) * 2022-08-01 2022-09-02 广州城市信息研究所有限公司 Vector data optimization processing method and system
CN115018712A (en) * 2022-08-01 2022-09-06 广州城市信息研究所有限公司 Distributed scheduling method and system for map data
CN114998108B (en) * 2022-08-01 2022-11-15 广州城市信息研究所有限公司 Vector data optimization processing method and system
CN115018712B (en) * 2022-08-01 2022-11-15 广州城市信息研究所有限公司 Distributed scheduling method and system for map data

Also Published As

Publication number Publication date
CN111090716B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
CN111090716B (en) Vector tile data processing method, device, equipment and storage medium
CN109977179B (en) Method for realizing convergence and dispersion visualization of mass ground object mark points through layered grid division
CN112966134B (en) Remote sensing image data processing method, system and storage medium
CN113516769B (en) Virtual reality three-dimensional scene loading and rendering method and device and terminal equipment
CN112233240B (en) Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment
US20120206469A1 (en) Efficient pre-computing of simplified vector data for rendering at multiple zoom levels
CN108038249B (en) Global map data storage organization method and call method
US11703352B2 (en) Vector tile pyramiding
CN110990612B (en) Method and terminal for rapidly displaying vector big data
CN112579885B (en) Ocean forecast information service method based on user interest points and storage medium
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
CN111859187A (en) POI query method, device, equipment and medium based on distributed graph database
CN112115226B (en) Map rendering method and map rendering device
CN112598800A (en) Air quality mode forecast data acquisition method and device based on terrain
CN114611036B (en) Gis data processing and rendering method
CN109241207B (en) Method and device for displaying data on map
CN111966853B (en) Management method of remote sensing image
CN115408382A (en) Vector space information gridding storage management method for large-scale satellite data
CN111767295B (en) Map data processing method, device, computing equipment and medium
CN114220017A (en) Remote sensing data scale self-adaptive adjusting method and device, storage medium and equipment
CN115062172B (en) Augmented reality image data searching method and system based on position
CN114840629B (en) Resident position correction method and device, electronic equipment and readable storage medium
CN111415414B (en) Three-dimensional space information processing method, equipment and storage medium thereof

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