惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
D
Docker
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
Vercel News
Vercel News
F
Fortinet All Blogs
B
Blog
Recent Announcements
Recent Announcements
A
About on SuperTechFans
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
月光博客
月光博客

博客园 - 一飞秒的爱

【AI】多波束测深数据XSE信息提取 新版本Cesium加载3dtiles遇到的问题 新版本Cesium离线部署方法 python批量调整docx段落格式 Cesium地形切片踩坑记 Cesium的搜索框如何自定义功能 Cesium中显示栅格数据查询结果 Cesium离线部署的正确方法 GDAL制作晕渲图的正确方法 吐槽一下国内卫星遥感数据共享现状 【原创】GlobalMapper中文地图包 【原创】一套全球地形晕渲配色方案 【原创】使用SNAP合成MODIS真彩色影像 [原创]注册表 [原创]电信网络限制破解 [原创]数据恢复 [原创]PS制作迷彩 [原创]Globalmapper晕渲制作 [原创]Worldwind数据裁切与加载
Cesium如何加载PBS发布的WMTS服务
一飞秒的爱 · 2023-04-13 · via 博客园 - 一飞秒的爱

Cesium加载Geoserver发布的WMTS服务,url示例:

'http://localhost:8080/geoserver/gwc/service/wmts/rest/nurc:mosaic/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png',

而PBS(PortableBasemapServer)发布的地址是这样:

http://192.168.58.1:7080/PBS/rest/services/cngooglemap/MapServer/WMTS

在Cesium中使用时可以通过TMS形式加载即UrlTemplateImageryProvider,url改写为:

http://192.168.58.1:7080/PBS/rest/services/cngooglemap/MapServer/WMTS/tile/1.0.0/cngooglemap/default/GoogleMapsCompatible/{z}/{reverseY}/{x}.jpg

注意这里反向的写法是reverseY而不是-y