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

  • <tfoot id='HBiGR'></tfoot>

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

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

      1. <legend id='HBiGR'><style id='HBiGR'><dir id='HBiGR'><q id='HBiGR'></q></dir></style></legend>

        使用傳單獲取 geojson 大陸/國家/州的中心

        Get center of geojson Continent/Country/State with leaflet(使用傳單獲取 geojson 大陸/國家/州的中心)
      2. <i id='FOZNl'><tr id='FOZNl'><dt id='FOZNl'><q id='FOZNl'><span id='FOZNl'><b id='FOZNl'><form id='FOZNl'><ins id='FOZNl'></ins><ul id='FOZNl'></ul><sub id='FOZNl'></sub></form><legend id='FOZNl'></legend><bdo id='FOZNl'><pre id='FOZNl'><center id='FOZNl'></center></pre></bdo></b><th id='FOZNl'></th></span></q></dt></tr></i><div class="5bpnfvn" id='FOZNl'><tfoot id='FOZNl'></tfoot><dl id='FOZNl'><fieldset id='FOZNl'></fieldset></dl></div>
        • <legend id='FOZNl'><style id='FOZNl'><dir id='FOZNl'><q id='FOZNl'></q></dir></style></legend>

                <tbody id='FOZNl'></tbody>
              <tfoot id='FOZNl'></tfoot>
              • <bdo id='FOZNl'></bdo><ul id='FOZNl'></ul>
                • <small id='FOZNl'></small><noframes id='FOZNl'>

                • 本文介紹了使用傳單獲取 geojson 大陸/國家/州的中心的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  有沒有辦法為由多個多邊形對象組成的國家/大陸(例如美國、加拿大,除了主要陸地部分還有一個島嶼)找到一個中心?我試圖使用傳單的 Layer.getCenter() 甚至 Layer.getBounds().getCenter(),但這些方法肯定不適用于這類國家并返回no-go"結果.

                  可以通過以下鏈接(傳單游樂場)查看示例.只需滾動并單擊美國或加拿大,然后查看 circleMarker 將出現的位置.然后嘗試點擊較小的實體,例如美國南部的一些島嶼,他們會將此標記精確地放置在它們的中心:


                  (來源:postgis.net)

                  (圖 1.根據 PostGIS 的 ST_Centroid 文檔的多邊形質心)

                  所以我猜你真正想問的是:

                  <塊引用>

                  給定一個多邊形或多多邊形,我如何計算一個中心(或類似中心的點),它保證在多邊形內并在視覺上看起來在它的中心,以便使用 Leaflet 將符號器添加到該點?

                  為此,答案是 極難訪問" 由 實現polylabel:?多邊形輪廓最遠的內部點?.

                  Is there a way of finding a center for countries/continents which consist of more than one polygon object(ex. USA, Canada, which have an islands besides main land part)? I was trying to use leaflet's Layer.getCenter() or even Layer.getBounds().getCenter(), but those methods certainly don't work for this type of countries and return a "no-go" results.

                  Example can be seen by the following link (leaflet playground). Just scroll and click on US or Canada and see where circleMarker will appear. Then try clicking on smaller entities, like some islands on south of US, they shall place this marker precisely on center of'em:

                  http://playground-leaflet.rhcloud.com/voyi/1/edit?html,output

                  解決方案

                  Leaflet can only calculate the center of the bounding box of a feature. With a bit of help from other libraries (such as Turf.js) you can calculate the centroid of the polygon or (multipolygon).

                  In any case, you are getting confused because sometimes the centroid is not within the polygon (or multipolygon):


                  (source: postgis.net)

                  (Figure 1. Centroid of a polygon as per PostGIS's ST_Centroid documentation)

                  So I guess that what you really wanted to ask is:

                  Given a polygon or multipolygon, how can I calculate a center (or center-like point) which is guaranteed to be within the polygon and looks visually in the center of it, in order to add symbolizers to that point with Leaflet?

                  And for that, the answer is "pole of inaccessibility" as implemented by polylabel: ?the most distant internal point from the polygon outline?.

                  這篇關于使用傳單獲取 geojson 大陸/國家/州的中心的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 中的默認加載磁貼顏色?)
                  Add external geojson to leaflet layer(將外部geojson添加到傳單層)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)

                        <tbody id='H1MWx'></tbody>
                    • <tfoot id='H1MWx'></tfoot>
                        <bdo id='H1MWx'></bdo><ul id='H1MWx'></ul>

                          <legend id='H1MWx'><style id='H1MWx'><dir id='H1MWx'><q id='H1MWx'></q></dir></style></legend>

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

                            <i id='H1MWx'><tr id='H1MWx'><dt id='H1MWx'><q id='H1MWx'><span id='H1MWx'><b id='H1MWx'><form id='H1MWx'><ins id='H1MWx'></ins><ul id='H1MWx'></ul><sub id='H1MWx'></sub></form><legend id='H1MWx'></legend><bdo id='H1MWx'><pre id='H1MWx'><center id='H1MWx'></center></pre></bdo></b><th id='H1MWx'></th></span></q></dt></tr></i><div class="f5tbbxh" id='H1MWx'><tfoot id='H1MWx'></tfoot><dl id='H1MWx'><fieldset id='H1MWx'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 北京租车公司_汽车/客车/班车/大巴车租赁_商务会议/展会用车/旅游大巴出租_北京桐顺创业租车公司 | 德国GMN轴承,GMN角接触球轴承,GMN单向轴承,GMN油封,GMN非接触式密封 | 坏男孩影院-提供最新电影_动漫_综艺_电视剧_迅雷免费电影最新观看 | 袋式过滤器,自清洗过滤器,保安过滤器,篮式过滤器,气体过滤器,全自动过滤器,反冲洗过滤器,管道过滤器,无锡驰业环保科技有限公司 | 电动葫芦|防爆钢丝绳电动葫芦|手拉葫芦-保定大力起重葫芦有限公司 | 智能风向风速仪,风速告警仪,数字温湿仪,综合气象仪(气象五要素)-上海风云气象仪器有限公司 | 皮带机_移动皮带机_大倾角皮带机_皮带机厂家 - 新乡市国盛机械设备有限公司 | led全彩屏-室内|学校|展厅|p3|户外|会议室|圆柱|p2.5LED显示屏-LED显示屏价格-LED互动地砖屏_蕙宇屏科技 | 「银杏树」银杏树行情价格_银杏树种植_山东程锦园林 | 圆盘鞋底注塑机_连帮鞋底成型注塑机-温州天钢机械有限公司 | 商用绞肉机-熟肉切片机-冻肉切丁机-猪肉开条机 - 广州市正盈机械设备有限公司 | 锂电混合机-新能源混合机-正极材料混料机-高镍,三元材料混料机-负极,包覆混合机-贝尔专业混合混料搅拌机械系统设备厂家 | 动库网动库商城-体育用品专卖店:羽毛球,乒乓球拍,网球,户外装备,运动鞋,运动包,运动服饰专卖店-正品运动品网上商城动库商城网 - 动库商城 | 股票入门基础知识_股票知识_股票投资大师_格雷厄姆网 | nalgene洗瓶,nalgene量筒,nalgene窄口瓶,nalgene放水口大瓶,浙江省nalgene代理-杭州雷琪实验器材有限公司 | 东莞螺丝|东莞螺丝厂|东莞不锈钢螺丝|东莞组合螺丝|东莞精密螺丝厂家-东莞利浩五金专业紧固件厂家 | 必胜高考网_全国高考备考和志愿填报信息平台 | 食品质构分析仪-氧化诱导分析仪-瞬态法导热系数仪|热冰百科 | 高空重型升降平台_高空液压举升平台_高空作业平台_移动式升降机-河南华鹰机械设备有限公司 | 存包柜厂家_电子存包柜_超市存包柜_超市电子存包柜_自动存包柜-洛阳中星 | elisa试剂盒-PCR试剂盒「上海谷研实业有限公司」 | 基本型顶空进样器-全自动热脱附解吸仪价格-AutoHS全模式-成都科林分析技术有限公司 | 广州二手电缆线回收,旧电缆回收,广州铜线回收-广东益福电缆线回收公司 | 武汉刮刮奖_刮刮卡印刷厂_为企业提供门票印刷_武汉合格证印刷_现金劵代金券印刷制作 - 武汉泽雅印刷有限公司 | 电子书导航网_电子书之家_电子书大全_最新电子书分享发布平台 | 房在线-免费房产管理系统软件-二手房中介房屋房源管理系统软件 | 烟雾净化器-滤筒除尘器-防爆除尘器-除尘器厂家-东莞执信环保科技有限公司 | 众品家具网-家具品牌招商_家具代理加盟_家具门户的首选网络媒体。 | 转子泵_凸轮泵_凸轮转子泵厂家-青岛罗德通用机械设备有限公司 | 北京开源多邦科技发展有限公司官网 | PC阳光板-PC耐力板-阳光板雨棚-耐力板雨棚,厂家定制[优尼科板材] | 不锈钢复合板厂家_钛钢复合板批发_铜铝复合板供应-威海泓方金属复合材料股份有限公司 | 除尘器布袋骨架,除尘器滤袋,除尘器骨架,电磁脉冲阀膜片,卸灰阀,螺旋输送机-泊头市天润环保机械设备有限公司 | 上海阳光泵业制造有限公司 -【官方网站】 | 洁净棚-洁净工作棚-无菌室-净化工程公司_北京卫护科技有限公司 | 流量检测仪-气密性检测装置-密封性试验仪-东莞市奥图自动化科技有限公司 | 工业机械三维动画制作 环保设备原理三维演示动画 自动化装配产线三维动画制作公司-南京燃动数字 聚合氯化铝_喷雾聚氯化铝_聚合氯化铝铁厂家_郑州亿升化工有限公司 | 成都亚克力制品,PVC板,双色板雕刻加工,亚克力门牌,亚克力标牌,水晶字雕刻制作-零贰捌广告 | 番茄畅听邀请码怎么输入 - Dianw8.com | 北京成考网-北京成人高考网 | 无锡装修装潢公司,口碑好的装饰装修公司-无锡索美装饰设计工程有限公司 |