pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

      <bdo id='vG9sa'></bdo><ul id='vG9sa'></ul>

      1. <legend id='vG9sa'><style id='vG9sa'><dir id='vG9sa'><q id='vG9sa'></q></dir></style></legend>
      2. <tfoot id='vG9sa'></tfoot>
        <i id='vG9sa'><tr id='vG9sa'><dt id='vG9sa'><q id='vG9sa'><span id='vG9sa'><b id='vG9sa'><form id='vG9sa'><ins id='vG9sa'></ins><ul id='vG9sa'></ul><sub id='vG9sa'></sub></form><legend id='vG9sa'></legend><bdo id='vG9sa'><pre id='vG9sa'><center id='vG9sa'></center></pre></bdo></b><th id='vG9sa'></th></span></q></dt></tr></i><div class="frzljbn" id='vG9sa'><tfoot id='vG9sa'></tfoot><dl id='vG9sa'><fieldset id='vG9sa'></fieldset></dl></div>

      3. <small id='vG9sa'></small><noframes id='vG9sa'>

        生成給定距離的坐標,距中心的角度

        Generate coordinates given distance, angle from a center(生成給定距離的坐標,距中心的角度)
          <tbody id='w4XuU'></tbody>
          <tfoot id='w4XuU'></tfoot>
        • <legend id='w4XuU'><style id='w4XuU'><dir id='w4XuU'><q id='w4XuU'></q></dir></style></legend>
            <bdo id='w4XuU'></bdo><ul id='w4XuU'></ul>

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

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

                  本文介紹了生成給定距離的坐標,距中心的角度的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在地圖 [x1,y1] 中有一個給定的中心.從那個中心我畫一個半徑為 1 英里的圓.我需要在圓周圍再生成 8 個點,各個點到中心的距離應該是 1 英里,所以它們在圓的邊界上.我確實知道得到 x2, y2 的公式,但問題是它不適用于地球地圖,因為它不是一個完美的球體.

                  I have a given center in the map [x1,y1]. From that center I am drawing a circle with a 1 mile radius. I need to generate 8 more points around the circle, the distance between the individual points to center should be 1 mile, so they are on the circle bounds. I do know the formulas to get x2, y2 but the problem is it doesn't apply to earth's map since it isn't a perfect sphere.

                  我嘗試過使用 this,但沒有成功.

                  I've tried using this, but with no luck.

                  誰能指出我的某個地方,或者我弄錯了?

                  Could anyone point me somewhere or maybe I got this wrong ?

                  已解決!

                  所以仔細閱讀整個 Movable Type Scripts 我發現了這個(為了我的使用稍微修改了):

                  So reading carefully throughout Movable Type Scripts I found this (slightly modified for my use):

                     let getPoint = (distance, bearing, center) => {
                  
                      let δ = Number(distance) / 6371e3; 
                      let θ = Number(bearing).toRadians();
                  
                      let φ1 = center[0].toRadians();
                      let λ1 = center[1].toRadians();
                  
                      let sinφ1 = Math.sin(φ1), cosφ1 = Math.cos(φ1);
                      let sinδ = Math.sin(δ), cosδ = Math.cos(δ);
                      let sinθ = Math.sin(θ), cosθ = Math.cos(θ);
                  
                      let sinφ2 = sinφ1*cosδ + cosφ1*sinδ*cosθ;
                      let φ2 = Math.asin(sinφ2);
                      let y = sinθ * sinδ * cosφ1;
                      let x = cosδ - sinφ1 * sinφ2;
                      let λ2 = λ1 + Math.atan2(y, x);
                  
                      return [φ2.toDegrees(), (λ2.toDegrees()+540)%360-180]; 
                  };
                  

                  它確實解決了我的問題.

                  It did solved my problem.

                  推薦答案

                  您正在嘗試解決所謂的 第一個(或直接的)大地測量問題.知道這個名字會讓你的研究更容易.

                  You are trying to solve what is known as the first (or direct) geodetic problem. Knowing this name will make your research easier.

                  正如如何使用 Leaflet" 和 "在給定起始坐標、方位角和距離的情況下查找目的地坐標",您在 javascript 中解決此問題的主要選項是 cheap-ruler 用于小(ish)區域和 greographiclib 適合遠距離.

                  As pointed out by the answers to "How to draw polyline perpendicular to another polyline using Leaflet" and "Find destination coordinates given starting coodinates, bearing, and distance", your main options to approach this problem in javascript are cheap-ruler for small(ish) areas and greographiclib for large distances.

                  cheap-ruler 往往非常快但不準確,geographiclib 往往較慢但非常準確.

                  cheap-ruler tends to be very fast but inaccurate, and geographiclib tends to be slower but very accurate.

                  您可能會發現其他實現,每個都有自己的妥協.大地測量學很難,所以 沒有一種真正的方法"來計算距離或方位角.

                  You might find other implementations, each with its own compromises. Geodesy is hard, so there is no "one true way" to calculate distances or azimuths.

                  這篇關于生成給定距離的坐標,距中心的角度的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Check if a polygon point is inside another in leaflet(檢查一個多邊形點是否在傳單中的另一個內部)
                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標記群集圖標顏色,繼承其余默認 CSS 屬性)
                  Trigger click on leaflet marker(觸發點擊傳單標記)
                  How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認加載磁貼顏色?)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)
                  Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在彈出窗口中獲取標記的緯度和經度)
                    <tbody id='Sapvf'></tbody>
                    <legend id='Sapvf'><style id='Sapvf'><dir id='Sapvf'><q id='Sapvf'></q></dir></style></legend>
                      <bdo id='Sapvf'></bdo><ul id='Sapvf'></ul>
                      <tfoot id='Sapvf'></tfoot>
                    • <small id='Sapvf'></small><noframes id='Sapvf'>

                            <i id='Sapvf'><tr id='Sapvf'><dt id='Sapvf'><q id='Sapvf'><span id='Sapvf'><b id='Sapvf'><form id='Sapvf'><ins id='Sapvf'></ins><ul id='Sapvf'></ul><sub id='Sapvf'></sub></form><legend id='Sapvf'></legend><bdo id='Sapvf'><pre id='Sapvf'><center id='Sapvf'></center></pre></bdo></b><th id='Sapvf'></th></span></q></dt></tr></i><div class="zemtfvc" id='Sapvf'><tfoot id='Sapvf'></tfoot><dl id='Sapvf'><fieldset id='Sapvf'></fieldset></dl></div>
                            主站蜘蛛池模板: 多功能三相相位伏安表-变压器短路阻抗测试仪-上海妙定电气 | 代办建筑资质升级-建筑资质延期就找上海国信启航 | 一点车讯-汽车网站,每天一点最新车讯! | 北京律师事务所_房屋拆迁律师_24小时免费法律咨询_云合专业律师网 | 欧盟ce检测认证_reach检测报告_第三方检测中心-深圳市威腾检验技术有限公司 | 合肥废气治理设备_安徽除尘设备_工业废气处理设备厂家-盈凯环保 合肥防火门窗/隔断_合肥防火卷帘门厂家_安徽耐火窗_良万消防设备有限公司 | 建大仁科-温湿度变送器|温湿度传感器|温湿度记录仪_厂家_价格-山东仁科 | 清水-铝合金-建筑模板厂家-木模板价格-铝模板生产「五棵松」品牌 | 土壤肥料养分速测仪_测土配方施肥仪_土壤养分检测仪-杭州鸣辉科技有限公司 | 济南玻璃安装_济南玻璃门_济南感应门_济南玻璃隔断_济南玻璃门维修_济南镜片安装_济南肯德基门_济南高隔间-济南凯轩鹏宇玻璃有限公司 | 123悬赏网_发布悬赏任务_广告任务平台 | 钢格板|镀锌钢格板|热镀锌钢格板|格栅板|钢格板|钢格栅板|热浸锌钢格板|平台钢格板|镀锌钢格栅板|热镀锌钢格栅板|平台钢格栅板|不锈钢钢格栅板 - 专业钢格板厂家 | 通信天线厂家_室分八木天线_对数周期天线_天线加工厂_林创天线源头厂家 | 粉末包装机,拆包机厂家,价格-上海强牛包装机械设备有限公司 | 碳化硅,氮化硅,冰晶石,绢云母,氟化铝,白刚玉,棕刚玉,石墨,铝粉,铁粉,金属硅粉,金属铝粉,氧化铝粉,硅微粉,蓝晶石,红柱石,莫来石,粉煤灰,三聚磷酸钠,六偏磷酸钠,硫酸镁-皓泉新材料 | 出国劳务公司_正规派遣公司[严海] | 开业庆典_舞龙舞狮_乔迁奠基仪式_开工仪式-神挚龙狮鼓乐文化传媒 | 泰州物流公司_泰州货运公司_泰州物流专线-东鑫物流公司 | 旋振筛_不锈钢旋振筛_气旋筛_旋振筛厂家—新乡市大汉振动机械有限公司 | 艾默生变频器,艾默生ct,变频器,ct驱动器,广州艾默生变频器,供水专用变频器,风机变频器,电梯变频器,艾默生变频器代理-广州市盟雄贸易有限公司官方网站-艾默生变频器应用解决方案服务商 | 合肥抖音SEO网站优化-网站建设-网络推广营销公司-百度爱采购-安徽企匠科技 | 电池挤压试验机-自行车喷淋-车辆碾压试验装置-深圳德迈盛测控设备有限公司 | 法钢特种钢材(上海)有限公司 - 耐磨钢板、高强度钢板销售加工 阀门智能定位器_电液动执行器_气动执行机构-赫尔法流体技术(北京)有限公司 | 避光流动池-带盖荧光比色皿-生化流动比色皿-宜兴市晶科光学仪器 东莞爱加真空科技有限公司-进口真空镀膜机|真空镀膜设备|Polycold维修厂家 | 空气弹簧|橡胶气囊|橡胶空气弹簧-上海松夏减震器有限公司 | 盘古网络技术有限公司| 注塑机-压铸机-塑料注塑机-卧式注塑机-高速注塑机-单缸注塑机厂家-广东联升精密智能装备科技有限公司 | 搬运设备、起重设备、吊装设备—『龙海起重成套设备』 | 铝合金风口-玻璃钢轴流风机-玻璃钢屋顶风机-德州东润空调设备有限公司 | EDLC超级法拉电容器_LIC锂离子超级电容_超级电容模组_软包单体电容电池_轴向薄膜电力电容器_深圳佳名兴电容有限公司_JMX专注中高端品牌电容生产厂家 | 大通天成企业资质代办_承装修试电力设施许可证_增值电信业务经营许可证_无人机运营合格证_广播电视节目制作许可证 | 电缆故障测试仪_电缆故障定位仪_探测仪_检测仪器_陕西意联电气厂家 | 合金ICP光谱仪(磁性材料,工业废水)-百科 | SOUNDWELL 编码器|电位器|旋转编码器|可调电位器|编码开关厂家-广东升威电子制品有限公司 | 烟气在线监测系统_烟气在线监测仪_扬尘检测仪_空气质量监测站「山东风途物联网」 | 阳光模拟试验箱_高低温试验箱_高低温冲击试验箱_快速温变试验箱|东莞市赛思检测设备有限公司 | 算命免费_生辰八字_免费在线算命 - 卜算子算命网 | 气动球阀_衬氟蝶阀_调节阀_电动截止阀_上海沃托阀门有限公司 | 立刷【微电签pos机】-嘉联支付立刷运营中心 | 鲁尔圆锥接头多功能测试仪-留置针测试仪-上海威夏环保科技有限公司 | 反渗透阻垢剂-缓蚀阻垢剂厂家-循环水处理药剂-山东鲁东环保科技有限公司 |