You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT ST_Distance(geom.a, geom.b), ST_AsText(ST_Intersection(geom.a, geom.b))
FROM (SELECT ST_GeomFromText('POLYGON ((2 0, 0 2, 0 0, 2 0))') As a,
ST_GeomFromText('POINT(0.4 1.6)') As b) As geom;
-- expected: {0, POINT(0.4, 1.6)}-- actual : {0, POINT EMPTY}
ST_Intersection: Returns a geometry representing the point-set intersection of two geometries. In other words, that portion of geometry A and geometry B that is shared between the two geometries.
The distance from POINT(0.4 1.6)) to LINESTRING(2 0, 0 2) is 0, but the ST_Intersection(a, b) returns EMPTY.
The text was updated successfully, but these errors were encountered:
The distance from POINT(0.4 1.6)) to LINESTRING(2 0, 0 2) is 0, but the ST_Intersection(a, b) returns EMPTY.
The text was updated successfully, but these errors were encountered: