Is anyone using TileMapServiceTerrainProvider or WebMapServiceTerrainProvider?

Hello

I'm trying to load terrain map using WMS but couldn't with latest built. I'm able to see the grayscale image in the 3D map. I have already added WebMapServiceTerrainProvider.js in the source code but still no luck. I'm assuming that a lot has been changed in the TerrainProvider class that's why it isn't working. The only solution I'm left with is to modify the WMSTP js file. I have attached the file. Could someone please check if it works with the latest built if not help me modify it?

Thanks,

Naman

WebMapServiceTerrainProvider.js (10.3 KB)

Hi Naman,

Getting terrain from a WMS server is tricky, and not just on the client (Cesium) side. Your best bet is to use one of the existing terrain solutions.

The best one by far (I’m only a little biased) is STK Terrain Server. STK Terrain Server is used to create and host STK World Terrain, which is Cesium’s worldwide, high-resolution terrain tileset. It has a friendly UI for building terrain tilesets, has great performance, and the end result in Cesium will be both higher quality and higher performance than other options because it uses the quantized-mesh-1.0 tile format.

Another option is Cesium Terrain Builder, which can generate heightmap terrain tiles for use with CesiumTerrainProvider.

And finally there’s GeoserverTerrainProvider, which loads terrain from the open-source Geoserver WMS server.

Kevin

To add to Kevin’s comments, one thing you should be careful with when serving raw heightmaps from WMS or the Heightmap-1.0 terrain solutions is that you will quickly lose terrain features as you move towards the root of the tile pyramid. The reason for this is that height values are uniformly sampled in these formats. As you approach the root of the tile pyramid, your sampling steps increase and you will lose terrain features in between the samples. The quantized-mesh format can describe a mesh that is irregular, meaning that the mesh can be defined by the points that best represents the terrain features in the tile. In other words, with a quantized-mesh tile you will find more vertices around peaks and cliffs, and fewer vertices in flat areas.

You’ll also see that the quantized-mesh supports extensions that enhance visual quality of the terrain tiles, as needed. The quantized-mesh currently supports terrain lighting, while water mask support is currently in development.

If your application can access the internet, you can give the CesiumTerrainProvider a try and see if the STK World Terrain dataset is at an acceptable resolution. However, if you have higher resolution terrain data or must operate on a private network, the STK Terrain Server can be licensed for producing your terrain tileset and serving terrain to your applications.

Alex

Hi Kevin,

I used the GeoserverTerrainProvider plugin and here is the result. not sure what’s going wrong ( @Alexander, is it related to the concern you were raising? ). would be nice if we could add it to cesium’s terrain engine.

Unfortunately, my application can’t use internet.

Naman

Hello, I am the designer of GeoserverTerrainProvider plugin. Your image is very strange, the format of your geotiff is int 16 grayscale ? Maybe your geotiff was defined with float 32 data format.

Hi there, I have attached the 2 tiff formats that I tried with. not sure if they are 16 or 32. Also, the terrain took time to show-up (slower than images ).

145.tiff (478 Bytes)

277.tif (6.15 KB)

Hello,
it's flot32 grayscale geotiff which is incompatible with the plugin. Moreover there is no coordinate system...

have you removed the webmapserviceterrainprovider or they are still there?if you have removed then how to store raster(*.tff) data on the cesium?please answer