盛业华, 唐宏, 杜培军. 线性四叉树快速动态编码及其实现[J]. 武汉大学学报 ( 信息科学版), 2000, 25(4): 324-328.
引用本文: 盛业华, 唐宏, 杜培军. 线性四叉树快速动态编码及其实现[J]. 武汉大学学报 ( 信息科学版), 2000, 25(4): 324-328.
SHENG Yehua, TANG Hong, DU Peijun. Fast Dynamic Encoding of Linear Quadtree and Its Realization[J]. Geomatics and Information Science of Wuhan University, 2000, 25(4): 324-328.
Citation: SHENG Yehua, TANG Hong, DU Peijun. Fast Dynamic Encoding of Linear Quadtree and Its Realization[J]. Geomatics and Information Science of Wuhan University, 2000, 25(4): 324-328.

线性四叉树快速动态编码及其实现

Fast Dynamic Encoding of Linear Quadtree and Its Realization

  • 摘要: 对常规线性四叉树编码方法存在的不足进行了分析,提出了一种在遍历栅格数据过程中直接生成四叉树的快速动态编码方法。该方法用栈代替线性表或数组,在提取格网单元后,直接检测其属性值,生成十进制Morton码。将这些数据压入栈,在栈中同步地对已检测过的格网单元或结点向上层结点进行合并。当对整个栅格数据遍历完后,栈中剩下的记录就是所需要的线性四叉树编码结果。最后根据测试结果比较了动态编码与常规编码方法的运行效率和内存占用量。结果表明,快速动态编码明显优于其他编码方法。

     

    Abstract: Raster data structure is one of the effective data structures to express spatial data.When raster data structure is used, the smaller the size of pixel or grid cell is, the higher resolving power of spatial data comes and the more cells with the same attribute value.This structure causes a large amount of redundant information.It is essential to compress the original raster data for the purpose of reducing the amount of data storage and the requirement of memory resource during data processing. Linear quadtree encoding is one of the significant compressing and organizing approaches for raster data.It transforms the primal raster data into a linear table.In the table, there are two columns that represent respectively the decimal Morton codes which denote the location and size of the leaf nodes of the quadtree and their corresponding attribute values.Two different traditional methods can be used to construct the linear table.They are linear-table method and pseudo-code method respectively.Both of the two methods are time-consuming and require large memory blocks when a huge raster data file is processed.It is necessary to investigate a new, fast and effective data compressing method to suit for huge raster data.Due to disadvantages of the two traditional linear quadtree encoding methods, a fast dynamic linear quadtree encoding approach (FDLQE) is put forward in this paper.This method can construct linear quadtree directly through only once tracing of the whole raster data.It uses a dynamic stack instead of linear table or one-dimensional array.FDLQE takes the decimal Morton code and its corresponding attribute value of a pixel or a homogeneous region as a record.It once uses a 2×2 window to extract 4 sequential pixels from the original raster data according to their decimal Morton codes, compares whether their attribute values are the same.If the attribute values of the pixels are the same, the 4 pixels can be combined into a node and the smallest decimal Morton code and its corresponding attribute value are pushed into the stack as one record.Otherwise, they are all taken as records and pushed into the stack.The point to the top of the stack is recorded.The top record is examined together with other records previously pushed into in the stack whether they can be united to form upper nodes synchronously.When the pixels of the raster data are traced over, the records remained in the stack are just the linear quadtree encoding result. The algorithm of FDLQE approach is realized on a Pentium Ⅱ233 micro-computer with V C ++ program language.For the purpose of comparing the encoding efficiency between FDLQE and linear-table method or pseudo-code method, the running speed and memory requirement are taken as the comparing index.The testing result shows that FDLQE is superior to linear-table method or pseudo-code method in both indexes.The larger the raster data is, the more obvious advantages FDLQE has over the other two conventional encoding methods.

     

/

返回文章
返回