如何确定纬度&经度在椭圆内 [英] How to determine if a latitude & longitude is within an ellipse

查看:125
本文介绍了如何确定纬度&经度在椭圆内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有描述旋转椭圆的数据(椭圆的中心在纬度经度坐标中,长轴和短轴的长度以公里为单位,以及椭圆的定向角度).我不知道病灶的位置,但是假定有办法以某种方式找出病灶.我想确定一个特定的纬度经度点是否在此椭圆内.我找到了一种确定点是否在笛卡尔网格上的椭圆内的好方法,但是不知道如何处理纬度经度点. 任何帮助将不胜感激.

I have data describing a rotated ellipse (the center of the ellipse in latitude longitude coordinates, the lengths of the major and minor axes in kilometers, and the angle that the ellipse is oriented). I do not know the location of the foci, but assume there is a way to figure them out somehow. I would like to determine if a specific latitude longitude point is within this ellipse. I have found a good way to determine if a point is within an ellipse on a Cartesian grid, but don't know how to deal with latitude longitude points. Any help would be appreciated.

-Cody O.

推荐答案

在对我的问题进行了更多研究并发布在另一个论坛上之后,我终于找到了解决方案.我的椭圆相对较小,因此我认为它是一个真实的(扁平)椭圆.我能够找到椭圆形焦点的纬度,然后,如果从关注点到每个焦点的距离之和小于2a(长轴半径),则它在椭圆形内.谢谢你的建议. -Cody

After some more research into my problem and posting in another forum I was able to figure out a solution. My ellipse is relatively small so I assumed it was a true (flat) ellipse. I was able to locate the lat lon of the foci of the ellipse then if the sum of the distances from the point of interest to each focus is less than 2a (the major axis radius), then it is within the ellipse. Thanks for the suggestions though. -Cody

这篇关于如何确定纬度&经度在椭圆内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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