首页 | 本学科首页   官方微博 | 高级检索  
     

基于网格与R-树空间索引的矢量线图任意简单多边形窗口裁剪算法
引用本文:李楠,吴信才,马金金,王中.基于网格与R-树空间索引的矢量线图任意简单多边形窗口裁剪算法[J].计算机工程与科学,2012,34(11):96.
作者姓名:李楠  吴信才  马金金  王中
作者单位:1. 中国地质科学院矿产资源研究所,北京,100037
2. 中国地质大学(北京)地球科学与资源学院,北京,100083
3. 中南大学信息科学与工程学院,湖南长沙,410083
4. 合肥工业大学资源与环境工程学院,安徽合肥,230009
基金项目:国家自然科学基金资助项目,国家863计划资助项目,国家科技支撑计划,中央国家机关基本业务费基金
摘    要:针对大规模矢量线与大量裁剪窗口同时出现的线裁剪算法存在的三个主要问题,减少线段求交次数、简化交点出入属性计算以及无交点矢量线的取舍,本文提出了一种基于双空间索引的大规模线图任意多边形裁剪算法。算法根据裁剪多边形的边分别建立R-树索引和均匀Cell索引,应用两种索引各自的优点大幅减少被裁剪线段与裁剪多边形上线段的求交次数。在此基础上,基于均匀网格索引,提出局部射线法,简化交点出入属性计算和无交点矢量线的取舍。本文在传统算法基础上提出三点改进:首先提出基于两种空间索引模型进行线段求交计算,保证算法在理论上具有较低的时间复杂度;其次,在射线法和网格索引基础上提出局部射线法,使得判断每个交点出入属性的时间复杂度为O(1)~ O(n~(1/2)),与参考文献中的算法相比,此方法的优点是避免判断多边形上顶点的方向;最后,算法中裁剪多边形可以是包含任意多个洞的任意简单多边形,克服传统算法中对裁剪多边形的特定约束条件。

关 键 词:R-树  网格索引  线裁剪  局部射线法

A Line Clip Algorithm of Based on Cell and R-Tree Spatial Indexes against Arbitrary Polygon Window
LI Nan , WU Xin-cai , MA Jin-jin , WANG Zhong.A Line Clip Algorithm of Based on Cell and R-Tree Spatial Indexes against Arbitrary Polygon Window[J].Computer Engineering & Science,2012,34(11):96.
Authors:LI Nan  WU Xin-cai  MA Jin-jin  WANG Zhong
Abstract:There are three main problems in line clip:reducing the number of segments intersection,reducing the time complexity for computation property of intersections and determining whether non-intersection lines is in clip polygons.This paper presents an improved line clip algorithm against general polygon window.The algorithm uses R-Tree and Cell structures to calculate segment intersections between segments in lines and segments in polygon edges.Then,based on uniform subdivision,a method named local radial is introduced in order to reduce the time complexity for point-in-polygon.The algorithm has three improvements.Firstly,segment-intersections of two spatial index structures can be calculated simultaneously.Secondly,a 'local radial method' is presented to reduce the time complexity for computation property of intersections,whose time complexity is O(1)~ O(n~(1/2)),,and the method avoids judging the orientation of clip polygons.Finally,the algorithm can be used in the clipping window that is general polygon.
Keywords:R-Tree  cell index  clipping line  local radial
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号