QGIS-01:加載在線地圖


QGIS-01:加載在線地圖

QGIS-02:符號化漸進設置

 

寫這篇文章的目的有以下幾個方面:

1、最近數據處理主要是用 QGIS,后面也打算慢慢的從 ArcGIS 轉到 QGIS

2、有時會遇到需要和在線地圖一塊處理數據或者看顯示效果的

下面就介紹一些常見的在線服務加載方式。

一、插件加載

這個插件是:QGIS Cloud plugin

可以直接在插件市場搜索到,安裝即可。

 這個插件的界面如上,“添加背景圖層”下拉框可以選擇一些在線地圖。

不過這個在線地圖還是有限的。

二、XYZ 加載

這個方式只能添加切片服務的地圖,即需要 xyz 參數的。

直接在“瀏覽器”面板右鍵“XYZ Tiles”

 

 就可以彈出添加在線地圖的面板。

 這里主要的問題是 url。

下面是收集到的一些在線地圖服務的 url 供參考。

1、國外一些地圖 url:

  Google Maps:https://mt{0-3}.google.com/vt/lyrs=r&x={x}&y={y}&z={z}
  Google Terrain:https://mt{0-3}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}
  Google Roads:https://mt{0-3}.google.com/vt/lyrs=h&x={x}&y={y}&z={z}
  Google Satellite https://mt{0-3}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}
  Google Streets https://mt{0-3}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}
  cartocdn dark nolabel:http://basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png
  cartocdn light nolabels:https://basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png
  ESRI World Imagery:https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}
  ESRI World Light Gray Base:https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}
  ESRI World Topo Map:https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}
  memomaps tilegen:http://tileserver.memomaps.de/tilegen/{z}/{x}/{y}.png
  openstreetmap:https://tile.openstreetmap.org/{z}/{x}/{y}.png
  openstreetmap br:https://tile.openstreetmap.bzh/br/{z}/{x}/{y}.png
  openstreetmap cyclosm:https://a.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png
  openstreetmap hot:https://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png
  stamen terrain:http://a.tile.stamen.com/terrain/{z}/{x}/{y}.png
  stamen watercolor:https://stamen-tiles-c.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg
  thunderforest cycle:https://tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=41f4f936f1d148f69cbd100812875c88
  thunderforest pioneer:https://tile.thunderforest.com/pioneer/{z}/{x}/{y}.png?apikey=41f4f936f1d148f69cbd100812875c88
  wmflabs bw-mapnik:http://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png

2、高德地圖 url:

  影像: 'http://webst0{1-4}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}'
  矢量: 'http://webrd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'
  路網標注: 'http://webst0{1-4}.is.autonavi.com/appmaptile?style=8&x={x}&y={y}&z={z}'

3、天地圖 url:

  影像: 'http://t{0-7}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=你的密鑰'
  路網標注: 'http://t{0-7}.tianditu.gov.cn/DataServer?T=cta_w&x={x}&y={y}&l={z}&tk=你的密鑰'
  標注: 'http://t{0-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=你的密鑰'
  矢量: 'http://t{0-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=你的密鑰'
  地形: 'http://t{0-7}.tianditu.gov.cn/DataServer?T=ter_w&x={x}&y={y}&l={z}&tk=你的密鑰'

 

注意:

  上面的 {0-3}、{1-4}、{0-7} 這些表示該區間內的數值,任取一個即可。(在 openlayers 里面加載直接這樣寫可以,在 QGIS 里需要取一個值)

三、其他加載

上面是比較常見的地圖加載。

對於我們自己發布的一些地圖服務如:WMS、WFS、ArcGIS Server 發布的服務都可以調用。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM