|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $PostgreSQL: pgsql/src/backend/utils/adt/geo_ops.c,v 1.92 2006/03/05 15:58:42 momjian Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/utils/adt/geo_ops.c,v 1.93 2006/06/26 12:32:42 momjian Exp $ |
12 | 12 | * |
13 | 13 | *------------------------------------------------------------------------- |
14 | 14 | */ |
@@ -3844,16 +3844,6 @@ poly_contained(PG_FUNCTION_ARGS) |
3844 | 3844 | } |
3845 | 3845 |
|
3846 | 3846 |
|
3847 | | -/* poly_contain_pt() |
3848 | | - * Test to see if the point is inside the polygon. |
3849 | | - * Code adapted from integer-based routines in |
3850 | | - *Wn: A Server for the HTTP |
3851 | | - *File: wn/image.c |
3852 | | - *Version 1.15.1 |
3853 | | - *Copyright (C) 1995<by John Franks> |
3854 | | - * (code offered for use by J. Franks in Linux Journal letter.) |
3855 | | - */ |
3856 | | - |
3857 | 3847 | Datum |
3858 | 3848 | poly_contain_pt(PG_FUNCTION_ARGS) |
3859 | 3849 | { |
@@ -5072,6 +5062,15 @@ poly_circle(PG_FUNCTION_ARGS) |
5072 | 5062 | ** |
5073 | 5063 | ***********************************************************************/ |
5074 | 5064 |
|
| 5065 | +/* |
| 5066 | + *Test to see if the point is inside the polygon. |
| 5067 | + *Code adapted from integer-based routines in WN: A Server for the HTTP |
| 5068 | + *version 1.15.1, file wn/image.c |
| 5069 | + *GPL Copyright (C) 1995 by John Franks |
| 5070 | + *http://hopf.math.northwestern.edu/index.html |
| 5071 | + *Description of algorithm: http://www.linuxjournal.com/article/2197 |
| 5072 | + */ |
| 5073 | + |
5075 | 5074 | #defineHIT_IT INT_MAX |
5076 | 5075 |
|
5077 | 5076 | staticint |
|