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

查看:21
本文介绍了java - 如何在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 - 如何在Java中基于两个纬度+经度点测量距离并创建边界框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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