*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
}
-/* 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)
{
**
***********************************************************************/
+/*
+ * 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