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

Create a grid of square cells and find the central lat/long of each

$
0
0

Hi,

Currently using sql server 2012.

I am looking to query a table of lat/longs to find the greatest number of points in a 200m radius. I believe that using the Geography capabilities in sql I can accomplish much of this. To be able to sample the table of points I wanted to create a grid (say of New York - 50m x 50m cells) and move a circle (200m radius) into the center of each square grid cell and then use the buffer function to find what was within the circle. However, I've been searching online and I haven't been able to find a way to create the gird and the central lat/longs.

Many 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>