WO2018223990A1 - Procédé et dispositif de mise à jour de mosaïque de carte et support d'informations lisible par ordinateur - Google Patents
Procédé et dispositif de mise à jour de mosaïque de carte et support d'informations lisible par ordinateur Download PDFInfo
- Publication number
- WO2018223990A1 WO2018223990A1 PCT/CN2018/090134 CN2018090134W WO2018223990A1 WO 2018223990 A1 WO2018223990 A1 WO 2018223990A1 CN 2018090134 W CN2018090134 W CN 2018090134W WO 2018223990 A1 WO2018223990 A1 WO 2018223990A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- tile
- geographic entity
- map
- target
- metadata
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
Definitions
- the present application relates to the field of maps, and in particular, to a method and device for updating a map tile and a computer readable storage medium.
- the current electronic map is mainly formed by superimposing map tiles of various types of geographical entities such as cinemas, restaurants, supermarkets, etc., and the map tiles are processed by the server through WMTS (Web Map Tile Service) technology.
- WMTS Web Map Tile Service
- the spatial vector data processing of the entity is obtained, so the map tile can visually represent the spatial location of the geographic entity. Since the spatial location of geographic entities may change in real life, such as adding a movie theater to a street, the server needs to periodically update the map tiles to ensure the spatial location of the geographic entities in the map tiles and the real-life geographic entities.
- the spatial location is as consistent as possible.
- the server classifies a plurality of geographic entities in advance to obtain at least one type of geographic entity, such as determining all movie theaters as a type of geographic entity, and determining all KFCs as a type of geographic entity.
- the server analyzes, extracts, and renders the spatial vector data of each geographic entity in the geographic entity according to each of the preset proportion levels.
- a plurality of map tiles of a class geographic entity at each preset scale level are Among them, the map tiles under the same preset scale level have the same resolution.
- a plurality of map tiles under the same preset scale level form a tile matrix to obtain a plurality of tile matrices, and the plurality of tile matrices constitute a tile matrix set of the geographic entity.
- the server After determining the set of tile matrices of the type of the geographic entity, the server re-determines the space vector data of all the geographic entities in the geographic entity for each preset time period, and according to the spatial vector data of the re-determined geographic entity, according to the above method
- the set of tile matrices of the type of geographic entity is re-determined, that is, the map tiles in the tile matrix set of the geographic entity are updated.
- the server Since the server updates the tile matrix set every preset time period, if a current geographic entity changes, the administrator client records that the geographic entity has changed, but the server still arrives in the next preset time period.
- the map tile in the tile matrix set can be updated, that is, after the administrator client records the change of a geographic entity, the currently displayed map tile is still the map tile before the update.
- the server needs to re-determine the space vector data of all the geographic entities in each type of geographic entity every predetermined time period, and determine the tile matrix of each type of geographic entity according to the spatial vector data of all the determined geographical entities.
- the set causes the server to be under pressure during the process of updating the tile matrix set.
- the embodiment of the present application provides a map tile updating method and device, and a computer readable storage medium, which can solve the current map tile displayed by an administrator client after recording a geographic entity to change in the existing WMTS technology. It is still the map tile before the update, and the server has a lot of pressure in the process of updating the tile matrix set.
- the technical solution is as follows:
- a method for updating a map tile comprising:
- Each tile metadata in the tile metadata table corresponds to one map tile, and each tile metadata is used to describe information of a corresponding map tile, where the tile state includes a read state. And the read state is used to indicate that the map tile corresponding to the tile metadata has been processed, and the unread state is used to indicate that the map tile corresponding to the tile metadata is not processed;
- the map tiles in the tile matrix set are non-aggregated type map tiles
- each tile metadata includes an identifier of a corresponding map tile, a scale level to which the corresponding map tile belongs, and a corresponding The spatial vector data of each geographic entity included in the map tile, the identity of each geographic entity, and the tile status.
- the geographic entity change request includes a geographic entity addition request, a geographic entity deletion request, or a geographic entity update request;
- Updating the plurality of target tile metadata corresponding to the plurality of target map tiles in the tile metadata table including:
- the geographic entity change request adds a request to the geographic entity, adding an identifier of the target geographic entity and space vector data of the target geographic entity in each target tile metadata;
- the geographic entity change request is a geographic entity deletion request, deleting the identifier of the target geographic entity and the space vector data of the target geographic entity in each target tile metadata;
- the geographic entity change request is a geographic entity update request
- a target tile of each target map tile corresponding to the first geographic entity Deleting the identifier of the first geographic entity and the space vector data of the first geographic entity in the piece of metadata, and adding the target tile metadata of each target map tile corresponding to the second geographic entity
- the identifier of the second geographic entity and the space vector data of the second geographic entity, the first geographic entity is a pre-change geographic entity, and the second geographic entity is a changed geographic entity.
- the map tiles in the tile matrix set are aggregation type map tiles
- each tile metadata includes an identifier of a corresponding map tile, a scale level to which the corresponding map tile belongs, and a corresponding map.
- the space vector data, the number of aggregates, and the tile state of the aggregated geographic entity in the tile, the aggregated number is used to indicate the number of geographic entities included in the corresponding map tile, and the aggregated geographic entity is the tile Any geographic entity included in the map tile corresponding to the metadata.
- the geographic entity change request includes a geographic entity addition request, a geographic entity deletion request, or a geographic entity update request;
- Updating the plurality of target tile metadata corresponding to the plurality of target map tiles in the tile metadata table including:
- the geographic entity change request is a geographic entity deletion request, reducing the aggregated amount included in each target tile metadata
- the geographic entity change request is a geographic entity update request, reducing a target tile of each target map tile corresponding to the first geographic entity based on the first geographic entity and the second geographic entity included in the target geographic entity And the number of aggregates included in the target tile metadata of each target map tile corresponding to the second geographic entity, where the first geographic entity is a geographic entity before the change,
- the second geographic entity is a changed geographic entity.
- the method before updating the multiple target tile metadata in the tile metadata table according to the multiple target map tiles, the method further includes:
- the processing, by the target map tile corresponding to the current map resolution of the multiple target map tiles includes:
- the selected target map tile is updated according to the acquired target tile metadata.
- the method further includes:
- tile metadata table Obtaining, from the tile metadata table, tile metadata whose tile state is an unread state, to obtain a plurality of tile metadata
- the map tile in the tile matrix set is an aggregate type map tile
- mapping according to the location of the aggregated geographic entity in the blank map tile, an icon and an annotation of the aggregated geographic entity in the blank map tile to obtain a map tile corresponding to the tile metadata,
- the icon is used to indicate a type of the aggregated geographic entity
- the label is used to indicate a number of geographic entities included in a map tile corresponding to the tile metadata.
- the icon and the label of the aggregated geographic entity in the blank map tile are drawn according to the location of the aggregated geographic entity in the blank map tile to obtain the tile metadata.
- Corresponding map tiles including:
- the tile matrix set is a tile matrix set corresponding to a type of geographic entity to which the target geographic entity belongs.
- a map tile update device comprising:
- a receiving module configured to receive a geographic entity change request sent by an administrator client, where the geographic entity change request carries spatial vector data of the target geographic entity and a current map resolution;
- a determining module configured to determine, according to the space vector data of the target geographic entity, a plurality of target map tiles to be processed related to the target geographic entity from the tile matrix set;
- a first update module configured to update, by using a plurality of target tile metadata corresponding to the multiple target map tiles in a tile metadata table, and to perform tile states of the multiple target tile metadata Update to the unread state;
- Each tile metadata in the tile metadata table corresponds to one map tile, and each tile metadata is used to describe information of a corresponding map tile, where the tile state includes a read state. And the read state is used to indicate that the map tile corresponding to the tile metadata has been processed, and the unread state is used to indicate that the map tile corresponding to the tile metadata is not processed;
- a sending module configured to process the target map tile corresponding to the current map resolution of the plurality of target map tiles, and send the processed target map tile to the administrator client in real time.
- the map tiles in the tile matrix set are non-aggregated type map tiles
- each tile metadata includes an identifier of a corresponding map tile, a scale level to which the corresponding map tile belongs, and a corresponding The spatial vector data of each geographic entity included in the map tile, the identity of each geographic entity, and the tile status.
- the geographic entity change request includes a geographic entity addition request, a geographic entity deletion request, or a geographic entity update request;
- the first update module is specifically configured to:
- the geographic entity change request adds a request to the geographic entity, adding an identifier of the target geographic entity and space vector data of the target geographic entity in each target tile metadata;
- the geographic entity change request is a geographic entity deletion request, deleting the identifier of the target geographic entity and the space vector data of the target geographic entity in each target tile metadata;
- the geographic entity change request is a geographic entity update request
- a target tile of each target map tile corresponding to the first geographic entity Deleting the identifier of the first geographic entity and the space vector data of the first geographic entity in the piece of metadata, and adding the target tile metadata of each target map tile corresponding to the second geographic entity
- the identifier of the second geographic entity and the space vector data of the second geographic entity, the first geographic entity is a pre-change geographic entity, and the second geographic entity is a changed geographic entity.
- the map tiles in the tile matrix set are aggregation type map tiles
- each tile metadata includes an identifier of a corresponding map tile, a scale level to which the corresponding map tile belongs, and a corresponding map.
- the space vector data, the number of aggregates, and the tile state of the aggregated geographic entity in the tile, the aggregated number is used to indicate the number of geographic entities included in the corresponding map tile, and the aggregated geographic entity is the tile Any geographic entity included in the map tile corresponding to the metadata.
- the geographic entity change request includes a geographic entity addition request, a geographic entity deletion request, or a geographic entity update request;
- the first update module is specifically configured to:
- the geographic entity change request is a geographic entity deletion request, reducing the aggregated amount included in each target tile metadata
- the geographic entity change request is a geographic entity update request, reducing a target tile of each target map tile corresponding to the first geographic entity based on the first geographic entity and the second geographic entity included in the target geographic entity And the number of aggregates included in the target tile metadata of each target map tile corresponding to the second geographic entity, where the first geographic entity is a geographic entity before the change,
- the second geographic entity is a changed geographic entity.
- the device further includes:
- a first generating module configured to: when determining that there are no target map tiles to be processed related to the target geographic entity, generate a plurality of blank tile metadata, and use the multiple blank tile metadata as The plurality of target tile metadata; or
- a second generating module configured to: when determining that there are multiple target map tiles to be processed related to the target geographic entity, whether to find and exist with the multiple target map tiles from the tile metadata table Corresponding multiple target tile metadata, when there are multiple target tile metadata corresponding to the multiple target map tiles, generating multiple blank tiles corresponding to the multiple target map tiles Metadata, the plurality of blank tile metadata being used as the plurality of target tile metadata.
- the sending module is specifically configured to:
- the selected target map tile is updated according to the acquired target tile metadata.
- the device further includes:
- An obtaining module configured to obtain, from the tile metadata table, tile metadata whose tile state is an unread state, to obtain multiple tile metadata
- a second update module configured to update a map tile corresponding to each tile metadata of the multiple tile metadata
- a third update module configured to update the tile matrix set according to the updated map tile, and update a tile state of each tile metadata in the multiple tile metadata from a read state to a read state Read status.
- the map tile in the tile matrix set is an aggregate type map tile
- the second update module includes:
- a creating unit configured to create a blank map tile corresponding to the tile metadata for any one of the plurality of tile metadata
- a determining unit configured to determine, according to space vector data of the aggregated geographic entity in the tile metadata, a location of the aggregated geographic entity in the blank map tile, where the aggregated geographic entity is the tile element Any geographic entity included in the map tile corresponding to the data;
- a drawing unit configured to draw an icon and an annotation of the aggregated geographic entity in the blank map tile according to a location of the aggregated geographic entity in the blank map tile, to obtain the tile metadata corresponding a map tile, the icon is used to indicate a type of the aggregated geographic entity, and the label is used to indicate the number of geographic entities included in the map tile corresponding to the tile metadata.
- the drawing unit is specifically configured to:
- the tile matrix set is a tile matrix set corresponding to a type of geographic entity to which the target geographic entity belongs.
- a map tile update apparatus comprising a processor, a communication interface, a memory, and a communication bus;
- the processor, the communication interface, and the memory complete communication with each other through the communication bus;
- the memory is for storing a computer program
- the processor is configured to execute a program stored on the memory to implement the map tile update method provided by the first aspect.
- a computer readable storage medium storing a computer program, the computer program being executed by the processor to implement the map tile update method provided by the first aspect.
- the target tile metadata when receiving the geographic entity change request sent by the administrator client, the target tile metadata is updated, and the tile state of the target tile metadata is updated to the unread state. Since each tile metadata is used to describe information of the corresponding map tile, and the tile state of the tile data data includes the read state and the unread state, the unread state is used to indicate the tile corresponding to the tile metadata. The slice is not processed. Therefore, when the tile matrix set needs to be updated later, the tile matrix set can be updated only according to the tile metadata whose tile state is the unread state, and all the geography through re-determination is avoided.
- the spatial vector data of the entity to update the tile matrix set of each type of geographic entity can effectively alleviate the pressure in updating the tile matrix set and improve the efficiency of updating the tile matrix set.
- the target map tile corresponding to the current map resolution is returned to the administrator client in real time. For the administrator client, when the geographic entity change request is initiated, the updated map can be displayed in real time, and the map is improved. Timeliness.
- FIG. 1 is a flowchart of a method for updating a map tile according to an embodiment of the present application
- FIG. 2 is a flowchart of another method for updating a map tile according to an embodiment of the present application
- FIG. 3 is a schematic diagram of icon division of an aggregated geographic entity according to an embodiment of the present application.
- FIG. 4 is a block diagram of a map tile updating apparatus according to an embodiment of the present application.
- FIG. 5 is a block diagram of another map tile updating apparatus provided by an embodiment of the present application.
- a geographic entity refers to an entity in a geographic database.
- a geographic entity can be divided into a point entity, a linear entity, and a planar entity.
- point entity For example, common cinemas, restaurants, and supermarkets are point entities, rivers and roads are linear entities, and lakes and oceans are planar entities.
- a map tile is a single image generated by a server according to analysis, extraction and rendering of spatial vector data of a geographic entity.
- a map tile is used to describe a type of geographic entity within a spatial location range represented by the map tile.
- the type of the geographic entity to which the map tile belongs is a camera
- the spatial position of the map tile ranges from latitude X1 to latitude X2, longitude Y1 to longitude Y2, and the map tile is used to describe the spatial position latitude X1 to latitude. X2, all cameras distributed in the longitude Y1 to the longitude Y2.
- a tile matrix refers to a set including a plurality of map tiles, the tile matrix includes a plurality of map tiles determined by the server, a coordinate system, a cut-off origin, a preset scale level, and a single map tile size.
- multiple map tiles generated from spatial vector data of a class of geographic entities.
- one tile matrix corresponds to a preset scale level, and the preset scale level is a preset scale level in the server, and the preset scale level is related to the map resolution.
- a tile matrix set refers to a set including a plurality of tile matrices, and all map tiles included in the plurality of tile matrices include only one type of geographic entity, that is, one type of geographic entity corresponds to one tile matrix set. And the plurality of tile matrices are obtained according to different preset scale levels according to space vector data of a type of geographic entity. For example, all cameras in a spatial location correspond to a tile matrix set, and all KFCs correspond to a tile matrix set.
- An electronic map refers to a map formed by layer overlays of map tiles of multiple types of geographic entities.
- the aggregated electronic map refers to, for each map tile constituting the electronic map, only the spatial position of one of the geographic entities included in the map tile is displayed in the map tile, and the map tile includes The number of geographic entities.
- An aggregated geographic entity refers to a geographic entity used in a map tile of an aggregated electronic map to represent all of the geographic entities included in the map tile.
- a map tile includes three geographic entities.
- the three geographic entities may not be marked in the map tile, and the three geographic entities are directly represented by an aggregated geographic entity.
- the number of aggregates refers to the number of all geographic entities included in the map tile in the aggregated electronic map.
- the tile metadata refers to data for describing a geographic entity included in the map tile.
- One map tile corresponds to one tile metadata, and the server may directly generate corresponding to the tile metadata according to information included in the tile metadata. Map tiles.
- a tile state configured to indicate a state of the tile metadata, the tile state including a read state and a missed state, wherein the read state is used to indicate that the server has updated the tile matrix set according to the tile metadata, not read The status is used to indicate that the server has not updated the tile matrix set based on the tile metadata.
- the server determines spatial vector data of all geographic entities included in the geographic entity, and generates a visual representation of all geographic entities included in the geographic entity. Multiple map tiles for spatial locations.
- the server sets a plurality of preset scale levels, each preset scale level corresponds to a map resolution, and the higher the preset scale level, the lower the map resolution corresponding to the preset scale level.
- the server when the server generates a plurality of map tiles at a preset scale level, the plurality of map tiles under the preset scale level constitute a tile matrix of the preset scale level, when the When a plurality of tile levels of a preset scale level are used, the tile matrix of the plurality of preset scale levels constitutes a tile matrix set of the geographic entity.
- the pixel size of the map tile pre-stored by the server is a preset pixel size, that is, a tile matrix set for a class of geographic entities, and the map tiles in each tile matrix included in the tile matrix set.
- the electronic map of the rate is cut according to the preset pixel size to obtain a plurality of map tiles of the same size, and the plurality of map tiles of the same size constitute a tile matrix of a preset scale level 0;
- the slice matrix is equivalent to reducing the map resolution to the map resolution corresponding to the preset scale level 1 according to the preset rule by using the electronic map of the map resolution corresponding to the preset scale level 0, and according to the preset in the reduced electronic map.
- the pixel size is cut to obtain a plurality of map tiles of the same size, and the plurality of map tiles of the same size constitute a tile matrix of a preset scale level 1; and so on until the preset scale level N-1 is determined.
- Tile matrix is
- the preset rule is usually to combine every 2x2 pixels into one pixel. Since the pixel size of the map tile is fixed, and the preset scale level increases, the map resolution corresponding to the preset scale level is reduced. Small, so that the number of map tiles included in the tile matrix of the preset scale level is reduced, until the tile matrix of the preset scale level N-1 includes only one map tile of a preset pixel size.
- the tile matrix set is therefore also referred to as the pyramid tile matrix set.
- the preset pixel size is a pixel size preset by the server. Generally, the preset pixel size is 256 ⁇ 256.
- the tile matrix set of multiple types of geographic entities is stored in the server.
- the user client can directly obtain the geographic entity from the server on the current map.
- the map tile under the preset scale level corresponding to the resolution. Since the spatial location of the geographic entity may change in real life, in order to ensure that the spatial location of the geographic entity in the map tile and the spatial location of the geographic entity in real life are as consistent as possible, when the spatial location of the geographic entity changes, the server needs The tile matrix update method is updated, and the map tile update method provided by the embodiment of the present application is applied to a scenario in which the server updates the tile matrix set.
- FIG. 1 is a flowchart of a method for updating a map tile according to an embodiment of the present application.
- the map tile update method is applied to a server. As shown in FIG. 1 , the map tile update method includes the following steps.
- Step 101 Receive a geographic entity change request sent by an administrator client, where the geographic entity change request carries space vector data of the target geographic entity and a current map resolution.
- the administrator client may send a geographic entity change request to trigger the server to update related data.
- Step 102 Determine, according to the space vector data of the target geographic entity, a plurality of target map tiles to be processed related to the target geographic entity from the tile matrix set.
- the server may determine, according to the space vector data of the target geographic entity, a plurality of target tile matrices related to the target geographic entity in the target tile matrix set, so as to facilitate subsequent Correlation operations are performed based on the plurality of target tile matrices.
- Step 103 Update a plurality of target tile metadata corresponding to the plurality of target map tiles in the tile metadata table, and update the tile states of the plurality of target tile metadata to an unread state;
- Each tile metadata in the tile metadata table corresponds to one map tile, and each tile metadata is used to describe information of a corresponding map tile, and the tile state includes a read state and a missed state.
- the status, the read status is used to indicate that the map tile corresponding to the tile metadata has been processed, and the unread status is used to indicate that the map tile corresponding to the tile metadata has not been processed.
- the server is configured with a tile metadata table, and each tile metadata included in the tile metadata table is used to describe information of the corresponding map tile, so the server may
- the target map tiles update the plurality of target tile metadata corresponding to the plurality of target map tiles.
- the server is configured with a tile state for each tile metadata, wherein the read state is used to indicate that the map tile corresponding to the tile metadata has been processed, and the unread state is used to indicate that the tile metadata corresponds to The map tile is not processed.
- the map tile corresponding to the tile metadata has been processed, and after the tile metadata is updated, the server has updated the corresponding map tile according to the tile metadata.
- the uncompleted processing of the map tile corresponding to the tile metadata means that after updating the tile metadata, the server has not updated the corresponding map tile according to the tile metadata. Therefore, in the embodiment of the present application, the tile status of the tile metadata may be used to indicate whether the server has updated the corresponding map tile according to the tile metadata.
- the tile status corresponding to the multiple target tile elements needs to be updated to the unread state, so that when the subsequent service updates the tile matrix set,
- the tile metadata of the tile state is not read from the tile metadata table, and the corresponding tile is processed according to the obtained tile metadata to prevent the server from updating the tile next time.
- the matrix set time repeats updating the tile matrix set according to the tile metadata in the metadata set, thereby reducing the data processing pressure of updating the tile matrix set.
- Step 104 Process the target map tile corresponding to the current map resolution of the plurality of target map tiles, and send the processed target map tile to the administrator client in real time.
- the administrator client can also receive the processed target map tile in real time when initiating the geographic entity change request, so as to display the changed geographic entity in the current map.
- the target tile metadata when receiving the geographic entity change request sent by the administrator client, the target tile metadata is updated, and the tile state of the target tile metadata is updated to the unread state. Since each tile metadata is used to describe information of the corresponding map tile, and the tile state of the tile data data includes the read state and the unread state, the unread state is used to indicate the tile corresponding to the tile metadata. The slice is not processed. Therefore, when the tile matrix set needs to be updated later, the tile matrix set can be updated only according to the tile metadata whose tile state is the unread state, and all the geography through re-determination is avoided.
- the spatial vector data of the entity to update the tile matrix set of each type of geographic entity can effectively alleviate the pressure in updating the tile matrix set and improve the efficiency of updating the tile matrix set.
- the target map tile corresponding to the current map resolution is returned to the administrator client in real time. For the administrator client, when the geographic entity change request is initiated, the updated map can be displayed in real time, and the map is improved. Timeliness.
- FIG. 2 is a flowchart of a method for updating a map tile according to an embodiment of the present application.
- the method for updating a map tile is applied to a server.
- This embodiment further expands the embodiment shown in FIG. 1 , as shown in FIG. 2 .
- the map tile update method includes the following steps.
- Step 201 Receive a geographic entity change request sent by an administrator client, where the geographic entity change request carries space vector data of the target geographic entity and a current map resolution.
- the administrator can send a geographic entity change request to the server through the administrator client to enable the server to update the tile matrix set.
- the tile matrix set may be updated by performing steps 202 to 206.
- the geographic body change request sent by the administrator client carries space vector data of the target geographic entity, where the space vector data is used to describe a specific spatial location of the target geographic entity.
- the spatial vector data of the geographic entity may be used by the geographic entity. The longitude and latitude in the spatial position are expressed.
- the geographic entity change request may further carry the current map resolution, so that the server determines the preset scale level of the current electronic map according to the current map resolution.
- the target geographic entity is a geographic entity whose spatial location is to be changed.
- the spatial location of the geographic entity may change due to three situations: adding a geographic entity at the spatial location, deleting the geographic entity at the spatial location, or placing a The geographic entity is replaced with another geographic entity. Therefore, the geographic entity change request includes a geographic entity addition request, a geographic entity deletion request, or a geographic entity update request.
- the geographic entity addition request is used to indicate that a target geographic entity is added at the spatial location
- the geographic entity deletion request is used to indicate that the target geographic entity at the spatial location is deleted
- the geographic entity update request is used to indicate that the first geographic entity is to be Replace with the second geographic entity.
- the geographic entity change request is a geographic entity update request
- the space vector data of the target geographic entity carried in the geographic entity update request includes space vector data of the first geographic entity and spatial vector data of the second geographic entity.
- the first geographic entity is a geographical entity before the change
- the second geographic entity is a changed geographic entity.
- the server may not classify the geographic entities in the spatial scope, and only set one tile matrix set.
- the map tiles in the tile matrix set include all geographic entities in a certain spatial range.
- the server may set different tile matrix sets for different types of geographic entities, where the tile matrix set is a tile corresponding to a type of geographic entity to which the target geographic entity belongs. Slice matrix set.
- the geographic entity change request further carries an identifier of the target geographic entity, so that the server determines the target geographic entity according to the identifier of the target geographic entity.
- Step 202 Determine, from the tile matrix set, a plurality of target map tiles to be processed related to the target geographic entity according to the spatial vector data of the target geographic entity.
- each map tile in the plurality of map tiles included in the tile matrix has a corresponding space. a range of locations, so the server can directly search for a map tile of the spatial location range including the spatial vector data from the tile matrix according to the spatial vector data of the target geographic entity, and determine the found map tile as the tile.
- Corresponding target map tiles in the matrix when the server determines the target map tiles corresponding to each tile matrix in the tile matrix set, that is, multiple target map tiles are determined.
- the electronic map in the embodiment of the present application may be an aggregated electronic map, that is, for each map tile, when the geographic entity included in the map tile
- the server uses only one of the geographic entities to represent all the geographic entities included in the map tile, and one of the geographic entities is called an aggregated geographic entity, since one tile metadata corresponds to one map tile,
- the aggregated geographic entity is also any geographic entity included in the map tile corresponding to the tile metadata.
- the map tile further includes an aggregation quantity, which is used to indicate the number of geographic entities included in the map tile.
- tile metadata is first introduced in detail.
- each tile metadata includes an identifier of the corresponding map tile, and the corresponding map tile belongs to The scale level, the spatial vector data of the aggregated geographic entities in the corresponding map tile, the number of aggregates, and the tile state.
- the tile metadata includes an identifier of the tile metadata, an aggregated number, a map tile line number, a map tile column number, a longitude and latitude of the aggregated geographic entity, and a scale level.
- the identifier of the tile metadata is used to uniquely identify the tile metadata.
- the server may use the identifier of each map tile as the tile of the map tile.
- the identifier of the slice metadata; the map tile row number and the map tile column number are the row number and the column number of the map tile in the tile matrix to which it belongs, and the map tile row number and the map tile column number are the server
- the map tile is generated based on the full map geographic extent, slice orientation, slice origin, and scale level.
- the tile metadata may also include an entity type that is used to indicate the type of geographic entity in the tile metadata.
- Table 1 is a tile metadata provided by an embodiment of the present application.
- the foregoing information included in the tile metadata is represented by a field, and each field included in the tile metadata and a description of the respective field are shown in the table. 1.
- the field “identification” is an identifier of the tile metadata
- the identifier of the tile metadata is an identifier of the map tile corresponding to the tile metadata, so the field “identity” is used to indicate the tile metadata.
- the identifier of the corresponding map tile, and the field type of the field “identification” is a number; the field "type” is used to indicate the type of the geographic entity in the tile metadata, and the field type of the field "type” is 32 bits.
- the character “label” is used to indicate the label generated on the map tile corresponding to the tile metadata when the number of geographic entities included in the tile metadata is greater than 1, and the field type of the field “label” is 512.
- Bit character the field “proportion level” is used to indicate the scale level of the tile matrix to which the map tile corresponding to the tile metadata belongs, the field type of the field “proportion level” is 16 characters; the field “column number” and the field
- the “line number” is used to indicate the column number and the line number of the tile tile corresponding to the tile metadata in the tile matrix to which the tile metadata belongs, and the field types of the column “column number” and the field “row number”.
- the field “aggregate quantity” is used to indicate the number of geographic entities included in the map tile corresponding to the tile metadata, the field type of the field “aggregate quantity” is a number; the field “longitude” and the field “latitude” “Used to indicate the longitude and latitude of the aggregated geographic entity in the tile metadata, respectively, and the field types of the field “longitude” and the field “latitude” are numbers.
- each tile metadata includes an identifier of the corresponding map tile, and the corresponding map tile belongs to The scale level, the spatial vector data of each geographic entity included in the corresponding map tile, the identity of each geographic entity, and the tile status.
- the information included in the tile metadata table is substantially the same as the information included in the tile metadata in the first possible implementation manner, except that the corresponding tile is recorded in the tile metadata.
- the server when the server sets different tile matrix sets for different types of geographic entities in advance, in order to facilitate the server to manage the tile metadata of the map tiles of different types of geographic entities,
- the tile metadata of a class of geographic entities the server stores the tile metadata of a class of geographic entities in a tile metadata table, and also stores the tile metadata of the map tiles of a class of geographic entities in a tile.
- the slice metadata table In the slice metadata table.
- the server further configures a tile state for the tile metadata, the tile state includes the read state and the unread state, so that the server only needs to update the tile matrix set to the tile state as the unread state.
- the map tiles of the tile metadata are updated.
- the tile state of each tile metadata may also be represented by a character.
- the tile state is represented by only one-bit character, such as 0 and 1 indicating a tile state, where characters 0 is used to indicate that the current tile metadata has not changed, and the map tile does not need to be regenerated, that is, the character 0 represents the read state; the character 1 is used to indicate that the current tile metadata has changed, and the map tile needs to be regenerated. That is, the character 1 represents the unread state.
- the tile state may also be marked as a character-1, that is, the character-1 is used to indicate that the administrator client or the user client obtains the
- the server may replace the map tile with a transparent image and send the transparent picture to the administrator client or the user client.
- the server when the server receives the geographic entity change request, in order to update the tile matrix set, the server needs to first update the tile metadata of the map tile corresponding to the space vector data of the target geographic entity carried by the geographic entity change request.
- the update is performed, and since the identifier of the tile metadata is the identifier of the map tile corresponding to the tile metadata, the server needs to determine the space vector of the target geographic entity by using the above step 202 before updating the tile metadata.
- the map tile corresponding to the data since the identifier of the tile metadata is the identifier of the map tile corresponding to the tile metadata, the server needs to determine the space vector of the target geographic entity by using the above step 202 before updating the tile metadata.
- Step 203 Update a plurality of target tile metadata corresponding to the plurality of target map tiles in the tile metadata table, and update the tile states of the plurality of target tile metadata to an unread state.
- the server determines the plurality of target map tiles, and then, according to the identifiers of the plurality of target map tiles, selecting tile metadata identifying the identifiers of the plurality of target map tiles from the tile metadata table, A plurality of target tile metadata is obtained, and the plurality of target tile metadata is updated.
- the map tile provided by the embodiment of the present application may be a map tile of an aggregation type or a map tile of a non-aggregation type.
- the information in the tile metadata corresponding to different types of map tiles may be known from step 202. It is also different, so step 203 can be separately described in the following two scenarios:
- the first scenario the map tiles in the tile matrix set are non-aggregated type map tiles.
- the server may update the plurality of target tile metadata into the following three cases:
- the geographic entity change request adds a request to the geographic entity
- the identifier of the target geographic entity and the space vector data of the target geographic entity are added in each target tile metadata.
- each target tile metadata includes space vector data of each geographic entity included in the corresponding map tile and an identifier of each geographic entity, when the geographic entity change request adds a request for the geographic entity, the target needs to be The spatial vector data of the geographic entity is added to each target tile metadata.
- the map tile may include multiple geographic entities, and the identifier of the target geographic entity needs to be added to each target tile metadata.
- the geographic entity change request is a geographic entity deletion request
- the identifier of the target geographic entity and the space vector data of the target geographic entity are added in each target tile metadata.
- each target tile metadata includes space vector data of each geographic entity included in the corresponding map tile, when the geographic entity change request is a geographic entity deletion request, the space vector data of the target geographic entity needs to be The target tile metadata is deleted in each.
- the identity of the target geographic entity needs to be removed from each target tile metadata at this time.
- the geographic entity change request is a geographic entity update request, based on the first geographic entity and the second geographic entity included in the target geographic entity, the target tile of each target map tile corresponding to the first geographic entity Deleting the identifier of the first geographic entity and the space vector data of the first geographic entity in the metadata, and adding the identifier and the second geographic entity to the target tile metadata of each target map tile corresponding to the second geographic entity
- the spatial vector data of the geographic entity, the first geographic entity is a pre-change geographic entity, and the second geographic entity is a changed geographic entity.
- the geographic entity change request is a geographic entity update request
- the step of (1) in the foregoing first scenario is performed on the first geographic entity, and the second geographic entity is executed in the first scenario.
- the steps in (2) are not described in detail here.
- the second scenario the map tile in the tile matrix set is an aggregate type of map tile.
- the server may further update the multiple target tile metadata into the following. three situations:
- the geographic entity add request is used to indicate that the target geographic entity is added to the multiple target map tiles, and any one of the multiple target map tiles is targeted
- the slice increases the number of aggregates included in the target tile metadata corresponding to the target map tile.
- the space vector data of the target geographic entity is used as the spatial vector data of the aggregated geographic entity in the target tile metadata, that is, the longitude and latitude of the target geographic entity are used as the aggregated geographic entity in the target tile metadata. Longitude and latitude.
- the geographic entity change request adds a request to the geographic entity
- the aggregate quantity in the target tile metadata is 1, the number of aggregates included in the target tile metadata is directly increased by 1 to implement the target tile metadata. Add the target geographic entity.
- the number of aggregations included in each target tile metadata when the number of aggregations included in each target tile metadata is increased, the number of aggregations may be increased by one for each additional geographic entity, and of course, 2, 3, etc. may be added. Etc. Just follow the same criteria for each target tile metadata.
- the geographic entity deletion request is used to indicate that the target geographic entity is deleted in the multiple target map tiles, for any one of the multiple target map tiles Tile, which reduces the number of aggregates included in the target tile metadata corresponding to the target map tile. Specifically, after reducing the number of aggregations included in the target tile metadata, if the number of geographic entities included in the target tile metadata is 0, at this time, the aggregated geography in the target tile metadata is also required.
- the space vector data of the entity is deleted, that is, the related data of the longitude and latitude of the aggregated geographic entity in the target tile metadata is deleted, that is, the target tile metadata will not include any geographic entity.
- space vector data of the aggregated geographic entity included in the target tile metadata is the space vector data of the target geographic entity
- a geographic entity is randomly selected from other geographic entities included in the target tile metadata, and spatial vector data of the selected geographic entity is used as spatial vector data of the aggregated geographic entity in the target tile metadata.
- the space vector data of the other geographic entities included in the tile metadata may be: determining a target map tile of the target tile metadata, and determining a spatial location range of the target map tile, at a preset scale level.
- the search space location range includes a map tile of a spatial location range of the target map tile, and selects only the selected map tile from the selected map tile.
- a map tile of one of the other geographic entities; the spatial vector data of the aggregated geographic entity included in the tile metadata of the selected map tile is determined as the spatial vector data of one of the other geographic entities.
- the number of aggregations included in each target tile metadata when the number of aggregations included in each target tile metadata is reduced, the number of aggregations may be reduced by one for each geographic entity reduced, and of course, 2, 3, etc. may be reduced. Etc. Just follow the same criteria for each target tile metadata.
- the geographic entity change request is a geographic entity update request
- determining a plurality of target map tiles corresponding to the first geographic entity according to the method for determining a plurality of target map tiles corresponding to the target geographic entity in step 202 a tile element, and according to the identifiers of the plurality of target map tiles corresponding to the first geographic entity, according to step (2) of the second scenario, the tile elements of the plurality of target map tiles corresponding to the first geographic entity
- the data is updated.
- the plurality of target map tiles corresponding to the second geographic entity are determined according to the method for determining the plurality of target map tiles corresponding to the target geographic entity in step 202, and corresponding to the second geographic entity.
- the identifier of the target map tile is updated according to step (1) in the second scenario, and the tile metadata of the plurality of target map tiles corresponding to the second geographic entity is updated.
- a map corresponding to the spatial extent exists in the tile matrix set.
- Tiles, and corresponding tile metadata is set for each map tile.
- the server may also set the map tiles and the corresponding tile metadata corresponding to the spatial extent only when the geographic entity exists in the spatial extent.
- the following two cases may exist:
- the map tile in the spatial extent of the target geographic entity does not exist in the current tile matrix set.
- a plurality of blank tile metadata are required to be
- the geographic entity change request updates the plurality of blank tile metadata.
- tile metadata when it is determined that there are multiple target map tiles to be processed related to the target geographic entity, it is found from the tile metadata table whether there are multiple targets corresponding to the multiple target map tiles.
- Tile metadata when there is no plurality of target tile metadata corresponding to the plurality of target map tiles, generating a plurality of blank tile metadata corresponding to the plurality of target map tiles, the plurality of Blank tile metadata is used as the plurality of target tile metadata.
- corresponding tile metadata may not exist in the tile metadata table, and at the same time, a plurality of blank tile metadata is also required to be formed. And updating the plurality of blank tile metadata according to the geographic entity change request.
- the server may update the tile matrix set according to the tile metadata whose tile state is the unread state. Specifically, the server may update the tile matrix set by the following steps 204 to 206.
- the server when the administrator client sends the geographic entity change request, the server is in the target tile metadata for the administrator to view the changed electronic map in real time through the administrator client.
- the updated map tile may also be returned to the administrator client by using the following step 207, where the updated map tile is a preset scale level map tile regenerated by the server according to the geographic entity change request.
- the preset scale level is a preset scale level corresponding to the current map resolution of the administrator client.
- Step 204 Obtain tile metadata of the tile state as an unread state from the tile metadata table to obtain a plurality of tile metadata.
- the server can directly obtain the tile state. It is the tile metadata of the unread state, and the map tiles of the tile metadata whose tile state is the unread state are updated by steps 205 and 206.
- the server does not update the tile matrix set in real time, but updates the tile matrix set every preset time period.
- step 204 may be: for any one of the stored tile metadata tables of the at least one tile metadata table, according to the tile state of the tile metadata included in the tile metadata table, from the tile metadata Selecting at least one tile metadata whose tile state is an unread state in the table, and obtaining a metadata set, the metadata set only includes tile metadata in the tile metadata table whose tile state is an unread state;
- the server performs the above operations on at least one of the stored tile metadata tables, at least one metadata set may be acquired. At this time, the at least one metadata set includes the plurality of tile metadata.
- the preset time period is a time period that is preset by the server, and the preset time period may be one week, a half month, or a month.
- the embodiment of the present application is not specifically limited herein.
- Step 205 Update a map tile corresponding to each tile metadata of the plurality of tile metadata.
- the server needs to update the map tiles of the tile metadata according to the tile metadata.
- the tile metadata is created for each tile metadata in the multiple tile metadata. a blank map tile; determining, according to spatial vector data of the aggregated geographic entity in the tile metadata, a location of the aggregated geographic entity in the blank map tile; according to the aggregated geographic entity in the blank map tile Position, draw an icon and an annotation of the aggregated geographic entity in the blank map tile to obtain a map tile corresponding to the tile metadata.
- the icon is used to indicate the type of the aggregated geographic entity, where the label is used to indicate the number of geographic entities included in the map tile corresponding to the tile metadata, in particular, when only one geographic entity is included in the tile metadata.
- the annotation can also be replaced with the name of the geographic entity.
- Determining, according to the spatial vector data of the aggregated geographic entity in the tile metadata, a location of the aggregated geographic entity in the blank map tile, that is, according to the longitude of the aggregated geographic entity in the tile metadata Latitude, determining the location of the aggregated geographic entity in the blank map tile, the location of the aggregated geographic entity in the blank map tile may be the abscissa of the aggregated geographic entity in the plane coordinate system corresponding to the blank tile And ordinate representation.
- the server may determine the abscissa of the aggregated geographic entity in a plane coordinate system corresponding to the blank map tile by using the following formulas (1) to (3):
- ResX represents the number of horizontal pixels in the map resolution
- Math.abs(lon)*2 is the geographical range of the global warp direction
- n is the preset scale level corresponding to the map resolution
- Math.Pow(2,n ) indicates that n is operated on the power of n
- minx represents the longitude of the origin of the cut graph
- lon represents the longitude of the aggregated geographic entity
- GeoLonPixelx is an intermediate variable
- GeoLonPixelx% 256 represents the remainder operation of GeoLonPixelx on 256
- PixelX represents aggregated geography.
- the absc issa of the entity in the plane coordinate system corresponding to the blank map tile
- 256 is the pixel size of the map tile that is now common.
- the server may also determine the ordinate of the aggregated geographic entity in the plane coordinate system corresponding to the blank tile by the following formulas (4) to (6):
- PixelY GeoLonPixely%256 formula (6)
- ResY represents the number of vertical pixels in the map resolution
- Math.abs(lat)*2 is the geographical range of the global dimension line
- n is the preset scale level corresponding to the map resolution
- miny represents the cut-off origin.
- Longitude, lat indicates the longitude of the aggregated geographic entity
- GeoLonPixely is an intermediate variable
- GeoLonPixely%256 indicates that GeoLonPixely performs a remainder operation on 256
- PixelY indicates the ordinate of the aggregated geographic entity in the plane coordinate system corresponding to the blank map tile.
- the icon of the aggregated geographic entity may be drawn in the blank map tile by using the abscissa and the ordinate as the starting point. .
- PixelX-imgWidth/2, PixelY-imgHeight/2) is the starting point of the drawing, and the drawing direction is from the lower left to the upper right of the icon.
- the center position of the icon is exactly the aggregate geography.
- PixelX and PixelY are the abscissa and ordinate of the aggregated geographic entity obtained in the plane coordinate system corresponding to the blank map tile
- imgWidth is the width of the icon of the aggregated geographic entity
- imgHeight is the aggregated geographic entity The height of the icon.
- the icon of the aggregated geographic entity is drawn on the blank map tile by the above method, when the starting point of the drawing is at the edge position of the blank map tile, the blank map tile can only be included at this time. Part of the icon. Therefore, in the embodiment of the present application, in order for the icon of the aggregated geographic entity to be completely displayed on the electronic map, when the aggregated geographic entity is at the edge position of the blank map tile, the aggregated geographic entity is drawn in the blank.
- the first icon is part of an icon of the aggregated geographic entity
- the second icon is part of an icon of the aggregated geographic entity
- the second icon and the first icon are capable of forming a complete icon of the aggregated geographic entity.
- the search for the map tile adjacent to the edge position of the blank map tile may be: when the edge position is the left edge position, searching for a map tile adjacent to the left edge position of the blank map tile; When the edge position is the right edge position, searching for a map tile adjacent to the right edge position of the blank map tile; when the edge position is the upper edge position, searching for the upper edge position of the blank map tile a neighboring map tile; when the edge position is a lower edge position, a map tile adjacent to a lower edge position of the blank map tile is found.
- searching for a map tile adjacent to the blank map tile may be determined according to the tile row number and the tile column number of the blank map tile in the associated tile matrix. For example, when the adjacent map tile is a map tile adjacent to the upper edge position of the blank map tile, the tile row number of the adjacent map tile is the tile row number of the blank map tile. Subtracting 1, the tile column number of the adjacent map tile is the tile column number of the blank map tile, according to the tile row number and the tile column number of the adjacent map tile, The adjacent map tile is found in the tile matrix to which the blank map tile belongs.
- the location of the blank geographic tile is the left edge position of the blank map tile
- (PixelX-imgWidth/2, PixelY-imgHeight/2) is used as the starting point of the drawing
- the drawing direction is from the lower left to the upper right of the icon, and when the drawing ends, the blank map tile includes only the right half of the icon.
- the electronic map displays the integrity of the aggregated geographic entity. icon.
- the drawing starting point determined by the above method may be located at four vertices of the blank map tile, and the first icon drawn on the blank map tile is only the 1/4 of the icon of the aggregated geographic entity, since the edge location is at the vertices of the blank map tile, the server will find 3 adjacent map tiles when looking for tiles adjacent to the blank map tile. At this time, the server draws 1/4 of the icon of the aggregated geographic entity on the three adjacent map tiles, that is, the second icon is 3/4 of the icon of the aggregated geographic entity.
- FIG. 3 is a schematic diagram of icon division of an aggregated geographic entity according to an embodiment of the present invention.
- the edge position is the upper left vertex of the blank map tile
- the icon of the aggregated geographic entity is averaged.
- Divided into 4 parts as shown in Figure 3 only the 4th part of the icon is drawn on the blank map tile, the drawing starting point is (PixelX+imgWidth/2, PixelY-imgHeight/2), and the drawing direction is from the right of the icon.
- the map tile in the tile matrix set is an aggregate type map tile, that is, when the number of geographic entities on the local map tile is greater than 1, only the plurality of geographic entities are drawn on the map tile. one of.
- the location of the aggregated geographic entity on the map tile represents only the location of one of the geographic entities, that is, the location of the aggregated geographic entity on the map tile at this time.
- the number of geographic entities on the local map tile is greater than 1
- the location of the aggregated geographic entity on the map tile is the edge position of the map tile, and may not pass.
- the above method generates an icon of the aggregated geographic entity, and appropriately adjusts the drawing starting point on the current blank map tile, so that the icon of the aggregated geographic entity can be completely displayed on the blank map tile.
- the drawing start point may be moved to the right by at least one distance of the width of the icon, and the icon may be completely drawn on the blank map. On the tiles.
- the map tile includes only one geographic entity
- the location of the icon of the geographic entity and the location of the geographic entity on the map tile as consistent as possible
- the icon of the geographic entity is drawn on the blank map tile, if the location of the geographic entity on the blank map tile is the edge position of the blank map tile, the method of drawing the second icon on the adjacent map tile is still adopted. The integrity of the icon of the geographic entity.
- the implementation of drawing the annotation of the aggregated geographic entity on the blank map tile and drawing the icon of the aggregated geographic entity on the blank map tile is substantially the same, and will not be described in detail herein.
- the location of the icon on the blank map tile may be appropriately adjusted according to the icon of the aggregated geographic entity, and the position is appropriately adjusted according to the position of the blank map tile. This can be done by adjusting the drawing starting point.
- the map tile in the tile matrix set is a non-aggregated type map tile
- the map tile corresponding to each tile metadata in the multiple tile metadata may be updated at the same time.
- Step 206 Update the tile matrix set according to the updated map tile, and update the tile state of each tile metadata in the plurality of tile metadata from the unread state to the read state.
- the server may replace the stored map tile corresponding to the tile metadata with the generated map tile, that is, update the tile matrix set.
- the server since the server has updated the tile matrix set according to the tile state of the unread state of the tile state, it is necessary to update the tile state of the plurality of tile metadata from the unread state to the read state.
- the server avoids updating the map tile of the tile metadata whose tile status is the unread state when the next preset time period is reached.
- step 204 to step 206 may be performed on different sets of tile matrices respectively, when the server updates the tiles of each type of geographic entity.
- the slice matrix set is set, the update of all tile matrix sets is completed.
- Step 207 Process the target map tile corresponding to the current map resolution of the plurality of target map tiles, and send the processed target map tile to the administrator client in real time.
- the server may return to the administrator client to distinguish from the current map.
- the rate corresponds to the updated map tile.
- the process of processing the target map tile corresponding to the current map resolution in the multiple target map tiles may be: when the geographic entity change request carries the current map resolution, the server determines the pre-corresponding to the current map resolution. Setting a scale level; selecting, from the plurality of target map tiles, a target map tile whose scale level is a preset scale level corresponding to the current map resolution; acquiring and selecting from the plurality of target tile metadata after the update The target tile metadata corresponding to the target map tile is updated according to the acquired target tile metadata.
- the administrator client When the administrator client receives the processed target map tile, determining the identifier of the processed target map tile, and identifying the map in the current electronic map as the identifier of the processed target map tile
- the slice is replaced with the processed target map tile, so that the administrator can view the updated electronic map in real time.
- the server determines that the preset scale level corresponding to the current map resolution can be determined by using the formula (1) in the step 205.
- updating the selected target map tile according to the obtained tile metadata may refer to step 205.
- the method for updating the map tile corresponding to each tile metadata in the plurality of tile metadata is not elaborated here.
- the target tile metadata when receiving the geographic entity change request sent by the administrator client, the target tile metadata is updated, and the tile state of the target tile metadata is updated to the unread state. Since each tile metadata is used to describe information of the corresponding map tile, and the tile state of the tile data data includes the read state and the unread state, the unread state is used to indicate the tile corresponding to the tile metadata. The slice is not processed. Therefore, when the tile matrix set needs to be updated later, the tile matrix set can be updated only according to the tile metadata whose tile state is the unread state, and all the geography through re-determination is avoided.
- the spatial vector data of the entity to update the tile matrix set of each type of geographic entity can effectively alleviate the pressure in updating the tile matrix set and improve the efficiency of updating the tile matrix set.
- the target map tile corresponding to the current map resolution is returned to the administrator client in real time. For the administrator client, when the geographic entity change request is initiated, the updated map can be displayed in real time, and the map is improved. Timeliness.
- an embodiment of the present application provides a map tile update apparatus 300.
- the apparatus 300 includes a receiving module 301, a determining module 302, a first updating module 303, and a sending module 304:
- the receiving module 301 is configured to receive a geographic entity change request sent by an administrator client, where the geographic entity change request carries space vector data of the target geographic entity and a current map resolution;
- a determining module 302 configured to determine, according to the space vector data of the target geographic entity, a plurality of target map tiles to be processed related to the target geographic entity from the tile matrix set;
- a first update module 303 configured to update, by using a plurality of target tile metadata corresponding to the multiple target map tiles in a tile metadata table, and to obtain tile states of the multiple target tile metadata Update to the unread state;
- Each tile metadata in the tile metadata table corresponds to a map tile, and each tile metadata is used to describe information of a corresponding map tile, and the tile state includes the read state and the a read state, the read state is used to indicate that the map tile corresponding to the tile metadata has been processed, and the unread state is used to indicate that the map tile corresponding to the tile metadata is not processed;
- the sending module 304 is configured to process the target map tile corresponding to the current map resolution of the plurality of target map tiles, and send the processed target map tile to the administrator client in real time.
- the map tile in the tile matrix set is a non-aggregated type map tile
- each tile metadata includes an identifier of a corresponding map tile, a scale level to which the corresponding map tile belongs, and a corresponding map.
- the geographic entity change request includes a geographic entity addition request, a geographic entity deletion request, or a geographic entity update request;
- the first update module is specifically configured to:
- the geographic entity change request adds a request to the geographic entity
- the identifier of the target geographic entity and the space vector data of the target geographic entity are added in each target tile metadata
- the geographic entity change request is a geographic entity deletion request, deleting the identifier of the target geographic entity and the space vector data of the target geographic entity in each target tile metadata;
- the geographic entity change request is a geographic entity update request
- target tile metadata of each target map tile corresponding to the first geographic entity Deleting the identifier of the first geographic entity and the space vector data of the first geographic entity, and adding the identifier of the second geographic entity to the target tile metadata of each target map tile corresponding to the second geographic entity
- the space vector data of the second geographic entity, the first geographic entity is a pre-change geographic entity, and the second geographic entity is a changed geographic entity.
- the map tile in the tile matrix set is an aggregate type map tile
- each tile metadata includes an identifier of a corresponding map tile, a scale level to which the corresponding map tile belongs, and a corresponding map tile.
- the space vector data, the number of aggregates, and the tile status of the aggregated geographic entity in the slice, the aggregated number is used to indicate the number of geographic entities included in the corresponding map tile, and the aggregated geographic entity is corresponding to the tile metadata. Any geographic entity included in the map tile.
- the geographic entity change request includes a geographic entity addition request, a geographic entity deletion request, or a geographic entity update request;
- the first update module is specifically configured to:
- the geographic entity change request is a geographic entity deletion request, reducing the aggregate amount included in each target tile metadata
- the geographic entity change request is a geographic entity update request
- the device further includes:
- a first generating module configured to: when determining that there are no target map tiles to be processed related to the target geographic entity, generate a plurality of blank tile metadata, and use the multiple blank tile metadata as the multiple Target tile metadata; or,
- a second generating module configured to: when determining that there are multiple target map tiles to be processed related to the target geographic entity, whether there is more corresponding to the multiple target map tiles from the tile metadata table Generating tile metadata, when there is no plurality of target tile metadata corresponding to the plurality of target map tiles, generating a plurality of blank tile metadata corresponding to the plurality of target map tiles, A plurality of blank tile metadata is used as the plurality of target tile metadata.
- the sending module is specifically configured to:
- the selected target map tile is updated according to the acquired target tile metadata.
- the device further includes:
- An obtaining module configured to obtain, from the tile metadata table, tile metadata whose tile state is an unread state, to obtain multiple tile metadata
- a second update module configured to update a map tile corresponding to each tile metadata of the multiple tile metadata
- a third update module configured to update the tile matrix set according to the updated map tile, and update the tile state of each tile metadata in the multiple tile metadata from the unread state to the read status.
- the map tile in the tile matrix set is an aggregate type map tile
- the second update module includes:
- a creating unit configured to create a blank map tile corresponding to the tile metadata for any one of the plurality of tile metadata
- a determining unit configured to determine, according to space vector data of the aggregated geographic entity in the tile metadata, a location of the aggregated geographic entity in the blank map tile, where the aggregated geographic entity is a map tile corresponding to the tile metadata Any geographic entity included in the slice;
- a drawing unit configured to draw an icon and an annotation of the aggregated geographic entity in the blank map tile according to the location of the aggregated geographic entity in the blank map tile, to obtain a map tile corresponding to the tile metadata
- the icon is used to indicate the type of the aggregated geographic entity
- the label is used to indicate the number of geographic entities included in the map tile corresponding to the tile metadata.
- the drawing unit is specifically configured to:
- the tile matrix set is a tile matrix set corresponding to a type of geographic entity to which the target geographic entity belongs.
- the target tile metadata when receiving the geographic entity change request sent by the administrator client, the target tile metadata is updated, and the tile state of the target tile metadata is updated to the unread state. Since each tile metadata is used to describe information of the corresponding map tile, and the tile state of the tile data data includes the read state and the unread state, the unread state is used to indicate the tile corresponding to the tile metadata. The slice is not processed. Therefore, when the tile matrix set needs to be updated later, the tile matrix set can be updated only according to the tile metadata whose tile state is the unread state, and all the geography through re-determination is avoided.
- the spatial vector data of the entity to update the tile matrix set of each type of geographic entity can effectively alleviate the pressure in updating the tile matrix set and improve the efficiency of updating the tile matrix set.
- the target map tile corresponding to the current map resolution is returned to the administrator client in real time. For the administrator client, when the geographic entity change request is initiated, the updated map can be displayed in real time, and the map is improved. Timeliness.
- map tile updating apparatus provided in the above embodiment is only exemplified by the division of the above functional modules when the map tile update is triggered.
- the above function assignment can also be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
- map tile updating apparatus and the map tile updating method embodiment provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
- FIG. 5 is a block diagram of another map tile updating apparatus 400 provided by an embodiment of the present application.
- device 400 can be provided as a server.
- apparatus 400 includes a processor 401, a communication interface 402, a memory 403, and a communication bus 404.
- the processor 401, the communication interface 402, and the memory 403 complete communication with each other via the communication bus 404.
- the processor 401 may be a CPU (Central Processing Unit), a microprocessor, an ASIC (application-specific integrated circuit), or one or more integrated systems for controlling the execution of the program of the present application. Circuit.
- CPU Central Processing Unit
- ASIC application-specific integrated circuit
- Communication bus 404 can include a path for communicating information between the components described above.
- the memory 403 may be a ROM (read-only memory) or other type of static storage device that can store static information and instructions, a RAM (random access memory) or other type that can store information and instructions.
- the dynamic storage device can also be an EEPROM (Electrically Erasable Programmable Read-Only Memory), a CD-ROM (Compact Disc Read-Only Memory) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be Any other medium accessed, but is not limited to this.
- Memory 403 may be present independently and coupled to processor 401 via communication bus 404. Memory 403 can also be integrated with processor 401.
- the communication interface 402 uses devices such as any transceiver for communicating with other devices or communication networks, such as Ethernet, wireless access networks, WLAN (Wireless Local Area Networks, etc.).
- devices such as any transceiver for communicating with other devices or communication networks, such as Ethernet, wireless access networks, WLAN (Wireless Local Area Networks, etc.).
- the memory 403 is used to store a computer program for executing the solution of the present application, and is controlled by the processor 401 for execution. That is, the processor 401 is configured to execute a program stored on the memory to implement the map tile update method provided by the foregoing embodiment.
- a computer readable storage medium having stored therein a computer program, when a computer program stored in the computer readable storage medium is executed by a processor of a server, The server is enabled to enable the map tile update method provided by the above embodiment.
- a computer program product having instructions stored therein that, when run on a computer, cause the computer to perform a map tile update method method as provided by the above embodiments.
- a chip comprising programmable logic circuitry and/or program instructions for implementing a map tile update method as provided by the above embodiments when the chip is running.
- a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
- the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
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
La présente invention porte sur un procédé et sur un dispositif de mise à jour de mosaïque de carte ainsi que sur un support d'informations lisible par ordinateur, appartenant au domaine des cartes. Le procédé consiste : lorsqu'une demande de changement d'entité géographique envoyée par un client administrateur est reçue, à mettre à jour des métadonnées de mosaïque cibles et à mettre à jour un état de mosaïque des métadonnées de mosaïque cibles. Puisqu'un état non lu indique qu'un traitement d'une mosaïque de carte correspondant à des métadonnées de mosaïque est incomplet, lorsqu'un ensemble de matrices de mosaïque doit ensuite être mis à jour, l'ensemble de matrices de mosaïque peut être mis à jour uniquement en fonction de métadonnées de mosaïque pour lesquelles l'état de mosaïque n'est pas lu, ce qui permet d'éviter une nouvelle détermination de données de vecteur spatial de toutes les entités géographiques afin de mettre à jour un ensemble de matrices de mosaïque de chaque type d'entité géographique, d'atténuer de manière efficace des contraintes pendant une mise à jour de l'ensemble de matrices de mosaïque et d'améliorer l'efficacité de mise à jour. De plus, des mosaïques de carte cibles correspondant à une résolution de carte actuelle peuvent être renvoyées à un client administrateur en temps réel.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710423627.1 | 2017-06-07 | ||
| CN201710423627 | 2017-06-07 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018223990A1 true WO2018223990A1 (fr) | 2018-12-13 |
Family
ID=64566788
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/090134 Ceased WO2018223990A1 (fr) | 2017-06-07 | 2018-06-06 | Procédé et dispositif de mise à jour de mosaïque de carte et support d'informations lisible par ordinateur |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109002452B (fr) |
| WO (1) | WO2018223990A1 (fr) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110597941B (zh) * | 2019-09-11 | 2023-12-29 | 广州力挚网络科技有限公司 | 一种地图显示方法与系统 |
| CN111325841B (zh) * | 2020-02-18 | 2021-03-30 | 国网河北省电力有限公司 | 一种智慧地图数据系统建模方法及其在电力审计作业中的应用 |
| CN111753041B (zh) * | 2020-06-30 | 2022-12-02 | 重庆紫光华山智安科技有限公司 | 数据聚合渲染方法、装置、系统、电子设备及存储介质 |
| CN112231426A (zh) * | 2020-10-13 | 2021-01-15 | 重庆紫光华山智安科技有限公司 | 一种基于矢量瓦片点数据的更新方法、系统、介质及终端 |
| CN116993857B (zh) * | 2023-08-11 | 2024-04-02 | 中国科学院西北生态环境资源研究院 | 一种专题图制备方法、装置、存储介质及电子设备 |
| WO2025129621A1 (fr) * | 2023-12-22 | 2025-06-26 | Qualcomm Incorporated | Téléchargement sélectif de carte haute définition |
| CN117632972B (zh) * | 2024-01-26 | 2024-04-12 | 中国电子科技集团公司第十五研究所 | 地图瓦片聚合发布方法、装置、电子设备及存储介质 |
| US12182907B1 (en) | 2024-08-09 | 2024-12-31 | Northwest Institute Of Eco-Environment And Resources, Chinese Academy Of Sciences | Thematic map preparation method and apparatus, storage medium and electronic device |
| CN119006737B (zh) * | 2024-10-25 | 2024-12-20 | 江苏省地质测绘大队 | 基于地理空间边界约束的实景三维场景模型更新管理方法 |
Citations (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 |
| CN105359189A (zh) * | 2013-05-15 | 2016-02-24 | 谷歌公司 | 使用地图数据差别瓦片来迭代地向客户端设备提供地图数据 |
| KR20160116441A (ko) * | 2015-03-30 | 2016-10-10 | 한국전자통신연구원 | 전자해도 갱신정보를 이용한 부분 업데이트 및 부분 타일맵 생성 시스템 및 그 방법 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012157850A2 (fr) * | 2011-05-19 | 2012-11-22 | 에스케이플래닛 주식회사 | Système et procédé de mise à jour de données de cartes en temps réel |
| US8612491B2 (en) * | 2011-10-25 | 2013-12-17 | The United States Of America, As Represented By The Secretary Of The Navy | System and method for storing a dataset of image tiles |
| US9201898B2 (en) * | 2013-05-15 | 2015-12-01 | Google Inc. | Efficient fetching of map tile data |
| CN103488760B (zh) * | 2013-09-26 | 2017-02-15 | 中国测绘科学研究院 | 地理信息瓦片服务的提供方法及实现该方法的装置 |
| US10042863B2 (en) * | 2014-05-28 | 2018-08-07 | Oracle International Corporation | Automatic update for map cache |
| CN104537031B (zh) * | 2014-12-19 | 2018-06-08 | 百度在线网络技术(北京)有限公司 | 一种地图数据的修改方法和装置 |
| CN104778212B (zh) * | 2014-12-19 | 2018-08-07 | 北京搜狗科技发展有限公司 | 地图数据生成方法和装置、地图数据读取方法和装置 |
| US20170091993A1 (en) * | 2015-09-25 | 2017-03-30 | Microsoft Technology Licensing, Llc | 3D Model Generation From Map Data and User Interface |
-
2017
- 2017-11-06 CN CN201711077419.7A patent/CN109002452B/zh active Active
-
2018
- 2018-06-06 WO PCT/CN2018/090134 patent/WO2018223990A1/fr not_active Ceased
Patent Citations (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 |
| CN105359189A (zh) * | 2013-05-15 | 2016-02-24 | 谷歌公司 | 使用地图数据差别瓦片来迭代地向客户端设备提供地图数据 |
| KR20160116441A (ko) * | 2015-03-30 | 2016-10-10 | 한국전자통신연구원 | 전자해도 갱신정보를 이용한 부분 업데이트 및 부분 타일맵 생성 시스템 및 그 방법 |
Non-Patent Citations (1)
| Title |
|---|
| MA, WEICHUN ET AL.: "Python ArcGIS Server 7* (Time-update Method of Tile Caches of ArcGIS Server Based on Python", GEOSPATIAL INFORMATION, vol. 11, no. 1, 28 February 2013 (2013-02-28), pages 147 - 149 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109002452A (zh) | 2018-12-14 |
| CN109002452B (zh) | 2020-10-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018223990A1 (fr) | Procédé et dispositif de mise à jour de mosaïque de carte et support d'informations lisible par ordinateur | |
| US9798819B2 (en) | Selective map marker aggregation | |
| US9646406B2 (en) | Position searching method and apparatus based on electronic map | |
| US10032302B2 (en) | Rebuilding images based on historical image data | |
| US8775420B2 (en) | Text display of geo-referenced information based on relative distance to a user location | |
| CN110084877B (zh) | 使用聚合特征标识符来管理地图元素 | |
| US10475224B2 (en) | Reality-augmented information display method and apparatus | |
| CN104995657B (zh) | 用于调整图像大小的系统和方法 | |
| CN101339486B (zh) | 用于提供画面文件的方法和设备 | |
| US20150356763A1 (en) | Method and apparatus for grouping and de-overlapping items in a user interface | |
| US10018480B2 (en) | Point of interest selection based on a user request | |
| CN110887499B (zh) | 一种地图中道路数据和兴趣点数据的处理方法及终端 | |
| JP2017505923A (ja) | 画像のジオロケーションのためのシステムおよび方法 | |
| US9811539B2 (en) | Hierarchical spatial clustering of photographs | |
| US20200097564A1 (en) | Selecting points of interest for display on a personalized digital map | |
| CN105095314A (zh) | 一种兴趣点的标注方法、终端、导航服务器及导航系统 | |
| WO2016011763A1 (fr) | Procédé, appareil et dispositif de présentation d'image, et support de stockage informatique non volatil | |
| CN112214562A (zh) | 数据处理方法、装置、电子设备及机器可读存储介质 | |
| CN117788726A (zh) | 一种地图数据的渲染方法、装置、电子设备及存储介质 | |
| CN111382223B (zh) | 电子地图的展示方法、终端和电子设备 | |
| US8885952B1 (en) | Method and system for presenting similar photos based on homographies | |
| US20150130817A1 (en) | Generating a sidebar from vector tiles | |
| CN104133845A (zh) | 一种多媒体信息展示的方法与设备 | |
| US20190311509A1 (en) | Generation and presentation of distance cartograms | |
| US9779545B1 (en) | Footprint based business label placement |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18813583 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18813583 Country of ref document: EP Kind code of ref document: A1 |