diff --git a/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc b/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc index e93567124..cb7621548 100644 --- a/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc +++ b/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc @@ -2139,7 +2139,7 @@ label:removed[] point({x:0, y:0}) <= point({x:1, y:1}) <= point({x:2, y:2}) ---- a| -The ability to use operators `<`, `<=`, `>`, and `>=` on spatial points is removed. +The ability to use operators `<`, `+<=+`, `>`, or `>=` on spatial points is removed. Instead, use: [source, cypher, role="noheader"] ---- diff --git a/modules/ROOT/pages/syntax/operators.adoc b/modules/ROOT/pages/syntax/operators.adoc index c5e8075cf..b6ce384ab 100644 --- a/modules/ROOT/pages/syntax/operators.adoc +++ b/modules/ROOT/pages/syntax/operators.adoc @@ -359,11 +359,9 @@ The following points give some details on how the comparison is performed. For example, `1 > b` and `1 < b` are both false when b is NaN. * String values are compared for ordering using lexicographic order (e.g. `"x" < "xy"`). * Boolean values are compared for ordering such that `false < true`. -* *Comparison* of spatial values: - ** Point values can only be compared within the same Coordinate Reference System (CRS) -- otherwise, the result will be `null`. - ** For two points `a` and `b` within the same CRS, `a` is considered to be greater than `b` if `a.x > b.x` and `a.y > b.y` (and `a.z > b.z` for 3D points). - ** `a` is considered less than `b` if `a.x < b.x` and `a.y < b.y` (and `a.z < b.z` for 3D points). - ** If none if the above is true, the points are considered incomparable and any comparison operator between them will return `null`. +* Spatial values cannot be compared using the operators `<`, `+<=+`, `>`, or `>=`. +To compare spatial values within a specific range, use either the xref:functions/spatial.adoc#functions-withinBBox[`point.withinBBox()`] or the xref:functions/spatial.adoc#functions-point-wgs84-2d[`point()`] function. + * *Ordering* of spatial values: ** `ORDER BY` requires all values to be orderable. ** Points are ordered after arrays and before temporal types.