On the complexity of point-in-polygon algorithms

被引:63
作者
Huang, CW
Shih, TY
机构
[1] Department of Civil Engineering, National Chiao-Tung University, Hsin-Chu
关键词
point-in-polygon; complexity; ray intersection; sum of angles method; swath method; sign of offset method;
D O I
10.1016/S0098-3004(96)00071-4
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Point-in-polygon is one of the fundamental operations of Geographic Information Systems. A number of algorithms can be applied. Different algorithms lead to different running efficiencies. In the study, the complexities of eight point-in-polygon algorithms were analyzed. General and specific examples are studied. In the general example, an unlimited number of nodes are assumed; whereas in the second example, eight nodes are specified. For convex polygons, the sum of area method, the sign of offset method, and the orientation method is well suited for a single point query. For possibly concave polygons, the ray intersection method and the swath method should be selected. For eight node polygons, the ray intersection method with bounding rectangles is faster. (C) 1997 Elsevier Science Ltd.
引用
收藏
页码:109 / 118
页数:10
相关论文
共 10 条