CN-117194688-B - Soil data safe storage method and system
Abstract
The invention discloses a soil data safety storage method and system, wherein the method comprises the steps of receiving a soil data packet sent by a data acquisition end, judging position information analysis permission according to position information analysis bits, analyzing to obtain position information when the analysis code is matched with a first server, enabling an image processing module to analyze image data according to the analysis code corresponding to the data analysis bits and store the image data in a first database when the analysis code is judged to belong to a first area, or matching at least one second server with intersection with the position information when the analysis code is judged to belong to a second area so as to send the soil data packet to the second server, or matching at least one third server with intersection with the position information when the analysis code is judged to belong to a third area so as to send the soil data packet to the third server. The method can avoid the risk of data leakage caused by unreasonable storage of the data.
Inventors
- GUO JUNJIE
- ZHANG YUNFEI
- ZHU JUNPENG
- JIANG LEI
- XU QUAN
- MA TAO
- WANG LU
- Zhao Xuemi
- LI YIXUAN
Assignees
- 中国地质调查局乌鲁木齐自然资源综合调查中心
Dates
- Publication Date
- 20260508
- Application Date
- 20230524
Claims (10)
- 1. A method for safely storing soil data, comprising: receiving a soil data packet sent by a data acquisition end, wherein the soil data packet comprises equipment flag bits, position information analysis bits, data analysis bits, position information and soil image data, wherein the equipment flag bits are used for representing equipment information of the data acquisition end, the position information analysis bits are used for providing analysis codes of the position information, the data analysis bits are used for providing analysis codes of the soil image data, and the position information is used for representing the maximum boundary of an image shot by the data acquisition end; judging position information analysis authority according to the position information analysis bit, so as to obtain position information through analysis when the analysis code of the position information is matched with the first server; When the position information is judged to belong to the first area, the analysis code corresponding to the data analysis bit is sent to the image processing module, so that the image processing module analyzes the image data according to the analysis code corresponding to the data analysis bit and stores the image data in the first database; or when the position information is judged to belong to a second area, transmitting an analysis code corresponding to the data analysis bit to an image processing module, so that the image processing module analyzes the image data according to the analysis code corresponding to the data analysis bit and stores the image data in a second database, and at least one second server with intersection with the position information is matched to transmit the soil data packet to the second server, or when the position information is judged to belong to a third area, at least one third server with intersection with the position information is matched to transmit the soil data packet to the third server.
- 2. The soil data secure storage method according to claim 1, wherein the data packet header further includes identification information of each second server when the soil data packet is transmitted to the second server.
- 3. The soil data secure storage method according to claim 1, wherein the collection device information includes preset collection range information, the first region is a region within the preset collection range, the second collection region is a region within the preset collection range and outside the preset collection range, and the third region is a region outside the preset collection range.
- 4. The method of claim 3, wherein the image processing module parses the image data according to the parsing code corresponding to the data parsing bit and stores the parsed image data in the second database, and further comprising: dividing an image into M multiplied by N rectangles with the same size according to the resolution of the image data; marking the area corresponding to the position information of the boundary in the rectangles to obtain a position mark corresponding to each rectangle according to the position information of the boundary, and obtaining a marked image; Comparing the position mark corresponding to each rectangle in the marked image with the region coordinates in the preset acquisition range, and updating the pixel color corresponding to the rectangle which does not belong to the preset acquisition range to a preset color when judging that the position mark corresponding to the rectangle does not belong to the preset acquisition range, so as to store the updated image into a second database, wherein M, N is a positive integer.
- 5. The method of claim 4, wherein the step of transmitting the soil data packet to the second server further comprises: Comparing the position mark corresponding to each rectangle in the mark image with the region coordinates in the preset acquisition range, updating the pixel color corresponding to the rectangle in the preset acquisition range to a preset color when judging that the position mark corresponding to the rectangle is in the preset acquisition range, regenerating a soil data packet according to the updated image, and sending the soil data packet to the second server.
- 6. A soil data secure storage system, comprising: the device comprises a data acquisition end, a data receiving module, a data processing module and a data processing module, wherein the data acquisition end is used for acquiring soil data packets sent by the data acquisition end, the soil data packets comprise device zone bits, position information analysis bits, data analysis bits, position information and soil image data, the device zone bits are used for representing device information of the data acquisition end, the position information analysis bits are used for providing analysis codes of the position information, the data analysis bits are used for providing analysis codes of the soil image data, and the position information is used for representing the maximum boundary of a shot image of the data acquisition end; The system comprises a first server, a second server, an image processing module and a soil data packet, wherein the first server is used for judging position information analysis authority according to the position information analysis bit, analyzing to obtain position information when the analysis code of the position information is matched with the first server, transmitting the analysis code corresponding to the data analysis bit to the image processing module when judging that the position information belongs to a first area, enabling the image processing module to analyze the image data according to the analysis code corresponding to the data analysis bit and then store the analysis code into the first database according to the analysis code corresponding to the data analysis bit when judging that the position information belongs to a second area, or transmitting the soil data packet to the second server when judging that the position information belongs to a third area, and transmitting the soil data packet to the third server by matching at least one third server with the position information.
- 7. The soil data secure storage system of claim 6, wherein the data packet header further comprises identification information for each second server when the soil data packet is transmitted to the second server.
- 8. The soil data secure storage system of claim 6, wherein the acquisition device information comprises preset acquisition range information, the first region is a region within the preset acquisition range, the second acquisition region is a region within the preset acquisition range and outside the preset acquisition range, and the third region is a region outside the preset acquisition range.
- 9. The soil data security storage system of claim 8, wherein the image processing module parses the image data according to the parsing code corresponding to the data parsing bit and stores the parsed image data in the second database, and further comprising: dividing an image into M multiplied by N rectangles with the same size according to the resolution of the image data; marking the area corresponding to the position information of the boundary in the rectangles to obtain a position mark corresponding to each rectangle according to the position information of the boundary, and obtaining a marked image; Comparing the position mark corresponding to each rectangle in the marked image with the region coordinates in the preset acquisition range, and updating the pixel color corresponding to the rectangle which does not belong to the preset acquisition range to a preset color when judging that the position mark corresponding to the rectangle does not belong to the preset acquisition range so as to store the updated image in a second database.
- 10. The soil data secure storage system of claim 9, wherein prior to transmitting the soil data packet to the second server, further comprising: Comparing the position mark corresponding to each rectangle in the mark image with the region coordinates in the preset acquisition range, updating the pixel color corresponding to the rectangle in the preset acquisition range to a preset color when judging that the position mark corresponding to the rectangle is in the preset acquisition range, regenerating a soil data packet according to the updated image, and sending the soil data packet to the second server.
Description
Soil data safe storage method and system Technical Field The invention belongs to the field of soil data processing, and particularly relates to a soil data safe storage method and system. Background Soil is the most active life-containing layer in the global terrestrial ecosystem, with the most active bio-geochemical energy exchange and mass circulation patterns. The reasonable development and utilization of the land are facilitated by monitoring the spatial distribution characteristics of the soil categories. At present, remote sensing image shooting is more and more common through special remote sensing planes or through unmanned plane carrying sensors. However, due to the division of geographic areas and sensitivity of the telemetry data, there may be acquisition limitations, such as allowing only certain units to acquire images of certain areas. However, the data collected by each party is difficult to monitor at present, so that the trans-regional collection behavior cannot be effectively avoided. Disclosure of Invention In order to solve the problems in the prior art, the invention provides a soil data safe storage method and system. The technical problems to be solved by the invention are realized by the following technical scheme: A method for safely storing soil data, comprising: receiving a soil data packet sent by a data acquisition end, wherein the soil data packet comprises equipment flag bits, position information analysis bits, data analysis bits, position information and soil image data, wherein the equipment flag bits are used for representing equipment information of the data acquisition end, the position information analysis bits are used for providing analysis codes of the position information, the data analysis bits are used for providing analysis codes of the soil image data, and the position information is used for representing the maximum boundary of an image shot by the data acquisition end; The method comprises the steps of judging position information analysis authority according to the position information analysis bits, analyzing to obtain position information when the analysis codes are matched with a first server, sending the analysis codes corresponding to the data analysis bits to an image processing module when the position information is judged to belong to a first area, enabling the image processing module to analyze the image data according to the analysis codes corresponding to the data analysis bits and then store the image data into the first database, or sending the analysis codes corresponding to the data analysis bits to the image processing module when the position information is judged to belong to a second area, enabling the image processing module to analyze the image data according to the analysis codes corresponding to the data analysis bits and then store the image data into the second database, and matching at least one second server with intersection with the position information to send the soil data packet to the second server, or matching at least one third server with intersection with the position information when the position information is judged to belong to a third area, and then sending the soil data packet to the third server and deleting the soil data packet in the first server. In a specific embodiment, when the soil data packet is sent to the second servers, the data packet header further includes identification information of each second server. In a specific embodiment, the collection device information includes preset collection range information, the first area is an area within the preset collection range, the second collection area is an area within the preset collection range and outside the preset collection range, and the third area is an area outside the preset collection range. In a specific embodiment, before the image processing module parses the image data according to the parsing code corresponding to the data parsing bit and stores the parsed image data in the second database, the method further includes: dividing an image into M multiplied by N rectangles with the same size according to the resolution of the image data; marking the area corresponding to the position information of the boundary in the rectangles to obtain a position mark corresponding to each rectangle according to the position information of the boundary, and obtaining a marked image; Comparing the position mark corresponding to each rectangle in the marked image with the region coordinates in the preset acquisition range, and updating the pixel color corresponding to the rectangle which does not belong to the preset acquisition range to a preset color when judging that the position mark corresponding to the rectangle does not belong to the preset acquisition range so as to store the updated image in a second database. In one embodiment, before the sending the soil data packet to the second server, the method further includes: Comparing the position mark cor