Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Does ST_Intersection work in 3D?

$
0
0

I am using “ST_Intersection” between two 3D lines which I believe do not intersect, but the result gives me their intersection.

SELECT ST_ASText(ST_Intersection(
        ST_GeomFromText('LINESTRING( 1 1 1, 5 5 1)'),
        ST_GeomFromText('LINESTRING( 4 1 10, 1 5 10)'
      )));

results in:

POINT Z (2.71428571428571 2.71428571428571 5.5)


Viewing all articles
Browse latest Browse all 1138

Trending Articles