CN109002452A - Map tile update method, device and computer readable storage medium - Google Patents
Map tile update method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN109002452A CN109002452A CN201711077419.7A CN201711077419A CN109002452A CN 109002452 A CN109002452 A CN 109002452A CN 201711077419 A CN201711077419 A CN 201711077419A CN 109002452 A CN109002452 A CN 109002452A
- Authority
- CN
- China
- Prior art keywords
- tile
- geographical entity
- map
- metadata
- entity
- 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
Links
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
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Processing Or Creating Images (AREA)
- Instructional Devices (AREA)
Abstract
The invention discloses a kind of map tile update method, device and computer readable storage mediums, belong to map field.The described method includes: being updated to target tile metadata, and update the tile status of target tile metadata when receiving the geographical entity change request of Administrator Client's transmission.Since the state of not readding is not used to indicate the unfinished processing of the corresponding map tile of tile metadata, therefore, when it is subsequent need to be updated tile matrix stack when, it can be not read the tile metadata of state to be updated tile matrix stack according only to tile status, it avoids through the space vector data of all geographical entities redefined and updates the tile matrix stack of every a kind of geographical entity, pressure during updating tile matrix stack can be effectively relieved, improve the efficiency for updating tile matrix stack.Target map tile corresponding with current map resolution ratio is returned to Administrator Client in real time furthermore it is also possible to realize.
Description
Technical field
The present invention relates to map field, in particular to a kind of map tile update method, device and computer-readable storage
Medium.
Background technique
Current electronic map is mainly to pass through the map tile of the multiclass geographical entity such as cinema, restaurant, supermarket
It crosses map overlay to be formed, map tile is to pass through WMTS (Web Map Tile Service, slice map network clothes by server
Business) technology handles to obtain to the space vector data of geographical entity, therefore map tile can intuitively indicate geographical entity
Spatial position.Since the spatial position of geographical entity in actual life may change, as certain street increases a film newly
Institute, therefore server needs regular to map tile to be updated, with guarantee in map tile the spatial position of geographical entity and
The spatial position of geographical entity is consistent as far as possible in actual life.
In WMTS technology, server in advance classifies to multiple geographical entities, obtains at least a kind of geographical entity, such as
All cinemas are determined as a kind of geographical entity, all KFC are determined as a kind of geographical entity etc..For any
A kind of geographical entity, for each preset ratio rank in multiple preset ratio ranks, server is according to the preset ratio grade
The other space vector data to each geographical entity in such geographical entity such as is analyzed, extracts, renders at the processing of modes,
Obtain multiple map tiles of such geographical entity under the preset ratio rank.Wherein, the ground under same preset ratio rank
The resolution ratio of figure tile is identical.Later, multiple map tiles under same preset ratio rank are constituted into the preset ratio rank
Tile matrix, the tile matrix of multiple preset ratio rank is constituted to the tile matrix stack of such geographical entity.Server
After determining the tile matrix stack of such geographical entity, every preset time period is redefined in such geographical entity allly
The space vector data of entity is managed, and according to the space vector data of the geographical entity redefined, according to the method described above again
It determines the tile matrix stack of such geographical entity, namely the map tile in the tile matrix stack of such geographical entity is carried out more
Newly.
Since server is that every preset time period updates tile matrix stack, if current Administrator Client is to certain
A geographical entity changes, and server still could be to the map watt in tile matrix stack when next preset time period reaches
Piece is updated, that is, Administrator Client, after changing to some geographical entity, the map tile currently shown is still
It is so the map tile before updating.In addition, since server every preset time period needs to redefine every a kind of geographical entity
In all geographical entities space vector data, and according to the space vector data of all geographical entities redefined determine
The tile matrix stack of every one kind geographical entity, causes server pressure during updating tile matrix stack larger.
Summary of the invention
Administrator Client is after changing some geographical entity in order to solve in existing WMTS technology, currently
The map tile of display be still update before map tile and server pressure during updating tile matrix stack it is big
The problem of, the embodiment of the invention provides a kind of map tile update method, device and computer readable storage mediums.The skill
Art scheme is as follows:
In a first aspect, providing a kind of map tile update method, which comprises
Receive the geographical entity that Administrator Client sends and change request, geographical entity change request carry with it is described
The space vector data and current map resolution ratio of corresponding target geographic entity are requested in geographical entity change;
According to the space vector data of the target geographic entity, determination is relevant to be processed to the target geographic entity
Multiple target map tiles;
According to the multiple target map tile, multiple target tile metadata in tile metadata table are carried out more
Newly, it is updated to the tile status of multiple target tile metadata corresponding with the multiple target map tile not read shape
State;
Wherein, every tile metadata in the tile metadata table corresponds to a map tile, every tile member
Data are used to describe the information of corresponding map tile, and the tile status includes having read state and not read state, described to have read
State is used to indicate the corresponding map tile of tile metadata and processing is completed, and the state of not readding is used to indicate tile metadata
Corresponding map tile does not complete processing;
At target map tile corresponding with the current map resolution ratio in the multiple target map tile
Reason, and target map tile is sent to the Administrator Client in real time by treated.
Optionally, the map tile in the tile matrix stack is the map tile of non-polymeric type, each tile member number
According to including the mark of corresponding map tile, the packet in scale level, corresponding map tile belonging to corresponding map tile
The space vector data of each geographical entity included, the mark and tile status of each geographical entity.
Optionally, the geographical entity change request includes geographical entity addition request, geographical entity removal request and ground
It manages entity and updates request;
It is described according to the multiple target map tile, multiple target tile metadata in tile metadata table are carried out
It updates, comprising:
When geographical entity change request is geographical entity addition request, increase in each target tile metadata
The mark of the target geographic entity and the space vector data of the target geographic entity;
When geographical entity change request is geographical entity removal request, deleted in each target tile metadata
The mark of the target geographic entity and the space vector data of the target geographic entity;
When geographical entity change request is that geographical entity updates request, include based on the target geographic entity
First geographical entity and the second geographical entity, in the target tile of the corresponding each target map tile of first geographical entity
The mark of first geographical entity and the space vector data of first geographical entity are deleted in metadata, and described the
Increase the mark of second geographical entity in the target tile metadata of the corresponding each target map tile of two geographical entities
With the space vector data of second geographical entity, first geographical entity is geographical entity before changing, described second
Geographical entity is the geographical entity after change.
Optionally, the map tile in the tile matrix stack is the map tile of polymeric type, each tile metadata
Scale level belonging to mark, corresponding map tile including corresponding map tile, the polymerization in corresponding map tile
The space vector data of geographical entity, polymerization quantity and tile status, the polymerization quantity are used to indicate corresponding map watt
The number for the geographical entity for including in piece, the corresponding map tile of the polymerization geographical entity tile metadata include
Any geographical entity.
Optionally, described according to the multiple target map tile, to multiple target tiles member in tile metadata table
Data are updated, comprising:
When geographical entity change request is geographical entity addition request, increasing each target tile metadata includes
Polymerization quantity;
When geographical entity change request is geographical entity removal request, reducing each target tile metadata includes
Polymerization quantity.
When geographical entity change request is that geographical entity updates request, include based on the target geographic entity
First geographical entity and the second geographical entity reduce the target watt of the corresponding each target map tile of first geographical entity
The polymerization quantity that piece metadata includes, and increase the target tile of the corresponding each target map tile of second geographical entity
The polymerization quantity that metadata includes, first geographical entity are geographical entity before changing, and second geographical entity is to become
Geographical entity after more.
Optionally, described according to the multiple target map tile, to multiple target tiles member in tile metadata table
Before data are updated, further includes:
When determining there is no when multiple target map tiles to be processed relevant to the target geographic entity, generate more
A blank tile metadata, to obtain the multiple target tile metadata;Alternatively,
When determine there is multiple target map tiles to be processed relevant to the target geographic entity when, from described watt
Search whether there are multiple target tile metadata corresponding with the multiple target map tile in piece metadata table, when not depositing
In multiple target tile metadata corresponding with the multiple target map tile, generate and the multiple target map tile
Corresponding multiple blank tile metadata, obtain the multiple target tile metadata.
Optionally, described to target map corresponding with the current map resolution ratio in the multiple target map tile
Tile is handled, comprising:
The corresponding preset ratio rank of the current map resolution ratio is determined from multiple preset ratio ranks;
Selection percentage rank is the corresponding default ratio of the current map resolution ratio from the multiple target map tile
The target map tile of example rank;
Tile metadata corresponding with the target map tile of selection is obtained from the tile metadata table after update;
The selected target map tile is updated according to the tile metadata got.
Optionally, the method also includes:
It is the tile metadata for not readding state that tile status is obtained from the tile metadata table, obtains multiple tile members
Data;
The corresponding map tile of tile metadata each in the multiple tile metadata is updated;
According to the map tile after update, the tile matrix stack is updated, and will be every in the multiple tile metadata
The tile status never state of readding of a tile metadata is updated to the state of having read.
Optionally, the map tile in the tile matrix stack is the map tile of polymeric type;
It is described that the corresponding map tile of tile metadata each in the multiple tile metadata is updated, comprising:
For any one tile metadata in the multiple tile metadata, the corresponding sky of the tile metadata is created
White map tile;
According to the space vector data of the polymerization geographical entity in the tile metadata, the polymerization geographical entity is determined
Position in the blank map tile, the polymerization geographical entity are that the corresponding map tile of the tile metadata includes
Any geographical entity;
According to position of the polymerization geographical entity in the blank map tile, draws the polymerization geographical entity and exist
Icon and mark in the blank map tile, to obtain the corresponding map tile of the tile metadata, the icon is used
It is described to be noted for indicating to wrap in the corresponding map tile of the tile metadata in the type for indicating the polymerization geographical entity
The number of the geographical entity included.
Optionally, the position according to the polymerization geographical entity in the blank map tile, draws described poly-
Icon and mark of the geographical entity in the blank map tile are closed, to obtain the corresponding map watt of the tile metadata
Piece, comprising:
When the polymerization geographical entity is in the marginal position of the blank map tile, it is geographical real to draw the polymerization
First icon of the body in the blank map tile, first icon are one of the icon of the polymerization geographical entity
Point;
Search the map tile adjacent with the marginal position of the blank map tile;
According to the space vector data of the polymerization geographical entity, determine the polymerization geographical entity on the adjacent ground
Position in figure tile;
According to position of the polymerization geographical entity in the adjacent map tile, in the adjacent map tile
Upper the second icon for drawing the polymerization geographical entity, second icon are one of the icon of the polymerization geographical entity
Point, and second icon and first icon can constitute the complete icon of the polymerization geographical entity.
Optionally, the tile matrix stack is tile corresponding with a kind of geographical entity belonging to the target geographic entity
Matrix stack.
Second aspect, provides a kind of map tile updating device, and described device includes:
Receiving module, for receiving the geographical entity change request of Administrator Client's transmission, the geographical entity change
Request carries the space vector data of target geographic entity corresponding with geographical entity change request and current map is differentiated
Rate;
Determining module, it is determining real with the target geographic for the space vector data according to the target geographic entity
The relevant multiple target map tiles to be processed of body;
First update module is used for according to the multiple target map tile, to multiple targets in tile metadata table
Tile metadata is updated, by the tile status of multiple target tile metadata corresponding with the multiple target map tile
It is updated to not read state;
Wherein, every tile metadata in the tile metadata table corresponds to a map tile, every tile member
Data are used to describe the information of corresponding map tile, and the tile status includes having read state and not read state, described to have read
State is used to indicate the corresponding map tile of tile metadata and processing is completed, and the state of not readding is used to indicate tile metadata
Corresponding map tile does not complete processing;
Sending module, for target corresponding with the current map resolution ratio in the multiple target map tile
Figure tile is handled, and target map tile is sent to the Administrator Client in real time by treated.
Optionally, the map tile in the tile matrix stack is the map tile of non-polymeric type, each tile member number
According to including the mark of corresponding map tile, the packet in scale level, corresponding map tile belonging to corresponding map tile
The space vector data of each geographical entity included, the mark and tile status of each geographical entity.
Optionally, the geographical entity change request includes geographical entity addition request, geographical entity removal request and ground
It manages entity and updates request;
First update module, is specifically used for:
When geographical entity change request is geographical entity addition request, increase in each target tile metadata
The mark of the target geographic entity and the space vector data of the target geographic entity;
When geographical entity change request is geographical entity removal request, deleted in each target tile metadata
The mark of the target geographic entity and the space vector data of the target geographic entity;
When geographical entity change request is that geographical entity updates request, include based on the target geographic entity
First geographical entity and the second geographical entity, in the target tile of the corresponding each target map tile of first geographical entity
The mark of first geographical entity and the space vector data of first geographical entity are deleted in metadata, and described the
Increase the mark of second geographical entity in the target tile metadata of the corresponding each target map tile of two geographical entities
With the space vector data of second geographical entity, first geographical entity is geographical entity before changing, described second
Geographical entity is the geographical entity after change.
Optionally, the map tile in the tile matrix stack is the map tile of polymeric type, each tile metadata
Scale level belonging to mark, corresponding map tile including corresponding map tile, the polymerization in corresponding map tile
The space vector data of geographical entity, polymerization quantity and tile status, the polymerization quantity are used to indicate corresponding map watt
The number for the geographical entity for including in piece, the corresponding map tile of the polymerization geographical entity tile metadata include
Any geographical entity.
Optionally, first update module, is specifically used for:
When geographical entity change request is geographical entity addition request, increasing each target tile metadata includes
Polymerization quantity;
When geographical entity change request is geographical entity removal request, reducing each target tile metadata includes
Polymerization quantity.
When geographical entity change request is that geographical entity updates request, include based on the target geographic entity
First geographical entity and the second geographical entity reduce the target watt of the corresponding each target map tile of first geographical entity
The polymerization quantity that piece metadata includes, and increase the target tile of the corresponding each target map tile of second geographical entity
The polymerization quantity that metadata includes, first geographical entity are geographical entity before changing, and second geographical entity is to become
Geographical entity after more.
Optionally, described device further include:
First generation module, for multiple targets to be processed relevant to the target geographic entity to be not present when determining
When map tile, multiple blank tile metadata are generated, to obtain the multiple target tile metadata;Alternatively,
Second generation module determines with there are multiple targets to be processed relevant to the target geographic entity for working as
When figure tile, search whether there are multiple targets corresponding with the multiple target map tile from the tile metadata table
Tile metadata, when multiple target tile metadata corresponding with the multiple target map tile are not present, generation and institute
The corresponding multiple blank tile metadata of multiple target map tiles are stated, the multiple target tile metadata is obtained.
Optionally, the sending module, is specifically used for:
The corresponding preset ratio rank of the current map resolution ratio is determined from multiple preset ratio ranks;
Selection percentage rank is the corresponding default ratio of the current map resolution ratio from the multiple target map tile
The target map tile of example rank;
Tile metadata corresponding with the target map tile of selection is obtained from the tile metadata table after update, and
The tile metadata got is updated according to geographical entity change request;
The selected target map tile is updated according to the tile metadata got.
Optionally, described device further include:
Module is obtained, is the tile metadata for not readding state for obtaining tile status from the tile metadata table,
Obtain multiple tile metadata;
Second update module, for the corresponding map tile of tile metadata each in the multiple tile metadata into
Row updates;
Third update module, for updating the tile matrix stack according to the map tile after update, and will be described more
The tile status never state of readding of each tile metadata is updated to the state of having read in a tile metadata.
Optionally, the map tile in the tile matrix stack is the map tile of polymeric type;
Second update module includes:
Creating unit, for creating the tile for any one tile metadata in the multiple tile metadata
The corresponding blank map tile of metadata;
Determination unit determines institute for the space vector data according to the polymerization geographical entity in the tile metadata
Position of the polymerization geographical entity in the blank map tile is stated, the polymerization geographical entity is corresponding for the tile metadata
Map tile any geographical entity for including;
Drawing unit, for according to the position of the polymerization geographical entity in the blank map tile, described in drafting
It polymerize icon and mark of the geographical entity in the blank map tile, to obtain the corresponding map watt of the tile metadata
Piece, the icon is used to indicate the type of the polymerization geographical entity, described to be noted for indicating that the tile metadata is corresponding
Map tile in include geographical entity number.
Optionally, the drawing unit, is specifically used for:
When the polymerization geographical entity is in the marginal position of the blank map tile, it is geographical real to draw the polymerization
First icon of the body in the blank map tile, first icon are one of the icon of the polymerization geographical entity
Point;
Search the map tile adjacent with the marginal position of the blank map tile;
According to the space vector data of the polymerization geographical entity, determine the polymerization geographical entity on the adjacent ground
Position in figure tile;
According to position of the polymerization geographical entity in the adjacent map tile, in the adjacent map tile
Upper the second icon for drawing the polymerization geographical entity, second icon are one of the icon of the polymerization geographical entity
Point, and second icon and first icon can constitute the complete icon of the polymerization geographical entity.
Optionally, the tile matrix stack is tile corresponding with a kind of geographical entity belonging to the target geographic entity
Matrix stack.
The third aspect, provides a kind of map tile updating device, and the map tile updating device includes processor, communication
Interface, memory and communication bus;
The processor, the communication interface and the memory complete mutual communication by the communication bus;
The memory is for storing computer program;
The processor is for executing the program stored on memory, to realize the map watt of above-mentioned first aspect offer
Piece update method.
Fourth aspect provides a kind of computer readable storage medium, meter is stored in the computer readable storage medium
Calculation machine program, the computer program realize the map tile update method that above-mentioned first aspect provides when being executed by processor.
Technical solution provided in an embodiment of the present invention has the benefit that
In embodiments of the present invention, when receiving the geographical entity change request of Administrator Client's transmission, to target
Tile metadata is updated, and updates the tile status of target tile metadata.Since the state of not readding is not used to indicate tile member
The corresponding map tile of data does not complete processing, therefore, when it is subsequent need to be updated tile matrix stack when, can be according only to
Tile status is not read the tile metadata of state to be updated tile matrix stack, avoid by redefine allly
The space vector data of entity is managed to update the tile matrix stack of every a kind of geographical entity, can be effectively relieved and update tile square
Pressure during battle array collection, improves the efficiency for updating tile matrix stack.In addition, in real time to Administrator Client's return and currently
The corresponding target map tile of map resolution ratio, for Administrator Client, when initiating geographical entity change request, also
Map after being updated with real-time display improves the timeliness of map.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of map tile update method flow chart provided in an embodiment of the present invention;
Fig. 2A is another map tile update method flow chart provided in an embodiment of the present invention;
Fig. 2 B is that a kind of icon for polymerization geographical entity that inventive embodiments provide divides schematic diagram;
Fig. 3 is a kind of map tile updating device block diagram provided in an embodiment of the present invention;
Fig. 4 is another map tile updating device block diagram provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
In order to subsequent convenient for explanation, it is being described in detail to map tile update method provided in an embodiment of the present invention
Before, first to the present embodiments relate to noun be introduced.
Geographical entity refers to that the entity in geographical data bank, geographical entity can be divided into dotted entity, Linear Entity and face
Shape entity.For example, common cinema, restaurant and supermarket etc. be dotted entity, river and road etc. be Linear Entity, lake and
Ocean etc. is planar entity.
Map tile, be by server according to the space vector data of geographical entity by analysis, extract and rendering and give birth to
At single picture, it is geographical real that map tile is used to describe one kind within the scope of the spatial position of map tile representative
Body.For example, the type of geographical entity belonging to map tile is camera, the spatial position range of the map tile is latitude X1
To latitude X2, longitude Y1 to longitude Y2, the map tile is for describing spatial position latitude X1 to latitude X2 at this time, and longitude Y1 is extremely
All cameras being distributed in longitude Y2.
Tile matrix refers to a set including multiple map tiles, multiple map tiles which includes
Be by server under the premise of coordinate system has been determined, has cut primitive point, preset ratio rank and single map tile size, according to
Multiple map tiles that the space vector data of a kind of geographical entity generates.Wherein, a tile matrix corresponds to one and presets
Scale level, preset ratio rank are pre-set scale level in server, and preset ratio rank and map resolution ratio
It is related.
Tile matrix stack refers to the set including multiple tile matrixes, all maps watt that multiple tile matrix includes
Only correspond to a tile matrix stack, and multiple tile matrix comprising a kind of geographical entity, namely a kind of geographical entity in piece
To be obtained according to the space vector data of a kind of geographical entity according to different preset ratio ranks.For example, institute in spatial position
The corresponding tile matrix stack of some cameras, the corresponding tile matrix stack of all KFC.
Electronic map refers to and passes through the map that map overlay is formed by the map tile of multiclass geographical entity.
Polymeric electron map refers to each map tile for constituting the electronic map, only shows in the map tile
The ground that the spatial position of a geographical entity in all geographical entities that the map tile includes and the map tile include
Manage the number of entity.
It polymerize geographical entity, refers in the map tile of Polymeric electron map for representing the institute that the map tile includes
There is the geographical entity of geographical entity.For example, including 3 geographical entities in certain map tile, at this point it is possible to not have in map tile
It is middle to mark this 3 geographical entities respectively, this 3 geographical entities are directly represented by a polymerization geographical entity.
It polymerize quantity, refers to the number for all geographical entities that the map tile in Polymeric electron map includes.
Tile metadata refers to that the data for describing the geographical entity that map tile includes, a map tile are corresponding
One tile metadata, server directly can generate the tile metadata correspondingly according to the information that tile metadata includes
Figure tile.
Tile status, is used to indicate the state of tile metadata, and tile status includes having read state and not read state,
In, the state of having read is used to indicate server according to tile metadata updates tile matrix stack, and the state of not readding is not used to indicate clothes
Device be engaged in not according to tile metadata updates tile matrix stack.
In addition, also being introduced at this application scenarios of the embodiment of the present invention.In embodiments of the present invention, for multiclass
A kind of geographical entity in geographical entity, server determine the space vector number for all geographical entities that such geographical entity includes
According to, and generate the multiple map tiles that can intuitively show the spatial position for all geographical entities that such geographical entity includes.
Wherein, multiple preset ratio ranks are arranged in server, each preset ratio rank corresponds to a map resolution ratio, and default
Scale level is higher, and the corresponding map resolution ratio of the preset ratio rank is lower, and for a kind of geographical entity, server is being generated
When multiple map tiles under one preset ratio rank, multiple map tiles under the preset ratio rank are constituted this and are preset
The tile matrix of scale level, when obtaining the tile matrix of multiple preset ratio rank, by multiple preset ratio rank
Tile matrix constitute the tile matrix stack of such geographical entity.
It is worth noting that, the pixel size of the pre-stored map tile of server is presetted pixel size namely right
The map tile in each tile matrix for including in the tile matrix stack of a kind of geographical entity, the tile matrix stack is pixel
Map tile of the same size.Therefore, for the tile matrix stack of a kind of geographical entity, if multiple preset ratio ranks are 0
To N-1, for the tile matrix of preset ratio rank 0, it is equivalent to the electronics of the corresponding map resolution ratio of preset ratio rank 0
Map is cut according to presetted pixel size, obtains the identical map tile of multiple sizes, the identical map of multiple size
The tile matrix of tile composition preset ratio rank 0;For the tile matrix of preset ratio rank 1, it is equivalent to preset ratio
It is right that map resolution ratio according to preset rules is contracted to preset ratio rank 1 by the electronic map of the corresponding map resolution ratio of rank 0
The map resolution ratio answered, and cut in the electronic map after diminution according to presetted pixel size, obtain multiple size phases
With map tile, the identical map tile of multiple size constitutes the tile matrix of preset ratio rank 1;... and so on,
Until determining the tile matrix of preset ratio level n -1.
Wherein, preset rules are usually that the pixel of every 2x2 is synthesized a pixel, due to the pixel size of map tile
It is fixed, and with the increase of preset ratio rank, the corresponding map resolution ratio of the preset ratio rank is reducing, therefore leads
The quantity for the map tile for including in the tile matrix of the preset ratio rank is caused to reduce, until preset ratio level n -1
It only include the map tile of a presetted pixel size in tile matrix, therefore tile matrix stack is also referred to as pyramid tile matrix
Collection.Presetted pixel size is the pre-set pixel size of server, and normally, which is 256 × 256.
It follows that the tile matrix stack of multiclass geographical entity is stored in the server, when user is intended to through user visitor
When the electronic map at family end checks some geographical entity, user client can directly obtain the geographical entity from server and exist
Map tile under the corresponding preset ratio rank of current map resolution ratio.Due to the spatial position of geographical entity in actual life
It may change, therefore in order to guarantee in map tile geographical entity in the spatial position of geographical entity and actual life
Spatial position is consistent as far as possible, and when the spatial position of geographical entity changes, server needs to carry out more tile matrix stack
Newly, map tile update method provided in an embodiment of the present invention is applied to the field that the server is updated tile matrix stack
Scape.
Fig. 1 is a kind of map tile update method flow chart provided in an embodiment of the present invention, the map tile update method
Applied in server, as shown in Figure 1, the map tile update method includes the following steps.
Step 101: receiving the geographical entity that Administrator Client sends and change request, geographical entity change request carries
The space vector data and current map resolution ratio of target geographic entity corresponding with geographical entity change request.
In embodiments of the present invention, when the spatial position of some geographical entity changes, Administrator Client can be with
Geographical entity change request is sent, related data is updated with trigger the server.
Step 102: according to the space vector data of the target geographic entity, determine it is relevant to the target geographic entity to
Multiple target map tiles of processing.
It, can be according to the space vector number of the target geographic entity when server receives geographical entity change request
According to multiple target tile matrixes relevant to the target geographic entity in target tile matrix stack being determined, in order to subsequent basis
Multiple target tile matrix carries out relevant operation.
Step 103: according to multiple target map tile, to multiple target tile metadata in tile metadata table into
Row updates, and is updated to the tile status of multiple target tile metadata corresponding with multiple target map tile not read shape
State;Wherein, every tile metadata in tile metadata table corresponds to a map tile, and every tile metadata is for retouching
The information of corresponding map tile is stated, which includes having read state and not read state, and the state of having read is used to indicate tile
Processing is completed in the corresponding map tile of metadata, and the state of not readding is not used to indicate the corresponding map tile of tile metadata and does not complete
Processing.
In embodiments of the present invention, server preset configuration has tile metadata table, includes in the tile metadata table
Each tile metadata is used to describe the information of corresponding map tile, therefore server can be according to multiple target map watt
Piece is updated multiple target tile metadata corresponding with multiple target map tile.
In addition, since server is that each tile metadata configurations have tile status, wherein the state of having read is used to indicate watt
Processing is completed in the corresponding map tile of piece metadata, and it is not complete not to be used to indicate the corresponding map tile of tile metadata for the state of not readding
Whether server is used to indicate according to tile metadata updates tile matrix stack at processing namely the tile status.
Therefore, it after server is updated multiple target tile metadata, also needs multiple target tile member
Corresponding tile status is updated to not read state, only need to be from this watt when being updated in order to follow-up service to tile matrix stack
Obtaining tile status in piece metadata table respectively is the tile metadata for not readding state, and according to the tile metadata pair got
Corresponding map tile is handled, and server is avoided to repeat in next update tile matrix stack according in the metadata set
Tile metadata is updated tile matrix stack, to reduce the data processing pressure for updating tile matrix stack.
Step 104: target map tile corresponding with current map resolution ratio in multiple target map tile is carried out
Processing, and target map tile is sent to Administrator Client in real time by treated.
By step 104, Administrator Client can be made when initiating geographical entity change request, it can be with real-time reception
Target map tile after to processing, in order to show the geographical entity after change in current map.
In embodiments of the present invention, when receiving the geographical entity change request of Administrator Client's transmission, to target
Tile metadata is updated, and updates the tile status of target tile metadata.Since the state of not readding is not used to indicate tile member
The corresponding map tile of data does not complete processing, therefore, when it is subsequent need to be updated tile matrix stack when, can be according only to
Tile status is not read the tile metadata of state to be updated tile matrix stack, avoid by redefine allly
The space vector data of entity is managed to update the tile matrix stack of every a kind of geographical entity, can be effectively relieved and update tile square
Pressure during battle array collection, improves the efficiency for updating tile matrix stack.In addition, in real time to Administrator Client's return and currently
The corresponding target map tile of map resolution ratio, for Administrator Client, when initiating geographical entity change request, also
Map after being updated with real-time display improves the timeliness of map.
Fig. 2A is a kind of map tile update method flow chart provided in an embodiment of the present invention, the map tile update method
Applied in server, which is to further spread out explanation to above-mentioned embodiment shown in FIG. 1, as shown in Figure 2 A, the ground
Figure tile update method includes the following steps.
Step 201: receiving the geographical entity that Administrator Client sends and change request, geographical entity change request carries
The space vector data and current map resolution ratio of target geographic entity.
In embodiments of the present invention, since the spatial position of geographical entity in actual life may change, such as certain
Street increases a cinema newly, in order to guarantee in map tile geographical entity in the spatial position of geographical entity and actual life
Spatial position is consistent as far as possible, and administrator can send geographical entity change request to server by Administrator Client, so that
Server is updated tile matrix stack.When server receives the geographical entity change request of Administrator Client's transmission
When, the tile matrix stack can be updated to step 206 by executing step 202.
Wherein, the geographical body change request that Administrator Client sends carries the space vector data of target geographic entity,
The space vector data is for describing the specific spatial position of target geographic entity, the space vector data of usual geographical entity
It can be indicated using longitude of the geographical entity in spatial position and latitude.
Further, since different preset ratio ranks corresponds to different map resolution ratio, which becomes
More request can also carry current map resolution ratio, in order to which server is according to the current map resolution ratio, determine Current electronic
The preset ratio rank of map.
In addition, target geographic entity is the geographical entity of spatial position to be changed, since the spatial position of geographical entity is sent out
Changing may include three kinds of situations: adding geographical entity at the spatial position, deletes the geographical entity at the spatial position
It removes or a geographical entity is replaced with into other geographical entities.Therefore, geographical entity change request adds including geographical entity
Request, geographical entity removal request or geographical entity is added to update request.
Wherein, geographical entity addition request is used to indicate one target geographic entity of addition at the spatial position, geographical
Entity removal request, which is used to indicate, deletes the target geographic entity at the spatial position, and geographical entity updates request and is used to indicate
The first geographical entity for including in target geographic entity is replaced with into the second geographical entity.Particularly, when geographical Entity Change is asked
It asks and is updated for geographical entity when requesting, which updates the space vector data packet of target geographic entity carried in request
Include the space vector data of the first geographical entity and the space vector data of the second geographical entity.Wherein, the first geographical entity is
Geographical entity before changing, the second geographical entity are the geographical entity after change.
In addition, server can not classify to the geographical entity in spatial dimension, a tile matrix is only set
Collection, the map tile in the tile matrix stack includes all geographical entities within the scope of certain space at this time.Optionally, in order to mention
Different tile matrix stacks can be arranged for different types of geographical entity in the rate of high server process data, server,
Above-mentioned tile matrix stack is tile matrix stack corresponding with a kind of geographical entity belonging to the target geographic entity at this time.
Particularly, when different tile matrix stacks are arranged for different types of geographical entity in server, the geography is real
Body change request also carries the mark of the target geographic entity, in order to which server is according to the mark of the target geographic entity, really
The tile matrix stack of a kind of geographical entity belonging to the fixed target geographic entity.
Step 202: according to the space vector data of target geographic entity, determination is relevant to target geographic entity to be processed
Multiple target map tiles.
Specifically, when server receives geographical entity change request, for any one tile in tile matrix stack
Matrix, due to include in the tile matrix multiple map tiles in each map tile have corresponding spatial position model
It encloses, therefore server can search space from the tile matrix directly according to the space vector data of the target geographic entity
Position range includes the map tile of the space vector data, and the map tile found is determined as it is right in the tile matrix
The target map tile answered;When server determines in the tile matrix stack the corresponding target map tile of each tile matrix,
Namely determination obtains multiple target map tiles.
In addition, the electricity in order to reduce processing pressure of server during generating map tile, in the embodiment of the present invention
Sub- map can be Polymeric electron map, each map tile is for, when the geographical entity for including in the map tile
When number is greater than 1, server represents all geographical entities for including in the map tile only with one of geographical entity, should
One of geographical entity is known as polymerizeing geographical entity, should since a tile metadata corresponds to a map tile
Polymerization geographical entity is also any geographical entity that the corresponding map tile of tile metadata includes.In addition, in order to show the ground
The number of geographical entity in figure tile, further includes polymerization quantity in the map tile, which is used to indicate the map watt
The number for the geographical entity for including in piece.
In order to subsequent convenient for explanation, first tile metadata is described in detail herein.
In the first possible implementation, when the map tile that the map tile in tile matrix stack is polymeric type
When, each tile metadata includes the mark of corresponding map tile, scale level belonging to corresponding map tile, corresponding
Space vector data, polymerization quantity and the tile status of polymerization geographical entity in map tile.
Specifically, tile metadata includes the mark of tile metadata, polymerization quantity, map tile line number, map tile
Row number, the longitude and latitude and scale level etc. for polymerizeing geographical entity.Wherein, the mark of tile metadata is used for unique identification
The tile metadata, the tile metadata of each map tile is searched for the ease of server, and server can be by each map
Mark of the mark of tile as the tile metadata of the map tile;Map tile line number and map tile row number are map watt
Line number and row number of the piece in affiliated tile matrix, and map tile line number and map tile row number are that server is somebody's turn to do in generation
It is determined when map tile according to full figure geographic range, slice direction, slice origin and scale level.
In addition, the type in order to clearly show the geographical entity in tile metadata, the tile metadata can also include
Entity type, the entity type are used to indicate the type of the geographical entity in tile metadata.
For example, table 1 is that the embodiment of the invention provides the above- mentioned information that a kind of tile metadata, the tile metadata include
It is indicated using field, see Table 1 for details for each field which includes and the explanation to each field.Wherein, word
Section " mark " is the mark of the tile metadata, since the mark of tile metadata is the corresponding map watt of tile metadata
The mark of piece, therefore field " mark " is used to indicate the mark of the corresponding map tile of tile metadata, and field " mark "
Field type be number;Field " type " is used to indicate type belonging to the geographical entity in the tile metadata, the field
The field type of " type " is 32 characters;Field " mark " is used to indicate when the geographical entity for including in the tile metadata
When quantity is greater than 1, the mark generated in the corresponding map tile of tile metadata, the field type of field " mark " is
512 characters;Field " scale level " is used to indicate the ratio of tile matrix belonging to the corresponding map tile of tile metadata
Example rank, the field type of field " scale level " are 16 characters;Field " row number " and field " line number " are respectively used to indicate
The corresponding map tile of tile metadata is in affiliated tile matrix column number and line number, field " row number " and field " line number "
Field type be 16 characters;Field " polymerization quantity ", which is used to indicate in the corresponding map tile of tile metadata, includes
Geographical entity number, the field type of field " polymerization quantity " is number;Field " longitude " and field " latitude " are used respectively
In the longitude and latitude that indicate the polymerization geographical entity in the tile metadata, the field class of field " longitude " and field " latitude "
Type is number.
Table 1
In the second possible implementation, when the map watt that the map tile in tile matrix stack is non-polymeric type
When piece, each tile metadata includes the mark of corresponding map tile, scale level, correspondence belonging to corresponding map tile
Map tile in each geographical entity for including space vector data, the mark and tile of each geographical entity
State.
At this point, tile metadata table includes that tile metadata in information and the first above-mentioned possible implementation includes
Information it is essentially identical, the difference is that, at this time in tile metadata record have that corresponding map tile includes allly
The mark of entity and the space vector data of all geographical entities are managed, rather than just the space of one of polymerization geographical entity
Vector data.
In addition, in embodiments of the present invention, when server is that different tiles is arranged in different types of geographical entity in advance
When matrix stack, it is managed for the ease of tile metadata of the server to the map tile of different types of geographical entity, it is right
In the tile metadata of a kind of geographical entity, the tile metadata of one kind geographical entity is stored in a tile member by server
In tables of data, also the tile metadata of the map tile of a kind of geographical entity is stored in a tile metadata table.
Further, the server tile status that has also been tile metadata configurations, the tile status include state of having read and
State is not read, and being convenient for server with this is only the tile metadata for not readding state to tile status when updating tile matrix stack
Map tile is updated.Particularly, the tile status of each tile metadata can also use character representation, for example, in this hair
In bright embodiment, tile status only uses 1 character representation, such as indicates tile status using 0 and 1, wherein character 0, which is used to indicate, works as
There is no variations for preceding tile metadata, have read state without regenerating map tile namely the representative of character 0;Character 1 is used for
Instruction current tile metadata is changed, and needs to regenerate map tile namely state is not read in the representative of character 1.
It is worth noting that, the tile status can also be marked when not including any geographical entity in the tile metadata
It is denoted as character -1 namely character -1 is used to indicate when Administrator Client or user client obtain the map of the tile metadata
When tile, due to not including any geographical entity in the map tile, server can substitute the map tile with transparent picture,
And the transparent picture is sent to Administrator Client or user client.
Therefore, when server receives geographical entity change request, tile matrix stack is updated in order to realize, is taken
Device needs be engaged in first to the corresponding map tile of space vector data of the target geographic entity of geographical entity change request carrying
Tile metadata be updated, and due to the mark for being identified as the corresponding map tile of tile metadata of tile metadata
Know, therefore server need to first pass through above-mentioned steps 202 and determine target geographic entity before being updated to tile metadata
The corresponding map tile of space vector data.
Step 203: according to multiple target map tile, to multiple target tile metadata in tile metadata table into
Row updates, and is updated to the tile status of multiple target tile metadata corresponding with multiple target map tile not read shape
State.
After server determines multiple target map tile, then according to the mark of multiple target map tile,
From tile metadata table, the tile metadata of the mark of multiple target map tile is identified the selection as, multiple targets are obtained
Tile metadata, and multiple target tile metadata is updated.
Since map tile provided in an embodiment of the present invention can be the map tile of polymeric type, or non-polymeric
The map tile of type, by step 202 it is found that information is also different in the corresponding tile metadata of different types of map tile,
Therefore step 203 can point following two scene illustrate respectively:
The first scene: the map tile in tile matrix stack is the map tile of non-polymeric type.
Since geographical entity change request includes that geographical entity adds request, geographical entity removal request and geographical entity more
New request, therefore, in the first scene, server, which is updated multiple target tile metadata, can be divided into following three
Kind situation:
(1) when the request of geographical Entity Change is geographical entity addition request, increase in each target tile metadata
The space vector data of the mark of the target geographic entity and the target geographic entity.
Since each target tile metadata includes the space vector for each geographical entity that corresponding map tile includes
The mark of data and each geographical entity therefore, need to be by the mesh when the request of geographical Entity Change is geographical entity addition request
The space vector data of mark geographical entity is added in each target tile metadata.
In addition, may include multiple geographical entities in the map tile for the map tile of non-polymeric type, at this time also
The mark of the target geographic entity need to be added in each target tile metadata.
(2) when geographical entity change request is geographical entity removal request, increase in each target tile metadata
Add the mark of the target geographic entity and the space vector data of the target geographic entity.
Since each target tile metadata includes the space vector for each geographical entity that corresponding map tile includes
Data therefore, need to be by the space vector of the target geographic entity when the request of geographical Entity Change is geographical entity removal request
Data are deleted from each target tile metadata.
Similarly, it also needs to delete the mark of the target geographic entity from each target tile metadata at this time.
(3) when geographical entity change request is that geographical entity updates request, include based on the target geographic entity
First geographical entity and the second geographical entity, in the target tile member number of the corresponding each target map tile of the first geographical entity
The mark of the first geographical entity and the space vector data of the first geographical entity are deleted according to middle, and corresponding in the second geographical entity
Increase mark and the space of the second geographical entity of the second geographical entity in the target tile metadata of each target map tile
Vector data, first geographical entity are geographical entity before changing, which is the geographical entity after change.
When geographical entity change request is that geographical entity updates request, it is equivalent to and first geographical entity is executed
The step in (1) in the first scene is stated, the step in (2) in the first above-mentioned scene is executed to second geographical entity
Suddenly, it is no longer described in detail herein.
Second of scene: the map tile in tile matrix stack is the map tile of polymeric type.
Similarly, since geographical entity change request includes geographical entity addition request, geographical entity removal request and ground
It manages entity and updates request, therefore, in second of scene, server is updated multiple target tile metadata can also be with
It is divided into following three kinds of situations:
(1) when the request of geographical Entity Change is geographical entity addition request, increasing each target tile metadata includes
Polymerization quantity.
When the request of geographical Entity Change is geographical entity addition request, geographical entity addition request is used to indicate at this
The target geographic entity is added in multiple target map tiles, for any one target map in multiple target map tile
Tile increases the polymerization quantity that the corresponding target tile metadata of the target map tile includes.Particularly, increasing the target
Before the polymerization quantity that tile metadata includes, if the number for the geographical entity that the target tile metadata includes is 0, increasing
After the polymerization quantity for adding the target tile metadata to include, can also using the space vector data of the target geographic entity as
The space vector data of polymerization geographical entity in the target tile metadata, that is, by the longitude of the target geographic entity and
Longitude and latitude of the latitude as the polymerization geographical entity in the target tile metadata.
For example, when geographical Entity Change request is that geographical entity adds request, and the aggregate number in target tile metadata
When amount is 1, the polymerization quantity that target tile metadata includes directly is added 1, is added in the target tile metadata with realizing
The target geographic entity.
It should be noted that in embodiments of the present invention, when the polymerization quantity that each target tile metadata of increase includes
When, when one geographical entity of every increase, which can increase by 1, it is of course also possible to increase by 2,3 etc., only need each mesh
Tile metadata is marked according to same standard.
(2) when geographical entity change request is geographical entity removal request, each target tile metadata packet is reduced
The polymerization quantity included.
When geographical entity change request is geographical entity removal request, which is used to indicate
The target geographic entity is deleted in multiple target map tile, for any one target in multiple target map tile
Figure tile reduces the polymerization quantity that the corresponding target tile metadata of the target map tile includes.Particularly, the mesh is being reduced
After the polymerization quantity that mark tile metadata includes, if the number for the geographical entity that the target tile metadata includes is 0, this
When, also need the space vector data by the polymerization geographical entity in the target tile metadata to delete, that is, by the target tile
It will not be wrapped in the related data deletion namely the target tile metadata of the longitude and latitude of polymerization geographical entity in metadata
Include any geographical entity.
It is further to note that the space vector data for working as the polymerization geographical entity that the target tile metadata includes is
When the space vector data of the target geographic entity, after the polymerization quantity for including by the target tile metadata is reduced, also
A geographical entity can be randomly choosed from other geographical entities that the target tile metadata includes, and by the geography of selection
Space vector data of the space vector data of entity as the polymerization geographical entity in the target tile metadata.Wherein, really
The space vector data for other geographical entities that the fixed tile metadata includes can be with are as follows: determines the mesh of the target tile metadata
Map tile is marked, and determines the spatial position range of the target map tile, is less than the target map watt in preset ratio rank
In the tile matrix of the preset ratio rank of piece, the spatial position model that spatial position range is contained in the target map tile is searched
The map tile enclosed, and from being selected in the map tile found only including a geographical entity in other geographical entities
Map tile;The space vector data for the polymerization geographical entity that the tile metadata of the map tile of selection includes is determined as this
The space vector data of a geographical entity in other geographical entities.
It should be noted that in embodiments of the present invention, when the polymerization quantity that each target tile metadata of reduction includes
When, when one geographical entity of every reduction, which can reduce 1, it is of course also possible to reduce 2,3 etc., only need each mesh
Tile metadata is marked according to same standard.
(3) geographical based on the first geographical entity and first when the request of geographical Entity Change is that geographical entity updates request
Entity identifier reduces the aggregate number that the target tile metadata of the corresponding each target map tile of the first geographical entity includes
Amount, and the polymerization quantity that the target tile metadata for increasing the corresponding each target map tile of the second geographical entity includes.
When the request of geographical Entity Change is that geographical entity updates request, for the first geographical entity, according in step 202
The method for determining the corresponding multiple target map tiles of target geographic entity determines the corresponding multiple targets of first geographical entity
Map tile, and according to the mark of the corresponding multiple target map tiles of first geographical entity, according to above-mentioned second of scene
In (2) step, the tile metadata of multiple target map tiles corresponding to first geographical entity is updated.For second
Geographical entity, according to the method for determining the corresponding multiple target map tiles of target geographic entity in step 202, determine this second
The corresponding multiple target map tiles of geographical entity, and according to the mark of the corresponding multiple target map tiles of second geographical entity
Know, according to (1) step in above-mentioned second of scene, the tile of multiple target map tiles corresponding to second geographical entity
Metadata is updated.
It is worth noting that, in embodiments of the present invention, for the convenience of subsequent processing data, for certain space model
It encloses, no matter the spatial dimension is interior whether there is geographical entity, exist correspondingly in the spatial dimension in tile matrix stack
Figure tile, and corresponding tile metadata is provided with to each map tile.
Certainly, server can also only in the spatial dimension there are when geographical entity, setting in the spatial dimension
Corresponding map tile and corresponding tile metadata.At this point, according to multiple target map tile, to tile metadata table
In multiple target tile metadata be updated before, it is also possible to there are following two situations:
Multiple target map tiles to be processed relevant to the target geographic entity are not present when determining in the first situation
When, multiple blank tile metadata are generated, to obtain multiple target tile metadata.
That is, in the current tile matrix stack, there is no the maps watt in the spatial dimension where the target geographic entity
Piece need to first generate multiple space tile metadata, according to the geography convenient for generating corresponding map tile in order to subsequent at this time
Entity Change request, is updated multiple space tile metadata.
There are multiple target map tiles to be processed relevant to the target geographic entity when determining in second situation
When, search whether there are multiple target tile member numbers corresponding with multiple target map tile from the tile metadata table
According to when multiple target tile metadata corresponding with multiple target map tile are not present, generation is with multiple target
The corresponding multiple blank tile metadata of figure tile, obtain multiple target tile metadata.
It, may in the tile metadata table there are multiple target map tile in second situation
There is no corresponding tile metadata, can equally need first to generate multiple space tile metadata at this time, with real according to the geography
Body change request, is updated multiple space tile metadata.
In embodiments of the present invention, when the geographical entity change that server is sent according to Administrator Client is requested to tile
After metadata is updated, the tile status of updated tile metadata is not read state, therefore server can be at this time
It is the tile metadata updates tile matrix stack for not readding state according to the tile status.Specifically, server can be by following
Step 204 is updated tile matrix stack to step 206.
In addition, in embodiments of the present invention, when Administrator Client sends geographical entity change request, in order to make to manage
Member can be seen in real time by Administrator Client change after electronic map, server to multiple target tile metadata into
After row updates, updated map tile can also be returned to Administrator Client by following step 207, this is updated
Map tile is the map tile for the preset ratio rank that server is regenerated according to geographical entity change request, this is default
Scale level is the corresponding preset ratio rank of current map resolution ratio of the Administrator Client.
Step 204: obtaining tile status respectively from tile metadata table is the tile metadata for not readding state, is obtained more
A tile metadata.
Whether change and server since the tile status of tile metadata can be used to refer to the tile metadata
Whether according to the map tile of the tile metadata updates tile metadata, therefore server can directly acquire tile
State is not read the tile metadata of state, and passing through step 205 and step 206 is the tile member for not readding state to the tile status
The map tile of data is updated.
In addition, in order to mitigate the pressure of server update tile matrix stack, server is not in real time to tile matrix stack
It is updated, but every preset time period is updated tile matrix stack.
Optionally, when different tile matrix stacks are arranged for different types of geographical entity in server, that is, when clothes
When business device stores the tile metadata of a kind of geographical entity in a tile metadata table, the realization process of step 204 can
With are as follows: for any one tile metadata table at least one tile metadata table of storage, according to the tile metadata table
In include tile metadata tile status, at least one tile status is selected from the tile metadata table not read state
Tile metadata, obtain a metadata set, the metadata set only include in the tile metadata table tile status be not read
The tile metadata of state;When at least one the tile metadata table of server to storage is performed both by the above operation, can obtain
Take at least one metadata set.At this point, including multiple tile metadata at least one metadata set.
Wherein, preset time period is the server pre-set period, which can be one week, two weeks
Or one month etc., the embodiment of the present invention is not specifically limited herein.
Step 205: the corresponding map tile of tile metadata each in multiple tile metadata is updated.
It is the tile metadata for not readding state since multiple tile metadata is tile status, for multiple tile
The information of the map tile of each tile metadata in metadata, the tile metadata and the current tile metadata is not
Unanimously, therefore, server needs are updated the map tile of the tile metadata according to the tile metadata.
In one possible implementation, when the map tile that the map tile in tile matrix stack is polymeric type
When, for each tile metadata in multiple tile metadata, create the blank map tile of the tile metadata;According to
The space vector data of polymerization geographical entity in the tile metadata, determines the polymerization geographical entity in the blank map tile
In position;According to position of the polymerization geographical entity in the blank map tile, the polymerization geographical entity is drawn in the sky
Icon and mark in white map tile, to obtain the corresponding map tile of tile metadata.The icon is used to indicate polymerization
The type of geographical entity, this is noted for for the geographical entity for indicating to include in the corresponding map tile of tile metadata
Number, particularly, when only including a geographical entity in the tile metadata, at this point, the mark can also use the geographical entity
Title replaces.
Wherein, according to the space vector data of the polymerization geographical entity in the tile metadata, determine that the polymerization is geographical real
Position of the body in the blank map tile, namely according in the tile metadata polymerization geographical entity longitude and latitude,
Determine position of the polymerization geographical entity in the blank map tile, the polymerization geographical entity is in the blank map tile
Position can indicate with abscissa of the polymerization geographical entity in the corresponding plane coordinate system of blank tile and ordinate, by
In server when generating map tile, the longitude and latitude that primitive point is fixed namely the plane coordinate system origin are cut
It is determining, therefore abscissa and ordinate of the polymerization geographical entity in the corresponding plane coordinate system of blank tile can be with
It is determined according to the current preset scale level for the longitude and latitude and the blank map tile for cutting primitive point.A kind of possible
In implementation, server can determine the polymerization geographical entity in the blank map by following formula (1) to formula (3)
Abscissa in the corresponding plane coordinate system of tile:
ResX=Math.abs (lon) * 2/Math.Pow (2, n) formula (1)
GeoLonPixelx=(lon-minx)/ResX formula (2)
PixelX=GeoLonPixelx%256 formula (3)
Wherein, ResX indicates horizontal pixel point number in map resolution ratio, and Math.abs (lon) * 2 is global warp direction
Geographic range, n is the map resolution ratio corresponding preset ratio rank, and Math.Pow (2, n) indicates to carry out n times powers to 2
The longitude of primitive point is cut in operation, minx expression, and lon indicates that the longitude of polymerization geographical entity, GeoLonPixelx are change among one
Amount, GeoLonPixelx%256 indicate that by GeoLonPixelx, to 256 progress remainder operations, PixelX indicates that polymerization is geographical real
Abscissa of the body in the corresponding plane coordinate system of blank map tile, in addition 256 be map tile generally used now picture
Plain size.
Server can also determine the polymerization geographical entity in the blank tile pair by following formula (4) to formula (6)
The ordinate in plane coordinate system answered:
ResY=Math.abs (lat) * 2/Math.Pow (2, n) formula (4)
GeoLonPixely=(lat-miny)/ResY formula (5)
PixelY=GeoLonPixely%256 formula (6)
Wherein, ResY indicates longitudinal pixel number in map resolution ratio, and Math.abs (lat) * 2 is whole world dimension line side
To geographic range, n is the corresponding preset ratio rank of the map resolution ratio, and miny indicates to cut the longitude of primitive point, and lat is indicated
It polymerize the longitude of geographical entity, GeoLonPixely is an intermediate variable, and GeoLonPixely%256 is indicated will
GeoLonPixely carries out remainder operation to 256, and PixelY indicates that polymerization geographical entity is corresponding flat in the blank map tile
Ordinate in areal coordinate system.
When server determines abscissa of the polymerization geographical entity in the corresponding plane coordinate system of blank map tile and indulges
After coordinate, the polymerization geographical entity can be drawn in blank map tile directly using the abscissa and ordinate as starting point
Icon.Certainly, in embodiments of the present invention, in order to keep the icon for polymerizeing geographical entity most in the position of the blank map tile
May with position consistency of the polymerization geographical entity on the blank map tile, draw the polymerization geographical entity icon
When, suitably the starting point of drafting can be adjusted, for example, with (PixelX-imgWidth/2, PixelY-imgHeight/
2) for draw starting point, draw direction be from the lower left of the icon to upper right side, at this time draw at the end of, the center of the icon
Position is exactly the polymerization geographical entity corresponding position in the blank map tile, wherein PixelX and PixelY is upper
Abscissa and ordinate of the polymerization geographical entity stated in the corresponding plane coordinate system of blank map tile,
ImgWidth is the width of the icon of the polymerization geographical entity, and imgHeight is the height of the icon of the polymerization geographical entity.
It is worth noting that, when the icon for drawing the polymerization geographical entity on the blank map tile by the above method
When, when the starting point of the drafting is in the marginal position of the blank map tile, the blank map tile is only capable of including this at this time
A part of icon.In order to be more completely shown in the icon of the polymerization geographical entity on electronic map, when the polymerization
Reason entity is when being in the marginal position of the blank map tile, draws the of the polymerization geographical entity in the blank map tile
One icon, and search the map tile adjacent with the marginal position of the blank map tile;According to the sky of the polymerization geographical entity
Between vector data, determine position of the polymerization geographical entity in the adjacent map tile;Existed according to the polymerization geographical entity
The second icon of the polymerization geographical entity is drawn in position in the adjacent map tile in the adjacent map tile.Its
In, the first icon is a part of the icon of the polymerization geographical entity, and the second icon is the one of the icon of the polymerization geographical entity
Part, and the second icon and the first icon can constitute the complete icon of the polymerization geographical entity.
Specifically, searching the map tile adjacent with the marginal position of the blank map tile can be with are as follows: when the margin location
When being set to leftmost edge position, the map tile adjacent with the leftmost edge position of the blank map tile is searched;When the edge
When position is the right marginal position, the map tile adjacent with the right marginal position of the blank map tile is searched;When the side
When edge position is top edges position, the map tile adjacent with the top edges position of the blank map tile is searched;When this
When marginal position is lower edge position, the map tile adjacent with the lower edge position of the blank map tile is searched.Separately
Outside, the map tile adjacent with the blank map tile is searched, it can be according to the blank map tile in affiliated tile matrix
Tile line number and tile row number determine, as the adjacent map tile be it is adjacent with the blank map tile top edges position
Map tile when, the tile line number of the adjacent map tile is that the tile line number of the blank map tile subtracts 1, this is adjacent
The tile row number of map tile is the tile row number of the blank map tile, according to the tile line number of the adjacent map tile and
Tile row number can find the adjacent map tile from tile matrix belonging to the blank map tile.
For example, working as leftmost edge of the polymerization geographical entity in the position of the blank map tile for the blank map tile
When at position, if being at this time the starting point drawn with (PixelX-imgWidth/2, PixelY-imgHeight/2), direction is drawn
For from the lower left of the icon to upper right side, then the blank map tile only includes the right side of the icon at the end of drawing
Point, in order to complete to view the icon of the polymerization geographical entity on the electronic map, only drawn on the blank map tile
The right half part namely the first icon of making the icon are the right half part of the icon of the polymerization geographical entity, and drawing starting point is
(PixelX+imgWidth/2, PixelY), namely drawn since the right of the icon is to the left.And it searches with the blank
The adjacent map tile of the left position of figure tile determines that the position of the polymerization geographical entity is in the adjacent map tile
The right marginal position of the adjacent map tile, and draw in the adjacent map tile icon of the polymerization geographical entity
Left-half icon namely the second icon be the icon left-half, since electronic map is by different maps watt
Piece be formed by stacking namely electronic map in and meanwhile include the blank map tile map tile adjacent with this, therefore electronically
The complete icon of the polymerization geographical entity is shown on figure.
It is worth noting that, when drawing the icon of the polymerization geographical entity, it can by the drafting starting point that the above method determines
Four apexes of the blank map tile can be located at, the first icon drawn on the blank map tile at this time is only that this is poly-
The 1/4 of the icon of geographical entity is closed, due to the apex that marginal position is the blank map tile, is searched with the blank
Server will find 3 adjacent map tiles when figure tile adjacent tile, and server is in 3 adjacent maps at this time
Drawn respectively on tile the icon of the polymerization geographical entity 1/4 namely second icon be the polymerization geographical entity icon
3/4。
For example, the icon that Fig. 2 B is a kind of polymerization geographical entity that inventive embodiments provide divides schematic diagram, such as Fig. 2 B institute
Show, when the marginal position is the upper left side vertex of the blank map tile, the icon of the polymerization geographical entity is averagely divided
For 4 parts as shown in Figure 2 B, the 4th part of the icon is only drawn on the blank map tile, drafting starting point is (PixelX
+ imgWidth/2, PixelY-imgHeight/2), draw lower right upper left side of the direction from the icon;And with the sky
The third portion that the icon is drawn in the adjacent map tile in the white map tile left side, adjacent with the blank map tile top
Map tile on draw the part 2 of the icon, drawn in the map tile adjacent with the blank map tile upper left side
The part 1 of the icon.
In addition, due to it is provided in an embodiment of the present invention be Polymeric electron map, namely when the geographical entity in map tile
Number when being greater than 1, only draw one in multiple geographical entity in the map tile, therefore when the ground in map tile
When managing the number of entity greater than 1, the position of the polymerization geographical entity in the map tile only represents one of geographical entity
Position, namely position of the polymerization geographical entity in map tile is not necessarily to excessively precisely at this time, so in embodiments of the present invention,
When the number of the geographical entity in map tile is greater than 1, and polymerizeing position of the geographical entity in the map tile is the map
When the marginal position of tile, the icon of the polymerization geographical entity can not also be generated by the above method, but in current blank
Drafting starting point is suitably adjusted in map tile, and the icon of the polymerization geographical entity is allow completely to be shown in the blank map watt
On piece.For example, can will be drawn when leftmost edge position of the position of the polymerization geographical entity in the blank map tile
Point move right at least one icon width distance, which can be completely plotted in the blank map tile at this time
On.
It should be noted that when only including a geographical entity in the map tile, in order to make to be somebody's turn to do in the map tile
It polymerize the position and position of the geographical entity in the map tile as far as possible one of geographical entity namely the icon of the geographical entity
It causes, when drawing the icon of the geographical entity on blank map tile, if the geographical entity is on the blank map tile
Position is the marginal position of the blank map tile, and still use draws the second figure calibration method in adjacent map tile and guarantees to be somebody's turn to do
The integrality of the icon of geographical entity.
In addition, drawing the mark of the polymerization geographical entity on the blank map tile and being drawn on the blank map tile
The implementation for making the icon of the polymerization geographical entity is essentially identical, does not elaborate herein.Wherein, in order to be labeled in this
Position is more beautiful on the blank map tile, can be upper in the blank map tile according to the icon of the polymerization geographical entity
It sets, position on the blank map tile is labeled in this and is suitably adjusted, specifically suitably adjusting can be by adjusting drawing
Point is to realize.
When the map tile in tile matrix stack is the map tile of non-polymeric type, at this time to multiple tile member number
Be updated equally can be with reference to the above process for the corresponding map tile of each tile metadata in, and the embodiment of the present invention is herein
No longer it is described in detail.
Step 206: according to the map tile after update, updating tile matrix stack, and will be every in multiple tile metadata
The tile status never state of readding of a tile metadata is updated to the state of having read.
After according to the corresponding map tile of each tile metadata updates, server can be by the tile member of storage
The corresponding map tile of data replaces with the map tile of generation, namely updates tile matrix stack.At this point, due to server
It is the tile metadata updates tile matrix stack for not readding state according to tile status, it is therefore desirable to will be every in the metadata set
The tile status never state of readding of a tile metadata is updated to the state of having read, and server is avoided to reach in next preset time period
When, repetition is updated the map tile that the tile status is the tile metadata for not readding state.
It optionally, can be to not when different tile matrix stacks are arranged for different types of geographical entity in server
Same tile matrix stack executes the operation of step 204 to step 206 respectively, when watt of the complete every a kind of geographical entity of server update
When piece matrix stack, the update to all tile matrix stacks is completed.
Step 207: at target map tile corresponding with current map resolution ratio in multiple target map tiles
Reason, and target map tile is sent to Administrator Client in real time by treated.
In embodiments of the present invention, when administrator changes the geographical entity on electronic map by Administrator Client,
In order to make administrator can be with the electronic map after real time inspection to change, after server can return to update to Administrator Client
Map tile.
Wherein, target map tile corresponding with current map resolution ratio in multiple target map tiles is handled
Realization process can be with are as follows: when geographical Entity Change requests to carry current map resolution ratio, server determines that current map is differentiated
The corresponding preset ratio rank of rate;Selection percentage rank is corresponding for the current map resolution ratio from multiple target map tile
Preset ratio rank target map tile;The target map watt with selection is obtained from the tile metadata table after update
The corresponding tile metadata of piece is updated according to target map tile of the tile metadata got to the selection.
When Administrator Client receives this treated target map tile, determining should treated target map watt
The mark of piece, and the map tile for being identified as this in current electronic map treated the mark of target map tile is replaced with
Should treated target map tile, to realize that administrator can be with real time inspection to updated electronic map.
Wherein, server determines that the corresponding preset ratio rank of current map resolution ratio can be by the public affairs in step 205
Formula (1) determines, in addition, being updated according to target map tile of the tile metadata got to the selection can be with reference to step
The method that the corresponding map tile of tile metadata each in multiple tile metadata is updated in rapid 205, herein not
It elaborates.
In embodiments of the present invention, when receiving the geographical entity change request of Administrator Client's transmission, to target
Tile metadata is updated, and updates the tile status of target tile metadata.Since the state of not readding is not used to indicate tile member
The corresponding map tile of data does not complete processing, therefore, when it is subsequent need to be updated tile matrix stack when, can be according only to
Tile status is not read the tile metadata of state to be updated tile matrix stack, avoid by redefine allly
The space vector data of entity is managed to update the tile matrix stack of every a kind of geographical entity, can be effectively relieved and update tile square
Pressure during battle array collection, improves the efficiency for updating tile matrix stack.In addition, in real time to Administrator Client's return and currently
The corresponding target map tile of map resolution ratio, for Administrator Client, when initiating geographical entity change request, also
Map after being updated with real-time display improves the timeliness of map.
Referring to Fig. 3, the embodiment of the invention provides a kind of map tile updating device 300, which includes receiving mould
Block 301, determining module 302, the first update module 303 and sending module 304:
Receiving module 301, for receiving the geographical entity change request of Administrator Client's transmission, geographical entity change
Request carries the space vector data and current map resolution ratio of target geographic entity corresponding with geographical entity change request;
Determining module 302, for the space vector data according to the target geographic entity, the determining and target geographic entity
Relevant multiple target map tiles to be processed;
First update module 303 is used for according to multiple target map tile, to multiple targets in tile metadata table
Tile metadata is updated, and the tile status of multiple target tile metadata corresponding with multiple target map tile is equal
It is updated to not read state;
Wherein, every tile metadata in the tile metadata table corresponds to a map tile, every tile member number
According to the information for describing corresponding map tile, which includes having read state and not read state, this has read state use
Processing is completed in the corresponding map tile of instruction tile metadata, the state of not readding is not used to indicate tile metadata correspondingly for this
Figure tile does not complete processing;
Sending module 304, for target corresponding with the current map resolution ratio in multiple target map tile
Figure tile is handled, and target map tile is sent to the Administrator Client in real time by treated.
Optionally, the map tile in the tile matrix stack is the map tile of non-polymeric type, each tile metadata
Scale level belonging to mark, corresponding map tile including corresponding map tile includes in corresponding map tile
Each geographical entity space vector data, the mark and tile status of each geographical entity.
Optionally, geographical entity change request includes geographical entity addition request, geographical entity removal request and geography
Entity updates request;
First update module, is specifically used for:
When geographical entity change request is geographical entity addition request, increasing in each target tile metadata should
The space vector data of the mark of target geographic entity and the target geographic entity;
When geographical entity change request is geographical entity removal request, deleting in each target tile metadata should
The space vector data of the mark of target geographic entity and the target geographic entity;
When the geographical entity change request be geographical entity update request when, include based on the target geographic entity first
Geographical entity and first geographical entity, in the target tile metadata of the corresponding each target map tile of the first geographical entity
The space vector data of the middle mark for deleting first geographical entity and first geographical entity, and it is corresponding in the second geographical entity
Each target map tile target tile metadata in increase by the mark and second geographical entity of second geographical entity
Space vector data, which is geographical entity before changing, which be the geography after changing
Entity.
Optionally, the map tile in the tile matrix stack is the map tile of polymeric type, each tile metadata packet
Include scale level belonging to the mark of corresponding map tile, corresponding map tile, polymerization in corresponding map tile
Space vector data, polymerization quantity and tile status, the polymerization quantity for managing entity are used to indicate in corresponding map tile
Including geographical entity number, which is the corresponding map tile of tile metadata any geography for including
Entity.
Optionally, first update module, is specifically used for:
When geographical entity change request is geographical entity addition request, increasing each target tile metadata includes
It polymerize quantity;
When geographical entity change request is geographical entity removal request, reducing each target tile metadata includes
It polymerize quantity.
When the geographical entity change request be geographical entity update request when, include based on the target geographic entity first
Geographical entity and first geographical entity reduce the target tile member of the corresponding each target map tile of first geographical entity
The polymerization quantity that data include, and increase the target tile metadata of the corresponding each target map tile of second geographical entity
Including polymerization quantity, which is geographical entity before changing, which be the geography after changing
Entity.
Optionally, the device further include:
First generation module is determined there is no multiple targets to be processed relevant to the target geographic entity for working as
When figure tile, multiple blank tile metadata are generated, to obtain multiple target tile metadata;Alternatively,
Second generation module, for there are multiple target maps to be processed relevant to the target geographic entity when determining
When tile, search whether there is multiple target tile members corresponding with multiple target map tile from the tile metadata table
Data generate and multiple target when multiple target tile metadata corresponding with multiple target map tile are not present
The corresponding multiple blank tile metadata of map tile, obtain multiple target tile metadata.
Optionally, the sending module, is specifically used for:
The corresponding preset ratio rank of the current map resolution ratio is determined from multiple preset ratio ranks;
Selection percentage rank is the corresponding preset ratio grade of the current map resolution ratio from multiple target map tile
Other target map tile;
Tile metadata corresponding with the target map tile of selection is obtained from the tile metadata table after update;
It is updated according to target map tile of the tile metadata got to the selection.
Optionally, the device further include:
Module is obtained, is the tile metadata for not readding state for obtaining tile status from the tile metadata table, obtains
To multiple tile metadata;
Second update module, for being carried out to the corresponding map tile of tile metadata each in multiple tile metadata
It updates;
Third update module, for according to the map tile after update, updating the tile matrix stack, and by multiple watt
The tile status never state of readding of each tile metadata is updated to the state of having read in piece metadata.
Optionally, the map tile in the tile matrix stack is the map tile of polymeric type;
Second update module includes:
Creating unit, for creating the tile member number for any one tile metadata in multiple tile metadata
According to corresponding blank map tile;
Determination unit determines that this is poly- for the space vector data according to the polymerization geographical entity in the tile metadata
Position of the geographical entity in the blank map tile is closed, which is the corresponding map tile of tile metadata
Including any geographical entity;
Drawing unit, for the position according to the polymerization geographical entity in the blank map tile, with drawing the polymerization
Icon and mark of the entity in the blank map tile are managed, to obtain the corresponding map tile of tile metadata, the icon
Be used to indicate the type of the polymerization geographical entity, this be noted for indicating include in the corresponding map tile of tile metadata
The number of geographical entity.
Optionally, the drawing unit, is specifically used for:
When the polymerization geographical entity is in the marginal position of the blank map tile, the polymerization geographical entity is drawn at this
The first icon in blank map tile, first icon are a part of the icon of the polymerization geographical entity;
Search the map tile adjacent with the marginal position of the blank map tile;
According to the space vector data of the polymerization geographical entity, determine the polymerization geographical entity in the adjacent map tile
In position;
According to position of the polymerization geographical entity in the adjacent map tile, drawn in the adjacent map tile
Second icon of the polymerization geographical entity, second icon are a part of the icon of the polymerization geographical entity, and second figure
Mark and first icon can constitute the complete icon of the polymerization geographical entity.
Optionally, which is tile matrix corresponding with a kind of geographical entity belonging to the target geographic entity
Collection.
In embodiments of the present invention, when receiving the geographical entity change request of Administrator Client's transmission, to target
Tile metadata is updated, and updates the tile status of target tile metadata.Since the state of not readding is not used to indicate tile member
The corresponding map tile of data does not complete processing, therefore, when it is subsequent need to be updated tile matrix stack when, can be according only to
Tile status is not read the tile metadata of state to be updated tile matrix stack, avoid by redefine allly
The space vector data of entity is managed to update the tile matrix stack of every a kind of geographical entity, can be effectively relieved and update tile square
Pressure during battle array collection, improves the efficiency for updating tile matrix stack.In addition, in real time to Administrator Client's return and currently
The corresponding target map tile of map resolution ratio, for Administrator Client, when initiating geographical entity change request, also
Map after being updated with real-time display improves the timeliness of map.
It should be understood that map tile updating device provided by the above embodiment trigger map tile update when, only
The example of the division of the above functional modules, in practical application, can according to need and by above-mentioned function distribution by
Different functional modules is completed, i.e., the internal structure of equipment is divided into different functional modules, described above complete to complete
Portion or partial function.In addition, map tile updating device provided by the above embodiment and map tile update method embodiment
Belong to same design, specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 4 is the block diagram of another map tile updating device 400 provided in an embodiment of the present invention.For example, device 400 can
To be provided as a server.Referring to Fig. 4, device 400 includes that processor 401, communication interface 402, memory 403 and communication are total
Line 404.
As shown in figure 4, processor 401, communication interface 402 and memory 403 by communication bus 404 complete it is mutual
Communication.
Processor 401 can be a CPU (Central Processing Unit, central processing unit), microprocessor,
ASIC (application-specific integrated circuit, application-specific integrated circuit), or one or more use
In the integrated circuit that control application scheme program executes.
Communication bus 404 may include an access, and information is transmitted between said modules.
Memory 403 can be ROM (read-only memory, read-only memory) or can store static information and instruction
Other types of static storage device, RAM (random access memory, random access memory) or letter can be stored
The other types of dynamic memory of breath and instruction, is also possible to EEPROM (Electrically Erasable
Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), CD-ROM (Compact Disc
Read-Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, number
The general optical disc of word, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store
Desired program code with instruction or data structure form simultaneously can be but unlimited by any other medium of computer access
In this.Memory 403, which can be, to be individually present, and is connected by communication bus 404 with processor 401.Memory 403 can also be with
It is integrated with processor 401.
Communication interface 402, using the device of any transceiver one kind, for other equipment or communication, such as
Ethernet, wireless access network, WLAN (Wireless Local Area Networks, WLAN) etc..
Wherein, memory 403 is used to store the computer program for executing application scheme, and is controlled by processor 401
It executes.That is, processor 401 is used to execute the program stored on memory, to realize map watt provided by the above embodiment
Piece update method.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the computer readable storage medium
It is inside stored with computer program, when the computer program stored in the computer readable storage medium is held by the processor of server
When row, map tile update method provided by the above embodiment is enabled the server to.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (24)
1. a kind of map tile update method, which is characterized in that the described method includes:
It receives the geographical entity that Administrator Client sends and changes request, the geographical entity change request carries and the geography
Entity Change requests the space vector data and current map resolution ratio of corresponding target geographic entity;
According to the space vector data of the target geographic entity, determine relevant to the target geographic entity to be processed more
A target map tile;
According to the multiple target map tile, multiple target tile metadata in tile metadata table are updated, it will
The tile status of multiple target tile metadata corresponding with the multiple target map tile is updated to not read state;
Wherein, every tile metadata in the tile metadata table corresponds to a map tile, every tile metadata
For describing the information of corresponding map tile, the tile status includes having read state and not read state, described to have read state
It is used to indicate the corresponding map tile of tile metadata and processing is completed, it is corresponding that the state of not readding is used to indicate tile metadata
Map tile do not complete processing;
Target map tile corresponding with the current map resolution ratio in the multiple target map tile is handled, and
By treated, target map tile is sent to the Administrator Client in real time.
2. the method as described in claim 1, which is characterized in that the map tile in the tile matrix stack is non-polymeric type
Map tile, each tile metadata includes the mark of corresponding map tile, ratio grade belonging to corresponding map tile
Not, the space vector data of each geographical entity for including in corresponding map tile, the mark of each geographical entity and
Tile status.
3. method according to claim 2, which is characterized in that the geographical entity change request includes that geographical entity addition is asked
It asks, geographical entity removal request and geographical entity update request;
It is described according to the multiple target map tile, multiple target tile metadata in tile metadata table are carried out more
Newly, comprising:
When it is geographical entity addition request that the geographical entity, which changes request, in each target tile metadata described in increase
The mark of target geographic entity and the space vector data of the target geographic entity;
When geographical entity change request is geographical entity removal request, in each target tile metadata described in deletion
The mark of target geographic entity and the space vector data of the target geographic entity;
When the geographical entity change request be geographical entity update request when, include based on the target geographic entity first
Geographical entity and the second geographical entity, in the target tile member number of the corresponding each target map tile of first geographical entity
The mark of first geographical entity and the space vector data of first geographical entity are deleted according to middle, and described second
Increase in the target tile metadata of the corresponding each target map tile of geographical entity second geographical entity mark and
The space vector data of second geographical entity, first geographical entity are geographical entity before changing, second ground
Reason entity is the geographical entity after change.
4. the method as described in claim 1, which is characterized in that the map tile in the tile matrix stack is polymeric type
Map tile, each tile metadata include the mark of corresponding map tile, scale level belonging to corresponding map tile,
Space vector data, polymerization quantity and the tile status of polymerization geographical entity in corresponding map tile, the aggregate number
Amount is used to indicate the number for the geographical entity for including in corresponding map tile, and the polymerization geographical entity is the tile member number
Any geographical entity for including according to corresponding map tile.
5. method as claimed in claim 4, which is characterized in that it is described according to the multiple target map tile, to tile member
Multiple target tile metadata in tables of data are updated, comprising:
When geographical entity change request is geographical entity addition request, increase that each target tile metadata includes is poly-
Close quantity;
When geographical entity change request is geographical entity removal request, that reduces that each target tile metadata includes is poly-
Close quantity.
When the geographical entity change request be geographical entity update request when, include based on the target geographic entity first
Geographical entity and the second geographical entity reduce the target tile member of the corresponding each target map tile of first geographical entity
The polymerization quantity that data include, and increase the target tile member number of the corresponding each target map tile of second geographical entity
According to the polymerization quantity for including, first geographical entity is geographical entity before changing, and second geographical entity is after changing
Geographical entity.
6. the method as described in claim 1, which is characterized in that it is described according to the multiple target map tile, to tile member
Before multiple target tile metadata in tables of data are updated, further includes:
When determining there is no when multiple target map tiles to be processed relevant to the target geographic entity, multiple skies are generated
White tile metadata, to obtain the multiple target tile metadata;Alternatively,
When determine there is multiple target map tiles to be processed relevant to the target geographic entity when, from the tile member
Searched whether in tables of data exist multiple target tile metadata corresponding with the multiple target map tile, when there is no with
When the corresponding multiple target tile metadata of the multiple target map tile, generate corresponding with the multiple target map tile
Multiple blank tile metadata, obtain the multiple target tile metadata.
7. the method as described in claim 1, which is characterized in that it is described in the multiple target map tile with it is described current
The corresponding target map tile of map resolution ratio is handled, comprising:
The corresponding preset ratio rank of the current map resolution ratio is determined from multiple preset ratio ranks;
Selection percentage rank is the corresponding preset ratio grade of the current map resolution ratio from the multiple target map tile
Other target map tile;
Tile metadata corresponding with the target map tile of selection is obtained from the tile metadata table after update;
The selected target map tile is updated according to the tile metadata got.
8. the method as described in claim 1, which is characterized in that the method also includes:
It is the tile metadata for not readding state that tile status is obtained from the tile metadata table, obtains multiple tile member numbers
According to;
The corresponding map tile of tile metadata each in the multiple tile metadata is updated;
According to the map tile after update, the tile matrix stack is updated, and will be each watt in the multiple tile metadata
The tile status of the piece metadata never state of readding is updated to the state of having read.
9. method according to claim 8, which is characterized in that the map tile in the tile matrix stack is polymeric type
Map tile;
It is described that the corresponding map tile of tile metadata each in the multiple tile metadata is updated, comprising:
For any one tile metadata in the multiple tile metadata, with creating the corresponding blank of the tile metadata
Figure tile;
According to the space vector data of the polymerization geographical entity in the tile metadata, determine the polymerization geographical entity in institute
The position in blank map tile is stated, the polymerization geographical entity is times that the corresponding map tile of the tile metadata includes
One geographical entity;
According to position of the polymerization geographical entity in the blank map tile, the polymerization geographical entity is drawn described
Icon and mark in blank map tile, to obtain the corresponding map tile of the tile metadata, the icon is for referring to
Show it is described polymerization geographical entity type, it is described be noted for indicating include in the corresponding map tile of the tile metadata
The number of geographical entity.
10. method as claimed in claim 9, which is characterized in that it is described according to the polymerization geographical entity in the blank
Icon and mark of the polymerization geographical entity in the blank map tile are drawn, to obtain in position in figure tile
State the corresponding map tile of tile metadata, comprising:
When the polymerization geographical entity is in the marginal position of the blank map tile, draws the polymerization geographical entity and exist
The first icon in the blank map tile, first icon are a part of the icon of the polymerization geographical entity;
Search the map tile adjacent with the marginal position of the blank map tile;
According to the space vector data of the polymerization geographical entity, determine the polymerization geographical entity in the adjacent map watt
Position in piece;
According to position of the polymerization geographical entity in the adjacent map tile, drawn in the adjacent map tile
The second icon of the polymerization geographical entity is made, second icon is a part of the icon of the polymerization geographical entity, and
Second icon and first icon can constitute the complete icon of the polymerization geographical entity.
11. the method as described in claims 1 to 10 is any, which is characterized in that the tile matrix stack is with the target
Manage the corresponding tile matrix stack of a kind of geographical entity belonging to entity.
12. a kind of map tile updating device, which is characterized in that described device includes:
Receiving module, for receiving the geographical entity change request of Administrator Client's transmission, the geographical entity change request
Carry the space vector data and current map resolution ratio of target geographic entity corresponding with geographical entity change request;
Determining module, for the space vector data according to the target geographic entity, determination and the target geographic entity phase
The multiple target map tiles to be processed closed;
First update module is used for according to the multiple target map tile, to multiple target tiles in tile metadata table
Metadata is updated, more by the tile status of multiple target tile metadata corresponding with the multiple target map tile
New is not read state;
Wherein, every tile metadata in the tile metadata table corresponds to a map tile, every tile metadata
For describing the information of corresponding map tile, the tile status includes having read state and not read state, described to have read state
It is used to indicate the corresponding map tile of tile metadata and processing is completed, it is corresponding that the state of not readding is used to indicate tile metadata
Map tile do not complete processing;
Sending module, for target map watt corresponding with the current map resolution ratio in the multiple target map tile
Piece is handled, and target map tile is sent to the Administrator Client in real time by treated.
13. device as claimed in claim 12, which is characterized in that the map tile in the tile matrix stack is non-polymeric class
The map tile of type, each tile metadata include the mark of corresponding map tile, ratio belonging to corresponding map tile
The space vector data of each geographical entity for including in rank, corresponding map tile, the mark of each geographical entity with
And tile status.
14. device as claimed in claim 13, which is characterized in that the geographical entity change request includes that geographical entity adds
Request, geographical entity removal request and geographical entity update request;
First update module, is specifically used for:
When it is geographical entity addition request that the geographical entity, which changes request, in each target tile metadata described in increase
The mark of target geographic entity and the space vector data of the target geographic entity;
When geographical entity change request is geographical entity removal request, in each target tile metadata described in deletion
The mark of target geographic entity and the space vector data of the target geographic entity;
When the geographical entity change request be geographical entity update request when, include based on the target geographic entity first
Geographical entity and the second geographical entity, in the target tile member number of the corresponding each target map tile of first geographical entity
The mark of first geographical entity and the space vector data of first geographical entity are deleted according to middle, and on second ground
Increase by mark and the institute of second geographical entity in the target tile metadata of the corresponding each target map tile of reason entity
The space vector data of the second geographical entity is stated, first geographical entity is geographical entity before changing, and described second is geographical
Entity is the geographical entity after change.
15. device as claimed in claim 12, which is characterized in that the map tile in the tile matrix stack is polymeric type
Map tile, each tile metadata includes the mark of corresponding map tile, ratio grade belonging to corresponding map tile
Not, space vector data, polymerization quantity and the tile status of the polymerization geographical entity in corresponding map tile, the polymerization
Quantity is used to indicate the number of the geographical entity in corresponding map tile included, and the polymerization geographical entity is the tile member
Any geographical entity that the corresponding map tile of data includes.
16. device as claimed in claim 15, which is characterized in that first update module is specifically used for:
When geographical entity change request is geographical entity addition request, increase that each target tile metadata includes is poly-
Close quantity;
When geographical entity change request is geographical entity removal request, that reduces that each target tile metadata includes is poly-
Close quantity.
When the geographical entity change request be geographical entity update request when, include based on the target geographic entity first
Geographical entity and the second geographical entity reduce the target tile member of the corresponding each target map tile of first geographical entity
The polymerization quantity that data include, and increase the target tile member number of the corresponding each target map tile of second geographical entity
According to the polymerization quantity for including, first geographical entity is geographical entity before changing, and second geographical entity is after changing
Geographical entity.
17. device as claimed in claim 12, which is characterized in that described device further include:
First generation module, for multiple target maps to be processed relevant to the target geographic entity to be not present when determining
When tile, multiple blank tile metadata are generated, to obtain the multiple target tile metadata;Alternatively,
Second generation module, for there are multiple target maps watt to be processed relevant to the target geographic entity when determining
When piece, search whether there are multiple target tiles corresponding with the multiple target map tile from the tile metadata table
Metadata generates and described more when multiple target tile metadata corresponding with the multiple target map tile are not present
The corresponding multiple blank tile metadata of a target map tile, obtain the multiple target tile metadata.
18. device as claimed in claim 12, which is characterized in that the sending module is specifically used for:
The corresponding preset ratio rank of the current map resolution ratio is determined from multiple preset ratio ranks;
Selection percentage rank is the corresponding preset ratio grade of the current map resolution ratio from the multiple target map tile
Other target map tile;
Tile metadata corresponding with the target map tile of selection is obtained from the tile metadata table after update;
The selected target map tile is updated according to the tile metadata got.
19. device as claimed in claim 12, which is characterized in that described device further include:
Module is obtained, is the tile metadata for not readding state for obtaining tile status from the tile metadata table, obtains
Multiple tile metadata;
Second update module, for being carried out more to the corresponding map tile of tile metadata each in the multiple tile metadata
Newly;
Third update module, for updating the tile matrix stack according to the map tile after update, and by the multiple watt
The tile status never state of readding of each tile metadata is updated to the state of having read in piece metadata.
20. device as claimed in claim 19, which is characterized in that the map tile in the tile matrix stack is polymeric type
Map tile;
Second update module includes:
Creating unit, for creating the tile member number for any one tile metadata in the multiple tile metadata
According to corresponding blank map tile;
Determination unit determines described poly- for the space vector data according to the polymerization geographical entity in the tile metadata
Close position of the geographical entity in the blank map tile, the polymerization geographical entity for the tile metadata correspondingly
Any geographical entity that figure tile includes;
Drawing unit draws the polymerization for the position according to the polymerization geographical entity in the blank map tile
Icon and mark of the geographical entity in the blank map tile, to obtain the corresponding map tile of the tile metadata,
The icon is used to indicate the type of the polymerization geographical entity, described to be noted for indicating the tile metadata correspondingly
The number for the geographical entity for including in figure tile.
21. device as claimed in claim 20, which is characterized in that the drawing unit is specifically used for:
When the polymerization geographical entity is in the marginal position of the blank map tile, draws the polymerization geographical entity and exist
The first icon in the blank map tile, first icon are a part of the icon of the polymerization geographical entity;
Search the map tile adjacent with the marginal position of the blank map tile;
According to the space vector data of the polymerization geographical entity, determine the polymerization geographical entity in the adjacent map watt
Position in piece;
According to position of the polymerization geographical entity in the adjacent map tile, drawn in the adjacent map tile
The second icon of the polymerization geographical entity is made, second icon is a part of the icon of the polymerization geographical entity, and
Second icon and first icon can constitute the complete icon of the polymerization geographical entity.
22. the device as described in claim 12 to 21 is any, which is characterized in that the tile matrix stack is with the target
Manage the corresponding tile matrix stack of a kind of geographical entity belonging to entity.
23. a kind of map tile updating device, which is characterized in that the map tile updating device include processor, communication connect
Mouth, memory and communication bus;
The processor, the communication interface and the memory complete mutual communication by the communication bus;
The memory is for storing computer program;
The processor is for executing the program stored on memory, to realize any method step of claim 1-11
Suddenly.
24. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-11 any method and step when the computer program is executed by processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710423627 | 2017-06-07 | ||
CN2017104236271 | 2017-06-07 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109002452A true CN109002452A (en) | 2018-12-14 |
CN109002452B CN109002452B (en) | 2020-10-23 |
Family
ID=64566788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711077419.7A Active CN109002452B (en) | 2017-06-07 | 2017-11-06 | Map tile updating method and device and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109002452B (en) |
WO (1) | WO2018223990A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597941A (en) * | 2019-09-11 | 2019-12-20 | 广州力挚网络科技有限公司 | Map display method and system |
CN111325841A (en) * | 2020-02-18 | 2020-06-23 | 国网河北省电力有限公司 | Smart map data system modeling method and application thereof in power audit operation |
CN111753041A (en) * | 2020-06-30 | 2020-10-09 | 重庆紫光华山智安科技有限公司 | Data aggregation rendering method, device and system, electronic equipment and storage medium |
CN112231426A (en) * | 2020-10-13 | 2021-01-15 | 重庆紫光华山智安科技有限公司 | Vector tile point data based updating method, system, medium and terminal |
CN116993857A (en) * | 2023-08-11 | 2023-11-03 | 中国科学院西北生态环境资源研究院 | Thematic map preparation method and device, storage medium and electronic equipment |
CN117632972A (en) * | 2024-01-26 | 2024-03-01 | 中国电子科技集团公司第十五研究所 | Map tile aggregate release method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130101235A1 (en) * | 2011-10-25 | 2013-04-25 | John T. Sample | System and method for determining tile size for a map view |
CN103488760A (en) * | 2013-09-26 | 2014-01-01 | 中国测绘科学研究院 | Provision method of geographic information tile services and device for implementing provision method |
CN103718000A (en) * | 2011-05-19 | 2014-04-09 | Sk普兰尼特有限公司 | Real-time map data updating system and method |
CN104537031A (en) * | 2014-12-19 | 2015-04-22 | 百度在线网络技术(北京)有限公司 | Method and device for modifying map data |
CN104778212A (en) * | 2014-12-19 | 2015-07-15 | 北京搜狗科技发展有限公司 | Map data generation method, map data generation device, map data reading method and map data reading device |
US20150347457A1 (en) * | 2014-05-28 | 2015-12-03 | Oracle International Corporation | Automatic update for map cache |
CN105339938A (en) * | 2013-05-15 | 2016-02-17 | 谷歌公司 | Efficient fetching of map tile data |
US20170091993A1 (en) * | 2015-09-25 | 2017-03-30 | Microsoft Technology Licensing, Llc | 3D Model Generation From Map Data and User Interface |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8204966B1 (en) * | 2011-09-26 | 2012-06-19 | Google Inc. | Map tile data pre-fetching based on user activity analysis |
US9396508B2 (en) * | 2013-05-15 | 2016-07-19 | Google Inc. | Use of map data difference tiles to iteratively provide map data to a client device |
KR102026474B1 (en) * | 2015-03-30 | 2019-11-04 | 한국전자통신연구원 | System and method for partial update and partial tile map generation using electronic navigation chart update information |
-
2017
- 2017-11-06 CN CN201711077419.7A patent/CN109002452B/en active Active
-
2018
- 2018-06-06 WO PCT/CN2018/090134 patent/WO2018223990A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103718000A (en) * | 2011-05-19 | 2014-04-09 | Sk普兰尼特有限公司 | Real-time map data updating system and method |
US20130101235A1 (en) * | 2011-10-25 | 2013-04-25 | John T. Sample | System and method for determining tile size for a map view |
CN105339938A (en) * | 2013-05-15 | 2016-02-17 | 谷歌公司 | Efficient fetching of map tile data |
CN103488760A (en) * | 2013-09-26 | 2014-01-01 | 中国测绘科学研究院 | Provision method of geographic information tile services and device for implementing provision method |
US20150347457A1 (en) * | 2014-05-28 | 2015-12-03 | Oracle International Corporation | Automatic update for map cache |
CN104537031A (en) * | 2014-12-19 | 2015-04-22 | 百度在线网络技术(北京)有限公司 | Method and device for modifying map data |
CN104778212A (en) * | 2014-12-19 | 2015-07-15 | 北京搜狗科技发展有限公司 | Map data generation method, map data generation device, map data reading method and map data reading device |
US20170091993A1 (en) * | 2015-09-25 | 2017-03-30 | Microsoft Technology Licensing, Llc | 3D Model Generation From Map Data and User Interface |
Non-Patent Citations (1)
Title |
---|
马卫春等: "基于Python的ArcGIS Server地图瓦片定时", 《地理空间信息》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597941A (en) * | 2019-09-11 | 2019-12-20 | 广州力挚网络科技有限公司 | Map display method and system |
CN110597941B (en) * | 2019-09-11 | 2023-12-29 | 广州力挚网络科技有限公司 | Map display method and system |
CN111325841A (en) * | 2020-02-18 | 2020-06-23 | 国网河北省电力有限公司 | Smart map data system modeling method and application thereof in power audit operation |
CN111753041A (en) * | 2020-06-30 | 2020-10-09 | 重庆紫光华山智安科技有限公司 | Data aggregation rendering method, device and system, electronic equipment and storage medium |
CN111753041B (en) * | 2020-06-30 | 2022-12-02 | 重庆紫光华山智安科技有限公司 | Data aggregation rendering method, device and system, electronic equipment and storage medium |
CN112231426A (en) * | 2020-10-13 | 2021-01-15 | 重庆紫光华山智安科技有限公司 | Vector tile point data based updating method, system, medium and terminal |
CN116993857A (en) * | 2023-08-11 | 2023-11-03 | 中国科学院西北生态环境资源研究院 | Thematic map preparation method and device, storage medium and electronic equipment |
CN116993857B (en) * | 2023-08-11 | 2024-04-02 | 中国科学院西北生态环境资源研究院 | Thematic map preparation method and device, storage medium and electronic equipment |
CN117632972A (en) * | 2024-01-26 | 2024-03-01 | 中国电子科技集团公司第十五研究所 | Map tile aggregate release method and device, electronic equipment and storage medium |
CN117632972B (en) * | 2024-01-26 | 2024-04-12 | 中国电子科技集团公司第十五研究所 | Map tile aggregate release method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109002452B (en) | 2020-10-23 |
WO2018223990A1 (en) | 2018-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002452A (en) | Map tile update method, device and computer readable storage medium | |
CN107423445B (en) | A kind of map data processing method, device and storage medium | |
CN107239531B (en) | Implementation method for expanding WMS service of GeoServer releasing custom tiles | |
US10089331B2 (en) | System and method for storing a dataset of image tiles | |
USRE41983E1 (en) | Method of organizing and compressing spatial data | |
CN101364310B (en) | Three-dimensional model image generating method and apparatus | |
KR101785982B1 (en) | Method and apparatus for generating mosaic image | |
CN103093499B (en) | A kind of city three-dimensional model data method for organizing being applicable to Internet Transmission | |
CN106462945B (en) | The hierarchical structure of map datum is presented with different zoom grade | |
CN112966134B (en) | Remote sensing image data processing method, system and storage medium | |
CN103970835B (en) | A kind of map vector data storage method and system | |
CN105574102B (en) | A kind of method and device of electronic map data load | |
JP5236911B2 (en) | Divided map image generation device, map server, system and program | |
CN105160707B (en) | Threedimensional model quick visualization method based on viewpoint index | |
CN110599891B (en) | Map rendering method for power grid equipment | |
CN110321443A (en) | Three-dimensional live model data base construction method, device and data service system | |
CN110990516A (en) | Map data processing method and device and server | |
CN110990612B (en) | Method and terminal for rapidly displaying vector big data | |
US9679349B2 (en) | Method for visualizing three-dimensional data | |
CN115129801A (en) | Map data processing method, device, equipment and storage medium | |
CN117218273A (en) | Image rendering method and device | |
CN104156475B (en) | Geography information read method and device | |
CN116091715A (en) | POI (point of interest) point aggregation method based on three-dimensional GIS engine | |
CN111966853B (en) | Management method of remote sensing image | |
CN115006842A (en) | Scene map generation method and device, storage medium and computer equipment |
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 |