3

In an attempt to join two rasters with a very small offset, the join on ST_ClosestPoint geometry column is logical to me:

SELECT s.geom, s.val, c.val
FROM s
JOIN c ON ST_ClosestPoint(s.geom , c.geom) = s.geom

But this does not return any results.

(PostGIS v2.2.1 and PostgreSQL v9.5)

Joost Döbken
  • 367
  • 2
  • 5
  • 15

1 Answers1

0

ST_ClosestPoint returns an actual point, not a boolean as would be needed for a JOIN.

See also PostGIS: ST_ClosestPoint join error

bugmenot123
  • 11,011
  • 3
  • 34
  • 69