Timeline for Calculating coordinates of square x miles from center point?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 22, 2020 at 16:17 | comment | added | Black Frog | I was in-need of bounding box for Open Street Map and this worked perfect. | |
Nov 24, 2018 at 20:40 | comment | added | ToolmakerSteve |
I think the point @whuber is making is that there is no benefit to using a complex calculation of distance along Lat and Long, given that you then combine those with pythagorean theorem. You could instead use a much simpler calculation, such as whuber did, or as Ewan Todd does. Use simple linear formulas to convert longitude to miles and latitude to miles, or vice versa. The only "tricky" part is knowing that longitude formula needs the adjustment * cos(lat) when converting degrees to miles, and / cos(lat) when converting miles to degrees.
|
|
Oct 17, 2011 at 7:37 | vote | accept | Bex | ||
Oct 17, 2011 at 7:37 | comment | added | Bex | My distance will never be more than 100 miles so I don't think it matters. As the inaccuracies will be small with that smaller distance. | |
Oct 16, 2011 at 14:49 | comment | added | whuber | Concerning the edit, the Pythagorean Theorem is ok for small squares, but in general it does not hold for spherical right triangles. It's strange, then, that your code uses spherical trigonometry together with this approximation based on plane geometry. | |
Oct 13, 2011 at 7:58 | history | edited | Bex | CC BY-SA 3.0 |
added 476 characters in body
|
Oct 11, 2011 at 15:41 | comment | added | Bex | I have amended my bearings, it was a diamond.. it's now square | |
Oct 11, 2011 at 15:41 | history | edited | Bex | CC BY-SA 3.0 |
added 2 characters in body
|
Oct 11, 2011 at 15:21 | comment | added | Ian Turton | that won't be a square. | |
Oct 11, 2011 at 15:08 | history | answered | Bex | CC BY-SA 3.0 |