前言
QGIS使用瓦片有两种方式:
- QuickMapServices插件
- 添加XYZ链接
我通过QGIS的QuickMapServices插件获取了一些主流地图的地址,分享给大家,你可以通过XYZ的方式进行使用!
影像对比
地址分享
下面的XML是我已经添加好的地址,你可以将此存为XML文件,导入QGIS。注意里面有两个key,天地图和mapbox,需要自己申请。
<!DOCTYPE connections>
<qgsXYZTilesConnections version="1.0">
<xyztiles tilePixelRatio="0" url="http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=0&dir=dir_n" username="" name="Bing影像" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://t1.dynamic.tiles.ditu.live.com/comp/ch/{q}?mkt=en-US&ur=CN&it=G,RL&n=z&og=606&cstl=vb" username="" name="Bing矢量无标注(有偏移)" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="http://ecn.dynamic.t0.tiles.virtualearth.net/comp/CompositionHandler/{q}?mkt=en-us&it=G,VE,BX,L,LA&shading=hill" username="" name="Bing矢量(有偏移)" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}" username="" name="ESRI影像" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}" username="" name="ESRI矢量" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}" username="" name="Google影像" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url=" https://mt1-cdn.mapsvc.com/maps/vt?lyrs=s&x={x}&y={y}&z={z}" username="" name="Google影像-国内" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4M29iazA2Z2gycXA4N2pmbDZmangifQ.-g_vE53SD2WrJ6tFX7QHmA" username="" name="Mapbox影像" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://a.tile.opentopomap.org/{z}/{x}/{y}.png" username="" name="OpenTopoMap" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="http://sat04.maps.yandex.net/tiles?l=sat&x={x}&y={y}&z={z}" username="" name="Yandex影像" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}" username="" name="水经注" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://tile.openstreetmap.org/{z}/{x}/{y}.png" username="" name="OpenStreetMap" referer="" zmin="0" zmax="19" authcfg="" password=""/>
<xyztiles tilePixelRatio="1" url="https://t1.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=你的tdtKey" username="" name="天地图影像" referer="" zmin="0" zmax="20" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://t1.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=你的tdtKey" username="" name="天地图影像标注" referer="" zmin="0" zmax="18" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://t1.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=你的tdtKey" username="" name="天地图矢量" referer="" zmin="0" zmax="18" authcfg="" password=""/>
<xyztiles tilePixelRatio="0" url="https://t1.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=你的tdtKey" username="" name="天地图矢量标注" referer="" zmin="0" zmax="18" authcfg="" password=""/>
<xyztiles url="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s&x={x}&y={y}&z={z}" zmin="0" authcfg="" password="" tilePixelRatio="0" username="" name="谷歌-中国-影像" zmax="20" referer=""/>
<xyztiles url="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s,m&gl=CN&x={x}&y={y}&z={z}" zmin="0" authcfg="" password="" tilePixelRatio="0" username="" name="谷歌-中国-注记" zmax="20" referer=""/>
</qgsXYZTilesConnections>