forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9fe649e
committed
In geo_ops.c, represent infinite slope as Infinity, not DBL_MAX.
Since we're assuming IEEE floats these days, there seems littlereason not to do this. It has the advantage that when the slope iscomputed as infinite due to the presence of Inf coordinates, we getsaner behavior than before from line_construct(), and thence alsoin some dependent operations such as finding the closest point.Also fix line_construct() to special-case slope zero. The previouscoding got the right answer in most cases, but it could computeC as NaN when the point has Inf coordinates.Discussion:https://postgr.es/m/CAGf+fX70rWFOk5cd00uMfa__0yP+vtQg5ck7c2Onb-Yczp0URA@mail.gmail.com1 parent8597a48 commit9fe649e
File tree
2 files changed
+140
-133
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+140
-133
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1055 | 1055 |
| |
1056 | 1056 |
| |
1057 | 1057 |
| |
1058 |
| - | |
| 1058 | + | |
1059 | 1059 |
| |
1060 | 1060 |
| |
1061 | 1061 |
| |
1062 | 1062 |
| |
1063 | 1063 |
| |
1064 | 1064 |
| |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1065 | 1072 |
| |
1066 | 1073 |
| |
1067 | 1074 |
| |
| |||
1201 | 1208 |
| |
1202 | 1209 |
| |
1203 | 1210 |
| |
1204 |
| - | |
| 1211 | + | |
1205 | 1212 |
| |
1206 | 1213 |
| |
1207 | 1214 |
| |
| |||
1213 | 1220 |
| |
1214 | 1221 |
| |
1215 | 1222 |
| |
1216 |
| - | |
| 1223 | + | |
1217 | 1224 |
| |
1218 | 1225 |
| |
1219 | 1226 |
| |
| |||
1979 | 1986 |
| |
1980 | 1987 |
| |
1981 | 1988 |
| |
1982 |
| - | |
| 1989 | + | |
1983 | 1990 |
| |
1984 | 1991 |
| |
1985 | 1992 |
| |
1986 | 1993 |
| |
1987 | 1994 |
| |
1988 |
| - | |
| 1995 | + | |
1989 | 1996 |
| |
1990 | 1997 |
| |
1991 | 1998 |
| |
| |||
2003 | 2010 |
| |
2004 | 2011 |
| |
2005 | 2012 |
| |
2006 |
| - | |
| 2013 | + | |
2007 | 2014 |
| |
2008 | 2015 |
| |
2009 | 2016 |
| |
|
0 commit comments
Comments
(0)