Title :
An Efficient Algorithm for Depression Filling and Flat-Surface Processing in Raster DEMs
Author :
Wei-Bin Yu ; Cheng Su ; Chun-Na Yu ; Xi-Zhi Wang ; Cun-Jun Feng ; Xiao-Can Zhang
Author_Institution :
Dept. of Earth Sci., Zhejiang Univ., Hangzhou, China
Abstract :
Depressions (or pits) and flat surfaces (or flats) are general types of terrain in raster digital elevation models (DEMs). Depressions are lower areas surrounded by terrain without outlets, and flat surfaces are areas with no local gradient. To extract hydrologic or geomorphic properties from DEMs, these two types of terrain need to be addressed. This letter presents an efficient algorithm for filling depressions and for adding increments to flat surfaces. The algorithm builds on previous work, offering several important improvements. The improved algorithm uses two queues: a priority queue and a “first-in, first-out” (FIFO) queue. The FIFO queue is used to process depressions and flat surfaces, and the priority queue processes other terrain. The improved algorithm achieves an O(M log2 M) time complexity, where M is less than the total number of cells, which is more efficient than the algorithm proposed by Wang and Liu. In addition, the improved algorithm not only fills depressions but also elevates flat surfaces for the convenience of extracting flow directions. Furthermore, to adapt to different data types, for example, integer, single-precision floating point, and double precision, the improved algorithm does not alter flat-surface elevations in DEMs directly but uses a mask matrix to mark the incremental elevation values of flat surfaces. In speed comparison testing, the improved algorithm performed up to 16%-32% faster than the original.
Keywords :
computational complexity; digital elevation models; geographic information systems; hydrological techniques; hydrology; matrix algebra; queueing theory; terrain mapping; DEM; FIFO queue; O(M log2 M) time complexity; depression filling processing; digital elevation model; first in first out queue; flat surface processing; flow direction extraction; hydrologic property extraction; incremental elevation value; mask matrix; priority queue; priority queue process; terrain; Algorithm design and analysis; Digital elevation models; Filling; Geographic information systems; Remote sensing; Surface treatment; Time complexity; Depressions; digital elevation models (DEMs); flat surfaces; geographic information system (GIS); hydrology;
Journal_Title :
Geoscience and Remote Sensing Letters, IEEE
DOI :
10.1109/LGRS.2014.2324616