计算机与现代化 ›› 2011, Vol. 1 ›› Issue (1): 39-3.doi: 10.3969/j.issn.1006-2475.2011.01.011

• 算法分析与设计 • 上一篇    下一篇

一种改进的基于区间树的等值线提取算法

杜 微1,2,陈学工1   

  1. 1.中南大学软件学院,湖南 长沙 410075; 2.常德职业技术学院,湖南 常德 415000
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-01-20 发布日期:2011-01-20

A Modified Algorithm for Extracting Isoline Based on Interval Tree

DU Wei1,2, CHEN Xue-gong1   

  1. 1.College of Software, Central South University, Changsha 410075, China;2.Changde Vocational Technical College, Changde 415000, China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-01-20 Published:2011-01-20

摘要:

从DEM中提取等值线是计算机制图和地理信息系统的基本功能之一。本文提出一种基于区间树索引的等值线提取算法。借鉴在平衡二叉排序树中插入元素的算法来建立区间树结点;在查找等值线经过的网格时,仅对搜索路径上区间树结点的网格队列排序,避免对区间树全部结点的网格队列排序。实验表明,此算法较以往算法在时间上具有优势。

关键词: 等值线, DEM, 平衡二叉排序树, 区间树

Abstract:

The isoline extracted from DEM is one of the basic functions of computer mapping and geographic information system. This paper proposes an isoline extraction method based on interval tree from DEM. This paper references the algorithm of inserting elements in balance binary sort tree to create interval tree’s nodes; when searching the grids the contour line passed, it just sorts those grids which are belonged to the nodes the search path passed, avoids sort all grids in the interval tree, and reduces the search time. Experimental results show that the algorithm has an advantage in time than the older algorithm.

Key words: isoline, DEM, AVL tree, interval tree