[postgis-tickets] r16993 - Patch over bad behaviour for near-parallel boxes and distancetree.
Paul Ramsey
pramsey at cleverelephant.ca
Wed Nov 7 09:15:58 PST 2018
Author: pramsey
Date: 2018-11-07 09:15:58 -0800 (Wed, 07 Nov 2018)
New Revision: 16993
Modified:
branches/2.3/liblwgeom/lwgeodetic.h
Log:
Patch over bad behaviour for near-parallel boxes and distancetree.
Unfortunately, this "fix" is probably breakable, just put the boxes closer and closer together until we get "close enough to be the same" results from the edge normal comparison again. Only way around this is to do dot product and comparisons in higher-than-double space
References #4223
Modified: branches/2.3/liblwgeom/lwgeodetic.h
===================================================================
--- branches/2.3/liblwgeom/lwgeodetic.h 2018-11-07 16:50:58 UTC (rev 16992)
+++ branches/2.3/liblwgeom/lwgeodetic.h 2018-11-07 17:15:58 UTC (rev 16993)
@@ -37,6 +37,11 @@
#define NAN 0.0/0.0
#endif
+#ifdef FP_TOLERANCE
+#undef FP_TOLERANCE
+#define FP_TOLERANCE 1e-14
+#endif
+
extern int gbox_geocentric_slow;
#define POW2(x) ((x)*(x))
More information about the postgis-tickets
mailing list