Remote sensing image slicing processing method, device, equipment and storage medium

Through the Redis database system and task tile hierarchical division technology, the problem of low slicing efficiency of massive map data in traditional GIS systems is solved, and efficient remote sensing image slicing processing is realized, simplifying the process and improving system scalability.

CN118708747BActive Publication Date: 2024-11-22CHINA SURVEY SURVEYING & MAPPING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411178228.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-11-22
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

The stand-alone map slicing system of traditional GIS systems does not fully utilize computer resources, the slicing time of massive map data is too long and there is a lack of error recovery mechanism, and the distributed map slicing system is slow to distribute maps before slicing, which affects efficiency.

Method used

Using the Redis database system, by obtaining remote sensing image data sets and administrative vectors, determining the four to ranges of the data set area, preprocessing and storing the task tile data in the Redis database, and using the task slice level and tile level to divide the task, realizing the Efficient slice processing to solve the problems of repeated slices and data repetition in overlapping areas.

Benefits of technology

It improves the efficiency of remote sensing image slicing, simplifies the slicing process, reduces hardware costs, enhances the scalability and convenience of multitasking, and solves the problems of data duplication and cross-reading in distributed image slicing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708747B_ABST
    Figure CN118708747B_ABST
Patent Text Reader

Abstract

The present application proposes a remote sensing image slicing processing method, device, equipment and storage medium, the method comprising: obtaining a remote sensing image dataset, an administrative vector and a task slicing level; determining the boundaries of the dataset area according to the remote sensing image dataset; performing expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain an expected processed image dataset; performing expected processing on the expected processed image dataset according to the task slicing level to obtain expected processed task tile data and storing the expected processed task tile data in a Redis database. Through the scheme disclosed in the present invention, the convenience of task division and multi-task processing and the scalability and extensibility of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of slicing processing of remote sensing images, and in particular to a slicing processing method, device, equipment and storage medium for remote sensing images. Background Art

[0002] The stand-alone map slicing system used in traditional GIS systems does not make full use of computer resources. It takes too long to slice massive map data. In addition, there is no error recovery mechanism. Once an error occurs in a slicing task, the entire slicing work needs to be restarted, which seriously affects work efficiency.

[0003] At present, a small number of distributed map slicing systems have emerged in the market. Although these distributed slicing systems have improved the traditional map slicing technology and improved the slicing efficiency, most of them use shared storage, manual map segmentation, or distributed file systems to distribute map data. The speed of map distribution before slicing seriously restricts the slicing efficiency. Summary of the invention

[0004] The present application provides a remote sensing image slice processing method, device, equipment and storage medium to solve the problems existing in the related technology. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a remote sensing image slice processing method, comprising:

[0006] Obtain remote sensing image datasets, administrative vectors, and mission slice hierarchies;

[0007] Determine the boundaries of the dataset area based on the remote sensing image dataset;

[0008] Performing expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain an expected processed image dataset;

[0009] Perform expected processing on the image data set to be processed according to the task slice level, obtain expected processed task tile data and store the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number;

[0010] The corresponding task tile data is obtained in the Redis database according to the specified slicing task number, and the corresponding task tile data performs slicing processing on the remote sensing image data set.

[0011] In one embodiment, the remote sensing image dataset is 4-band or 3-band TIF data after preprocessing each image.

[0012] In one implementation, determining the boundaries of a dataset area based on the remote sensing image dataset includes:

[0013] According to the remote sensing image data set, determine the four-point coordinates of each image and store the four-point coordinates of each image in a coordinate dictionary;

[0014] Perform extreme value calculation on the coordinates of the four points of each image in the dictionary to obtain the four boundaries of the dataset area.

[0015] In one implementation, performing expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain the expected processed image dataset includes:

[0016] Determine the coordinates of the four points of each image according to the remote sensing image data set;

[0017] It is determined whether the boundaries of each image intersect with the administrative vector. If the boundaries of each image intersect with the administrative vector, the corresponding image is cropped by the administrative vector to obtain the expected processed image data set.

[0018] In one embodiment, performing expected processing on the image data set to be processed according to the task slice level to obtain expected processed task tile data includes:

[0019] Determine the task division level according to the task slicing level

[0020] Determine the tile row and column numbers under the task division level according to the boundary range of the data set area and the task division level;

[0021] According to the row and column numbers of each tile, determine the boundaries of each task tile;

[0022] According to the boundaries of each task tile and the boundaries of each image, each task tile data is segmented from the remote sensing image data set to obtain the task tile data to be processed as expected.

[0023] In one embodiment, the expected processed task tile data includes: the row and column numbers of each tile, the range of each task tile, the slice task number, the task slice level of the tile, the task level of the tile, and the task tile image storage path, and the expected processed task tile data is stored in the Redis database including:

[0024] Put each tile row and column number, each task tile's bounding range, slice task number, tile's task slice level, tile's task level, and task tile image storage path into a dictionary;

[0025] Upload all tasks in the dictionary to the Redis database.

[0026] In one embodiment, obtaining corresponding task tile data in the Redis database according to the specified slicing task number, and performing slicing processing on the remote sensing image data set by the corresponding task tile data includes:

[0027] The slicing machine in the cluster system obtains the corresponding task tile data from the Redis database according to the specified slicing task number, and deletes the task tile data from the Redis database.

[0028] Slicing processing is performed on the remote sensing image data set according to the task tile data until there is no slice task number in the Redis database.

[0029] In a second aspect, an embodiment of the present application provides a remote sensing image slice processing device, comprising:

[0030] The acquisition module is used to obtain remote sensing image datasets, administrative vectors, and task slice levels;

[0031] A first determination module is used to determine the boundaries of a dataset area according to the remote sensing image dataset;

[0032] A first obtaining module is used to perform expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain the expected processed image dataset;

[0033] The second obtaining module is used to perform expected processing on the image data set to be processed according to the task slice level, obtain the expected processed task tile data and store the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number;

[0034] The slicing module is used to obtain the corresponding task tile data in the Redis database according to the specified slicing task number, and perform slicing processing on the remote sensing image data set using the corresponding task tile data.

[0035] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a memory and a processor. The memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory, and when the processor executes the instructions stored in the memory, the processor executes the method in any one of the above-mentioned embodiments.

[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is executed.

[0037] The advantages or beneficial effects of the above technical solution include at least:

[0038] The technical solution of the disclosed embodiment is to obtain a remote sensing image dataset, an administrative vector and a task slice level; determine the four boundaries of the dataset area according to the remote sensing image dataset; perform expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain the expected processed image dataset; perform expected processing on the expected processed image dataset according to the task slice level to obtain the expected processed task tile data and store the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number; obtain the corresponding task tile data in the Redis database according to the specified slice task number, and perform slice processing on the remote sensing image dataset with the corresponding task tile data. The slicing method of remote sensing images in this embodiment is based on the four boundaries of the dataset area to divide the task. In the process of processing a large number of remote sensing image slices in a large area, it effectively solves the problem of repeated slicing of overlapping areas. At the same time, there is no need to mosaic the entire image, simplify the slicing process, and improve the slicing efficiency. The administrative vector is used to crop the intersecting image boundaries in the dataset to remove redundant data and improve the slicing efficiency. By adopting the task division level, massive remote sensing images are taken as input and the task division level is taken as output. Massive disordered, irregular and repeated remote sensing image data are processed and output into regular, ordered and non-duplicate image block files, which solves the problems of data duplication, cross-reading and cross-writing of tile data between tasks in the distributed image slicing process. The Redis database system is adopted to greatly improve the convenience of task division and multi-task processing and the scalability of the system.

[0039] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.

[0041] Figure 1 A flowchart of a remote sensing image slicing processing method according to an embodiment of the present application;

[0042] Figure 2 A structural block diagram of a remote sensing image slicing processing device according to an embodiment of the present invention is shown;

[0043] Figure 3 A structural block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0044] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.

