Skip to content

Commit 217d543

Browse files
committed
Update comment description of geo routines and move comment to more
relevant location.
1 parent ea9ec78 commit 217d543

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/backend/utils/adt/geo_ops.c

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* 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 $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -3844,16 +3844,6 @@ poly_contained(PG_FUNCTION_ARGS)
38443844
}
38453845

38463846

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-
38573847
Datum
38583848
poly_contain_pt(PG_FUNCTION_ARGS)
38593849
{
@@ -5072,6 +5062,15 @@ poly_circle(PG_FUNCTION_ARGS)
50725062
**
50735063
***********************************************************************/
50745064

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+
50755074
#define HIT_IT INT_MAX
50765075

50775076
static int

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy