如何根据Java中的两个纬度+经度点测量距离并创建边界框? [英] How can I measure distance and create a bounding box based on two latitude+longitude points in Java?

查看:133
本文介绍了如何根据Java中的两个纬度+经度点测量距离并创建边界框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到两个不同点之间的距离。我知道这可以用很大的圆距来完成。
http://www.meridianworlddata.com/Distance-calculation.asp

I am wanting to find the distance between two different points. This I know can be accomplished with the great circle distance. http://www.meridianworlddata.com/Distance-calculation.asp

一旦完成,我想找到一个点和距离,我想找到距离北方的点,以及那个距离为东以便在点周围创建一个方框。

Once done, with a point and distance I would like to find the point that distance north, and that distance east in order to create a box around the point.

推荐答案

我们使用 OpenMap 绘制了大量的位置数据。有一些 LatLonPoint 类有一些基本功能,包括距离。

We've had some success using OpenMap to plot a lot of positional data. There's a LatLonPoint class that has some basic functionality, including distance.

这篇关于如何根据Java中的两个纬度+经度点测量距离并创建边界框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