[0045] The stand-alone map slicing system used in traditional GIS systems does not make full use of computer resources. It takes too long to slice massive map data. In addition, there is no error recovery mechanism. Once an error occurs in the slicing task, the entire slicing work needs to be restarted, which seriously affects work efficiency. At present, a small number of distributed map slicing systems have emerged on the market. Although these distributed slicing systems have improved traditional map slicing technology and improved slicing efficiency, most of them use shared storage, manual map segmentation, or distributed file systems to distribute map data. The map distribution speed before slicing seriously restricts slicing efficiency.

[0046] The distributed map slicing system based on manual segmentation and shared storage has achieved parallel slicing to a certain extent. However, as the amount of map data increases, the slicing efficiency is limited by the disk IO of the storage server. At the same time, reliability and data security cannot be guaranteed, and it cannot meet the slicing requirements of the current massive map data.

[0047] Figure 1 FIG. 1 is a flow chart showing a method for slicing a remote sensing image according to an embodiment of the present application. Figure 1 As shown, this embodiment provides a remote sensing image slicing processing method, and the remote sensing image slicing processing method may include:

[0048] S110: Obtain remote sensing image datasets, administrative vectors, and task slice levels;

[0049] S120: Determine the boundaries of a dataset area according to the remote sensing image dataset;

[0050] S130: performing expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain an expected processed image dataset;

[0051] S140: performing expected processing on the image data set to be processed according to the task slice level, obtaining expected processed task tile data and storing the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number;

[0052] S150: Obtain corresponding task tile data in the Redis database according to the specified slicing task number, and perform slicing processing on the remote sensing image data set using the corresponding task tile data.

[0053] The technical solution of the disclosed embodiment is to obtain a remote sensing image dataset, an administrative vector and a task slice level; determine the four boundaries of the dataset area according to the remote sensing image dataset; perform expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain the expected processed image dataset; perform expected processing on the expected processed image dataset according to the task slice level to obtain the expected processed task tile data and store the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number; obtain the corresponding task tile data in the Redis database according to the specified slice task number, and perform slice processing on the remote sensing image dataset with the corresponding task tile data. The slicing method of remote sensing images in this embodiment is based on the four boundaries of the dataset area to divide the task. In the process of processing a large number of remote sensing image slices in a large area, it effectively solves the problem of repeated slicing of overlapping areas. At the same time, there is no need to mosaic the entire image, simplify the slicing process, and improve the slicing efficiency. The administrative vector is used to crop the intersecting image boundaries in the dataset to remove redundant data and improve the slicing efficiency. By adopting the task division level, massive remote sensing images are taken as input and the task division level is taken as output. Massive disordered, irregular and repeated remote sensing image data are processed and output into regular, ordered and non-duplicate image block files, which solves the problems of data duplication, cross-reading and cross-writing of tile data between tasks in the distributed image slicing process. The Redis database system is adopted to greatly improve the convenience of task division and multi-task processing and the scalability of the system.

[0054] Among them, remote sensing image datasets, administrative vectors, and task slice levels are obtained.

[0055] In this embodiment, the remote sensing image data is a massive amount of remote sensing images acquired by remote sensing satellites, and specifically, the remote sensing image data set is 4-band or 3-band TIF data after preprocessing each image.

[0056] In this embodiment, the administrative vector may be pre-configured, and the geographical location range of a province may be used as the administrative vector, or the geographical location range of a city may be used as the administrative vector.

[0057] The task slicing level can be divided according to the actual slicing needs, which can be 0-20 levels, or 0-30 levels.

[0058] In one implementation, determining the boundaries of a dataset area based on the remote sensing image dataset includes:

[0059] According to the remote sensing image data set, determine the four-point coordinates of each image and store the four-point coordinates of each image in a coordinate dictionary;

[0060] Perform extreme value calculation on the coordinates of the four points of each image in the dictionary to obtain the four boundaries of the dataset area.

