Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for storing and reading grid data and device

A raster data and raster unit technology, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of high transmission efficiency and large storage space, and achieve the effect of saving storage space

Active Publication Date: 2013-01-09
BEIJING DATUM TECH DEV
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the common method is used to store each grid unit with 1 byte, K*L bytes are required, and the required storage space is very large, which requires a lot of system storage, performance, and network transmission efficiency. high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for storing and reading grid data and device
  • Method for storing and reading grid data and device
  • Method for storing and reading grid data and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0070] refer to figure 1 , shows a flow chart of the steps of an embodiment of a method for storing raster data in the present application. The present application is aimed at a specific type of raster data, that is, all grid cell values ​​are integers distributed between 0 and 9 Raster data (such as the raster data describing the distribution of 56 ethnic groups in the country), this embodiment may specifically include the following steps:

[0071] Step S101, acquiring original raster data;

[0072] The original grid data includes the basic information of the original grid data and the value of the original grid unit; the basic information of the original grid data is: the original grid data includes K*L grid units; wherein, the K is row, L is a column; the values ​​of the original grid cells are all integers distributed between 0 and 9;

[0073] figure 2 Schematic diagram of some raster cells of the original raster data. Each grid unit of the original God grid data is s...

Embodiment 2

[0086] It should be noted that this application does not require the specific order of raster data extraction, as long as all the raster cells can be extracted in order, the original raster data can be extracted by each row, or by each column The extraction of the original raster data may also be performed on the basis of the entire raster data, which is not limited in this application. The specific process of extraction and parsing is described in detail below.

[0087] When extracting the original raster data by each row, it is assumed that the number of columns of the grid is L columns and the number of rows is K rows; for each row x (0=0 and i<=L / 9-1, numbering starts from 0) processed integers are the 9th*i of the original grid unit A total of 9 grid units from the grid unit to the 9th*(i+1)-1 grid unit are arranged continuously to form a new int value. This cycle is processed until the entire row of grid cells is processed. Then process the next row until all rows of d...

Embodiment 3

[0093] Taking the national terrain and landform raster data in the actual project as an example, compare the raster data generated by the method described in this application with other methods: in the whole country, under the condition of the same resolution of 30 meters, the raster pixel In the grid cell with a size of 161360*134724, the values ​​from 0 to 9 represent various mountain and plain landform types respectively. In this case, if the ordinary raster data organization method in which each raster unit uses the byte type to store data is adopted, the required storage space is about 20.25Gb. If the method described in this application is used for assembly and storage, The required storage space is about 9Gb, which saves 11Gb of storage space, and uses about half of the original storage resources to store the same raster unit information. This not only saves storage space, but also reduces the amount of data read and written in files. It also reduces the amount of netwo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for storing and reading grid data and a device. The method for storing grid data comprises the following steps of: 101, acquiring original grid data; 102, extracting the values of nine continuous grid units in sequence; 103, replacing the values of the nine continuous grid units by adopting a first target numerical value, and storing in a target grid unit; 104, if the quantity of extracted continuous grid units is less than nine, marking the quantity of the grid units of less than nine continuous original grid units as N, replacing the values of the N original grid units by adopting a second target numerical value, and storing in a target grid unit; and 105, judging whether K*L grid units are traversed, if so, implementing a step 106, otherwise, returning to the step 102. Due to the adoption of the method and the device, the storage space of grid data can be saved, and the processing efficiency of grid data can be increased.

Description

technical field [0001] The present application relates to the technical field of raster data processing, in particular to a method and device for storing and reading raster data. Background technique [0002] Raster data is a data organization method that represents the distribution of spatial features or phenomena in the form of a two-dimensional matrix. Each matrix unit is called a grid unit, and each data of the grid represents the attribute data of the feature or phenomenon. With the application of geographic information system (GIS, Geographic Information System) in various industries, in practical applications, a large number of raster data are used, which brings technical difficulties such as storage space, performance requirements, network transmission and calculation volume of application systems. Especially in some GIS software, the storage management and network transmission rate of massive raster data are often performance bottlenecks. [0003] Assume that the r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30H04L29/08
Inventor 孙成宝郑国柱
Owner BEIJING DATUM TECH DEV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products