将k m转换为gps坐标 [英] transform k m into gps Coordinates

查看:154
本文介绍了将k m转换为gps坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须看看GPS坐标是否在我创建的一个圆圈内。当我说我正在创建该圆圈时,我指的是这个:我有lat1,long1,
我的实际位置,我想测试这个位置是否有任何数据,但是
不远,然后是1km。我试图用圆不等式:(x2-a2)2+(y2-b2)2 其中a = lat1,b = long1,R =半径。我知道R = 1km,但是如何将1km转换为可以与GPS坐标进行比较的数据?而x,y是来自集合的每个值,它们都是testet以查看它们是否合适。

解决方案

Lat / Lng坐标不适用于Phytagoras公式,因为地球是一个球体,而不是平坦的...



查看本手册:

http://www.movable-type.co.uk/scripts/latlong.html



你需要距离方程,来看看你的经纬度和圆心的纬度/经度之间的距离是否小于R。

I have to see if some GPS coordinates are in a circle that I create.when I say I am creating that circle I' refering to this: I have lat1, long1, my actual location and I want to test if there is any data surrounding this location but not far then 1km. I am trying to use circle inequation : (x2-a2)2+(y2-b2)2 <R2 where a=lat1, b=long1 and R=radius. I know that R=1km but how do I transform 1km into data that can be compared to GPS coordinates? and x, y are every value from a collection that are testet to see if they fit.

解决方案

Lat/Lng coordinates don't work with the Phytagoras Formula, as Earth is a sphere, and not flat...

Take a look at this manual:

http://www.movable-type.co.uk/scripts/latlong.html

You need the distance equation, to see if the distance between the lat/lng you have and the lat/lng of the center of the circle is smaller than R.

这篇关于将k m转换为gps坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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