# Loading raster tileset from url

**URL:** <https://community.cesium.com/t/loading-raster-tileset-from-url/30548>\
**Category:** Cesium for Unreal\
**Created:** [March 14, 2024, 5:26pm UTC](https://community.cesium.com/t/loading-raster-tileset-from-url/30548 "2024-03-14T17:26:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ureadulose](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ureadulose/32/14000_2.png) [@ureadulose](https://community.cesium.com/u/ureadulose)\
**Post date:** [March 14, 2024, 5:26pm UTC](https://community.cesium.com/t/loading-raster-tileset-from-url/30548/1 "2024-03-14T17:26:38Z")

</div>

Hello!

As far as I understand I can load a terrain tileset for determining height for the 3D tiles to the ion, then access this ion asset from Cesium 3D Tileset and add a raster imagery component on it for raster tiles.

So far everything with heights tileset works fine (I cant see changes inside Unreal) but I cannot access raster tileset (TMS or WMS).

How can I do this?

For example, I have this TMS link: [https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{y}/{x}.png](https://s3.amazonaws.com/elevation-tiles-prod/terrarium/%7Bz%7D/%7By%7D/%7Bx%7D.png) - what should I do with CesiumTileMapServiceRasterOverlay component so the tileset could be accessed and loaded?

p.s. I also tried CesiumDebugColorizeTilesRasterOverlay - and it works fine (it appears in the world with my custom terrain tileset from ion)

---

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [March 18, 2024, 3:54pm UTC](https://community.cesium.com/t/loading-raster-tileset-from-url/30548/2 "2024-03-18T15:54:31Z")

</div>

Hi again @ureadulose,

Is this question related to (or even the same as) this post you’ve made [here](https://community.cesium.com/t/loading-tileset-from-a-local-directory/30545)? If so, please let us know which thread better reflects your question, so that we can keep discussion to a single thread and avoid duplicating answers. Thank you!

---

<div class="post-metadata">

**Author:** ![sandwitch](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sandwitch/32/22456_2.png) [@sandwitch](https://community.cesium.com/u/sandwitch)\
**Post date:** [April 1, 2024, 9:00am UTC](https://community.cesium.com/t/loading-raster-tileset-from-url/30548/3 "2024-04-01T09:00:42Z")

</div>

Hello!

I am sorry for an enormous delay in answer.

It’s similar one. I just thought that it would be better to separate it in two posts for local and for web access for tiles.

So, to make it clear, I am trying to implement both ways. I guess it would be better if we would discuss the remote variant.

I can’t figure out how to access tiles from public services. For example:

1. I got an API from [cloud.maptiler.com](http://cloud.maptiler.com) for a Raster Tiles ([here](https://docs.maptiler.com/openlayers/examples/get-started/?key=1qhN5eyfgz0PRXGP5I3W&mapId=toner-v2&_gl=1*dr0agn*_gcl_au*MjA0OTQwNzM1OC4xNzExOTYwMTI4*_ga*NDA4OTQ3OTc1LjE3MTE5NjAxMjg.*_ga_K4SXYBF4HT*MTcxMTk2MDEyOC4xLjEuMTcxMTk2MDcxMS42MC4wLjA) is an example for this map).  
I added a blank Cesium3DTileset, put a terrain from a cesium Ion (asset Id: 2499908) - it successfully loaded, the terrain was blank. After that I added a CesiumTileMapServiceRasterOverlay component on it. I put the URL:

> [https://api.maptiler.com/maps/toner-v2/tiles.json?key=myapi](https://api.maptiler.com/maps/toner-v2/tiles.json?key=myapi)

to the Cesium \> ‘Url’ property inside CesiumTileMapServiceRasterOverlay component. But then i got this error:

> LogCesium: Error: [2024-04-01 11:43:16.032] [error] [RasterOverlayCollection.cpp:127] Unable to parse Tile map service XML document.

1. Also [here (api3.geo.admin.ch)](https://api3.geo.admin.ch/services/sdiservices.html#id54) I found a free 3D Tiles api:

> [https://vectortiles.geo.admin.ch/3d-tiles/ch.swisstopo.swisstlm3d.3d/20201020/tileset.json](https://vectortiles.geo.admin.ch/3d-tiles/ch.swisstopo.swisstlm3d.3d/20201020/tileset.json)

I tried to put it directly to the Cesium3DTileset \> Url. It didn’t show any errors, but the terrain was not here. I also tried to add DebugColorizeTiles overlay but they didn’t appear in the world with this tileset also.

1. Again from [here (api3.geo.admin.ch)](https://api3.geo.admin.ch/services/sdiservices.html#id54) I also found wmts api, added CesiumWebMapTileServiceRasterOverlay, put

> [https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg](https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/%7Bz%7D/%7Bx%7D/%7By%7D.jpeg)

but again no errors were raised and the overlay still was not here.

A little remark: with terrain tileset from my Cesium Ion accound with Id 2499908, the debug overlay shows up correctly.

So, I would like to know what am I doing wrong.

And again, sorry for a such a big delay ☹

p.s. Oops, just noticed that answered you from another account 😃