[0061] In this embodiment, the remote sensing image data set includes a large number of images, and the coordinates of four points in the area of ​​each image can be determined as four-dimensional coordinates.

[0062] The coordinates of the four points of each image are put together for extreme value calculation to jointly obtain the four boundaries of the dataset area, specifically:

[0063]

[0064] in, It is the coordinate of the upper left corner of the four-dimensional range of the dataset area. is the coordinate of the lower right corner of the dataset area. is the coordinate of the upper left corner of the image n. is the coordinate of the lower right corner of the four coordinates of image n;

[0065] Defined as finding the coordinate point set The minimum value of the x coordinate and the maximum value of the y coordinate;

[0066] Defined as finding the coordinate point set The maximum value of the x coordinate and the minimum value of the y coordinate.

[0067] The boundaries of the dataset area can cover the boundaries of each image area in the dataset.

[0068] In one implementation, performing expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain the expected processed image dataset includes:

[0069] Determine the coordinates of the four points of each image according to the remote sensing image data set;

[0070] It is determined whether the boundaries of each image intersect with the administrative vector. If the boundaries of each image intersect with the administrative vector, the corresponding image is cropped by the administrative vector to obtain the expected processed image data set.

[0071] In this embodiment, the four-dimensional range of each image is determined by determining the four-dimensional coordinates of each image in the remote sensing image.

[0072] By comparing the boundaries of each image with the administrative vector, we can determine whether the two intersect. If they do not intersect, there is no need to process the image. If they do intersect, the image is cropped according to the administrative vector, and the entire remote sensing image dataset is traversed to obtain the expected processed image dataset. Specifically:

[0073]

[0074] Among them: Shpimg is the bounds of the image, Shpall is the loaded administrative vector, ∩ intersection operation, Function is the cropping function of the image Img according to the input vector Shpall, and Imgout is the cropped output.

[0075] In one embodiment, performing expected processing on the image data set to be processed according to the task slice level to obtain expected processed task tile data includes:

[0076] Determine the task division level according to the task slicing level

[0077] Determine the tile row and column numbers under the task division level according to the boundary range of the data set area and the task division level;

[0078] According to the row and column numbers of each tile, determine the boundaries of each task tile;

[0079] According to the boundaries of each task tile and the boundaries of each image, each task tile data is segmented from the remote sensing image data set to obtain the task tile data to be processed as expected.

[0080] In this embodiment, the task division level is determined according to the task slicing level; by setting the task slicing level, the tasks that need to be divided can be divided into levels, and the number of tiles after slicing based on different levels and the different boundary ranges of the tiles are different, so they can be classified into corresponding task levels.

[0081] According to the four boundaries of the data set area and the task division level, the four boundaries of the data set area are divided into task levels to obtain the tile row and column numbers under the task division level;

[0082]

[0083] Among them: bounds is the coordinates of the four corner points of the four-range area of ​​the dataset, Taskzoom is the task division level, longitude_to_tile_x is the calculation function of calculating the tile column number from longitude, latitude_to_tile_y is the calculation function of calculating the tile row number from latitude, Tile_x and Tile_y are the row and column numbers of the divided tasks.

[0084] According to the row and column numbers of each tile, calculate the range of the task tile;

[0085] Through the designed task slicing hierarchy, the boundaries of the dataset area can be sliced. The tiles obtained by each layer of slicing will fall into the corresponding task tile level, and the corresponding tile row and column numbers will be generated. The level of the tile can be determined according to the tile row and column numbers, and thus the boundaries of the tile can be calculated.

[0086] Traverse the remote sensing image data set, and according to the relationship between the four-boundary range of the task tile and the four-boundary range of each image, pre-segment the task tile from the image data set to obtain the expected task tile data. The expected tile data includes the row and column numbers of each tile, the four-boundary range of each task tile, the slice task number, the task slice level of the tile, the task level of the tile, and the task tile image storage path, so that when the slice task number is obtained, other information of the task tile can be quickly determined.

