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

Distance calculation and circle

$
0
0

Hey,

I have data Id int, name nchar (40), coordinates geography. I use SQL Server 2012.

I want to calculate the distance between any location.

I'd like to have a distance in one table that looks like this, no matter how much data I have, so I have distance for all locations:

Picture1


I would like to draw a circle, which would I determine the radius by which to see the locations that are within that circle. I mean something like this:

Picture3

Thanks


Viewing all articles
Browse latest Browse all 364

Trending Articles



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