• <legend id='uJxEE'><style id='uJxEE'><dir id='uJxEE'><q id='uJxEE'></q></dir></style></legend><tfoot id='uJxEE'></tfoot>

      <small id='uJxEE'></small><noframes id='uJxEE'>

      <i id='uJxEE'><tr id='uJxEE'><dt id='uJxEE'><q id='uJxEE'><span id='uJxEE'><b id='uJxEE'><form id='uJxEE'><ins id='uJxEE'></ins><ul id='uJxEE'></ul><sub id='uJxEE'></sub></form><legend id='uJxEE'></legend><bdo id='uJxEE'><pre id='uJxEE'><center id='uJxEE'></center></pre></bdo></b><th id='uJxEE'></th></span></q></dt></tr></i><div id='uJxEE'><tfoot id='uJxEE'></tfoot><dl id='uJxEE'><fieldset id='uJxEE'></fieldset></dl></div>
      • <bdo id='uJxEE'></bdo><ul id='uJxEE'></ul>

        在给定点、方位角和距离的情况下计算 gps 坐标

        calculating a gps coordinate given a point, bearing and distance(在给定点、方位角和距离的情况下计算 gps 坐标)
        <i id='MX4cd'><tr id='MX4cd'><dt id='MX4cd'><q id='MX4cd'><span id='MX4cd'><b id='MX4cd'><form id='MX4cd'><ins id='MX4cd'></ins><ul id='MX4cd'></ul><sub id='MX4cd'></sub></form><legend id='MX4cd'></legend><bdo id='MX4cd'><pre id='MX4cd'><center id='MX4cd'></center></pre></bdo></b><th id='MX4cd'></th></span></q></dt></tr></i><div id='MX4cd'><tfoot id='MX4cd'></tfoot><dl id='MX4cd'><fieldset id='MX4cd'></fieldset></dl></div>
          • <bdo id='MX4cd'></bdo><ul id='MX4cd'></ul>

            1. <small id='MX4cd'></small><noframes id='MX4cd'>

              <tfoot id='MX4cd'></tfoot>
              <legend id='MX4cd'><style id='MX4cd'><dir id='MX4cd'><q id='MX4cd'></q></dir></style></legend>

                  <tbody id='MX4cd'></tbody>
                  本文介绍了在给定点、方位角和距离的情况下计算 gps 坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个问题让我在某个项目中退缩了一段时间.

                  I have a problem which draws my back in some project for some time now.

                  我基本上是在寻找使用我编写的一些脚本绘制的 x、y 点来捕获多边形.lat, lon 是多边形的中心 GPS 线,我正在寻找它周围的多边形.

                  I'm basically looking to trap a polygon using x, y points drawn by some script I've written. lat, lon are the center GPS cords of the polygon and I'm looking for its surrounding polygon.

                  这是我在 python 中的代码的一部分:

                  here is a part of my code in python:

                  def getcords(lat, lon, dr, bearing):
                      lat2=asin(sin(lat)*cos(dr)+cos(lat)*sin(dr)*cos(bearing))
                      lon2=lon+atan2(sin(bearing)*sin(dr)*cos(lat),cos(dr)-sin(lat)*sin(lat2))
                      return [lat2,lon2]
                  

                  我的输入是这样的:

                  • lat、lon - 以十进制度数给出.
                  • dr - 是以英里为单位的距离除以地球的 -radius (=3958.82) 计算得出的角度
                  • 轴承 - 0-360 度之间.

                  但是对于输入:

                  getcorsds1(42.189275, -76.85823, 0.5/3958.82, 30)
                  

                  我得到输出:[-1.3485899508698462, -76.8576637627568],但是 [42.2516666666667, -76.8097222222222] 是正确的答案.

                  I get output: [-1.3485899508698462, -76.8576637627568], however [42.2516666666667, -76.8097222222222] is the right answer.

                  至于角距离,我只是用距离(英里)除以地球半径(=3958.82)来计算.

                  as for the angular distance, I calculate it simply by dividing the distance in miles by the earth's radius(=3958.82).

                  有人吗?

                  推荐答案

                  你为什么不用 nice图书馆?

                  from geopy import Point
                  from geopy.distance import distance, VincentyDistance
                  
                  # given: lat1, lon1, bearing, distMiles
                  lat2, lon2 = VincentyDistance(miles=distMiles).destination(Point(lat1, lon1), bearing)
                  

                  对于 lat1、lon1、distMiles、bearing = 42.189275,-76.85823, 0.5, 30 它返回 42.1955489, -76.853359.

                  For lat1, lon1, distMiles, bearing = 42.189275,-76.85823, 0.5, 30 it returns 42.1955489, -76.853359.

                  这篇关于在给定点、方位角和距离的情况下计算 gps 坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding config modes to Plotly.Py offline - modebar(将配置模式添加到 Plotly.Py 离线 - 模式栏)
                  Plotly: How to style a plotly figure so that it doesn#39;t display gaps for missing dates?(Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙?)
                  python save plotly plot to local file and insert into html(python将绘图保存到本地文件并插入到html中)
                  Plotly: What color cycle does plotly express follow?(情节:情节表达遵循什么颜色循环?)
                  How to save plotly express plot into a html or static image file?(如何将情节表达图保存到 html 或静态图像文件中?)
                  Plotly: How to make a line plot from a pandas dataframe with a long or wide format?(Plotly:如何使用长格式或宽格式的 pandas 数据框制作线图?)
                    <bdo id='RFMbh'></bdo><ul id='RFMbh'></ul>

                    <small id='RFMbh'></small><noframes id='RFMbh'>

                    • <legend id='RFMbh'><style id='RFMbh'><dir id='RFMbh'><q id='RFMbh'></q></dir></style></legend>

                        <tbody id='RFMbh'></tbody>

                      <i id='RFMbh'><tr id='RFMbh'><dt id='RFMbh'><q id='RFMbh'><span id='RFMbh'><b id='RFMbh'><form id='RFMbh'><ins id='RFMbh'></ins><ul id='RFMbh'></ul><sub id='RFMbh'></sub></form><legend id='RFMbh'></legend><bdo id='RFMbh'><pre id='RFMbh'><center id='RFMbh'></center></pre></bdo></b><th id='RFMbh'></th></span></q></dt></tr></i><div id='RFMbh'><tfoot id='RFMbh'></tfoot><dl id='RFMbh'><fieldset id='RFMbh'></fieldset></dl></div>
                      1. <tfoot id='RFMbh'></tfoot>