CN116150295A - Local updating method, device and equipment of tile data and storage medium - Google Patents

Local updating method, device and equipment of tile data and storage medium Download PDF

Info

Publication number
CN116150295A
CN116150295A CN202310173514.6A CN202310173514A CN116150295A CN 116150295 A CN116150295 A CN 116150295A CN 202310173514 A CN202310173514 A CN 202310173514A CN 116150295 A CN116150295 A CN 116150295A
Authority
CN
China
Prior art keywords
updated
area
tile data
data
tile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310173514.6A
Other languages
Chinese (zh)
Inventor
郑昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dt Dream Technology Co Ltd
Original Assignee
Hangzhou Dt Dream Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dt Dream Technology Co Ltd filed Critical Hangzhou Dt Dream Technology Co Ltd
Priority to CN202310173514.6A priority Critical patent/CN116150295A/en
Publication of CN116150295A publication Critical patent/CN116150295A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)

Abstract

The application provides a local updating method, device and equipment of tile data and a storage medium. The tile data includes at least one zone level of tile data; the at least one compartment level includes at least one region; the method comprises the following steps: acquiring target tile data of an area to be updated; acquiring original tile data corresponding to the area to be updated in at least one division level; updating the original tile data of at least one of the compartment levels according to the target tile data to complete the local update. According to the technical scheme, the original tile data corresponding to the area to be updated are updated, so that updating of all original tile data is avoided, the data volume of tile updating is reduced, and the updating time is effectively shortened.

Description

