I'm trying to create a bounding box from a simple Lat/Long, given an increase size in metres.
For example, create a bounding box from X/Y which goes outwards 5000m at the NE / SW corner. (yes, this isn't a circle so the radius isn't even, etc).
- NorthEast corner Lat/Long
- SouthWest corner Lat/Long.
My guess is I need to convert meters to ..something? are they Radians?
I'm used to just using SQL Server geospatial to create new polygons from a point. e.g.
@somePoint.STBuffer(5000) creates a new circle with a radius of 5000 meters, from the centre point (given the point is WSG84).
How can I do this?
As requested re: GIS tools - this is tools agnostic. As in, i'm just after some common math formula to calculate the new co-ordinates. I'm not using any GIS program, but doing some coding.
EDIT 2: - This will be used to search for all points in a poly, on Earth. I just need to create a rough/simple square from a Lat/Long (GPS coordinate). - Then finally, I will either do this in a spatial query in a DB (for example, RavenDb, SqlServer, PostGIS, etc) or more likely, in .NET C#. So I was hoping to see if there was a common algorithm before I checked if this has been coded up in some coding language.