Quantcast
Channel: SQL Server Spatial forum
Viewing all articles
Browse latest Browse all 364

Find Lat, Long values given STdistance and a point value

$
0
0
DECLARE @pointA geography;
DECLARE @pointB geography;
SET @pointA = geography::Parse('POINT('+ CAST(119.93289251 AS VARCHAR) +' '+ CAST(-22.44282786 AS VARCHAR) +')') ;
SET @pointB = geography::Parse('POINT('+ CAST(119.93289171 AS VARCHAR) +' '+ CAST(-22.44282573 AS VARCHAR) +')') ;
SELECT @pointA.STDistance(@pointB);

STDistance value between these two points = 0.249830 meters

Given two points like above we can find Spatial distance between them. My question is if I know only one of the above points (ex:pointA) and STDistance value can I find the other point (ex:pointB).

Thank you


Viewing all articles
Browse latest Browse all 364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>