Local updating method, device and equipment of tile data and storage medium
Technical Field
One or more embodiments of the present application relate to the field of big data technologies, and in particular, to a method, an apparatus, a device, and a storage medium for local updating of tile data.
Background
The tile data is obtained by slicing the space vector data of the geographic entity by the server, so that the tile data can intuitively represent the space position of the geographic entity. Because the spatial position of the geographic entity in real life may change, that is, the spatial vector data of the geographic entity may change, for example, a bridge is newly added in a city, the tile data needs to be updated to ensure that the spatial position of the geographic entity in the tile data is as consistent as possible with the spatial position of the geographic entity in real life.
Disclosure of Invention
The application provides a local updating method, device, equipment and storage medium of tile data, which are used for solving the defects in the related art.
According to a first aspect of one or more embodiments of the present application, there is provided a method of local updating of tile data, the tile data comprising at least one region level of tile data; the at least one compartment level includes at least one region; the method comprises the following steps:
acquiring target tile data of an area to be updated;
acquiring original tile data corresponding to the area to be updated in at least one division level;
updating the original tile data of at least one of the compartment levels according to the target tile data to complete the local update.
Optionally, the area to be updated is an area obtained based on the initial updated area; the initial updating area is an area with updating requirements; the obtaining the target tile data of the area to be updated includes: dividing the vector data of the initial updating area into at least one vector data of the area to be updated under the condition that the division level to which the initial updating area belongs is not the lowest division level; the area to be updated is a sub-area corresponding to the initial updating area at the lowest zone level; and generating target tile data of the at least one area to be updated according to the vector data of the at least one area to be updated.
Optionally, the area to be updated is an area obtained based on the initial updated area; the initial updating area is an area with updating requirements; the obtaining the target tile data of the area to be updated includes: screening the changed area to be updated from the subareas corresponding to the lowest zone hierarchy of the initial updating area; and generating target tile data of the area to be updated according to the vector data of the area to be updated.
Optionally, the generating the target tile data of the area to be updated according to the vector data of the area to be updated includes: acquiring vector data of the area to be updated; generating target tile data of the area to be updated according to the vector data to be updated under the condition that the vector data of the area to be updated only contains the vector data to be updated; or under the condition that the vector data of the area to be updated comprises the vector data to be updated and the vector data which is kept unchanged, screening the vector data of the area to be updated to obtain the vector data to be updated, and generating corresponding target tile data according to the vector data to be updated.
Optionally, the target tile data includes a corresponding target tile number; the obtaining the original tile data corresponding to the area to be updated in at least one of the division levels includes: determining an associated tile number related to the area to be updated according to the target tile number and an original tile number corresponding to the area to be updated; and acquiring original tile data corresponding to the associated tile number in at least one division level.
Optionally, the updating the original tile data of at least one of the division levels according to the target tile data includes: updating original tile data of the highest regional level according to the target tile data to obtain updated tile data of the highest regional level; aiming at a target updating area associated with the area to be updated in any other zone hierarchy, extracting tile data corresponding to the target updating area from the updated tile data of the highest zone hierarchy; and updating the original tile data of any other zone level according to the scratched tile data.
Optionally, the updating the original tile data of the highest division level according to the target tile data includes: filtering original tile data corresponding to the area to be updated from the original tile data of the highest division level; and merging the filtered original tile data with the target tile data to obtain updated tile data of the highest division level.
Optionally, the target tile data includes a corresponding target tile number, and the area to be updated has a corresponding original tile number; the method further comprises the steps of: counting the number of updated tile numbers and the number of associated tile numbers corresponding to the updated tile data; the associated tile number is composed of the target tile number and the original tile number; recording the missing associated tile numbers under the condition that the number of the updated tile numbers is smaller than the number of the associated tile numbers as a statistical result; and deleting the original tile data corresponding to the missing associated tile number in any other zone hierarchy according to the recording result.
According to a second aspect of one or more embodiments of the present application, there is provided a local updating apparatus of tile data, the tile data comprising at least one region level of tile data; the at least one compartment level includes at least one region; the device comprises:
the target data acquisition unit is used for acquiring target tile data of the area to be updated;
the original data acquisition unit is used for acquiring original tile data corresponding to the area to be updated in at least one division level;
And the updating unit is used for updating the original tile data of at least one zone level according to the target tile data so as to finish the local updating.
According to a third aspect of one or more embodiments of the present application, there is provided an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method as described in the embodiments of the first aspect described above by executing the executable instructions.
According to a fourth aspect of one or more embodiments of the present application, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method as described in the embodiments of the first aspect above.
As can be seen from the above technical solutions, in one or more embodiments of the present application, only original tile data corresponding to an area to be updated in each division level is obtained, and then the obtained original tile data is updated according to target tile data of the area to be updated, so that updating of all original tile data is avoided, the data volume of tile updating is reduced, the updating time is effectively shortened, and a large amount of system resources are saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart of a method for local updating of tile data provided in an exemplary embodiment of the present application.
Fig. 2 is a schematic diagram of an administrative division at each level according to an exemplary embodiment of the present application.
FIG. 3 is a flow chart of a method for local updating of tile data according to an exemplary embodiment of the present application.
Fig. 4 is a schematic structural view of an electronic device according to an exemplary embodiment of the present application.
FIG. 5 is a block diagram of a local update apparatus for tile data, as shown in an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described herein. In some other embodiments, the method may include more or fewer steps than described herein. Furthermore, individual steps described in this application may be described as being broken down into multiple steps in other embodiments; while various steps described in this application may be combined into a single step in other embodiments. It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In some scenarios, the storage of vector data may be performed per administrative division. Generally, after slicing the vector data, tile data under the corresponding authority can be stored according to four administrative division levels of states, provinces, cities and counties. After the tile data is stored in the data storage library, if the vector data of a certain area changes, the tile data of a corresponding area in the data storage library needs to be updated, and meanwhile, the tile data of the associated area related to the area in other administrative division levels needs to be updated.
Because the tile data is stored after the package compression, the SQL statement cannot be directly used for updating, and the corresponding updating operation can be performed after the tile data is decompressed. In the related art, the original tile data of each region included in each administrative division level in the storage library is downloaded to the server local, then the original tile data of each region and the corresponding target tile data are subjected to one-to-one data filtering and merging, so that the updating of the tile data of all regions is completed, and finally the updated tile data of each region is uploaded to the storage library for storage. Because of the large amount of tile data stored in the database, downloading all of the raw tile data locally to the server requires significant system resources and takes a long time to download. Furthermore, it takes a long time to locally filter and merge all the original tile data at the server, and upload all the updated tile data to the repository. Therefore, the above update method is likely to cause slow update of tile data, and has a problem of data lag.
In view of this, the present application proposes a method for locally updating tile data, which can only acquire original tile data corresponding to an area to be updated in each zone hierarchy, and then update the acquired original tile data according to target tile data of the area to be updated, so as to avoid updating all original tile data, reduce the data volume of tile update, effectively shorten update time, and save a large amount of system resources.
One or more embodiments of the present application are described in detail below.
FIG. 1 is a flow chart of a method for local updating of tile data provided in an exemplary embodiment of the present application. As shown in fig. 1, the method may include the steps of:
s101, acquiring target tile data of an area to be updated.
And after slicing the vector data to obtain tile data, storing the tile data into a data storage library. The tile data under the corresponding authority is usually stored according to four administrative division levels of the country, the province, the city and the county, and division identifiers can be added to the tile data in each division level, namely, administrative division information is added to the tile data to indicate which administrative division the tile data belongs to. Therefore, the tile data stored in the data store will include tile data for multiple compartment levels, with each compartment level containing at least one region. Since vector data is not constant, it will change with the development of business requirements. It is necessary to update tile data stored in the data store when vector data of a certain area changes. When updating, firstly, an area to be updated is required to be determined, and then target tile data of the area to be updated is generated according to vector data of the area to be updated.
In some embodiments, the area where the vector data changes (or there is a data update demand) is referred to as an initial update area, and the area to be updated is an area obtained based on the initial update area. When the region level to which the initial update region belongs is not the lowest region level, all the sub-regions corresponding to the initial update region in the lowest region level can be used as the regions to be updated, and then the vector data of the initial update region is divided into the vector data of at least one region to be updated. And then respectively generating corresponding target tile data according to the vector data of each area to be updated.
Fig. 2 is a schematic diagram of an administrative division at each level according to an exemplary embodiment of the present application. As shown in fig. 2, the county-level division includes a county, B county, C county, and D county in four administrative division levels of country, province, city, and county. Wherein, A county and B county are subordinate to P city, C county and D county are subordinate to Q city. The P and Q markets are affiliated to the M province. When the vector data of the Q city changes, the tile data corresponding to the C county, the D county, the Q city, the M province, and the country respectively need to be updated. In this case, the initial update area is Q city, and the sub-areas corresponding to Q city in the lowest division level are C county and D county. And taking the C county and the D county as areas to be updated. By dividing the vector data of the Q city into the vector data of C and D counties, tile data corresponding to C and D counties, respectively, can be generated in parallel. According to the method, the vector data of the initial updating area is divided into the vector data of the plurality of areas to be updated, and then the generating tasks of the target tile data of the plurality of areas to be updated are processed in parallel, so that the generating efficiency of the target tile data is greatly improved. And the data volume of the vector data of each area to be updated is smaller than that of the initial updating area, so that the speed of generating the tile data is faster.
In some embodiments, when the region level to which the initial update region belongs is not the lowest region level, a region with a change can be screened from the sub-region corresponding to the lowest region level in the initial update region, and the screened region is used as a region to be updated, so that the target tile data of the region to be updated is generated only according to the vector data of the region to be updated, the target tile data of other sub-regions with no change are not required to be generated, the data volume to be updated can be further reduced, and the update efficiency is improved. In combination with the above embodiments, when the vector data of Q city is changed, the C county and D county may be screened to confirm whether the vector data of C county is changed or the vector data of D county is changed. If it is determined that the vector data of the C county has not changed, the vector data of the D county has changed. Then after the vector data after the change of the Q city is divided into the vector data of the C county and the vector data of the D county, only the target tile data of the D county need be generated according to the vector data obtained by the division of the D county, and the target tile data of the C county need not be generated. If the vector data of the D county is not changed and the vector data of the C county is changed, only the target tile data of the C county is required to be generated, and the target tile data of the D county is not required to be generated.
In some embodiments, after the vector data of the area to be updated is acquired, the acquired vector data may be compared with the original vector data of the area to be updated. For example, the original vector data corresponding to the same data ID may be compared with the obtained vector data, and whether the original vector data corresponding to the data ID has changed may be determined according to the comparison result. When the comparison result shows that the obtained vector data only contains changed vector data, generating target tile data of the area to be updated according to the obtained vector data. When the comparison result shows that the obtained vector data contains changed vector data and unchanged vector data, the changed vector data is screened from the obtained vector data, and corresponding target tile data is generated according to the changed vector data. And then filtering and combining the target tile data with the original tile data of the area to be updated to obtain the target tile data of the area to be updated.
By means of the method for acquiring the target tile data of the area to be updated, only the changed vector data can be updated under the condition that only part of vector data of the area to be updated changes, and the data quantity required to be updated is further reduced. In this case, since the area to be updated is a county-level area and the administrative division level to which the area to be updated belongs is the lowest division level, that is, the amount of tile data per area to be updated is relatively small, the time required for the process of filtering and merging the generated target tile data with the original tile data of the area to be updated is relatively short, and the overall time required for acquiring the target tile data of the area to be updated is relatively short.
S102, acquiring original tile data corresponding to the area to be updated in at least one division level.
The tile data generated by the map in a particular projection manner will have a set of numbers. This set of codes is called tile number, consisting of zoom level (zoom level), tile column number (tile column), tile row number (tile row). The target tile data for the area to be updated will have a corresponding target tile number. In the scheme of the application, the tile numbers and the tile data in four administrative division levels of China, province, city and county need to be consistent. Based on the method, the original tile data related to the area to be updated in other division levels can be quickly and accurately acquired according to the target tile number. In connection with fig. 2, in tile data in county a, a tile is numbered from_level=1, tile_column=2, tile_row=3, and then the tile is also numbered in three administrative division levels of P city, M province, and country. Therefore, when the vector data of the A county is changed, the original tile data related to the A county in the other three administrative division levels can be downloaded to the server according to the tile numbers, so that the situation that the original tile data in the other division levels is downloaded in error or missing occurs is avoided.
After the integral tile data corresponding to the country level is generated by first slicing, the tile data of the corresponding region can be filtered and extracted from the integral tile data of the country level according to the administrative regions, so that the original tile data and the original tile numbers stored in each administrative region level are consistent.
In some embodiments, the original tile data corresponding to the original tile number of the area to be updated may include not only the original tile data of the area to be updated, but also the original tile data of other areas. And the target tile data corresponding to the target tile number are all the tile data of the area to be updated. But the target tile number may already exist in the data store and the tile data corresponding to the target tile number in the data store may not contain the original tile data for the region to be updated. For example, E and F counties are adjacent counties, and the original tile numbers of E county are number 1, number 2, number 3. Since the geographical area corresponding to the number 3 includes the edge area bordering the E-county and the F-county, the raw tile data corresponding to the number 3 includes part of the raw tile data of the E-county and the F-county at the same time. The data repository also stores raw tile data corresponding to number 4, but raw tile data corresponding to number 4 includes raw tile data for F county only and does not include raw tile data for E county.
When the vector data of the E-county is changed, the vector data of the E-county is not included in the vector data corresponding to the number 3, and the vector data of the E-county is newly added in the vector data corresponding to the number 4. Thus the target tile numbers in E county are number 1, number 2, number 4. If the original tile data related to E county in other administrative division levels is obtained according to the target tile number (number 1, number 2, number 4), the original tile data related to E county in number 3 is easily omitted, and thus the original tile data corresponding to number 3 in other administrative division levels is not updated, which results in data lag.
Therefore, in order to avoid omission in acquiring the original tile data related to the area to be updated in other division levels, the target tile number and the original tile number of the area to be updated may be combined to obtain the associated tile number related to the area to be updated. Namely, the associated tile numbers of the E county are numbered 1, 2, 3 and 4, so that the original tile data corresponding to the associated tile numbers in other division levels are obtained.
And S103, updating the original tile data of at least one zone level according to the target tile data so as to finish the local updating.
Two concepts in this application are distinguished here: "tile data related to area to be updated" and "tile data of area to be updated". Wherein, "tile data related to the area to be updated" refers to the tile data related to the area to be updated as long as the tile data includes the area to be updated. Thus, the data range of the "tile data related to the area to be updated" is larger than the data range of the "tile data of the area to be updated", and there is a coincidence between the two. For example, in the embodiment of S102, the tile data corresponding to the number 3 is "the tile data related to the area to be updated", and the tile data of E county included in the tile data corresponding to the number 3 is "the tile data of the area to be updated". The tile data corresponding to the number 1 are all the tile data of the E county, so the tile data corresponding to the number 1 belongs to both the tile data related to the area to be updated and the tile data of the area to be updated.
After the original tile data related to the area to be updated in any one of the division levels is downloaded to the server, since the original tile data may include the original tile data of other areas, the original tile data of the area to be updated needs to be screened out from the original tile data, the screened original tile data of the area to be updated is deleted, and then the original tile data of other areas which are not deleted are combined with the target tile data, so as to obtain updated tile data related to the area to be updated in any one of the division levels. And uploading the updated tile data to a data storage library to cover corresponding original tile data in the storage library, so as to realize local updating of the tile data at any partition level.
According to the local updating mode of the tile data, the operations of data downloading, data filtering and merging and data covering and updating are only performed on the tile data related to the area to be updated, so that the downloading, filtering and merging and covering and updating of all original tile data in a storage library are avoided, the processing time of the whole local updating process is greatly shortened, and a large amount of system resources are saved.
In some embodiments, the original tile data associated with the area to be updated in the highest compartment level (e.g., country level) may be downloaded locally to the server. Considering the tile data corresponding to the edge vector data between the areas, the original tile data of other areas may be contained in the downloaded original tile data. Therefore, in order to ensure consistency of unchanged edge data between areas, when updating the downloaded original tile data, it is necessary to screen the original tile data of the area to be updated from the downloaded original tile data, filter the screened original tile data, and then combine the reserved original tile data (i.e. the original tile data of other areas) with the target tile data of the area to be updated to obtain updated tile data of the highest region level. Uploading the updated tile data to a data storage library to cover the corresponding original tile data in the highest partition level, so as to finish the local updating of the tile data of the highest partition level.
In some embodiments, for updating tile data of any other division level, a target update area associated with an area to be updated in any other division level is determined first, then updated tile data of the target update area is extracted from updated tile data of a highest division level, and the extracted updated tile data is uploaded to a data storage library to cover corresponding original tile data in any other division level, so that local update of tile data of any other division level is realized.
In connection with fig. 2, when vector data of a county is changed, target tile data of a county is first acquired, and then original tile data related to a county in a country level is downloaded from a data storage library to a server local. Filtering and combining the target tile data of the A county and the original tile data to obtain updated tile data of the country level, and uploading the updated tile data to a data storage library to cover the original tile data related to the A county in the country level, thereby realizing local updating of the tile data of the country level. For the provincial region level, the target update area associated with the A county is determined to be Mprovince. It should be noted that, considering the tile data corresponding to the vector data of the edge area between the provinces, the updated tile data of the country level may include the updated tile data of other provinces. At this time, the updated tile data of the country level needs to be filtered to filter the updated tile data of other provinces, so as to extract the updated tile data of the M provinces. And uploading the extracted updated tile data to a data storage library to finish the local updating of the M-province tile data. Similarly, for the city level compartment level, the target update area associated with the A county is determined to be P city. Filtering and matting the updated tile data of the P market from the updated tile data of the M province, and uploading the updated tile data to a data storage library so as to finish the local update of the tile data of the P market.
According to the local updating mode, the tile data of the highest division level are downloaded and updated, and then the updated tile data of other division levels are extracted from the updated tile data of the highest division level, so that the original tile data of the target updating area in other division levels does not need to be downloaded, and the target tile data of the area to be updated and the original tile data of other division levels do not need to be filtered and combined in sequence, the updating time is further shortened, and the updating efficiency of the tile data is improved.
In some embodiments, it is desirable to count the number of updated tile numbers corresponding to the highest level of updated tile data and compare the number of updated tile numbers to the number of associated tile numbers. Since in the foregoing updating step, the original tile data corresponding to the associated tile number is downloaded locally from the highest compartment level of the repository, if the number of updated tile numbers is smaller than the number of associated tile numbers, it is indicated that during the updating process, the tile data on one or more tiles are all deleted, i.e. the one or more tiles are rejected. Under the condition, the missing associated tile numbers are required to be recorded, and then when tile data are updated for other division levels such as provincial level, municipal level and the like, the tile data corresponding to the missing associated tile numbers in the storage library are deleted, so that the consistency of the tile data stored in each administrative division level is ensured.
FIG. 3 is a flow chart illustrating a method for locally updating tile data according to an exemplary embodiment of the present application. As shown in fig. 3, the tile data repository stores four partition levels of original tile data including a country level, a province level, a city level, and a county level, and when vector data of a county is changed, the local updating method of tile data may include the following steps:
s301: and acquiring target tile data of the county to be updated.
And after determining the county to be updated, generating target tile data of the county to be updated according to the vector data of the county to be updated. And uploading the target tile data of the county level to a data storage library to cover the original tile data of the corresponding county, thereby completing the local updating of the tile data of the county level.
S302: and reading the target tile number corresponding to the county-level target tile data.
S303: the original tile number of the county to be updated is obtained from the data storage.
S304: and combining the target tile number and the original tile number to obtain the associated tile number.
S305: country-level raw tile data corresponding to the associated tile number is downloaded from the data store.
S306: and filtering and combining the target tile data and the downloaded country-level original tile data to obtain country-level updated tile data. And uploading the state-level updated tile data to a data storage library to cover the corresponding state-level original tile data, thereby completing the local update of the state-level tile data.
S307: filtering and matting the tile data after the country-level updating to obtain the tile data after the provincial level updating. And uploading the provincial updated tile data to a data storage library to cover the corresponding provincial original tile data, thereby completing the local updating of the provincial tile data.
S308: filtering and matting the tile data after provincial level updating to obtain the tile data after municipal level updating. And uploading the market-level updated tile data to a data storage library to cover the corresponding market-level original tile data, thereby completing local updating of the market-level tile data.
According to the local updating method of the tile data shown in fig. 3, only the local original tile data of the country level is required to be downloaded from the data storage library, and the local original tile data of the country level is updated according to the target tile data, so as to obtain the updated tile data of the country level. And then the provincial level updated tile data is extracted from the national level updated tile data, further the municipal level updated tile data is extracted from the provincial level updated tile data, and then the updated tile data of each regional level is uploaded to a data storage library so as to finish the local update of the tile data of each regional level. The whole local updating process does not need to download the original tile data of province level, city level and county level, and also does not need to filter and combine the target tile data with the original tile data of province level, city level and county level in sequence, thereby greatly shortening the updating time and improving the updating efficiency of the tile data.
Corresponding to the method embodiments described above, the present application also provides an embodiment of an apparatus.
Fig. 4 is a schematic structural view of an electronic device according to an exemplary embodiment of the present application. Referring to fig. 4, at the hardware level, the electronic device includes a processor 402, an internal bus 404, a network interface 406, a memory 408, and a non-volatile storage 410, although other hardware required for other services is possible. The processor 402 reads the corresponding computer program from the non-volatile memory 410 into the memory 408 and then runs. Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present application, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
FIG. 5 is a block diagram illustrating a local update apparatus for tile data according to an exemplary embodiment of the present application. The tile data includes at least one zone level of tile data; the at least one compartment level includes at least one region. Referring to fig. 5, the apparatus includes a target data acquisition unit 501, an original data acquisition unit 502, and an update unit 503, wherein:
The target data acquisition unit 501 is configured to acquire target tile data of an area to be updated.
The raw data obtaining unit 502 is configured to obtain raw tile data corresponding to the area to be updated in at least one of the division levels.
An updating unit 503 is configured to update the original tile data of at least one of the compartment levels according to the target tile data to complete the local update.
Optionally, the area to be updated is an area obtained based on the initial updated area; the initial updating area is an area with updating requirements; the target data acquisition unit 501 is specifically configured to: dividing the vector data of the initial updating area into at least one vector data of the area to be updated under the condition that the division level to which the initial updating area belongs is not the lowest division level; the area to be updated is a sub-area corresponding to the initial updating area at the lowest zone level; and generating target tile data of the at least one area to be updated according to the vector data of the at least one area to be updated.
Optionally, the area to be updated is an area obtained based on the initial updated area; the initial updating area is an area with updating requirements; the target data acquisition unit 501 is specifically configured to: screening the changed area to be updated from the subareas corresponding to the lowest zone hierarchy of the initial updating area; and generating target tile data of the area to be updated according to the vector data of the area to be updated.
Optionally, the generating the target tile data of the area to be updated according to the vector data of the area to be updated includes: acquiring vector data of the area to be updated; generating target tile data of the area to be updated according to the vector data to be updated under the condition that the vector data of the area to be updated only contains the vector data to be updated; or under the condition that the vector data of the area to be updated comprises the vector data to be updated and the vector data which is kept unchanged, screening the vector data of the area to be updated to obtain the vector data to be updated, and generating corresponding target tile data according to the vector data to be updated.
Optionally, the target tile data includes a corresponding target tile number; the raw data acquisition unit 502 is specifically configured to: determining an associated tile number related to the area to be updated according to the target tile number and an original tile number corresponding to the area to be updated; and acquiring original tile data corresponding to the associated tile number in at least one division level.
Optionally, the updating unit 503 is specifically configured to: updating original tile data of the highest regional level according to the target tile data to obtain updated tile data of the highest regional level; aiming at a target updating area associated with the area to be updated in any other zone hierarchy, extracting tile data corresponding to the target updating area from the updated tile data of the highest zone hierarchy; and updating the original tile data of any other zone level according to the scratched tile data.
Optionally, the updating the original tile data of the highest division level according to the target tile data includes: filtering original tile data corresponding to the area to be updated from the original tile data of the highest division level; and merging the filtered original tile data with the target tile data to obtain updated tile data of the highest division level.
Optionally, the target tile data includes a corresponding target tile number, and the area to be updated has a corresponding original tile number; the apparatus further comprises:
a statistics unit 504 configured to count the number of updated tile numbers and the number of associated tile numbers corresponding to the updated tile data; the associated tile number is composed of the target tile number and the original tile number; recording the missing associated tile numbers under the condition that the number of the updated tile numbers is smaller than the number of the associated tile numbers as a statistical result; and deleting the original tile data corresponding to the missing associated tile number in any other zone hierarchy according to the recording result.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
The apparatus or module set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
The present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method of local updating of tile data as shown in any of the previous embodiments.
In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing description of the preferred embodiments of the present invention is not intended to limit the invention to the precise form disclosed, and any modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method of locally updating tile data, wherein the tile data comprises at least one compartment level of tile data; the at least one compartment level includes at least one region; the method comprises the following steps:
acquiring target tile data of an area to be updated;
acquiring original tile data corresponding to the area to be updated in at least one division level;
updating the original tile data of at least one of the compartment levels according to the target tile data to complete the local update.
2. The method according to claim 1, wherein the area to be updated is an area obtained based on an initial updated area; the initial updating area is an area with updating requirements; the obtaining the target tile data of the area to be updated includes:
dividing the vector data of the initial updating area into at least one vector data of the area to be updated under the condition that the division level to which the initial updating area belongs is not the lowest division level; the area to be updated is a sub-area corresponding to the initial updating area at the lowest zone level;
And generating target tile data of the at least one area to be updated according to the vector data of the at least one area to be updated.
3. The method according to claim 1, wherein the area to be updated is an area obtained based on an initial updated area; the initial updating area is an area with updating requirements; the obtaining the target tile data of the area to be updated includes:
screening the changed area to be updated from the subareas corresponding to the lowest zone hierarchy of the initial updating area;
and generating target tile data of the area to be updated according to the vector data of the area to be updated.
4. The method of claim 1, wherein the target tile data includes a corresponding target tile number; the obtaining the original tile data corresponding to the area to be updated in at least one of the division levels includes:
determining an associated tile number related to the area to be updated according to the target tile number and an original tile number corresponding to the area to be updated;
and acquiring original tile data corresponding to the associated tile number in at least one division level.
5. The method of claim 1, wherein updating the original tile data for at least one of the compartment levels based on the target tile data comprises:
updating original tile data of the highest regional level according to the target tile data to obtain updated tile data of the highest regional level;
aiming at a target updating area associated with the area to be updated in any other zone hierarchy, extracting tile data corresponding to the target updating area from the updated tile data of the highest zone hierarchy;
and updating the original tile data of any other zone level according to the scratched tile data.
6. The method of claim 5, wherein updating the original tile data for the highest compartment level based on the target tile data comprises:
filtering original tile data corresponding to the area to be updated from the original tile data of the highest division level;
and merging the filtered original tile data with the target tile data to obtain updated tile data of the highest division level.
7. The method of claim 1, wherein the target tile data includes a corresponding target tile number, and the area to be updated has a corresponding original tile number; the method further comprises the steps of:
counting the number of updated tile numbers and the number of associated tile numbers corresponding to the updated tile data; the associated tile number is composed of the target tile number and the original tile number;
recording the missing associated tile numbers under the condition that the number of the updated tile numbers is smaller than the number of the associated tile numbers as a statistical result;
and deleting the original tile data corresponding to the missing associated tile number in any other zone hierarchy according to the recording result.
8. A local updating device for tile data, wherein the tile data comprises at least one region-level tile data; the at least one compartment level includes at least one region; the device comprises:
the target data acquisition unit is used for acquiring target tile data of the area to be updated;
the original data acquisition unit is used for acquiring original tile data corresponding to the area to be updated in at least one division level;
And the updating unit is used for updating the original tile data of at least one zone level according to the target tile data so as to finish the local updating.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any of claims 1-7 by executing the executable instructions.
10. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any of claims 1-7.
CN202310173514.6A 2023-02-17 2023-02-17 Local updating method, device and equipment of tile data and storage medium Pending CN116150295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310173514.6A CN116150295A (en) 2023-02-17 2023-02-17 Local updating method, device and equipment of tile data and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310173514.6A CN116150295A (en) 2023-02-17 2023-02-17 Local updating method, device and equipment of tile data and storage medium

Publications (1)

Publication Number Publication Date
CN116150295A true CN116150295A (en) 2023-05-23

Family

ID=86373425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310173514.6A Pending CN116150295A (en) 2023-02-17 2023-02-17 Local updating method, device and equipment of tile data and storage medium

Country Status (1)

Country Link
CN (1) CN116150295A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117851433A (en) * 2024-03-01 2024-04-09 昆明麦普空间科技有限公司 Real-time updating system and method for vector tiles of mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117851433A (en) * 2024-03-01 2024-04-09 昆明麦普空间科技有限公司 Real-time updating system and method for vector tiles of mobile terminal

Similar Documents

Publication Publication Date Title
CN109992636B (en) Space-time coding method, space-time index and query method and device
CN107450981B (en) Block chain consensus method and equipment
JP6793838B2 (en) Blockchain-based data processing methods and equipment
CN114020756B (en) Remote sensing image real-time map service publishing method and device
CN116150295A (en) Local updating method, device and equipment of tile data and storage medium
CN109934712A (en) Account checking method, account checking apparatus and electronic equipment applied to distributed system
CN111897493B (en) Storage space management method and device, electronic equipment and storage medium
CN111737265B (en) Block data access method, block data storage method and device
CN116011815A (en) Model training method and device, electronic equipment and storage medium
CN108234566B (en) Cluster data processing method and device
CN108427675B (en) Method and equipment for constructing index
CN113011946A (en) Order processing method and device
CN112559642A (en) Data classification storage method and device and related products
CN115292529B (en) Method, system, equipment and medium for automatic image processing and automatic result warehousing
CN108536759B (en) Sample playback data access method and device
CN115018866A (en) Boundary determining method and device, storage medium and electronic equipment
CN115689676A (en) Industry identification method and apparatus, storage medium and electronic device
CN115330960A (en) Live-action three-dimensional modeling method, device, server and storage medium
CN109151016B (en) Flow forwarding method and device, service system, computing device and storage medium
CN111143711A (en) Object searching method and system
CN112307025B (en) Distributed index construction method and device
CN111143487A (en) Urban map data upgrading method, terminal equipment and storage medium
CN112579605B (en) Data storage method, device, storage medium and server
CN117270789B (en) Data control method and system based on distributed storage and electronic equipment
CN112130770B (en) Maintenance data storage method, system, equipment and medium

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