Skip to main content
Log in

Efficiently computing the drainage network on massive terrains using external memory flooding process

  • Published:
GeoInformatica Aims and scope Submit manuscript

Abstract

We present EMFlow, a very efficient algorithm and its implementation, to compute the drainage network (i.e. the flow direction and flow accumulation) on huge terrains stored in external memory. Its utility lies in processing the large volume of high resolution terrestrial data newly available, which internal memory algorithms cannot handle efficiently. The flow direction is computed using an adaptation of our previous method RWFlood that uses a flooding process to quickly remove internal depressions or basins. Flooding, proceeding inward from the outside of the terrain, works oppositely to the common method of computing downhill flow from the peaks. To reduce the number of I/O operations, EMFlow adopts a new strategy to subdivide the terrain into islands that are processed separately. The terrain cells are grouped into blocks that are stored in a special data structure managed as a cache memory. EMFlow’s execution time was compared against the two most recent and most efficient published methods: TerraFlow and r.watershed.seg. It was, on average, 25 and 110 times faster than TerraFlow and r.watershed.seg respectively. Also, EMFlow could process larger datasets. Processing a 50000 × 50000 terrain on a machine with 2GB of internal memory took about 4500 seconds, compared to 87000 seconds for TerraFlow while r.watershed.seg failed on terrains larger than 15000 ×15000. On very small, say1000 ×1000 terrains, EMFlow takes under a second, compared to 6 and 20 seconds in r.watershed.seg and TerraFlow respectively. So EMFlow could be a component of a future interactive system where a user could modify terrain and immediately see the new hydrography.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

Similar content being viewed by others

Notes

  1. Tapajos is an important tributary river of the Amazon basin.

  2. See http://osdir.com/ml/grass-development-gis/2009-02/msg00133.html (accessed Sep-2014).

References

  1. Aggarwal A, Vitter JS (1988) The input/output complexity of sorting and related problems. Commun ACM 31(9):1116–1127

    Article  Google Scholar 

  2. Anderson-Tarver C, Gleason M, Buttenfield B, Stanislawski L (2012) Automated centerline delineation to enrich the national hydrography dataset. In: Xiao N, Kwan M P, Goodchild M, Shekhar S (eds) Geographic Information Science, Lecture Notes in Computer Science, vol 7478. Springer Berlin Heidelberg, pp 15–28

  3. Arge L, Chase JS, Halpin P, Toma L, Vitter JS, Urban D, Wickremesinghe R (2003) Efficient flow computation on massive grid terrain datasets. Geoinformatica 7(4):283–313. doi:10.1023/A:1025526421410

    Article  Google Scholar 

  4. Collet Y (2012) Extremely fast compression algorithm, http://code.google.com/p/lz4/ (Accessed on June-2014)

  5. Danner A, Agarwal PK, Yi K, Arge L (2007) Terrastream: From elevation data to watershed hierarchies. In: Proc. ACM Sympos. on Advances in Geographic Information Systems, pp 212–219

  6. Haverkort H, Janssen J (2012) Simple I/O-efficient flow accumulation on grid terrains. CoRR abs/1211.1857, http://dblp.uni-trier.de/db/journals/corr/corr1211.html#abs-1211-1857

  7. Jenson S, Domingue J (1988) Extracting topographic structure from digital elevation data for geographic information system analysis. Photogramm Eng Remote Sens 54(11):1593–1600

    Google Scholar 

  8. Magalhães SVG, Andrade MVA, Franklin WR, Pena GC (2012) A new method for computing the drainage network based on raising the level of an ocean surrounding the terrain

  9. Metz M, Mitasova H, Harmon RS (2011) Efficient extraction of drainage networks from massive, radar-based elevation models with least cost path search. Hydrol Earth Syst Sci 15(2):667–678. http://www.hydrol-earth-syst-sci.net/15/667/2011/

    Article  Google Scholar 

  10. Moore ID, Grayson RB, Ladson AR (1991) Digital terrain modelling: A review of hydrological, geomorphological, and biological applications. Hydrol Proc 5(1):3–30. doi:10.1002/hyp.3360050103

    Article  Google Scholar 

  11. O’callaghan JF, Mark DM (1984) The extraction of drainage networks from digital elevation data. Comput Vision Graph Image Proc 28(3):323–344

    Article  Google Scholar 

  12. Planchon O, Darboux F (2002) A fast, simple and versatile algorithm to fill the depressions of digital elevation models. Catena 46:159–176

    Article  Google Scholar 

  13. Silveira JA, Magalhães SVG, Andrade MVA, Conceição VS (2013) A library to support the development of applications that process huge matrices in external memory. In: Proceedings of 15th International Conference on Enterprise Information Systems (ICEIS), Angers, France, pp 153–160

  14. Soille P, Gratin C (1994) An efficient algorithm for drainage network extraction on DEMs. J Vis Commu Image Represent 5(2):181–189

    Article  Google Scholar 

  15. Stanislawski LV, Buttenfield BP (2011) Hydrographic generalization tailored to dry mountainous regions. Cartogra Geograph Inf Syst 38(2):117–125

    Article  Google Scholar 

  16. Stuetzle C, Franklin WR, Cutler B, Muckell J, Andrade MVA, Stookey J, Inanc M, Xie Z (2008) Hydrology preservation of simplified terrain representations. In: 16th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (ACM GIS 2008), Irvine CA, USA

  17. Tarboton D (1997) A new method for the determination of flow directions and contributing areas in grid digital elevation models. Water Resour Res 33(2):309–319

    Article  Google Scholar 

  18. Vitter JS (2008) Algorithms and data structures for external memory. Now Publishers Inc., Hanover

Download references

Acknowledgments

This research was partially supported by CAPES (Science without Borders), FAPEMIG, CNPq and NSF grant IIS-1117277.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Marcus V. A. Andrade.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Gomes, T.L., Magalhães, S.V.G., Andrade, M.V.A. et al. Efficiently computing the drainage network on massive terrains using external memory flooding process. Geoinformatica 19, 671–692 (2015). https://doi.org/10.1007/s10707-015-0225-y

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10707-015-0225-y

Keywords

Navigation