首页> 外文会议>International Conference on Geoinformatics;Geoinformatics 2012 >Point-in-Polygon Algorithm Based on Monolithic Calculation for Included Angle of Half Plane Continuous Chains
【24h】

Point-in-Polygon Algorithm Based on Monolithic Calculation for Included Angle of Half Plane Continuous Chains

机译:基于整体计算的半平面连续链夹角多边形点算法

获取原文

摘要

The point-in-polygon test which query about whether a point lies within a polygon or not is a fundamental problem in geometry, and of importance in various applications in GIS (Geographic Information System) and other areas. In taking advantage of the basic idea of the sum of included angle algorithm, a novel improvement for the point-in-polygon test is proposed in this paper. A new concept, the half plane continuous chain is presented, the continuous segments whose endpoints lies similar side by the line through the tested point will be organized as a half plane continuous chain. The monolithic calculation method of included angle for half plane continuous chain is founded, which accumulate the included angle value of each contained edge by directly calculating the included angle between the two endpoints of half plane continuous chains, all intermediate edges' included angle value calculation in each half plane continuous chain are omitted. As a result, the computation time is cut down. The improved algorithm for inclusion test consisting of three phases: (1) organizing edges of a polygon into a minimal number of half plane continuous chains and (2) calculating each chain's included angle value, and accumulating them to a sum and (3) comparing the sum with the constant: ±2π (or ±360°) means included and 0 means not. In the first phase, the computer for splitting polygonal chains into half plane continuous chain will just process Boolean compares. In the second phase, the included angle computation and accumulating times ranges from 0 to 2m, depending on the geometry of the polygon and the test direction, here, m is the fewer number of half plane continuous chains and is always smaller, often much smaller, than the number n of edges. In the case of afield polygon and convex polygon, the number of included angle calculating and accumulating times could be reduced from n to 0 or 5. Analysis shows except in the case of saw-shaped polygon, the improved algorithm is faster than the original in most cases, especially for polygons with large amounts of edges.
机译:查询点是否位于多边形内的多边形点测试是几何学中的基本问题,在GIS(地理信息系统)和其他领域的各种应用中都很重要。利用夹角求和算法的基本思想,对多边形点测试提出了一种新的改进方法。提出了一个新概念,即半平面连续链,其端点位于通过测试点的直线附近的连续段将被组织为半平面连续链。建立了半平面连续链夹角的整体计算方法,通过直接计算半平面连续链的两个端点之间的夹角来累加每个包含边的夹角值,所有中间边的夹角值的计算。每个半平面连续链被省略。结果,减少了计算时间。改进的包含测试算法包括三个阶段:(1)将多边形的边缘组织为最少数量的半平面连续链;(2)计算每个链的夹角值,并将其累加为总和;(3)比较常数之和:±2π(或±360°)表示包括在内,0表示不包括。在第一阶段,用于将多边形链拆分为半平面连续链的计算机将仅处理布尔比较。在第二阶段,取决于多边形的几何形状和测试方向,夹角的计算和累加时间范围为0到2m,在这里,m是较少的半平面连续链数,并且总是较小,通常小得多,而不是边数n。在野外多边形和凸多边形的情况下,夹角的计算和累加次数可以从n减少到0或5。分析表明,除了锯齿形多边形以外,改进算法比原始多边形要快。大多数情况下,尤其是对于具有大量边的多边形。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号