[0087] In one embodiment, the expected processed task tile data includes: the row and column numbers of each tile, the range of each task tile, the slice task number, the task slice level of the tile, the task level of the tile, and the task tile image storage path, and the expected processed task tile data is stored in the Redis database including:

[0088] Put each tile row and column number, each task tile's bounding range, slice task number, tile's task slice level, tile's task level, and task tile image storage path into a dictionary;

[0089] Upload all tasks in the dictionary to the Redis database.

[0090] In this embodiment, through the processing of the above steps, the expected task tile data can be obtained, including the row and column numbers of each tile, the range of each task tile, the slice task number, the task slice level of the tile, the task level of the tile, and the task tile image storage path and other parameter information. The expected task tile data can be uploaded to the Redis database after being stored in the dictionary. The contents involved are all the expected slice tasks. As long as the slice tasks are taken out, the actual remote sensing image can be sliced.

[0091] In one embodiment, obtaining corresponding task tile data in the Redis database according to the specified slicing task number, and performing slicing processing on the remote sensing image data set by the corresponding task tile data includes:

[0092] The slicing machine in the cluster system obtains the corresponding expected processing task tile data from the Redis database according to the specified slicing task number, and deletes the task tile data from the Redis database.

[0093] Slicing processing is performed on the remote sensing image data set according to the task tile data until there is no slice task number in the Redis database.

[0094] In this embodiment, a designated slicing task number is obtained through a slicing machine of an actual cluster system, and a search is performed on a Redis database according to the designated slicing task number. When the corresponding expected task tile data is retrieved, the image in the remote sensing image dataset is sliced ​​according to the expected task tile data, so that the sliced ​​image can be obtained. When the slicing task number is executed, the task tile data is deleted from the Redis database to avoid repeated invalid slicing, until there is no slicing task number in the Redis database, that is, each image data in the remote sensing dataset has completed slicing.

[0095] The experiment selected GF2 images for slicing and obtained the slicing results.

[0096] Judging from the experimental results, the slicing method of this embodiment has flexible scalability and extensibility when slicing remote sensing images, solves the problems of large-area image fusion, low slicing efficiency, and repeated slicing of overlapping image data. It does not have high requirements on computing resource performance, reduces the hardware cost required for image slicing, has a high degree of automation, and can well adapt to complex slicing requirements such as small areas, large areas, single-scene images, and multi-scene images. It has broad prospects and value in the application of Internet-oriented remote sensing image service platforms.

[0097] Second, as Figure 2As shown, the embodiment of the present application provides a remote sensing image slice processing device, including:

[0098] The acquisition module 201 is used to acquire remote sensing image data sets, administrative vectors and task slice levels;

[0099] A first determination module 202 is used to determine the boundaries of a dataset area according to the remote sensing image dataset;

[0100] A first obtaining module 203 is used to perform expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain an expected processed image dataset;

[0101] The second obtaining module 204 is used to perform expected processing on the image data set to be processed according to the task slice level, obtain expected processed task tile data and store the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number;

[0102] The slicing module 205 is used to obtain the corresponding task tile data in the Redis database according to the specified slicing task number, and perform slicing processing on the remote sensing image data set using the corresponding task tile data.

[0103] The technical solution of the disclosed embodiment is to obtain a remote sensing image dataset, an administrative vector and a task slice level; determine the four boundaries of the dataset area according to the remote sensing image dataset; perform expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain the expected processed image dataset; perform expected processing on the expected processed image dataset according to the task slice level to obtain the expected processed task tile data and store the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number; obtain the corresponding task tile data in the Redis database according to the specified slice task number, and perform slice processing on the remote sensing image dataset with the corresponding task tile data. The slicing method of remote sensing images in this embodiment is based on the four boundaries of the dataset area to divide the task. In the process of processing a large number of remote sensing image slices in a large area, it effectively solves the problem of repeated slicing of overlapping areas. At the same time, there is no need to mosaic the entire image, simplify the slicing process, and improve the slicing efficiency. The administrative vector is used to crop the intersecting image boundaries in the dataset to remove redundant data and improve the slicing efficiency. By adopting the task division level, massive remote sensing images are taken as input and the task division level is taken as output. Massive disordered, irregular and repeated remote sensing image data are processed and output into regular, ordered and non-duplicate image block files, which solves the problems of data duplication, cross-reading and cross-writing of tile data between tasks in the distributed image slicing process. The Redis database system is adopted to greatly improve the convenience of task division and multi-task processing and the scalability of the system.

[0104] In one embodiment, the remote sensing image dataset is 4-band or 3-band TIF data after preprocessing each image.

[0105] In one implementation, determining the boundaries of a dataset area based on the remote sensing image dataset includes:

[0106] According to the remote sensing image data set, determine the four-point coordinates of each image and store the four-point coordinates of each image in a coordinate dictionary;

[0107] Perform extreme value calculation on the coordinates of the four points of each image in the dictionary to obtain the four boundaries of the dataset area.

[0108] In one implementation, performing expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain the expected processed image dataset includes:

[0109] Determine the coordinates of the four points of each image according to the remote sensing image data set;

[0110] It is determined whether the boundaries of each image intersect with the administrative vector. If the boundaries of each image intersect with the administrative vector, the corresponding image is cropped by the administrative vector to obtain the expected processed image data set.

[0111] In one embodiment, performing expected processing on the image data set to be processed according to the task slice level to obtain expected processed task tile data includes:

[0112] Determine the task division level according to the task slicing level

[0113] Determine the tile row and column numbers under the task division level according to the boundary range of the data set area and the task division level;

[0114] According to the row and column numbers of each tile, determine the boundaries of each task tile;

[0115] According to the boundaries of each task tile and the boundaries of each image, each task tile data is segmented from the remote sensing image data set to obtain the task tile data to be processed as expected.

[0116] In one embodiment, the expected processed task tile data includes: the row and column numbers of each tile, the range of each task tile, the slice task number, the task slice level of the tile, the task level of the tile, and the task tile image storage path, and the expected processed task tile data is stored in the Redis database including:

[0117] Put each tile row and column number, each task tile's bounding range, slice task number, tile's task slice level, tile's task level, and task tile image storage path into a dictionary;

[0118] Upload all tasks in the dictionary to the Redis database.

[0119] In one embodiment, obtaining corresponding task tile data in the Redis database according to the specified slicing task number, and performing slicing processing on the remote sensing image data set by the corresponding task tile data includes:

[0120] The slicing machine in the cluster system obtains the corresponding task tile data from the Redis database according to the specified slicing task number, and deletes the task tile data from the Redis database.

[0121] Slicing processing is performed on the remote sensing image data set according to the task tile data until there is no slice task number in the Redis database.

[0122] The functions of the modules in the devices in the embodiments of the present invention can be found in the corresponding descriptions of the above methods, which will not be described in detail here.

[0123] Figure 3 FIG. 2 shows a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 3 As shown, the electronic device includes: a memory 910 and a processor 920, wherein the memory 910 stores a computer program that can be run on the processor 920. When the processor 920 executes the computer program, the slicing processing method of the remote sensing image in the above embodiment is implemented. The number of the memory 910 and the processor 920 can be one or more.

[0124] The electronic device / terminal / server also includes:

[0125] The communication interface 930 is used to communicate with external devices and perform data exchange transmission.

[0126] If the memory 910, the processor 920 and the communication interface 930 are implemented independently, the memory 910, the processor 920 and the communication interface 930 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0127] Optionally, in a specific implementation, if the memory 910, the processor 920 and the communication interface 930 are integrated on a chip, the memory 910, the processor 920 and the communication interface 930 can communicate with each other through an internal interface.

[0128] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.

[0129] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.

[0130] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.

[0131] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.

[0132] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).

[0133] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0134] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0135] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0136] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.

[0137] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.

[0138] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0139] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.

