I work with a geographic point using lat / long and you need to find other points in our database within 5 miles of this point. However, I canโt understand what โunitsโ are for STBuffer, it doesnโt seem to correspond to feet, miles, meters, kilometers, etc. Does the documentation only refer to them as "units", any suggestions? Thanks
[...] from the geography :: STGeomFromText ('POINT (xy)', 4326) .STBuffer (z) .STIntersects (geography :: STGeomFromText ('POINT (' + CAST (v. Longitude as varchar (max)) + '' + CAST (v. Latitude as varchar (max)) + ')', 4326)) = 1
units-of-measurement sql geography distance
Christopher simpson
source share