CN112052126B - Rollback method and apparatus for remote sensing image slice, electronic device and storage medium - Google Patents

Rollback method and apparatus for remote sensing image slice, electronic device and storage medium Download PDF

Info

Publication number
CN112052126B
CN112052126B CN202011056598.8A CN202011056598A CN112052126B CN 112052126 B CN112052126 B CN 112052126B CN 202011056598 A CN202011056598 A CN 202011056598A CN 112052126 B CN112052126 B CN 112052126B
Authority
CN
China
Prior art keywords
folder
rolled back
tile
tiles
range
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
CN202011056598.8A
Other languages
Chinese (zh)
Other versions
CN112052126A (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 CN202011056598.8A priority Critical patent/CN112052126B/en
Publication of CN112052126A publication Critical patent/CN112052126A/en
Application granted granted Critical
Publication of CN112052126B publication Critical patent/CN112052126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a rollback method, a rollback device, electronic equipment and a storage medium for remote sensing image slices, wherein the method comprises the following steps: responding to the rollback operation of a user, and determining a geographic space range to be rolled back corresponding to the operation to be rolled back; and determining the tiles to be rolled back according to the geographical space range to be rolled back, and deleting the corresponding tiles to be rolled back from the first storage folder. When the operation to be rolled back is rolled back in the above manner, the information to be stored is the operation content of the operation to be rolled back, the folder operated by the operation to be rolled back, and the geographical space range included in the tiles stored before and after the operation to be rolled back is performed by the folder operated by the operation to be rolled back.

Description

Rollback method and apparatus for remote sensing image slice, electronic device and storage medium
Technical Field
The application belongs to the field of remote sensing image processing, and particularly relates to a method and a device for rolling back a remote sensing image slice, electronic equipment and a storage medium.
Background
When the user acquires the remote sensing image data, the corresponding remote sensing image data can be acquired by taking the time node and the geographic space region as limiting conditions.
Due to the particularity of the obtained remote sensing image data, correspondingly, when the remote sensing image data are stored, the requirements of the user for obtaining the remote sensing image data can be met only by respectively storing the remote sensing images of different time nodes and different geographic spatial regions.
In the process of storing the remote sensing image data, a more or less erroneous operation is generated, and therefore, there is a demand for rolling back the stored remote sensing image data.
The common rollback mode in the prior art is as follows: before each operation step is executed, all the remote sensing image data which are currently available are backed up, and once the data need to be rolled back, the data can be rolled back based on the backup file before the operation to be rolled back is executed. However, since all current remote sensing image data are backed up during each backup, a large storage space needs to be reserved to store backup files, and the storage cost is increased.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for rolling a remote sensing image slice, which reduce storage cost when performing a rolling operation.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for rolling back a remote sensing image slice, including: responding to the rollback operation of a user, and determining a geographic space range to be rolled back corresponding to the operation to be rolled back; determining tiles to be rolled back according to the geographical space range to be rolled back, and deleting the corresponding tiles to be rolled back from a first storage folder; the first storage folder is used for storing tiles of remote sensing images at different shooting moments. When the operation to be rolled back is rolled back in the above manner, the information to be stored is the operation content of the operation to be rolled back, the folder operated by the operation to be rolled back, and the geographical space range included in the tiles stored before and after the operation to be rolled back is performed by the folder operated by the operation to be rolled back.
With reference to the embodiment of the first aspect, in a possible implementation manner, the determining a geospatial range to be rolled back corresponding to an operation to be rolled back includes: determining a first folder corresponding to the operation to be rolled back from a pre-established operation log list according to the operation to be rolled back, wherein the pre-established operation log list is used for recording the geographic space range included by the tiles stored in the first folder before and after each operation; the first folder is arranged in the first storage folder and is used for storing tiles of remote sensing images with the same shooting time; obtaining geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back from the operation log list; determining a difference value of the geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back as the geographic space range to be rolled back.
With reference to the embodiment of the first aspect, in a possible implementation manner, determining tiles to be rolled back according to the geospatial range to be rolled back, and deleting corresponding tiles to be rolled back from a first storage folder includes: according to the first folder determined by the operation to be rolled back and the geographic space range to be rolled back, determining tiles to be rolled back corresponding to the geographic space range to be rolled back in the first folder; and deleting the tile to be rolled back from the first folder.
With reference to the embodiment of the first aspect, in one possible implementation manner, the method further includes: according to the geographical space range to be rolled back, acquiring a plurality of folders which are included in the first storage folder and have an intersection geographical space range with the geographical space range to be rolled back from a basic information list as a plurality of folders to be compared; acquiring the shooting time of the tiles to be rolled back and the shooting time of the tiles in each folder to be compared; judging whether the tiles corresponding to the geographical space range to be rolled back need to be deleted from a second storage folder or not according to the shooting time of the tiles to be rolled back and the shooting time of the tiles in each folder to be compared; the basic information list is used for recording the geographic space range included by the tiles currently stored in each folder included in the first storage folder; and the second storage folder is used for storing the tiles of the remote sensing images at the latest shooting moment. Since the second storage folder is used to store the tiles of the remote sensing image at the latest shooting time, it is necessary to further determine whether or not a rollback needs to be performed on the second storage folder.
With reference to the embodiment of the first aspect, in a possible implementation manner, the determining, according to the shooting time of the tile to be rolled back and the shooting time of the tile in each folder to be compared, whether the tile corresponding to the tile to be rolled back needs to be deleted from a second storage folder includes: comparing the shooting time of the tiles to be rolled back with the shooting time of the tiles in each folder to be compared; and if the shooting time of the tile in each folder to be compared is before the shooting time of the tile to be rolled back, taking the geographic space range to be rolled back as the geographic space range of a rolling back target, and deleting the tile corresponding to the geographic space range of the rolling back target from the second storage folder.
With reference to the embodiment of the first aspect, in a possible implementation manner, the determining whether a tile corresponding to the tile to be rolled back needs to be deleted from the second storage folder further includes: otherwise, acquiring a folder corresponding to the shooting time after the shooting time of the tile to be rolled back from all the folders to be compared as a target folder, and acquiring the geographic space range included by the tile currently stored in each target folder from the basic information list; calculating an intersection geographical space range between the geographical space range to be rolled back and the geographical space range included by the tile currently stored in each target folder as a first geographical space range; calculating a difference value geospatial range between the geospatial range to be rolled back and the sum of all the first geospatial ranges as the geospatial range of the rolling target; deleting the tile corresponding to the geospatial extent of the rollback target from the second storage folder.
With reference to the embodiment of the first aspect, in a possible implementation manner, after the deleting, from the second storage folder, a tile corresponding to the geospatial range of the rollback target, the method further includes: taking a plurality of folders containing the geographical space range of the rollback target in the basic information list as a plurality of folders to be backed up; acquiring the shooting time of the tile in each file to be backed up; selecting a folder to be backed up with the smallest difference value between the shooting time of the tiles in the file to be backed up and the shooting time of the tiles to be rolled back as a target backup folder from all the files to be backed up; and obtaining a tile corresponding to the geographical space range of the rollback target from the target backup folder as a backup tile, and copying and backing up the backup tile into the second storage folder. In order to ensure the integrity of the tiles in the second storage folder, after the deletion operation is performed on the tiles in the second storage file, the tiles with the same geographic spatial range and different shooting time as the deleted tiles in the second storage folder may be restored into the second storage file.
In a second aspect, an embodiment of the present application provides an apparatus for rolling back a remote sensing image slice, where the apparatus includes: the response module is used for responding to the rollback operation of the user and determining the geographic space range to be rolled back corresponding to the operation to be rolled back; the determining module is used for determining the tiles to be rolled back according to the geographic space range to be rolled back; a deletion module, configured to delete the corresponding tile to be rolled back from the first storage folder; the first storage folder is used for storing tiles of remote sensing images at different shooting moments.
With reference to the second aspect, in a possible implementation manner, the response module is configured to determine, according to the operation to be rolled back, a first folder corresponding to the operation to be rolled back from a pre-established operation log list, where the pre-established operation log list is used to record a geospatial range included in a tile stored in the first folder before and after each operation; the first folder is arranged in the first storage folder and is used for storing tiles of remote sensing images with the same shooting time; obtaining geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back from the operation log list; determining a difference value of the geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back as the geographic space range to be rolled back.
With reference to the second aspect, in a possible implementation manner, the determining module is configured to determine, according to the first folder determined by the operation to be rolled back and the geographic space range to be rolled back, a tile to be rolled back corresponding to the geographic space range to be rolled back in the first folder; the deletion module is used for deleting the tiles to be rolled back from the first folder.
With reference to the second aspect, in a possible implementation manner, the apparatus further includes an obtaining module and a determining module, where the obtaining module is configured to obtain, from a basic information list, a plurality of folders included in the first storage folder and having an intersection geospatial range with the geospatial range to be rolled back as a plurality of folders to be compared according to the geospatial range to be rolled back; the file comparison system is also used for acquiring the shooting time of the tiles to be rolled back and the shooting time of the tiles in each folder to be compared; the judging module is used for judging whether the tiles corresponding to the geographical space range to be rolled back need to be deleted from the second storage folder or not according to the shooting time of the tiles to be rolled back and the shooting time of the tiles in each folder to be compared; the basic information list is used for recording the geographic space range included by the tiles currently stored in each folder included in the first storage folder; and the second storage folder is used for storing the tiles of the remote sensing images at the latest shooting moment.
With reference to the second aspect of the embodiment, in a possible implementation manner, the determining module is configured to compare the shooting time of the tile to be rolled back with the shooting time of the tile in each folder to be compared; and if the shooting time of the tile in each folder to be compared is before the shooting time of the tile to be rolled back, taking the geographic space range to be rolled back as the geographic space range of a rolling back target, and deleting the tile corresponding to the geographic space range of the rolling back target from the second storage folder.
With reference to the second aspect embodiment, in a possible implementation manner, the determining module is further configured to, if it is determined that the shooting time of the tile in each folder to be compared is not before the shooting time of the tile to be rolled back, obtain, from all folders to be compared, a folder corresponding to a shooting time after the shooting time of the tile to be rolled back as a target folder, and obtain, from the basic information list, a geographic space range included in a tile currently stored in each target folder; calculating an intersection geographical space range between the geographical space range to be rolled back and the geographical space range included by the tile currently stored in each target folder as a first geographical space range; calculating a difference value geospatial range between the geospatial range to be rolled back and the sum of all the first geospatial ranges as the geospatial range of the rolling target; deleting the tile corresponding to the geospatial extent of the rollback target from the second storage folder.
With reference to the second aspect, in a possible implementation manner, the determining module is further configured to use a plurality of folders, which include the geographic space range of the rollback target, in the basic information list as a plurality of folders to be backed up; the obtaining module is further configured to obtain a shooting time of a tile in each file to be backed up; the determining module is further configured to select, from all the files to be backed up, a folder to be backed up, where a difference between the shooting time of the tile in the files to be backed up and the shooting time of the tile to be rolled back is minimum, as a target backup folder; the device further comprises a backup module, configured to acquire, from the target backup folder, a tile corresponding to the geographic spatial range of the rollback target as a backup tile, and copy and backup the backup tile to the second storage folder.
In a third aspect, an embodiment of the present application further provides an electronic 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-volatile computer-readable storage medium (hereinafter, referred to as a 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 one of flowcharts of a method for rolling back a remote sensing image slice according to an embodiment of the present application.
Fig. 2A is a schematic diagram illustrating a geospatial range of a method for rolling back a remote sensing image slice according to an embodiment of the present application.
Fig. 2B is a second schematic diagram illustrating a geospatial range of a method for rolling back a remote sensing image slice according to an embodiment of the present application.
Fig. 2C is a third schematic diagram illustrating a geospatial range of a method for rolling back a remote sensing image slice according to an embodiment of the present application.
Fig. 3 shows a second flowchart of a method for rolling back a remote sensing image slice according to an embodiment of the present application.
Fig. 4 shows a block diagram of a rollback apparatus for a remote sensing image slice according to an embodiment of the present application.
Fig. 5 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Icon: 100-an electronic device; 110-a processor; 120-a memory; 130-display screen; 400-rollback means of the remote sensing image slices; 410-a response module; 420-a determination module; 430-delete 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 (the need to reserve a large storage space for saving the backup file, and increase the storage cost) existing in the tile rollback mode in the prior art are the result of the practical and careful research of the applicant, and therefore, the discovery process of the above defects and the solution proposed by the embodiment 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 method and an apparatus for rolling back a remote sensing image slice, an electronic device, and a storage medium, so that when a rolling back operation is performed, storage cost is reduced.
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 method for rolling back a remote sensing image slice provided by the present application will be described below.
Referring to fig. 1, an embodiment of the present application provides a method for rolling back a remote sensing image slice. The steps involved will be described below with reference to fig. 1.
Step S110: and responding to the rollback operation of the user, and determining the geographic space range to be rolled back corresponding to the operation to be rolled back.
In the embodiment of the application, after the tiles are uploaded to the storage space, the electronic device with the display function can respond to the preview operation of the user, and display the display effect of the tiles uploaded in the operation for the staff to judge whether the current tiles need to be rolled back.
The situations that the current tile needs to be rolled back include, but are not limited to, the following situations:
1. the time node corresponding to the current time has errors;
2. the quality of the current tile is not up to the standard, for example, the color, the brightness and the like of the tile have deviations;
3. the position between the current tile and the surrounding tiles is offset, for example, the geographic space range of the current tile has an error, so that the current tile and the surrounding tiles have dislocation;
4. data loss occurs, resulting in the current tile being incomplete.
When the staff judges that the rollback is required, corresponding rollback operation can be performed on the electronic device, for example, an operation to be rolled back, which is required to be rolled back, is selected. After the electronic device detects the rollback operation triggered by the user, the electronic device may determine, in response to the rollback operation, a geospatial range to be rolled back corresponding to the operation to be rolled back.
The operation to be rolled back may be a tile uploading operation closest to the current time, or a tile uploading operation at another historical time.
After determining the operation to be rolled back, the electronic device may query a pre-established operation log list. The geospatial range included by a tile stored in the first folder (the folder operated by the tile uploading operation) before and after each tile uploading operation, the operation content of the tile uploading operation, and the folder operated by the tile uploading operation are recorded in the operation log list.
Of course, in some embodiments, the operation log list may also be used to record the operation name of each tile uploading operation, the operation time (i.e. the occurrence time), the operator, the shooting time of the tiles included in the operated folder, and the like. For example, there is one operation record in the operation log list: operation 1, operation time 1, the folder of the operation is 2020-3-2, the geographic space range included by the tiles stored in the 2020-3-2 folder before operation 1 is executed is A, and the geographic space range included by the tiles stored in the 2020-3-2 folder after operation 1 is executed is A + B.
The first folder mentioned above is provided in the first storage folder.
Certainly, a plurality of different folders may be simultaneously arranged in the first storage folder, the first folder is only one folder of the plurality of folders (the first folder only plays a role in distinguishing the folders, and the positions of the folders are the same), the shooting moments corresponding to the tiles stored in the first storage folder are all different, and the folders in the first storage folder are used for storing the tiles of the remote sensing images at different shooting moments.
It can be understood that each folder included in the first storage folder is used for storing tiles obtained by cutting the remote sensing image with the same shooting time (the shooting time is the same as the shooting time corresponding to the folder). For example, the first storage folder includes three folders, which are a first folder, a second folder, and a third folder. The first folder corresponds to the shooting time T1, the second folder corresponds to the shooting time T2, and the third folder corresponds to the shooting time T3. Correspondingly, the first folder is used for storing tiles obtained by cutting the remote sensing image with the shooting time of T1, the second folder is used for storing tiles obtained by cutting the remote sensing image with the shooting time of T2, and the third folder is used for storing tiles obtained by cutting the remote sensing image with the shooting time of T3.
After determining a first file folder corresponding to an operation to be rolled back (for convenience of distinction, the operation to be rolled back is referred to as operation 1 hereinafter) according to the operation log list, wherein the first file folder is included before the operation 1 is executed and a geographic space folder is included after the operation 1 is executed, performing a difference between the two geographic space folders to obtain a difference value between the two geographic space folders, and determining the difference value as the geographic space folder to be rolled back.
Step S120: and determining the tiles to be rolled back according to the geographical space range to be rolled back, and deleting the corresponding tiles to be rolled back from the first storage folder.
Specifically, after the first folder acted by the operation 1 and the geographic space range to be rolled back are determined, the tiles to be rolled back corresponding to the geographic space range to be rolled back can be determined from the first folder, and the determined tiles to be rolled back are deleted from the first folder.
In some embodiments, for the first folder, there may not be an intersection between the geospatial range corresponding to the first folder before the operation 1 is performed and the geospatial range corresponding to the operation content of the operation 1. At this time, if a rollback operation is to be performed with respect to operation 1, the tile corresponding to the geographic space range to be rolled back included in the first folder may be directly determined as the tile to be rolled back, and the deletion step may be directly performed.
As shown in fig. 2A, assuming that before operation 1 is executed, the geospatial range included in the first folder is a, the geospatial range corresponding to the operation content of operation 1 is C, and there is no intersection between a and C, after operation 1 is executed, the geospatial range included in the first folder is a + C, and the geospatial range to be rolled back is C. At this time, if rollback is to be performed on operation 1, since there is no intersection between a and C, tiles corresponding to the geospatial range C in the entire geospatial range included in the first folder after operation 1 is performed may be directly determined as tiles to be rolled back, and may be deleted from the first folder.
In some embodiments, for the first folder, there may be an intersection between the geospatial range corresponding to the first folder before the operation 1 is executed and the geospatial range corresponding to the operation content of the operation 1.
It is worth noting that for the case where there is an intersection, the geospatial extent of the intersection portion needs to be calculated before operation 1 is performed. Subsequently, when the operation 1 is executed, the geospatial range corresponding to the operation content of the operation 1 is subtracted from the geospatial range corresponding to the intersection part to obtain a difference geospatial range which needs to be uploaded when the operation 1 is executed, and then tiles corresponding to the difference geospatial range which needs to be uploaded in the operation content of the operation 1 are uploaded to the first folder. That is to say, when a tile is uploaded for a certain folder, if there is an intersection portion between the geographic spatial range of the tile that needs to be uploaded currently and the geographic spatial range of the tile already existing in the folder, then only the tiles other than the intersection portion need to be uploaded when the tile is uploaded this time, and the tiles corresponding to the intersection portion already existing in the file are retained.
On the premise that the tile uploading rule exists, if there may be an intersection between the geographic space range corresponding to the first folder before the operation 1 is executed and the geographic space range corresponding to the operation content of the operation 1, at this time, if a rollback operation is to be executed with respect to the operation 1, the tile corresponding to the geographic space range to be rolled back included in the first folder may still be directly determined as the tile to be rolled back, and the deletion step is directly executed.
As shown in fig. 2B, it is assumed that, before operation 1 is executed, the first folder includes a geographic spatial range a, a geographic spatial range C corresponding to the operation content of operation 1, an intersection exists between a and C, that is, a shaded portion in the drawing, and the geographic spatial range of the intersection is B. Because there is an intersection portion, then the geospatial range of tiles that need to be uploaded into the first folder is C-B when operation 1 is performed. After operation 1 is performed, the first folder includes a geospatial range of a + (C-B) and the geospatial range to be rolled back is a + (C-B) -a ═ C-B. At this time, if rollback is to be performed on operation 1, even if an intersection exists between a and C, tiles corresponding to the geospatial range C-B in the entire geospatial range included in the first folder after operation 1 is performed may be directly determined as tiles to be rolled back, and may be deleted from the first folder.
As can be seen from the above description, in order to ensure that operation 1 can be successfully rolled back, the information to be recorded is the operation content of operation 1, the folder operated by operation 1 (i.e., the first folder), and the geospatial range included in the tile stored before and after operation 1 is executed in the folder operated by operation 1, and these pieces of information are all stored in the operation log list. Compared with the file backup in the prior art, the storage space required for the information is obviously reduced, and the tiles do not need to be backed up, so that the storage cost required to be consumed is also less than that in the prior art, and meanwhile, the time cost required to be consumed is also obviously reduced.
Note that the operation time of operation 1 and the shooting time of the tile included in the folder of the operation can also be saved in the operation log list. In this embodiment, it is possible to determine whether or not the operation time of operation 1 is the latest operation time for the first folder by looking up the operation log list and inquiring about the operation corresponding to the first folder.
If the operation time of the operation 1 is the latest operation time of the first folder, the first folder does not need to be restored after the operation 1 is rolled back; if the operation time of operation 1 is not the latest operation time for the first folder, the first folder may also need to be restored after the rollback is performed on operation 1, for the following reasons.
In the process of uploading tiles to a certain folder, if there is an intersection portion between the geographic space range of the tile currently required to be uploaded and the geographic space range of the tile already existing in the folder, only the tiles other than the intersection portion need to be uploaded, and the tiles corresponding to the intersection portion already existing in the file are retained.
When operation 1 is an intermediate operation (i.e., the operation time of operation 1 is not the latest operation time for the first folder), there may also be an intersection geospatial range (referred to as a post-intersection geospatial range for convenience of distinction) between the geospatial range of the tile that needs to be uploaded by the operation performed thereafter and the geospatial range of the tile that needs to be uploaded by operation 1, and at this time, under the control of the above tile uploading mechanism, a portion of the geospatial range of the tile that needs to be uploaded by operation 1 that overlaps the post-intersection geospatial range is retained. If the post-intersection geospatial range is not completely included in the geospatial range of the tiles stored in the first folder before the execution of operation 1, then, if a rollback is performed for operation 1, the part of the geospatial range of the tiles uploaded by operation 1, which overlaps with the post-intersection geospatial range, is deleted.
But for operations performed after operation 1, the geospatial range of the tile that it needs to upload also includes the post-intersection geospatial range, and is independent of operation 1; and for the first folder, the larger the geographic spatial range covered by the tile is, the more beneficial the map viewing for the subsequent user is, so that the tiles corresponding to the post-intersection geographic spatial range in the geographic spatial range of the tiles required to be uploaded by the operation performed after the operation 1 can be restored into the first folder in some way.
Optionally, when it is determined that the operation time of operation 1 is not the latest operation time for the first folder, it means that after the tile is uploaded to the first folder through operation 1, the tile is also uploaded to the first folder through another operation (e.g., operation 2) or operations (e.g., operations 2 and 3). For the sake of convenience of distinction, in the embodiment of the present application, operations that continue to be performed on the first folder after operation 1 is performed are collectively referred to as update operations.
Subsequently, the geospatial range to be restored, which needs to be restored to the first folder, may be determined according to the geospatial range to be rolled back determined by operation 1, and the process is as follows.
By querying the operation log list, all geospatial ranges to be updated corresponding to the update operation for the first folder after the operation 1 are obtained (determined according to the operation content corresponding to each tile upload operation recorded by the operation log list), a post-intersection geospatial range between the geospatial range to be rolled back determined by the operation 1 and all the geospatial ranges to be updated corresponding to the update operation is calculated, and the post-intersection geospatial range is determined as the geospatial range to be restored, which needs to be restored to the first folder.
After the geographical space range to be restored, which needs to be restored to the first folder, is determined, the tile corresponding to the geographical space range to be restored may be obtained from the pre-saved backup folder as the tile to be restored according to the shooting time of the tile included in the first folder, and after the tile to be restored is rolled back for operation 1, the tile to be restored is uploaded into the first folder.
As shown in fig. 2C, on the basis of fig. 2B, it is assumed that after operation 1 is performed, operation 2 is performed again with respect to the first folder.
The geospatial range corresponding to the operation content of the operation 2 is D, and an intersection exists between C-B and D, that is, the geospatial range in the graph is a shaded part of E. Because there is an intersection portion, then the geospatial range of tiles that need to be uploaded into the first folder is D-E when operation 2 is performed. After operation 2 is performed, the tiles included in the first folder that correspond to the geospatial range E are the tiles uploaded by the user when operation 1 was performed. And after rolling back is performed on the operation 1, deleting the tiles corresponding to the geographic spatial range C-B in the first folder, wherein the geographic spatial range covered by the deleted tiles comprises E. At this time, it is necessary to determine the portion of the operation content of operation 2 corresponding to the geographic space range E as the geographic space range to be restored, and restore the tile corresponding to the geographic space range E in the operation content of operation 2 into the first folder.
Is a + (C-B) and the geospatial range to be rolled back is a + (C-B) -a ═ C-B. At this time, if rollback is to be performed on operation 1, even if an intersection exists between a and C, tiles corresponding to the geospatial range C-B in the entire geospatial range included in the first folder after operation 1 is performed may be directly determined as tiles to be rolled back, and may be deleted from the first folder.
It is worth pointing out that, for each tile uploading operation of the folder included in the first storage folder, before uploading a tile (hereinafter referred to as a tile to be updated) corresponding to the operation content of the tile uploading operation into the folder included in the first storage folder, a geospatial range (hereinafter referred to as a geospatial range to be updated) included in the tile to be updated is recorded in the operation log list; and acquiring the shooting time of the tile to be updated.
Subsequently, a first folder to be updated corresponding to the shooting time of the tile to be updated can be determined in the first storage folder according to the shooting time of the tile to be updated; furthermore, it is also possible to determine an intersection geospatial range between the geospatial range included by the tile to be updated and the geospatial ranges included by all tiles currently stored in the first folder to be updated, and to backup (store in the backup folder) tiles corresponding to the intersection geospatial range among the geospatial ranges included by the tiles to be updated. Subsequently, a difference geospatial range between the geospatial range included by the tile to be updated and the intersection geospatial range is determined, and the tile corresponding to the difference geospatial range in the geospatial range included by the tile to be updated is uploaded to the first file to be updated (consistent with the above description, that is, the tile corresponding to the geospatial range outside the intersection is uploaded).
Although the above operation involves backing up a part of the tiles, the storage space and time consumed by backing up all the tiles are significantly reduced compared to the prior art, and therefore, the tile rollback manner provided in the embodiment of the present application can reduce the storage cost and the time cost compared to the prior art.
The above is a tile rollback operation for the first storage folder.
In some embodiments, when the tile is uploaded, the tile can be saved in the first storage folder and the second storage folder respectively.
The second storage folder is used for storing the tiles of the remote sensing image at the latest shooting moment, and the tiles corresponding to the same geographic space range in the second storage folder are correspondingly updated along with the updating of the shooting moment of the tiles.
For example, at the present time, there are three folders in the first storage folder that store tiles corresponding to the geospatial extent a, folder 1, folder 2, and folder 3, respectively. The shooting time corresponding to the folder 1 is 1 month in 2020, the shooting time corresponding to the folder 2 is 2 months in 2020, and the shooting time corresponding to the folder 3 is 3 months in 2020. According to the principle of storing only the tiles of the remote sensing image at the latest shooting time, when the second storage folder stores the tiles corresponding to the geographic space range A, the tiles corresponding to the geographic space range A in the folder 3 are stored.
Subsequently, if a remote sensing image captured at an updated capturing time (for example, 4 months 2020) is generated compared to 3 months 2020, a folder 4 corresponding to 4 months 2020 is generated in the first storage folder, and the folder 4 is used for storing tiles obtained by cutting the remote sensing image. If the geographic spatial range of the tiles obtained by cutting the remote sensing image includes the geographic spatial range a, the tiles corresponding to the geographic spatial range a stored in the second storage folder are updated from the tiles corresponding to the geographic spatial range a in the folder 3 to the tiles corresponding to the geographic spatial range a in the folder 4.
If the rollback is performed for operation 1 in the presence of the second storage folder, a tile rollback operation for the second storage folder may be involved, and accordingly, referring to fig. 3, the method for rolling back the remote sensing image slice may further include the following steps.
Step S130: and according to the geographical space range to be rolled back, acquiring a plurality of folders which are included in the first storage folder and have an intersection geographical space range with the geographical space range to be rolled back from a basic information list to serve as a plurality of folders to be compared.
Wherein the basic information list is used for recording the geographic spatial range included by the tiles currently stored in each folder included in the first storage folder, and is updated with the updating of the tiles in each folder included in the first storage folder.
Since each folder in the first storage folder is used for storing the remote sensing image shot at the shooting time corresponding to the folder, and the tile is obtained after cutting, tiles corresponding to the same geographic space range may be stored in a plurality of folders, as shown in the above example, tiles corresponding to the geographic space range a are stored in the folder 1, the folder 2, and the folder 3, but the shooting times corresponding to the tiles corresponding to the geographic space range a in each folder are different.
Due to this storage mechanism, in the first storage folder, there may also be one or more folders (referred to as folders to be compared), and there is an intersection geospatial range between the geospatial range of the tiles included in the folders to be compared and the geospatial range to be rolled back determined by operation 1.
Of course, when the number of the folders to be compared is multiple, the size of the intersection geographical space range between the geographical space range of the tile included in each folder to be compared and the geographical space range to be rolled back may be the same or different.
Step S140: and acquiring the shooting time of the tiles to be rolled back and the shooting time of each tile in the folder to be compared.
Step S150: and judging whether the tile corresponding to the geographic space range to be rolled back needs to be deleted from a second storage folder or not according to the shooting time of the tile to be rolled back and the shooting time of the tile in each folder to be compared.
And for each folder to be compared, comparing the shooting time of the tile to be rolled back with the shooting time of the tile in the folder to be compared.
If the shooting time of the tile in the folder to be compared is before the shooting time of the tile to be rolled back, it is stated that: the tile corresponding to the geographic spatial range to be rolled back in operation 1 is the tile at the latest shooting time for the whole world, and should be saved in the second storage folder (covering the original tile corresponding to the geographic spatial range to be rolled back in the second storage folder).
At this time, if the rollback operation is to be performed with respect to operation 1, the tile change caused by operation 1 to the second storage folder should be deleted accordingly.
Specifically, the geographic space range to be rolled back may be directly used as the geographic space range of the rolling back target, and the tile corresponding to the geographic space range of the rolling back target may be deleted from the second storage folder.
In addition, in some embodiments, if there is at least one tile in the folder to be compared whose shooting time is after the shooting time of the tile to be rolled back, then it is stated that: the tiles corresponding to the geospatial range to be rolled back of the tiles uploaded in operation 1 are not all the tiles for the latest shooting moment in the global sense.
At this time, a folder corresponding to the shooting time after the shooting time of the tile to be rolled back may be obtained from all folders to be compared as a target folder, and the geographic space range included in the tile currently stored in each target folder may be obtained from the basic information list.
Subsequently, for each target folder, an intersection geospatial range between the geospatial range to be rolled back and the geospatial range included in the tile currently stored in the target folder is calculated as a first geospatial range. Meanwhile, a plurality of first geospatial ranges may be generated, each corresponding to a different target folder. And then calculating a difference value geospatial range of the sum of the geospatial range to be rolled back and all the first geospatial ranges, taking the difference value geospatial range as the geospatial range of the rolling back target, and then deleting the tile corresponding to the geospatial range of the rolling back target from the second storage folder.
Of course, after performing the rollback operation on the second storage folder, a portion of the tiles in the geospatial extent may be missing for the second storage folder. To ensure the integrity of the tiles, in some embodiments, after the tiles corresponding to the geographical spatial range of the rollback target are deleted from the second storage folder, the second storage folder may also be tile-restored with the tiles saved in the first storage folder.
Optionally, a plurality of folders in the basic information list, which include the geographic space range of the rollback target, may be used as a plurality of folders to be backed up, and then the shooting time of the tile in each file to be backed up is obtained.
Subsequently, a folder to be backed up with the smallest difference between the shooting time of the tile in the file to be backed up and the shooting time of the tile to be rolled back can be selected from all files to be backed up, the folder to be backed up is determined to be a target backup folder, then the tile corresponding to the geographical space range of the target to be rolled back is obtained from the target backup folder to be used as a backup tile, and the backup tile is copied and backed up to a second storage folder.
In the above rollback process for the tiles in the second storage folder, no backup is performed for the second storage folder, and the rollback process may be completed directly according to the information recorded in the basic information list and the operation log list. In addition, for the case that the tiles that are rolled back and deleted in the second storage folder need to be restored, all the used tiles are the tiles saved by the folders in the second storage folder, and no backup is performed on the second storage folder. Therefore, compared with the method of the prior art that the tiles of each step need to be completely backed up, the storage cost and the time cost can be greatly reduced.
As shown in fig. 4, an embodiment of the present application further provides a device 400 for rolling back a remote sensing image slice, where the device 400 for rolling back a remote sensing image slice may include: a response module 410, a determination module 420, and a deletion module 430.
A response module 410, configured to respond to a rollback operation of a user, and determine a geospatial range to be rolled back, which corresponds to the operation to be rolled back;
a determining module 420, configured to determine a tile to be rolled back according to the geographic space range to be rolled back;
a deleting module 430, configured to delete the corresponding tile to be rolled back from the first storage folder;
the first storage folder is used for storing tiles of remote sensing images at different shooting moments.
Optionally, in a possible implementation manner, the response module 410 is configured to determine, according to the operation to be rolled back, a first folder corresponding to the operation to be rolled back from a pre-established operation log list, where the pre-established operation log list is used to record geospatial ranges included in tiles stored in the first folder before and after each operation; the first folder is arranged in the first storage folder and is used for storing tiles of remote sensing images with the same shooting time; obtaining geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back from the operation log list; determining a difference value of the geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back as the geographic space range to be rolled back.
In a possible implementation manner, the determining module 420 is configured to determine, according to the first folder determined by the operation to be rolled back and the geographic spatial range to be rolled back, a tile to be rolled back corresponding to the geographic spatial range to be rolled back in the first folder; the deletion module is used for deleting the tiles to be rolled back from the first folder.
In a possible implementation manner, the apparatus further includes an obtaining module and a determining module, where the obtaining module is configured to obtain, from a basic information list, a plurality of folders included in the first storage folder and having an intersection geospatial range with the geospatial range to be rolled back as a plurality of folders to be compared according to the geospatial range to be rolled back; the file comparison system is also used for acquiring the shooting time of the tiles to be rolled back and the shooting time of the tiles in each folder to be compared; the judging module is used for judging whether the tiles corresponding to the geographical space range to be rolled back need to be deleted from the second storage folder or not according to the shooting time of the tiles to be rolled back and the shooting time of the tiles in each folder to be compared; the basic information list is used for recording the geographic space range included by the tiles currently stored in each folder included in the first storage folder; and the second storage folder is used for storing the tiles of the remote sensing images at the latest shooting moment.
In a possible implementation manner, the judging module is configured to compare the shooting time of the tile to be rolled back with the shooting time of the tile in each folder to be compared; and if the shooting time of the tile in each folder to be compared is before the shooting time of the tile to be rolled back, taking the geographic space range to be rolled back as the geographic space range of a rolling back target, and deleting the tile corresponding to the geographic space range of the rolling back target from the second storage folder.
In a possible implementation manner, the determining module is further configured to, if it is determined that the shooting time of the tile in each folder to be compared is not before the shooting time of the tile to be rolled back, obtain, from all folders to be compared, a folder corresponding to a shooting time after the shooting time of the tile to be rolled back as a target folder, and obtain, from the basic information list, a geographic space range included in a tile currently stored in each target folder; calculating an intersection geographical space range between the geographical space range to be rolled back and the geographical space range included by the tile currently stored in each target folder as a first geographical space range; calculating a difference value geospatial range between the geospatial range to be rolled back and the sum of all the first geospatial ranges as the geospatial range of the rolling target; deleting the tile corresponding to the geospatial extent of the rollback target from the second storage folder.
In a possible implementation manner, the determining module 420 is further configured to use a plurality of folders in the basic information list, which include the geographic spatial range of the rollback target, as a plurality of folders to be backed up; the obtaining module is further configured to obtain a shooting time of a tile in each file to be backed up; the determining module is further configured to select, from all the files to be backed up, a folder to be backed up, where a difference between the shooting time of the tile in the files to be backed up and the shooting time of the tile to be rolled back is minimum, as a target backup folder; the device further comprises a backup module, configured to acquire, from the target backup folder, a tile corresponding to the geographic spatial range of the rollback target as a backup tile, and copy and backup the backup tile to the second storage folder.
The rollback device 400 for remote sensing image slices provided by the embodiment of the present application has the same implementation principle and technical effect as those of the foregoing method embodiments, and for brief description, reference may be made to corresponding contents in the foregoing method embodiments where no mention is made in the apparatus embodiment.
In addition, the present application further provides a storage medium, where a computer program is stored, and when the computer program is executed by a computer, the steps included in the method for rolling back a remote sensing image slice as described above are executed.
In addition, referring to fig. 5, an embodiment of the present invention further provides an electronic device 100, which is used for implementing a method and an apparatus for rolling a remote sensing image slice according to an embodiment of the present application.
The electronic device 100 may present a specific process of tile uploading for a user, and render a screen effect that can be displayed after the tile uploading, so that the user may determine whether to rollback a current tile operation or a past tile operation according to the currently presented screen effect.
Alternatively, the electronic Device 100 may be, but is not limited to, a Personal Computer (PC), a smart phone, a tablet PC, a Mobile Internet Device (MID), a Personal digital assistant, a server, and the like. The server may be, but is not limited to, a web server, a database server, a cloud server, and the like.
Among them, the electronic device 100 may include: processor 110, memory 120, display 130.
It should be noted that the components and structure of electronic device 100 shown in FIG. 5 are exemplary only, and not limiting, and electronic device 100 may have other components and structures as desired.
The processor 110, memory 120, display 130, and other components that may be present in the electronic 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 the above-mentioned method for rolling back a remote sensing image slice or a device for rolling back a remote sensing image slice. Optionally, when the memory 120 stores a rollback apparatus storing the remote sensing image slices, the rollback apparatus for the remote sensing image slices comprises at least one software function module that may be stored in the memory 120 in the form of software or firmware.
Optionally, the software function module included in the rollback apparatus for remote sensing image slices may also be solidified in an Operating System (OS) of the electronic device 100.
The processor 110 is adapted to execute an executable module stored in the memory 120, such as a software function module or a computer program comprised by a rollback apparatus for remote sensing image slices. When the processor 110 receives the execution instruction, it may execute the computer program, for example, to perform: responding to the rollback operation of a user, and determining a geographic space range to be rolled back corresponding to the operation to be rolled back; determining tiles to be rolled back according to the geographical space range to be rolled back, and deleting the corresponding tiles to be rolled back from a first storage folder; the first storage folder is used for storing tiles of remote sensing images at different shooting moments.
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, the method, the apparatus, the electronic device and the storage medium for rolling back a remote sensing image slice provided by the embodiment of the present invention include: responding to the rollback operation of a user, and determining a geographic space range to be rolled back corresponding to the operation to be rolled back; determining tiles to be rolled back according to the geographical space range to be rolled back, and deleting the corresponding tiles to be rolled back from a first storage folder; the first storage folder is used for storing tiles of remote sensing images at different shooting moments. When the operation to be rolled back is rolled back in the above manner, the information to be stored is the operation content of the operation to be rolled back, the folder operated by the operation to be rolled back, and the geographical space range included in the tiles stored before and after the operation to be rolled back is performed by the folder operated by the operation to be rolled back.
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 functions may be stored in a storage medium if they are implemented in the form of software function modules and sold or used as separate products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
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 (9)

1. A method of rollback of a remote sensing image slice, the method comprising:
responding to the rollback operation of a user, and determining a geographic space range to be rolled back corresponding to the operation to be rolled back; the operation to be rolled back is a tile uploading operation closest to the current moment or a tile uploading operation at other historical moments;
determining tiles to be rolled back according to the geographical space range to be rolled back, and deleting the corresponding tiles to be rolled back from a first storage folder;
the first storage folder is used for storing tiles of remote sensing images at different shooting moments;
the determining the geographic spatial range to be rolled back corresponding to the operation to be rolled back comprises:
according to the operation to be rolled back, determining a first folder corresponding to the operation to be rolled back from a pre-established operation log list, wherein the pre-established operation log list is used for recording geographic space ranges included by tiles stored in the first folder before and after each tile uploading operation; the first folder is arranged in the first storage folder and is used for storing tiles of remote sensing images with the same shooting time;
obtaining geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back from the operation log list;
determining a difference value of the geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back as the geographic space range to be rolled back.
2. The method of claim 1, wherein determining tiles to be rolled back and deleting corresponding tiles to be rolled back from a first storage folder according to the geospatial extent to be rolled back comprises:
according to the first folder determined by the operation to be rolled back and the geographic space range to be rolled back, determining tiles to be rolled back corresponding to the geographic space range to be rolled back in the first folder;
and deleting the tile to be rolled back from the first folder.
3. The method of claim 2, further comprising:
according to the geographical space range to be rolled back, acquiring a plurality of folders which are included in the first storage folder and have an intersection geographical space range with the geographical space range to be rolled back from a basic information list as a plurality of folders to be compared;
acquiring the shooting time of the tiles to be rolled back and the shooting time of the tiles in each folder to be compared;
judging whether the tiles corresponding to the geographical space range to be rolled back need to be deleted from a second storage folder or not according to the shooting time of the tiles to be rolled back and the shooting time of the tiles in each folder to be compared;
the basic information list is used for recording the geographic space range included by the tiles currently stored in each folder included in the first storage folder; and the second storage folder is used for storing the tiles of the remote sensing images at the latest shooting moment.
4. The method according to claim 3, wherein determining whether the tile corresponding to the tile to be rolled back needs to be deleted from the second storage folder according to the shooting time of the tile to be rolled back and the shooting time of the tile in each folder to be compared comprises:
comparing the shooting time of the tiles to be rolled back with the shooting time of the tiles in each folder to be compared;
and if the shooting time of the tile in each folder to be compared is before the shooting time of the tile to be rolled back, taking the geographic space range to be rolled back as the geographic space range of a rolling back target, and deleting the tile corresponding to the geographic space range of the rolling back target from the second storage folder.
5. The method of claim 4, wherein the determining whether the tile corresponding to the tile to be rolled back needs to be deleted from the second storage folder further comprises:
otherwise, acquiring a folder corresponding to the shooting time after the shooting time of the tile to be rolled back from all the folders to be compared as a target folder, and acquiring the geographic space range included by the tile currently stored in each target folder from the basic information list;
calculating an intersection geographical space range between the geographical space range to be rolled back and the geographical space range included by the tile currently stored in each target folder as a first geographical space range;
calculating a difference value geospatial range between the geospatial range to be rolled back and the sum of all the first geospatial ranges as the geospatial range of the rolling target;
deleting the tile corresponding to the geospatial extent of the rollback target from the second storage folder.
6. The method of claim 4, wherein after said deleting the tile corresponding to the geospatial extent of the rollback target from the second storage folder, the method further comprises:
taking a plurality of folders containing the geographical space range of the rollback target in the basic information list as a plurality of folders to be backed up;
acquiring the shooting time of the tile in each folder to be backed up;
selecting the folder to be backed up with the smallest difference value between the shooting time of the tile in the folder to be backed up and the shooting time of the tile to be rolled back as a target backup folder from all the folders to be backed up;
and obtaining a tile corresponding to the geographical space range of the rollback target from the target backup folder as a backup tile, and copying and backing up the backup tile into the second storage folder.
7. An apparatus for rollback of remote sensing image slices, the apparatus comprising:
the response module is used for responding to the rollback operation of the user and determining the geographic space range to be rolled back corresponding to the operation to be rolled back; the operation to be rolled back is a tile uploading operation closest to the current moment or a tile uploading operation at other historical moments;
the determining module is used for determining the tiles to be rolled back according to the geographic space range to be rolled back;
a deletion module, configured to delete the corresponding tile to be rolled back from the first storage folder;
the first storage folder is used for storing tiles of remote sensing images at different shooting moments;
the determining the geographic spatial range to be rolled back corresponding to the operation to be rolled back comprises:
the response module is further configured to determine, according to the operation to be rolled back, a first folder corresponding to the operation to be rolled back from a pre-established operation log list, where the pre-established operation log list is used to record a geographic space range included in tiles stored in the first folder before and after each tile uploading operation; the first folder is arranged in the first storage folder and is used for storing tiles of remote sensing images with the same shooting time; obtaining geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back from the operation log list; determining a difference value of the geographic space ranges respectively included by the tiles in the first folder before and after the operation of the operation to be rolled back as the geographic space range to be rolled back.
8. An electronic 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-6.
9. A storage medium, having stored thereon a computer program which, when executed by a computer, performs the method of any one of claims 1-6.
CN202011056598.8A 2020-09-30 2020-09-30 Rollback method and apparatus for remote sensing image slice, electronic device and storage medium Active CN112052126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011056598.8A CN112052126B (en) 2020-09-30 2020-09-30 Rollback method and apparatus for remote sensing image slice, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011056598.8A CN112052126B (en) 2020-09-30 2020-09-30 Rollback method and apparatus for remote sensing image slice, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112052126A CN112052126A (en) 2020-12-08
CN112052126B true CN112052126B (en) 2021-08-06

Family

ID=73606177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011056598.8A Active CN112052126B (en) 2020-09-30 2020-09-30 Rollback method and apparatus for remote sensing image slice, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112052126B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113505139B (en) * 2021-09-10 2021-12-07 成都国星宇航科技有限公司 Remote sensing image automatic updating and history backtracking method and device based on single service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708156A (en) * 2012-04-20 2012-10-03 中国科学院遥感应用研究所 Remote sensing data processing system
CN109448078A (en) * 2018-10-19 2019-03-08 珠海金山网络游戏科技有限公司 A kind of image editing system, method and apparatus
CN110457271A (en) * 2019-08-13 2019-11-15 苏州超擎图形软件科技发展有限公司 A kind of tile map update method and system
CN111143502A (en) * 2019-12-30 2020-05-12 重庆同汇勘测规划有限公司 Map tile efficient generation method and device
CN111666363A (en) * 2020-04-22 2020-09-15 国家信息中心 Method and device for slicing and quality control of mass high-resolution image data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708156A (en) * 2012-04-20 2012-10-03 中国科学院遥感应用研究所 Remote sensing data processing system
CN109448078A (en) * 2018-10-19 2019-03-08 珠海金山网络游戏科技有限公司 A kind of image editing system, method and apparatus
CN110457271A (en) * 2019-08-13 2019-11-15 苏州超擎图形软件科技发展有限公司 A kind of tile map update method and system
CN111143502A (en) * 2019-12-30 2020-05-12 重庆同汇勘测规划有限公司 Map tile efficient generation method and device
CN111666363A (en) * 2020-04-22 2020-09-15 国家信息中心 Method and device for slicing and quality control of mass high-resolution image data

Also Published As

Publication number Publication date
CN112052126A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN109117425B (en) Method, system, and medium for digital asset synchronization
US20230315690A1 (en) System and method for content synchronization
RU2646334C2 (en) File management using placeholders
US11966414B2 (en) Synchronization of components of digital assets during live co-editing
US8212784B2 (en) Selection and display of media associated with a geographic area based on gesture input
JP5991699B2 (en) Information processing apparatus, information processing system, backup method, and program
US10394758B2 (en) File deletion detection in key value databases for virtual backups
US20210117468A1 (en) Systems and methods for selecting content items to store and present locally on a user device
US20050091270A1 (en) Digital negatives
US10430047B2 (en) Managing content on an electronic device
US20100318575A1 (en) Storage or removal actions based on priority
CN105474206A (en) Virtual synchronization with on-demand data delivery
CN105957123A (en) Picture editing method, picture editing device and terminal equipment
US20100106685A1 (en) Method and system for data synchronization
US8805406B1 (en) Usage of geo-tagging information from media files to determine gaps in location information for mobile devices
AU2018226400A1 (en) Method and apparatus to seamlessly join and repair scanned pieces of a torn image
CN112052126B (en) Rollback method and apparatus for remote sensing image slice, electronic device and storage medium
US20210181904A1 (en) Display of a plurality of files from multiple devices
CN112053364A (en) Data processing method and device, remote sensing data service platform and readable storage medium
US10205842B2 (en) Information processing system in which an information processing apparatus sends updated setting information to a connected device, information processing apparatus, control method of information processing apparatus, and storage medium
JP5720366B2 (en) File management system and backup method
CN111753123B (en) Tile obtaining method and device, terminal equipment and computer readable storage medium
CN111767415B (en) Tile publishing method and device, electronic equipment and computer readable storage medium
JP2006309289A (en) Backup method, backup system, and program therefor
CN113687783A (en) Object aggregation method, system, device and computer 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