Hi, I try to Intersect 3d polygon and Lines on SQL Server. But it's not working. Please support me on this issue. How to correct dynamically calculate intersection of 3D Line and Polygon?
I wrote following SQL Query.
SELECT
P.*,
L.Shape.STIntersection(P.Shape).ToString() AS IntersectionPoint,
L.Shape.STIntersection(P.Shape).STLength() AS IntersectionLength
FROM
(
SELECT
geometry::UnionAggregate(Shape) AS Shape
FROM
Geol_LicenseBoundary3DA
WHERE
Layer LIKE 'LB_XXX%' AND last_edited_date IS NULL
) AS P
JOIN
(
SELECT
geometry::UnionAggregate(Shape) AS Shape
FROM
Geol_DH_ActualTraceL
WHERE
HOLEID = 'UGDXXX'
) AS L
ON
P.Shape.STIntersects(L.Shape) = 1;
Thanks