将k m转换为gps坐标 [英] transform k m into gps Coordinates
问题描述
我必须看看GPS坐标是否在我创建的一个圆圈内。当我说我正在创建该圆圈时,我指的是这个:我有lat1,long1,
我的实际位置,我想测试这个位置是否有任何数据,但是
不远,然后是1km。我试图用圆不等式:(x2-a2)2+(y2-b2)2
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屋!