1
선 스트링이 주어진 경우, 선 스트링의 시작점을 중심으로 원을 구성하면 원이 선 스트링과 교차 할 것으로 예상됩니다.SQL Server - Geography
declare @startPoint geography = geography::Point(51.947859,3.986790,4326)
declare @endPoint geography = geography::Point(51.956383,3.995908,4326)
declare @g geography = geography::STGeomFromText('LINESTRING(51.947859 3.986790, 55.956383 3.995908)', 4326).MakeValid() -- The linestring
select
@startPoint.STDistance(@endPoint) -- is 1136.88182010473 metres
declare @h geography = @startPoint.STBuffer(50) -- The Circle
select
@g.STIntersection(@h).STEndPoint().Long,@g.STIntersection(@h).STStartPoint().Long
select
@g.STIntersects(@h) -- Why is this false(0)?
왜 원과 선 스트링이 교차하지 않는지 이해하는데 도움이 필요합니다. 감사.