[0140] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A remote sensing image slicing processing method, characterized in that: include: Obtain remote sensing image datasets, administrative vectors, and mission slice hierarchies; Determine the boundaries of the dataset area based on the remote sensing image dataset; Performing expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain an expected processed image dataset; Perform expected processing on the image data set to be processed according to the task slice level, obtain expected processed task tile data and store the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number; Obtaining corresponding task tile data in the Redis database according to the specified slicing task number, and performing slicing processing on the remote sensing image data set using the corresponding task tile data; The expected processing of the image data set to be processed is performed according to the task slice level to obtain the expected processed task tile data, including: Determine the task division level according to the task slicing level; Determine the tile row and column numbers under the task division level according to the boundary range of the data set area and the task division level; According to the row and column numbers of each tile, determine the boundaries of each task tile; According to the boundaries of each task tile and the boundaries of each image, each task tile data is segmented from the remote sensing image data set to obtain the task tile data to be processed as expected.

2. The remote sensing image slicing processing method according to claim 1, characterized in that: The remote sensing image data set is 4-band or 3-band TIF data after preprocessing each image.

3. The remote sensing image slicing processing method according to claim 2, characterized in that: Determining the boundaries of the dataset area according to the remote sensing image dataset includes: According to the remote sensing image data set, determine the four-point coordinates of each image and store the four-point coordinates of each image in a coordinate dictionary; Perform extreme value calculation on the coordinates of the four points of each image in the dictionary to obtain the four boundaries of the dataset area.

4. The remote sensing image slicing processing method according to claim 3, characterized in that: According to the administrative vector, each image in the remote sensing image dataset is processed as expected, and the image dataset obtained as expected includes: Determine the coordinates of the four points of each image according to the remote sensing image data set; It is determined whether the boundaries of each image intersect with the administrative vector. If the boundaries of each image intersect with the administrative vector, the corresponding image is cropped by the administrative vector to obtain the expected processed image data set.

5. The remote sensing image slicing processing method according to claim 4, characterized in that: The task tile data to be processed includes: the row and column numbers of each tile, the range of each task tile, the slice task number, the task slice level of the tile, the task level of the tile, and the task tile image storage path. The storing of the task tile data to be processed in the Redis database includes: Put each tile row and column number, each task tile's bounding range, slice task number, tile's task slice level, tile's task level, and task tile image storage path into a dictionary; Upload all tasks in the dictionary to the Redis database.

6. The remote sensing image slicing processing method according to claim 5, characterized in that: The step of acquiring corresponding task tile data in the Redis database according to the specified slicing task number, and performing slicing processing on the remote sensing image data set by the corresponding task tile data includes: The slicing machine in the cluster system obtains the corresponding expected processing task tile data from the Redis database according to the specified slicing task number, and deletes the expected processing task tile data from the Redis database; Slice processing is performed on the remote sensing image data set according to the expected processed task tile data until there is no slice task number in the Redis database.

7. A remote sensing image slice processing device, characterized in that: include: The acquisition module is used to obtain remote sensing image datasets, administrative vectors, and task slice levels; A first determination module is used to determine the boundaries of a dataset area according to the remote sensing image dataset; A first obtaining module is used to perform expected processing on each image in the remote sensing image dataset according to the administrative vector to obtain the expected processed image dataset; The second obtaining module is used to perform expected processing on the image data set to be processed according to the task slice level, obtain the expected processed task tile data and store the expected processed task tile data in a Redis database, wherein the expected processed task tile data includes the expected processed slice task number; The expected processing of the image data set to be processed is performed according to the task slice level to obtain the expected processed task tile data, including: Determine the task division level according to the task slicing level Determine the tile row and column numbers under the task division level according to the boundary range of the data set area and the task division level; According to the row and column numbers of each tile, determine the boundaries of each task tile; According to the boundaries of each task tile and the boundaries of each image, each task tile data is segmented from the remote sensing image data set to obtain the task tile data to be processed; The slicing module is used to obtain the corresponding task tile data in the Redis database according to the specified slicing task number, and perform slicing processing on the remote sensing image data set using the corresponding task tile data.

8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.