From 5847b8104f0190e8309e152424b5cc3878410bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Wed, 14 Feb 2024 17:57:44 +0000 Subject: [PATCH] accept marginal error between raw geom & WKT geom --- flow/model/qvalue/qvalue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/model/qvalue/qvalue.go b/flow/model/qvalue/qvalue.go index 11150a4daa..bc77a40c7e 100644 --- a/flow/model/qvalue/qvalue.go +++ b/flow/model/qvalue/qvalue.go @@ -295,7 +295,7 @@ func compareGeometry(value1, value2 interface{}) bool { switch v1 := value1.(type) { case *geom.Geom: - return v1.Equals(geo2) + return v1.Distance(geo2) < 0.0001 case string: geo1, err := geom.NewGeomFromWKT(v1) if err != nil {