The present invention discloses a storage and reading method for classified
raster data. The storage method includes: dividing the original classified
raster data Data into statistical blocks with the unit statistical area as the minimum
granularity, and storing the classification information of each statistical block; in order to improve the efficiency of reading the classification information of the statistical blocks of any row and column numbers from the
data file in the future, recording the total storage space
size value required for storing the classification information of all statistical blocks in each row; and storing the
metadata information of the original classified
raster data Data. The method can ensure the accuracy of the total number of classified pixels in each statistical block, and can use less storage space to
record the distribution of each classified pixel by using the distribution flag data in the statistical block, and has a high
data compression rate and flexible
data accuracy control, and is suitable for various common classified raster data.