CN111753123B - Tile obtaining method and device, terminal equipment and computer readable storage medium - Google Patents

Tile obtaining method and device, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN111753123B
CN111753123B CN202010629119.0A CN202010629119A CN111753123B CN 111753123 B CN111753123 B CN 111753123B CN 202010629119 A CN202010629119 A CN 202010629119A CN 111753123 B CN111753123 B CN 111753123B
Authority
CN
China
Prior art keywords
tile
information
tiles
time
column
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010629119.0A
Other languages
Chinese (zh)
Other versions
CN111753123A (en
Inventor
陆川
敬君
熊文轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Star Age Aerospace Technology Co ltd
Original Assignee
Chengdu Star Age Aerospace 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 Chengdu Star Age Aerospace Technology Co ltd filed Critical Chengdu Star Age Aerospace Technology Co ltd
Priority to CN202010629119.0A priority Critical patent/CN111753123B/en
Publication of CN111753123A publication Critical patent/CN111753123A/en
Application granted granted Critical
Publication of CN111753123B publication Critical patent/CN111753123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/587Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a tile obtaining method, a device, terminal equipment and a computer readable storage medium, wherein the method comprises the steps of responding to a tile obtaining request triggered by user operation, wherein the tile obtaining request comprises tile information corresponding to a tile to be obtained; and then according to the tile information and a pre-stored tile metadata management table, determining that the tile corresponding to the tile information exists in the file server, and then acquiring the corresponding tile from the file server according to the tile information, so that the condition that the corresponding tile does not exist after the client traverses all the tiles in the file server (namely invalid traversal) is avoided, the computing resources consumed by the invalid traversal and the time consumed by the invalid traversal can be saved, and the waiting time of a user is reduced.

Description

Tile obtaining method and device, terminal equipment and computer readable storage medium
Technical Field
The application belongs to the field of remote sensing images, and particularly relates to a tile obtaining method, a tile obtaining device, terminal equipment and a computer readable storage medium.
Background
And the original remote sensing image owner cuts the processed remote sensing image into tiles through a tile generating tool and distributes the generated tiles to a system server so that other users can check the tiles through a Web end or a user terminal. However, when a user's viewing request is responded, all tiles related to the original remote sensing image in the system database need to be traversed according to the tile information related to the request, so that the tiles related to the request are acquired and displayed to the user. However, if there is no tile corresponding to the tile information in the system server, it can be determined only after traversing all the tiles stored in the entire system server, but the process of traversing all the tiles wastes much time and computing resources, resulting in long waiting time for users, especially when querying the tile records with a relatively backward recording order.
Disclosure of Invention
In view of the above, an object of the present application is to provide a tile obtaining method, apparatus, terminal device and computer readable storage medium, so as to reduce the waiting time of a user.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a tile obtaining method, where the method includes: responding to a tile obtaining request triggered by user operation, wherein the tile obtaining request comprises tile information corresponding to a tile to be obtained; determining that a tile corresponding to the tile information exists in a file server according to the tile information and a pre-stored tile metadata management table; and acquiring the corresponding tile from the file server according to the tile information, so that the condition that the corresponding tile does not exist after the client traverses all the tiles in the file server is avoided (namely invalid traversal), the computing resources consumed by the invalid traversal and the time consumed by the invalid traversal can be saved, and the waiting time of a user is reduced.
With reference to the embodiment of the first aspect, in a possible implementation manner, the determining that a tile corresponding to the tile information exists in a file server according to the tile information and a pre-stored tile metadata management table, and acquiring the corresponding tile from the file server according to the tile information includes: determining whether a tile record corresponding to the time information exists in the pre-saved tile metadata management table;
if yes, determining that a tile corresponding to the tile information exists in a first storage location in the file server when a tile record corresponding to other information included in the tile information exists in the tile record corresponding to the time information, and acquiring the corresponding tile from the first storage location in the file server according to the tile information;
if the tile information does not exist, determining that the tile corresponding to the tile information does not exist in a first storage location in the file server, and acquiring the tile corresponding to the tile information in a second storage location in the file server according to other information included in the tile information.
With reference to the first aspect embodiment, in one possible implementation, the tile information includes level information corresponding to the tile, row information of the tile under the level information, and column information of the tile under the level; if it is determined that a tile record corresponding to other information included in the tile information exists in the tile records corresponding to the time information, determining that a tile corresponding to the tile information exists in a first storage location in the file server includes: determining whether there is a tile record of the hierarchy information corresponding to the time information among tile records corresponding to the time information; if so, determining that a tile corresponding to the tile information exists in the first storage location within the file server when the row information and the column information corresponding to the hierarchy information exist for a tile record corresponding to the hierarchy information.
With reference to the first aspect embodiment, in one possible implementation, the tile information includes level information corresponding to the tile, row information of the tile under the level information, and column information of the tile under the level; if it is determined that a tile record corresponding to other information included in the tile information exists in the tile records corresponding to the time information, determining that a tile corresponding to the tile information exists in a first storage location in the file server includes: determining whether there is a tile record of the hierarchy information corresponding to the time information among tile records corresponding to the time information;
if yes, determining that line information corresponding to the hierarchy information exists in a tile record corresponding to the hierarchy information; acquiring all column information groups corresponding to the row information from the tile records corresponding to the row information, wherein each column information group comprises a column information minimum value and a column information maximum value; judging whether column information in the tile information is between the column information minimum value and the column information maximum value included in one column information group in all the column information groups, and if so, determining that a tile corresponding to the tile information exists in a first storage position in the file server.
With reference to the first aspect embodiment, in one possible implementation, the tile information includes level information corresponding to the tile, row information of the tile under the level information, and column information of the tile under the level; if it is determined that a tile record corresponding to other information included in the tile information exists in the tile records corresponding to the time information, determining that a tile corresponding to the tile information exists in a first storage location in the file server includes: determining whether there is a tile record of the hierarchy information corresponding to the time information among tile records corresponding to the time information; if yes, all spatial information sets formed by row information and column information included in the tile records of the hierarchy information corresponding to the time information are obtained from the tile records, wherein the spatial information sets are used for representing spatial ranges of the tiles of the hierarchy information corresponding to the time information; and judging whether the row information and the column information in the tile information are within or on the range included by one of the spatial information sets in all the spatial information sets, and if so, determining that the tile corresponding to the tile information exists in a first storage position in the file server.
With reference to the embodiment of the first aspect, in a possible implementation manner, before the request for obtaining a tile triggered in response to a user operation, the method further includes: detecting a selection operation of one time node in a plurality of time nodes included in a time axis displayed by the user for the user; generating an acquisition request of the tile according to the selected time node; the obtaining request of the tile comprises tile information corresponding to the tile to be obtained, and the tile information comprises time information corresponding to the selected time node.
With reference to the embodiment of the first aspect, in a possible implementation manner, after the obtaining the corresponding tile from the file server according to the tile information, the method further includes: judging whether all the obtained tiles have the same level information; if yes, combining all the tiles to form a picture for displaying; and if not, determining one piece of hierarchy information matched with the size information from the plurality of hierarchy information corresponding to all the tiles according to the size information of the display interface of the tile, and combining the tiles with the matched hierarchy information to form a picture for displaying.
In a second aspect, an embodiment of the present application provides a tile obtaining apparatus, including: the device comprises a response module, a determination module and an acquisition module. The response module is used for responding to a tile acquisition request triggered by user operation, and the tile acquisition request comprises tile information corresponding to a tile to be acquired; the determining module is used for determining that the tiles corresponding to the tile information exist in the file server according to the tile information and a pre-stored tile metadata management table; and the obtaining module is used for obtaining the corresponding tile from the file server according to the tile information.
With reference to the second aspect embodiment, in one possible implementation manner, the tile information includes time information. The determining module is configured to determine whether a tile record corresponding to the time information exists in the pre-saved tile metadata management table;
the determining module is further configured to determine that, if the tile record exists, a tile record corresponding to other information included in the tile information exists in the tile record corresponding to the time information, and then determine that a tile corresponding to the tile information exists in a first storage location in the file server; the obtaining module is configured to obtain the corresponding tile from the first storage location in the file server according to the tile information;
the determining module is further configured to determine that, if the tile does not exist, the tile corresponding to the tile information does not exist in a first storage location in the file server; the obtaining module is further configured to obtain, according to other information included in the tile information, a tile corresponding to the tile information at a second storage location in the file server.
With reference to the second aspect embodiment, in one possible implementation, the tile information includes level information corresponding to the tile, row information of the tile under the level information, and column information of the tile under the level; the determining module is further configured to determine whether a tile record of the hierarchy information corresponding to the time information exists in a tile record corresponding to the time information; if so, determining that a tile corresponding to the tile information exists in the first storage location within the file server when the row information and the column information corresponding to the hierarchy information exist for a tile record corresponding to the hierarchy information.
With reference to the second aspect embodiment, in one possible implementation, the tile information includes level information corresponding to the tile, row information of the tile under the level information, and column information of the tile under the level; the determining module is further configured to determine whether a tile record of the hierarchy information corresponding to the time information exists in a tile record corresponding to the time information; if yes, determining that line information corresponding to the hierarchy information exists in a tile record corresponding to the hierarchy information; acquiring all column information groups corresponding to the row information from the tile records corresponding to the row information, wherein each column information group comprises a column information minimum value and a column information maximum value; judging whether column information in the tile information is between the column information minimum value and the column information maximum value included in one column information group in all the column information groups, and if so, determining that a tile corresponding to the tile information exists in a first storage position in the file server.
With reference to the second aspect embodiment, in one possible implementation, the tile information includes level information corresponding to the tile, row information of the tile under the level information, and column information of the tile under the level; the determining module is further configured to determine whether a tile record of the hierarchy information corresponding to the time information exists in a tile record corresponding to the time information; if yes, all spatial information sets formed by row information and column information included in the tile records of the hierarchy information corresponding to the time information are obtained from the tile records, wherein the spatial information sets are used for representing spatial ranges of the tiles of the hierarchy information corresponding to the time information; and judging whether the row information and the column information in the tile information are within or on the range included by one of the spatial information sets in all the spatial information sets, and if so, determining that the tile corresponding to the tile information exists in a first storage position in the file server.
With reference to the embodiment of the second aspect, in a possible implementation manner, the apparatus further includes a detection module and a generation module, where the detection module is configured to detect a selection operation of one time node in a plurality of time nodes included in a time axis displayed by the user for the user; the generating module is used for generating the obtaining request of the tile according to the selected time node; the obtaining request of the tile comprises tile information corresponding to the tile to be obtained, and the tile information comprises time information corresponding to the selected time node.
With reference to the second aspect, in a possible implementation manner, the apparatus further includes a determining module and a displaying module. The judging module is used for judging whether all the obtained tiles have the same level information; the display module is configured to combine all the tiles to form a picture for display when the judgment module judges that the tiles are valid, and determine, according to size information of a display interface of the display module, one hierarchical information matched with the size information from a plurality of hierarchical information corresponding to all the tiles, and combine the tiles with the matched hierarchical information to form the picture for display when the judgment module judges that the tiles are not valid.
In a third aspect, an embodiment of the present application further provides a terminal device, including: a memory and a processor, the memory and the processor connected; the memory is used for storing programs; the processor calls a program stored in the memory to perform the method of the first aspect embodiment and/or any possible implementation manner of the first aspect embodiment.
In a fourth aspect, the present application further provides a non-transitory computer-readable storage medium (hereinafter, referred to as a computer-readable storage medium), on which a computer program is stored, where the computer program is executed by a computer to perform the method in the foregoing first aspect and/or any possible implementation manner of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a flowchart of a tile obtaining method provided in an embodiment of the present application.
Fig. 2 is a schematic diagram illustrating a time axis provided in an embodiment of the present application.
Fig. 3A illustrates one of tile splitting diagrams provided by embodiments of the present application.
FIG. 3B is a schematic diagram illustrating one of tile selection provided by an embodiment of the present application.
Fig. 4A shows a second tile splitting diagram provided in the embodiment of the present application.
Fig. 4B shows a second tile shootdown diagram provided in the embodiment of the present application.
Fig. 5A shows a third tile division diagram provided in the present application.
Fig. 5B shows a third tile selection diagram provided in the embodiment of the present application.
Fig. 6A shows a fourth tile division diagram provided by the embodiment of the present application.
FIG. 6B shows a fourth tile shooter diagram provided by an embodiment of the present application.
Fig. 7 shows a block diagram of a tile obtaining apparatus according to an embodiment of the present application.
Fig. 8 shows a schematic structural diagram of a terminal device according to an embodiment of the present application.
Icon: 100-a terminal device; 110-a processor; 120-a memory; 130-display screen; 400-a tile acquisition device; 410-a response module; 420-a determination module; 430-acquisition module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In addition, the defects (which may cause much time and computing resources waste and cause long waiting time for users) existing in the tile obtaining manner in the prior art are the results obtained after the applicant has practiced and studied carefully, and therefore, the discovery process of the above defects and the solutions proposed by the embodiments of the present application to the above defects in the following text should be considered as contributions of the applicant to the present application.
In order to solve the above problem, embodiments of the present application provide a tile obtaining method, apparatus, terminal device, and computer-readable storage medium, so as to reduce waste of time and computing resources and shorten waiting time of a user.
The technology can be realized by adopting corresponding software, hardware and a combination of software and hardware. The following describes embodiments of the present application in detail.
The following description will be made for a tile obtaining method provided by the present application.
Referring to fig. 1, an embodiment of the present application provides a tile obtaining method. The steps involved will be described below with reference to fig. 1.
Step S110: responding to a tile obtaining request triggered by user operation, wherein the tile obtaining request comprises tile information corresponding to a tile to be obtained.
Step S120: and determining that the tile corresponding to the tile information exists in the file server according to the tile information and a pre-stored tile metadata management table.
Step S130: and acquiring the corresponding tile from the file server according to the tile information.
In the embodiment of the application, a user provides a request for viewing the remote sensing image through a client or a Web end. The client may be the terminal device itself, an Application (APP) installed in the terminal device, or some applet stored in the terminal device. When the client or the Web end receives a request for viewing the remote sensing image from a user, the server of the client or the Web end generates a plurality of tile obtaining requests according to the request of the user. The obtaining request of each tile carries the tile information corresponding to the tile to be obtained. It should be added that, if the client is an Application (APP) installed in the terminal device, the Application program has preset multiple tile acquisition requests, and when a user triggers a request to view a remote sensing image, the client selects a part of tile acquisition requests from the multiple tile acquisition requests according to a specific request triggered by the user.
Optionally, to facilitate locating the spatial position of the tile, the tile information includes, but is not limited to: level information (Z) of the corresponding tile, row information (X) of the corresponding tile under the level, and column information (Y) of the corresponding tile under the level.
Of course, referring to fig. 2, in some embodiments of the present application, the client or the Web end may further display a time axis for representing time, where the time axis includes a plurality of time nodes, and each time node represents a time, for example, in fig. 2, a first time node represents a time t1, a second time node represents a time t2, a third time node represents a time t3, and a fourth time node represents a time t 4. In this embodiment, the user can select (e.g., click on one of the time nodes) the time axis included in the time axis displayed on the client or the Web according to the needs of the user, so as to propose to view remote sensing images of different time nodes. After a client or a Web terminal detects a selection operation of a time node, a plurality of obtaining requests of tiles related to the time node are generated based on the time node triggered by the selection of a user, and therefore the tiles included in the remote sensing image related to the time node are obtained.
In this embodiment, once the time node is triggered by the operation of the user, the tile acquisition request generated by the client or the server at the Web end correspondingly further includes time information, which represents the tile of the remote sensing image at the time node where the user needs to acquire the time information.
In addition, in the embodiment of the present application, tiles to be acquired by a client or a Web are pre-saved in a file server. Specifically, a first storage location and a second storage location are provided in the file server.
And storing time folders corresponding to the time nodes in the first storage position, and adapting the obtaining request of the tile of which the tile information also comprises the time information. The tiles stored in the same time folder have time information corresponding to the same time node, the time information is used for representing shooting time of a source remote sensing image of the tiles, and the source remote sensing image is generally used for representing images of a certain area. Each time folder includes a plurality of hierarchical information folders (Z folders), and tiles belonging to the same Z folder in the same time folder have the same division hierarchy (hierarchical information). In addition, a plurality of row information folders (X folders) are included under each Z folder within each time folder, and tiles under the same X folder belonging to the same Z folder under the same time folder have the same division level in spatial position and also belong to different columns of tiles of the same row.
Generally, a remote sensing image is segmented according to a preset level and a TMS (tile map service) standard to obtain tiles, folder names of time folders to which the tiles belong are also confirmed, and the folder names of the time folders are used for representing time nodes of the tiles; and the folder name of the Z folder of the tile is also confirmed, the folder name of the Z folder is used for representing the level information of the tile, the folder name of the X folder to which the tile belongs is used for representing the row information of the tile, and the Y folder name of the tile is used for representing the column information of the tile. In addition, in order to facilitate management of all the tiles, the tiles belonging to the same X folder are arranged in an increasing or decreasing order of column information (Y) included in the file names thereof, the X folders belonging to the same Z folder are arranged in an increasing or decreasing order of row information included in the folder names thereof, and the Z folders belonging to the same time information folder are arranged in an increasing or decreasing order of hierarchy information included in the folder names thereof.
Tiles segmented by the global remote sensing image are stored in a second storage location for directly adapting to an acquisition request of tiles whose tile information does not include time information. It will be appreciated that when a user desires to view a remotely sensed image of any area, the tile for the corresponding area may be found from within the second storage location.
It is worth pointing out that tile data information of tiles stored in the first storage location of the file server is extracted in advance, and the extracted tile data information is generated into a tile metadata management table, and the tile metadata management table is exported and stored in the system server by the map management system (management software), and is synchronized into the terminal device when the terminal device downloads the latest application. Wherein the tile metadata management table is used for representing the distribution range of the spatial positions of the tiles stored in the first storage position of the file server.
Tile data information includes, but is not limited to: shooting time information of a source remote sensing image corresponding to the tile, hierarchy information (Z) of the tile, row information (X) of the tile under the hierarchy information of the tile, column information (Y) of the tile under the hierarchy information of the tile and an index address (storage position).
The tile metadata management table thereof further includes generation time of itself, time information of each tile, hierarchy information of each tile, maximum row information and minimum row information of tiles in each hierarchy under each time information, maximum column information and minimum column information of tiles in each hierarchy under each time information, and other remark information. The other remark information may be used to record the cases of discontinuous row information and discontinuous column information. In the process of interacting with the system server, the client can cache the tile metadata management table of the latest time node in the system server and store the tile metadata management table in the local terminal device, so that when a user makes a request for viewing the remote sensing image through the client, the client can generate a plurality of tile acquisition requests according to information included in the request, respond to the tile acquisition requests, and judge which storage position of the file server the tile currently requested can be acquired from based on the tile information included in the tile acquisition requests and the tile metadata management table stored in the local terminal device. Of course, in some embodiments, during the interaction between the client and the system server, the system server may also respond to the tile obtaining request.
It is worth pointing out that when the user makes a request for viewing the remote sensing image based on the web side, the web side and the system server can be taken as a whole. The web side generates a plurality of obtaining requests of the tiles according to information included in the request of the user, sends the obtaining requests of the tiles to the system server, the system server responds to the obtaining requests of the tiles, and the tile currently requested can be obtained from which storage position of the file server based on the tile information included in the obtaining requests of the tiles and a tile metadata management table stored in the web side.
Of course, there may be a case where the system server has the tile metadata management table of the latest point in time, but the client does not update the tile metadata management table saved before. At this time, if the client still determines at which storage location of the file server the tile currently being requested can be acquired according to the tile information in the user request and the non-updated tile metadata management table stored in the local terminal device, an erroneous determination may be caused.
To avoid this problem, in some embodiments, before the client determines at which position of the file server the tile corresponding to the tile information can be obtained according to the tile information and the tile metadata management table pre-stored in the terminal device, the client may further determine whether the generation time of the tile metadata management table currently stored in the terminal device is consistent with the generation time of the latest tile metadata management table in the system server; and when the tile metadata management tables are inconsistent, downloading the latest tile metadata management table from the system server to replace the tile metadata management table currently stored by the terminal equipment.
The following description will be made as to how a client determines which storage location within a file server to fetch a tile corresponding to a current request. It will be appreciated that this process and how the system server determines which storage location within the file server to retrieve the tile corresponding to the current request may be referred to one another.
As mentioned above, tile information includes, but is not limited to: level information (Z) corresponding to tiles, row information (X) corresponding to tiles below the level, and column information (Y) corresponding to tiles below the level. On this basis, it is also possible for the tile information to include time information.
In the embodiment of the application, on the premise that the tile information includes the time information, the client preferentially goes to a first storage location in the file server to obtain the corresponding tile, otherwise, the client directly goes to a second storage location in the file server to obtain the corresponding tile. Therefore, when the client determines which storage location in the file server to obtain the tile currently requested, it is first determined whether the time node is triggered by the user operation, that is, whether the tile information includes the time information.
On the premise that the tile information does not include time information, the client may directly determine that the tile corresponding to the tile information exists in the second storage location of the file server, and directly obtain the tile corresponding to the tile information from the tile information (the level information (Z), the row information (X) at the level, and the column information (Y) at the level) in the second storage location.
On the premise that the tile information includes the time information, the client firstly judges whether a tile record corresponding to the time information included in the tile information exists in a tile metadata management table pre-stored in the terminal device, and can quickly determine whether a tile corresponding to the tile information is included in a first storage location in the file server according to a judgment result.
If the tile record corresponding to the time information does not exist in the tile metadata management table, the client may directly determine that the tile corresponding to the tile information does not exist in the first storage location in the file server. In this case, the client may ignore the time information included in the tile information, and obtain the tile corresponding to the tile information at the second storage location in the file server according to the level information (Z), the row information (X) at the level, and the column information (Y) at the level included in the tile information, so as to avoid a situation that the client finds that the corresponding tile does not exist in the first storage location after traversing all the tiles in the first storage location (i.e., invalid traversal), thereby saving the computing resources consumed by the invalid traversal and the time consumed by the invalid traversal, and reducing the waiting time of the user.
If the tile metadata management table pre-stored in the terminal device has the tile record corresponding to the time information, at this time, the client further judges: among tile records corresponding to time information in the tile metadata management table, there is a tile record corresponding to information other than the time information included in the tile information, such as hierarchy information (Z), row information (X) at the hierarchy, and column information (Y) at the hierarchy.
If there is no tile record corresponding to the other information included in the tile information among the tile records corresponding to the time information, it is indicated that there is no tile corresponding to the tile information in the first storage location of the file server. In this case, the client may ignore the time information included in the tile information, and obtain the tile corresponding to the tile information at the second storage location in the file server according to the level information (Z), the row information (X) at the level, and the column information (Y) at the level included in the tile information, so as to avoid a situation that the client finds that the corresponding tile does not exist in the first storage location after traversing all the tiles in the first storage location (i.e., invalid traversal), thereby saving the computing resources consumed by the invalid traversal and the time consumed by the invalid traversal, and reducing the waiting time of the user.
If a tile record corresponding to other information included in the tile information exists in the tile record corresponding to the time information, it indicates that a tile corresponding to the tile information exists in the first storage location of the file server. In this case, the client may obtain the corresponding tile in the first storage location of the file server according to the tile information.
The following description will be made with respect to a process in which the client determines whether tiles corresponding to other information included in the tile information exist in the first storage location within the file server.
The client may first determine whether a tile record corresponding to the hierarchy information corresponding to the time information (i.e., the hierarchy information (Z) included in the tile information) exists in the tile record corresponding to the time information.
If there is no tile record corresponding to the hierarchy information (Z), it is indicated that there is no tile corresponding to other information included in the tile information in the first storage location within the file server. At this time, the client may ignore the time information included in the tile information, and obtain the tile corresponding to the tile information in the second storage location in the file server according to Z, X, Y included in the tile information.
If there is a tile record corresponding to the hierarchy information, it is indicated that there may be tiles in the first storage location that correspond to other information included in the tile information. At this time, the client may further determine whether a tile corresponding to the tile information exists in a tile record corresponding to the hierarchy information in the tile metadata management table pre-stored in the terminal device (a small range is determined from the large range, and then it is determined whether a target exists in the small range, which may save time), so as to determine whether a tile corresponding to other information included in the tile information exists in the first storage location, as follows.
In an alternative embodiment, the client may directly search the tile record corresponding to the hierarchy information (Z) for the row information (X) and the column information (Y) corresponding to the hierarchy information (Z) on the premise that the tile record corresponding to the hierarchy information (Z) exists in the tile metadata management table, and when the row information (X) and the column information (Y) corresponding to the hierarchy information (Z) exist in the tile record corresponding to the hierarchy information (Z) at the same time, the client determines that the tile corresponding to the tile information exists in the first storage location within the file server. At this time, the client may obtain the tile corresponding to the tile information in the first storage location in the file server according to the time information Z, X, Y included in the tile information.
It is noted that in this embodiment, it is necessary to extract tile data information of all tiles in the first storage location, and generate a tile metadata management table according to the extracted tile data information, and upload the tile metadata management table to the system server for storage.
In another optional embodiment, on the premise that a tile record corresponding to the hierarchy information (Z) exists in a tile metadata management table pre-stored in the terminal device, the client may first determine whether a row information (X) corresponding to the hierarchy information (Z) exists in the tile record corresponding to the hierarchy information (Z), and if so, obtain all column information groups corresponding to the row information (X) from the tile record corresponding to the row information (X), where each column information group includes a minimum column information value (Ymin) and a maximum column information value (Ymax).
When the client judges that the column information (Y) included by the tile information is between Ymin and Ymax included by one column information group in all the column information groups, the client determines that the tile corresponding to the tile information exists in the first storage position in the file server. At this time, the client may obtain the tile corresponding to the tile information in the first storage location in the file server according to the time information Z, X, Y included in the tile information.
It is worth noting that in this embodiment, when the tile data information of the tiles in the first storage location is extracted to generate the tile metadata management table, it is the tile data information of the selected partial tiles in the first storage location that needs to be extracted.
When the tile is selected, firstly traversing each X folder included in each Z folder in each time folder included in the first storage position, then selecting the tile corresponding to the smallest column information included by the file name and the tile corresponding to the largest column information included by the file name from each X folder as the selected tile, wherein the realized effect is as follows: and aiming at the source remote sensing picture shot correspondingly according to the time information represented by each time folder, tiles positioned in the first column and the last column are selected from all the tiles obtained after the source remote sensing picture is divided according to the preset level information.
The process of selecting a partial tile from the Z-folder will be described below by taking one of the Z-folders included in a certain time folder stored in the first storage location as an example. Assume that the Z-folder representation source telemetry image is partitioned into 4 rows and 7 columns as shown in fig. 3A. When the tile corresponding to the X folder (each row) included in the Z folder with the smallest column information and the tile corresponding to the X folder with the largest column information are selected, the tile selection condition is as shown in fig. 3B, where the grayed tile is the selected tile.
Further, there may be a case where column information (Y) included in the file names of tiles belonging to the same X folder (of course, also belonging to the same Z folder included in the same time folder) is discontinuous, that is, a difference between column information included in the file names of adjacent tiles belonging to the same X folder is larger than 1. In this embodiment, in addition to selecting the tile corresponding to the time when the column information included in each X folder of each Z folder in each time folder is the smallest and the tile corresponding to the time when the column information is the largest, it is also necessary to select adjacent tiles having discontinuous column information included in the file names of adjacent tiles belonging to the same X folder in each Z folder in each time folder. The realized effect is as follows: and selecting the tiles positioned in the first column and the last column and selecting two adjacent tiles with a gap between two adjacent tiles in each row in all the tiles obtained by segmenting the source remote sensing image corresponding to the time information represented by each time folder according to preset hierarchical information.
The process of selecting a part of tiles from the Z-folders will be described below by taking as an example one of the Z-folders included in a certain time folder stored in the first storage location. Assume that the Z-folder representation source telemetry image is partitioned into 4 rows and 16 columns as shown in fig. 4A, with column 8 empty. After selecting the tile corresponding to the X folder (each row) included in the Z folder, when the column information is the smallest, and the tile corresponding to the X folder when the column information is the largest, since adjacent tiles with discontinuous column information exist in each X folder included in the Z folder, it is also necessary to select adjacent tiles with discontinuous column information (i.e., two columns adjacent to an empty column). Finally, the grey tiles in FIG. 4B are selected.
After the selected tiles are determined, all column information included in each row of tiles respectively form a column information group corresponding to the row information of the row. If the column information included in the tile of the row is continuous, the number of column information groups corresponding to the row information is one, and if the column information included in the tile of the row is discontinuous, the number of column information groups corresponding to the row information is the number of times that the column information of the tile of the row is discontinuous plus one. For example, in fig. 3A and 3B, one column information group exists for each row of row information; in fig. 4A and 4B, column information is not continuous once for each row of row information, and therefore the number of column information groups corresponding to row information for each row is two.
Wherein each column information group comprises a minimum column information value (Ymin, i.e. the file name of the corresponding tile when the column information in the column information group is minimum) and a maximum column information value (Ymax, i.e. the file name of the corresponding tile when the column information in the column information group is maximum).
In another optional embodiment, on the premise that a tile record corresponding to the hierarchy information (Z) exists in the tile metadata management table, the client may obtain, from a tile metadata management table pre-saved in the terminal device, all spatial information sets formed by row information (X) and column information (Y) included in the tile record corresponding to the hierarchy information (Z), where the spatial information sets are used to characterize a spatial range of the tile records of the hierarchy information corresponding to the time information.
When the client judges that the row information (X) and the column information (Y) included by the tile information are within or on the range included by one of all the spatial information sets, the client determines that the tile corresponding to the tile information exists in the first storage position in the file server. At this time, the client may obtain the tile corresponding to the tile information in the first storage location in the file server according to the time information Z, X, Y included in the tile information.
It is worth noting that in this embodiment, when the tile metadata management table is generated upon extracting tile data information for a tile in the first storage location, the tile data information for a selected portion of the tiles in the first storage location is extracted.
When the tile is selected, firstly traversing each Z folder in each time folder included in the first storage position, then selecting an X folder (Xmin) corresponding to the Z folder with the smallest row information and an X folder (Xmax) corresponding to the Z folder with the largest row information from each Z folder, and then selecting the Xmin folder in each Z folder and all tiles included by the Xmax folder in each Z folder. In addition, traversing is also performed on the unselected X folder of each Z folder, and the tile corresponding to the tile with the smallest file name and the tile with the largest file name are selected from the tiles included in the unselected X folder. The realized effect is as follows: and selecting tiles positioned in a first row, a last row, a first column and a last column from all tiles obtained after the source remote sensing picture is divided according to preset level information aiming at the time information represented by each time folder.
The process of selecting a partial tile from a Z-folder will be described below by taking one of the Z-folders included in a certain time folder stored in the first storage location as an example.
Assume that the Z-folder representation source telemetry image is partitioned into 4 rows and 7 columns as shown in fig. 5A. When each tile in the X folder with the largest row information and the X folder with the smallest row information included in the Z folder is selected, and the tile corresponding to the tile with the smallest filename and the tile with the largest filename included in each X folder except Xmin and Xmax are selected, the tile selection situation is as shown in fig. 5B, where the gray tile is the selected tile.
Further, there may be a case where row information included in folder names of adjacent X files belonging to the same Z folder is discontinuous, and/or column information included in file names of tiles belonging to the same X folder is discontinuous. At this time, when there is a case where the row information included in the folder name of the adjacent X file is discontinuous, it is also necessary to select all the tiles included in the adjacent X file whose folder name is discontinuous; when column information included in filenames of tiles belonging to the same X folder is discontinuous, adjacent tiles included in filenames of adjacent tiles belonging to the same X folder in each Z folder in each time folder need to be selected according to the above description. The realized effect is as follows: and aiming at the source remote sensing picture shot correspondingly according to the time information represented by each time folder, selecting edge tiles of the independent blocks in all the tiles obtained after the source remote sensing picture is divided according to the preset level information.
The process of selecting a part of tiles from the Z-folders will be described below by taking as an example one of the Z-folders included in a certain time folder stored in the first storage location.
Assume that the Z-folder representation source image is divided into 8 rows and 16 columns as shown in FIG. 6A, wherein row 5 is empty and column 8 is empty. When all tiles in the Xmin folder (first row) and the Xmax folder (last row) included in the Z folder are selected, and a tile corresponding to a folder between the Xmin folder and the Xmax folder and a tile corresponding to a tile having a largest file name are selected, the X folder includes X folders having discontinuous row information, and therefore, all tiles in the X folder having discontinuous row information (i.e., two rows adjacent to an empty row) need to be selected. In addition, since tiles whose column information is discontinuous exist in tiles included in the X folder included in the Z folder, adjacent tiles whose column information is discontinuous need to be selected. Finally, the gray tiles in FIG. 6B are selected.
Wherein the edge tiles corresponding to the tiles of each independent block form one set of spatial information. The tile data information for the edge tiles of each set of spatial information forms the spatial extent of the tiles comprised by the tiles of the independent block.
In the present application, the tile information included in the above-described acquisition request for each tile corresponds to one tile. It can be understood that when the operation of the user triggers the obtaining request of the tile, the number of the obtaining requests of the tiles simultaneously responded by the client is multiple. After the client acquires all the corresponding tiles based on the method, pictures can be generated and displayed based on all the acquired tiles.
Since one tile corresponds to the obtaining request of one tile, all tiles obtained by the client or the system server (at this time, the obtaining request of the tile obtained by the web end) may correspond to the same level information, or may correspond to multiple levels of information, that is, all the obtained tiles do not have the same level information (for example, 10 tiles are obtained, where the level information of 9 tiles is a, and the level information of the remaining 1 tile is B). At this time, the client or the system server may first determine whether all the obtained tiles have the same hierarchical information.
When all the obtained tiles have the same level information, the client or the system server can display all the obtained tiles according to the tile information of each tile, wherein the tiles obtained by the client are displayed on a display interface of the client, and the tiles obtained by the system server are displayed on a display interface of the web end.
When all the obtained tiles do not have the same level information, the client or the system server can read the size information of the display interface; then, obtaining the preset scale information of each level, and determining a target level from a plurality of level information corresponding to all the tiles according to the obtained preset scale information of each level, the size information of the display interface and the obtained space range included by the tiles with the same level in all the tiles; and finally, according to the determined target level, selecting tiles to be displayed corresponding to the target level from all the obtained tiles, and displaying the tiles to be displayed on a display interface according to the spatial position information of the tiles to be displayed.
The method comprises the steps of displaying on a display interface according to the spatial position information of tiles to be displayed, combining a plurality of tiles to be displayed to form a picture, namely determining corresponding positions according to row information and column information (the row information and the column information are equivalent to coordinates) included by each tile with the same level information, and forming the picture. In exemplary embodiments of the present application, for example: if the current screen is 750px (px is short for pixels), the space range included by the 16-level corresponding tiles of all the acquired tiles is 3500 square meters, and it can be known that 16-level tiles can be selected finally according to 750px (scale of 17-level tile map) <3500 square meters <750px (scale of 16-level tile map).
According to the tile obtaining method provided by the embodiment of the application, a tile obtaining request triggered by responding to user operation is firstly carried out, wherein the tile obtaining request comprises tile information corresponding to a tile to be obtained; and then according to the tile information and a pre-stored tile metadata management table, determining that the tile corresponding to the tile information exists in the file server, and then acquiring the corresponding tile from the file server according to the tile information, so that the condition that the corresponding tile does not exist after the client traverses all the tiles in the file server (namely invalid traversal) is avoided, the computing resources consumed by the invalid traversal and the time consumed by the invalid traversal can be saved, and the waiting time of a user is reduced.
As shown in fig. 7, an embodiment of the present application further provides a tile obtaining apparatus 400, where tile obtaining apparatus 400 may include: a response module 410, a determination module 420, and an acquisition module 430.
A response module 410, configured to respond to a tile obtaining request triggered by a user operation, where the tile obtaining request includes tile information corresponding to a tile to be obtained;
a determining module 420, configured to determine, according to the tile information and a pre-stored tile metadata management table, that a tile corresponding to the tile information exists in the file server;
an obtaining module 430, configured to obtain the corresponding tile from the file server according to the tile information.
In one possible implementation, the tile information includes temporal information. The determining module 420 is configured to determine whether a tile record corresponding to the time information exists in the pre-saved tile metadata management table;
the determining module 420 is further configured to determine, if the tile record exists, that a tile record corresponding to other information included in the tile information exists in the tile record corresponding to the time information, and then determine that a tile corresponding to the tile information exists in a first storage location in the file server; the obtaining module 430 is configured to obtain the corresponding tile from the first storage location in the file server according to the tile information;
the determining module 420 is further configured to determine that, if the tile does not exist, the tile corresponding to the tile information does not exist in the first storage location in the file server; the obtaining module 430 is further configured to obtain, according to other information included in the tile information, a tile corresponding to the tile information in a second storage location in the file server.
In one possible implementation, the tile information includes hierarchy information corresponding to the tiles, row information of the tiles under the hierarchy information, and column information of the tiles under the hierarchy; the determining module 420 is further configured to determine whether a tile record of the hierarchy information corresponding to the time information exists in a tile record corresponding to the time information; if so, determining that a tile corresponding to the tile information exists in the first storage location within the file server when the row information and the column information corresponding to the hierarchy information exist for a tile record corresponding to the hierarchy information.
In one possible implementation, the tile information includes hierarchy information corresponding to the tiles, row information of the tiles under the hierarchy information, and column information of the tiles under the hierarchy; the determining module 420 is further configured to determine whether a tile record of the hierarchy information corresponding to the time information exists in a tile record corresponding to the time information; if yes, determining that line information corresponding to the hierarchy information exists in a tile record corresponding to the hierarchy information; acquiring all column information groups corresponding to the row information from the tile records corresponding to the row information, wherein each column information group comprises a column information minimum value and a column information maximum value; judging whether column information in the tile information is between the column information minimum value and the column information maximum value included in one column information group in all the column information groups, and if so, determining that a tile corresponding to the tile information exists in a first storage position in the file server.
In one possible implementation, the tile information includes hierarchy information corresponding to the tiles, row information of the tiles under the hierarchy information, and column information of the tiles under the hierarchy; the determining module 420 is further configured to determine whether a tile record of the hierarchy information corresponding to the time information exists in a tile record corresponding to the time information; if yes, all spatial information sets formed by row information and column information included in the tile records of the hierarchy information corresponding to the time information are obtained from the tile records, wherein the spatial information sets are used for representing spatial ranges of the tiles of the hierarchy information corresponding to the time information; and judging whether the row information and the column information in the tile information are within or on the range included by one of the spatial information sets in all the spatial information sets, and if so, determining that the tile corresponding to the tile information exists in a first storage position in the file server.
In a possible implementation manner, the pre-saved tile metadata management table is stored in a terminal device, and the apparatus further includes a determining module and an updating module, where the determining module is configured to determine whether a generation time of the pre-saved tile metadata management table is consistent with a generation time of a latest tile metadata management table in the file server; and the updating module is used for downloading the latest tile metadata management table from the file server to update the tile metadata management table when the judgment module judges that the tile metadata management table is inconsistent with the updated tile metadata management table.
In a possible implementation manner, the device further comprises a judging module and a display module. The judging module is used for judging whether all the obtained tiles have the same level information; the display module is configured to combine all the tiles to form a picture for display when the judgment module judges that the tiles are valid, and determine, according to size information of a display interface of the display module, one hierarchical information matched with the size information from a plurality of hierarchical information corresponding to all the tiles, and combine the tiles with the matched hierarchical information to form the picture for display when the judgment module judges that the tiles are not valid.
In a possible implementation, the apparatus further includes a detection module and a generation module. The detection module is used for detecting the selection operation of one time node in a plurality of time nodes included by the time axis displayed by the user for the user; the generating module is used for generating the obtaining request of the tile according to the selected time node; the obtaining request of the tile comprises tile information corresponding to the tile to be obtained, and the tile information comprises time information corresponding to the selected time node.
The tile obtaining apparatus 400 provided by the embodiment of the present application has the same implementation principle and the same technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments without reference to the apparatus embodiment.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computer, the steps included in the tile obtaining method are executed.
In addition, please refer to fig. 8, an embodiment of the present invention further provides a terminal device 100 for implementing the tile obtaining method and apparatus according to the embodiment of the present application.
The terminal device 100 may provide a service for the user, for example, in response to a tile obtaining request initiated by the user, obtain corresponding tiles from the file server, combine the tiles into a picture, and present the picture to the user.
Optionally, the terminal Device 100 may be, but is not limited to, a Personal Computer (PC), a smart phone, a tablet computer, a Mobile Internet Device (MID), a Personal digital assistant (pda), and the like.
Among them, the terminal device 100 may include: processor 110, memory 120, display 130.
It should be noted that the components and structure of the terminal device 100 shown in fig. 8 are exemplary only, and not limiting, and the terminal device 100 may have other components and structures as needed.
Processor 110, memory 120, display 130, and other components that may be present in terminal device 100 are electrically connected to each other, directly or indirectly, to enable the transfer or interaction of data. For example, the processor 110, the memory 120, the display 130, and other components that may be present may be electrically connected to each other via one or more communication buses or signal lines.
The memory 120 is used for storing a program, for example, a program corresponding to a tile obtaining method appearing later or a tile obtaining apparatus appearing later. Optionally, when a tile obtaining device is stored in the memory 120, the tile obtaining device includes at least one software function module that can be stored in the memory 120 in the form of software or firmware (firmware).
Optionally, the software function module included in the tile obtaining apparatus may also be solidified in an Operating System (OS) of the terminal device 100.
The processor 110 is used to execute executable modules stored in the memory 120, such as software functional modules or computer programs comprised by the tile retrieving device. When the processor 110 receives the execution instruction, it may execute the computer program, for example, to perform: responding to a tile obtaining request triggered by user operation, wherein the tile obtaining request comprises tile information corresponding to a tile to be obtained; determining that a tile corresponding to the tile information exists in a file server according to the tile information and a pre-stored tile metadata management table; and acquiring the corresponding tile from the file server according to the tile information.
Of course, the method disclosed in any of the embodiments of the present application can be applied to the processor 110, or implemented by the processor 110.
In summary, in the tile obtaining method, the tile obtaining apparatus, the terminal device and the computer-readable storage medium according to the embodiments of the present invention, the method first responds to a tile obtaining request triggered by a user operation, where the tile obtaining request includes tile information corresponding to a tile to be obtained; and then according to the tile information and a pre-stored tile metadata management table, determining that the tile corresponding to the tile information exists in the file server, and then acquiring the corresponding tile from the file server according to the tile information, so that the condition that the corresponding tile does not exist after the client traverses all the tiles in the file server (namely invalid traversal) is avoided, the computing resources consumed by the invalid traversal and the time consumed by the invalid traversal can be saved, and the waiting time of a user is reduced.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (6)

1. A tile acquisition method, the method comprising:
responding to a tile obtaining request triggered by user operation, wherein the tile obtaining request comprises tile information corresponding to a tile to be obtained;
before the client determines at which position of the file server the tile corresponding to the tile information can be obtained according to the tile information and a tile metadata management table pre-stored in the terminal device, the client may also first determine whether the generation time of the tile metadata management table currently stored in the terminal device is consistent with the generation time of the latest tile metadata management table in the system server; when the tile metadata management tables are inconsistent, downloading the latest tile metadata management table from the system server to replace the tile metadata management table currently stored by the terminal equipment; determining that the tile corresponding to the tile information exists in the file server according to the tile information and the latest tile metadata management table;
acquiring the corresponding tile from the file server according to the tile information;
wherein the tile information comprises temporal information; determining that a tile corresponding to the tile information exists in a file server according to the tile information and a latest tile metadata management table; and obtaining the corresponding tile from the file server according to the tile information, including:
determining whether a tile record corresponding to the time information exists in an up-to-date tile metadata management table;
if yes, determining that a tile corresponding to the tile information exists in a first storage location in the file server when a tile record corresponding to other information included in the tile information exists in the tile record corresponding to the time information, and acquiring the corresponding tile from the first storage location in the file server according to the tile information;
if the tile information does not exist, determining that the tile corresponding to the tile information does not exist in a first storage position in the file server, and acquiring the tile corresponding to the tile information in a second storage position in the file server according to other information included in the tile information;
wherein the tile information comprises hierarchy information corresponding to the tiles, row information of the tiles under the hierarchy information, and column information of the tiles under the hierarchy; if it is determined that a tile record corresponding to other information included in the tile information exists in the tile records corresponding to the time information, determining that a tile corresponding to the tile information exists in a first storage location in the file server includes:
determining whether there is a tile record of the hierarchy information corresponding to the time information among tile records corresponding to the time information;
if yes, determining that line information corresponding to the hierarchy information exists in a tile record corresponding to the hierarchy information;
acquiring all column information groups corresponding to the row information from the tile records corresponding to the row information, wherein each column information group comprises a column information minimum value and a column information maximum value;
judging whether column information in the tile information is between the column information minimum value and the column information maximum value included in one column information group in all the column information groups, and if so, determining that a tile corresponding to the tile information exists in a first storage position in the file server; or;
the tile information comprises hierarchy information corresponding to the tiles, row information of the tiles under the hierarchy information, and column information of the tiles under the hierarchy; if it is determined that a tile record corresponding to other information included in the tile information exists in the tile records corresponding to the time information, determining that a tile corresponding to the tile information exists in a first storage location in the file server includes:
determining whether there is a tile record of the hierarchy information corresponding to the time information among tile records corresponding to the time information;
if yes, all spatial information sets formed by row information and column information included in the tile records of the hierarchy information corresponding to the time information are obtained from the tile records, wherein the spatial information sets are used for representing spatial ranges of the tiles of the hierarchy information corresponding to the time information;
and judging whether the row information and the column information in the tile information are within or on the range included by one of the spatial information sets in all the spatial information sets, and if so, determining that the tile corresponding to the tile information exists in a first storage position in the file server.
2. The method according to claim 1, wherein prior to the request for obtaining tiles triggered in response to the user action, the method further comprises:
detecting a selection operation of one time node in a plurality of time nodes included in a time axis displayed by the user for the user;
generating an acquisition request of the tile according to the selected time node;
the obtaining request of the tile comprises tile information corresponding to the tile to be obtained, and the tile information comprises time information corresponding to the selected time node.
3. The method of claim 1, wherein after said obtaining the corresponding tile from the file server according to the tile information, the method further comprises:
judging whether all the obtained tiles have the same level information;
if yes, combining all the tiles to form a picture for displaying;
and if not, determining one piece of hierarchy information matched with the size information from the plurality of hierarchy information corresponding to all the tiles according to the size information of the display interface of the tile, and combining the tiles with the matched hierarchy information to form a picture for displaying.
4. A tile obtaining apparatus, comprising:
the response module is used for responding to a tile acquisition request triggered by user operation, and the tile acquisition request comprises tile information corresponding to a tile to be acquired;
the system comprises a determining module, a generating module and a sending module, wherein the determining module is used for determining which position of the file server can obtain the tile corresponding to the tile information, and the client can also firstly judge whether the generation time of the tile metadata management table currently stored in the terminal equipment is consistent with the generation time of the latest tile metadata management table in the system server; when the tile metadata management tables are inconsistent, downloading the latest tile metadata management table from the system server to replace the tile metadata management table currently stored by the terminal equipment;
the determining module is further configured to determine that a tile corresponding to the tile information exists in the file server according to the tile information and the latest tile metadata management table;
the obtaining module is used for obtaining the corresponding tiles from the file server according to the tile information;
wherein the tile information comprises temporal information;
the determining module is specifically configured to determine whether a tile record corresponding to the time information exists in a latest tile metadata management table; if yes, determining that a tile corresponding to the tile information exists in a first storage location in the file server when determining that a tile record corresponding to other information included in the tile information exists in the tile record corresponding to the time information; correspondingly, the obtaining module is configured to obtain the corresponding tile from the first storage location in the file server according to the tile information;
the determining module is further configured to determine that a tile corresponding to the tile information does not exist in a first storage location within the file server if the tile does not exist; correspondingly, the obtaining module is configured to obtain, according to other information included in the tile information, a tile corresponding to the tile information at a second storage location in the file server;
wherein the tile information comprises hierarchy information corresponding to the tiles, row information of the tiles under the hierarchy information, and column information of the tiles under the hierarchy; the determining module is specifically configured to: determining whether there is a tile record of the hierarchy information corresponding to the time information among tile records corresponding to the time information; if yes, determining that line information corresponding to the hierarchy information exists in a tile record corresponding to the hierarchy information; acquiring all column information groups corresponding to the row information from the tile records corresponding to the row information, wherein each column information group comprises a column information minimum value and a column information maximum value; judging whether column information in the tile information is between the column information minimum value and the column information maximum value included in one column information group in all the column information groups, and if so, determining that a tile corresponding to the tile information exists in a first storage position in the file server; alternatively, the first and second electrodes may be,
the tile information comprises hierarchy information corresponding to the tiles, row information of the tiles under the hierarchy information, and column information of the tiles under the hierarchy; the determining module is specifically configured to: determining whether there is a tile record of the hierarchy information corresponding to the time information among tile records corresponding to the time information; if yes, all spatial information sets formed by row information and column information included in the tile records of the hierarchy information corresponding to the time information are obtained from the tile records, wherein the spatial information sets are used for representing spatial ranges of the tiles of the hierarchy information corresponding to the time information; and judging whether the row information and the column information in the tile information are within or on the range included by one of the spatial information sets in all the spatial information sets, and if so, determining that the tile corresponding to the tile information exists in a first storage position in the file server.
5. A terminal device, comprising: a memory and a processor, the memory and the processor connected;
the memory is used for storing programs;
the processor calls a program stored in the memory to perform the method of any of claims 1-3.
6. A computer-readable storage medium, on which a computer program is stored which, when executed by a computer, performs the method according to any one of claims 1-3.
CN202010629119.0A 2020-07-01 2020-07-01 Tile obtaining method and device, terminal equipment and computer readable storage medium Active CN111753123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010629119.0A CN111753123B (en) 2020-07-01 2020-07-01 Tile obtaining method and device, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010629119.0A CN111753123B (en) 2020-07-01 2020-07-01 Tile obtaining method and device, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111753123A CN111753123A (en) 2020-10-09
CN111753123B true CN111753123B (en) 2021-06-29

Family

ID=72678842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010629119.0A Active CN111753123B (en) 2020-07-01 2020-07-01 Tile obtaining method and device, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111753123B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485623B (en) * 2021-09-07 2021-12-07 成都国星宇航科技有限公司 Image display method and device capable of realizing multi-dimensional comparison and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6956667B2 (en) * 1999-12-24 2005-10-18 Agfa Gevaert N. V. Page composing method using stored page elements and apparatus for using the same
CN104899282B (en) * 2015-06-02 2018-11-27 北京博阳世通信息技术有限公司 A kind of processing method and search method of multi-source multi-temporal satellite remote sensing tile data
CN106844537B (en) * 2016-12-30 2020-11-17 重庆大学 Organization management method for space-time map tile data
CN110928877A (en) * 2019-11-19 2020-03-27 武汉光谷信息技术股份有限公司 Hbase-based image tile storage method, device, equipment and medium

Also Published As

Publication number Publication date
CN111753123A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
US11025746B2 (en) Systems and methods for managing content items having multiple resolutions
CN109902248B (en) Page display method and device, computer equipment and readable storage medium
US10235444B2 (en) Systems and methods for providing a user with a set of interactivity features locally on a user device
RU2646334C2 (en) File management using placeholders
US20210117469A1 (en) Systems and methods for selecting content items to store and present locally on a user device
CN109739815B (en) File processing method, system, device, equipment and storage medium
US10430047B2 (en) Managing content on an electronic device
RU2011120787A (en) RECORDS CREATED BY USERS ON JOINTLY USED DOCUMENTS
US8082513B2 (en) Method and system for saving images from web pages
US9582554B2 (en) Building intelligent datasets that leverage large-scale open databases
US9922100B2 (en) Systems and methods for facilitating the development of an application that accesses data
US20170169072A1 (en) Ephemeral store-based auto-save for applications with a persistence layer
CN111753123B (en) Tile obtaining method and device, terminal equipment and computer readable storage medium
CN114020755A (en) Image map tile publishing method, image map tile generating method and device
CN112052126B (en) Rollback method and apparatus for remote sensing image slice, electronic device and storage medium
CN113687783B (en) Object aggregation method, system, device and computer storage medium
CN113805864A (en) Project engineering generation method and device, electronic equipment and storage medium
CN111767415B (en) Tile publishing method and device, electronic equipment and computer readable storage medium
CN117171419B (en) Content processing method, device, electronic apparatus, storage medium, and program product
CN116610689A (en) Dynamic updating method, device, equipment and medium for cache data
CN108595235B (en) Picture loading method and device
JP2023036175A (en) Information display control device, method and program
WO2020142042A1 (en) A system for transmitting files from a cloud storage area to a user device
JP6104729B2 (en) Content search system, content search method, and content search program
CN113590546A (en) Directory deleting method, device and storage 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
GR01 Patent grant
GR01 Patent grant