aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/geo_ops.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-06-26 12:32:42 +0000
committerBruce Momjian <bruce@momjian.us>2006-06-26 12:32:42 +0000
commit217d5439430b7ea8667d7f23873a9b843dda79f9 (patch)
tree5a2ba5f6114bad66c4005235c67fc2b13c09bf2f /src/backend/utils/adt/geo_ops.c
parentea9ec780ed6353bb84c48ec49495d29173fd0eb1 (diff)
downloadpostgresql-217d5439430b7ea8667d7f23873a9b843dda79f9.tar.gz
postgresql-217d5439430b7ea8667d7f23873a9b843dda79f9.zip
Update comment description of geo routines and move comment to more
relevant location.
Diffstat (limited to 'src/backend/utils/adt/geo_ops.c')
-rw-r--r--src/backend/utils/adt/geo_ops.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/backend/utils/adt/geo_ops.c b/src/backend/utils/adt/geo_ops.c
index 8f47d4d7aa8..40a42179dd4 100644
--- a/src/backend/utils/adt/geo_ops.c
+++ b/src/backend/utils/adt/geo_ops.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/geo_ops.c,v 1.92 2006/03/05 15:58:42 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/geo_ops.c,v 1.93 2006/06/26 12:32:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -3844,16 +3844,6 @@ poly_contained(PG_FUNCTION_ARGS)
}
-/* poly_contain_pt()
- * Test to see if the point is inside the polygon.
- * Code adapted from integer-based routines in
- * Wn: A Server for the HTTP
- * File: wn/image.c
- * Version 1.15.1
- * Copyright (C) 1995 <by John Franks>
- * (code offered for use by J. Franks in Linux Journal letter.)
- */
-
Datum
poly_contain_pt(PG_FUNCTION_ARGS)
{
@@ -5072,6 +5062,15 @@ poly_circle(PG_FUNCTION_ARGS)
**
***********************************************************************/
+/*
+ * Test to see if the point is inside the polygon.
+ * Code adapted from integer-based routines in WN: A Server for the HTTP
+ * version 1.15.1, file wn/image.c
+ * GPL Copyright (C) 1995 by John Franks
+ * http://hopf.math.northwestern.edu/index.html
+ * Description of algorithm: http://www.linuxjournal.com/article/2197
+ */
+
#define HIT_IT INT_MAX
static int