WMTS failed to load imagery

Sorry for the delay. Yes, I have already solved it. The problem is specific to TianDiTu Map service. I think somehow the TianDiTu Server needs to confirm the request is from browser. I made some changes on the files CesiumWebMapTileServiceRasterOverlay.h and CesiumWebMapTileServiceRasterOverlay.cpp to add Header to the request. Then I made some settings in Cesium for Unreal WMTS RasterOverlay. And it worked. See the details below.

  1. The change to CesiumWebMapTileServiceRasterOverlay.h

  1. The change to CesiumWebMapTileServiceRasterOverlay.cpp

  1. The settings in Cesium for Unreal depend on which url is filled. The following is just an example for Longitude and latitude projection. The WebMercatorProjection is different and simple.

For more details ,Please visit
Cesium for Unreal 加载天地图P2-修改和编译源代码_哔哩哔哩_bilibili
I am the UP.

1 Like