给定一定数量的小数位的纬度/经度,如何判断覆盖的面积(以米为单位)?
如果我有一个以纬度和经度指定的位置,那么它可以覆盖一个盒子,具体取决于该位置的精度有多少位。
例如,给定位置为北纬 55.0°,西经 3.0°(即精确到小数点后 1 位),并假设截断(而不是四舍五入),这可以涵盖 55.01° 到 55.09° 之间的任何位置。这将覆盖此框中的区域: http://www.openstreetmap.org/?minlat=55.0&maxlat=55.1&maxlon=-3.0&minlon=-3.1&box=yes
有吗无论如何计算那个盒子的面积?我只想执行一次,因此一个提供此计算的简单网站就足够了。
我想这样做的主要原因是因为我的位置有非常高的小数位数,并且我想看看它有多精确。
If i have a position specified in latitude and longitude, then it can cover a box, depending on how many digits of accuracy are in the position.
For example, given a position of 55.0° N, 3.0° W (i.e. to 1 decimal place), and assuming a truncation (as opposed to rounding), this could cover anything that's 55.01° to 55.09°. This would cover the area in this box: http://www.openstreetmap.org/?minlat=55.0&maxlat=55.1&maxlon=-3.0&minlon=-3.1&box=yes
Is there anyway to calculate the area of that box? I only want to do this once, so a simple website that provides this calculation would suffice.
The main reason I want to do this is because I have a position to a very high number of decimal places, and I want to see how precise it is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
虽然地球并不完全是球形的,但您可以将其视为球形来进行这些计算。
北/南计算相对简单,因为两极之间有 180°,距离为 20,014 公里 (来源)因此 1 度 == 20014/180 = 111.19 公里。
东/西计算比较困难,因为它取决于纬度。赤道距离为 40,076 公里(来源),因此 1 度 = 40076/360 = 111.32 公里。两极的周长(根据定义)为 0 公里。因此,您可以通过三角函数计算任意纬度的周长(
circumference * sin(latitude)
)。While the Earth isn't exactly spherical you can treat it as such for these calculations.
The North/South calculation is relatively simple as there are 180° from pole to pole and the distance is 20,014 km (Source) so one degree == 20014/180 = 111.19 km.
The East/West calculation is more difficult as it depends on the latitude. The Equatorial distance is 40,076 km (Source) so one degree = 40076/360 = 111.32 km. The circumference at the poles is (by definition) 0 km. So you can calculate the circumference at any latitude by trigonometry (
circumference * sin(latitude)
).我写了一个在线测地线面积计算器,可以在
http://geographiclib.sf.net/cgi-bin/Planimeter。输入四个
盒子的角(逆时针),它会给出它的面积。
I have written an online geodesic area calculator which is available at
http://geographiclib.sf.net/cgi-bin/Planimeter. Enter in the four
corners of your box (counter clockwise) and it will give its area.