# GeoserverTerrainProvider problem

**URL:** <https://community.cesium.com/t/geoserverterrainprovider-problem/1131>\
**Category:** CesiumJS\
**Created:** [April 11, 2014, 12:16pm UTC](https://community.cesium.com/t/geoserverterrainprovider-problem/1131 "2014-04-11T12:16:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nakula\_Fisher](https://avatars.discourse-cdn.com/v4/letter/n/e9c0ed/32.png) [@Nakula\_Fisher](https://community.cesium.com/u/Nakula_Fisher)\
**Post date:** [April 11, 2014, 12:16pm UTC](https://community.cesium.com/t/geoserverterrainprovider-problem/1131/1 "2014-04-11T12:16:21Z")

</div>

Hi,  
Yesterday, I’ve just solved image pyramid problem in geoserver  
Now, I have another one  
I’ve tried to follow this tutorial [https://github.com/kaktus40/Cesium-GeoserverTerrainProvider](https://github.com/kaktus40/Cesium-GeoserverTerrainProvider)  
In order to display my own srtm data (inside geoserver) with cesium  
But unfortunately I can’t display it through my web browser

Here is my full code :

 @import url(Cesium/Widgets/widgets.css);

```
  #cesiumContainer {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      margin: 0;
      overflow: hidden;
      padding: 0;
      font-family: sans-serif;
  }

  body {
      padding: 0;
      margin: 0;
      overflow: hidden;
  }

```

Is there anything wrong?

Thank You

---

<div class="post-metadata">

**Author:** ![abdou](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/abdou/32/2012_2.png) [@abdou](https://community.cesium.com/u/abdou)\
**Post date:** [April 11, 2014, 1:56pm UTC](https://community.cesium.com/t/geoserverterrainprovider-problem/1131/2 "2014-04-11T13:56:16Z")

</div>

Hello, I think there is 2 problems:  
- first you should define an Imagery Layer to "dress" Earth  
- Maybe you've got a CORS issue with your application server ([http://en.wikipedia.org/wiki/Cross-origin\_resource\_sharing](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) and [http://enable-cors.org/](http://enable-cors.org/) ) . To resolve this issue, you need a web server to host your html file.

---

<div class="post-metadata">

**Author:** ![Nakula\_Fisher](https://avatars.discourse-cdn.com/v4/letter/n/e9c0ed/32.png) [@Nakula\_Fisher](https://community.cesium.com/u/Nakula_Fisher)\
**Post date:** [April 11, 2014, 4:47pm UTC](https://community.cesium.com/t/geoserverterrainprovider-problem/1131/3 "2014-04-11T16:47:17Z")

</div>

“Dress” Earth? I don’t get it (after several hours googling and I haven’t found it, LOL XD)

For CORS issue, that was clear, I’ve used internal proxy for my own server

The  
problem is since I’ve tried cesium for the first time until now, I’ve got a  
couple of ambiguity between the DOM parse and the javascript itself

This terrain provider cannot call the srtm data from geoserver, and I don’t have any idea how it could be

I wrote :

var canvas = document.getElementById(’

for DOM method

I’ve changed it from the original one :

var canvas = document.getElementById(’@conteneurCesium’);

So where is the conteneurCesium parse id was embed?

cesiumContainer’);

another  
example, I’ve tried to make SceneModePicker, but I don’t know how to parse the “Scene Intense” inside my code to be generated with SceneModePicker, and where can I find the “Intense” of the scene example?

I want to learn about cesium a lot, although I’m still newbie on javascript…

Thanks anyway

---

<div class="post-metadata">

**Author:** ![abdou](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/abdou/32/2012_2.png) [@abdou](https://community.cesium.com/u/abdou)\
**Post date:** [April 11, 2014, 7:11pm UTC](https://community.cesium.com/t/geoserverterrainprovider-problem/1131/4 "2014-04-11T19:11:11Z")

</div>

My bad, in my sample code I forgot @conteneurCesium. You wrote the good version.  
My example in geoserverTerrainProvider was created from scratch for personal reasons. Maybe it will be easier for you to use a widget or a viewer ([http://cesiumjs.org/Cesium/Build/Documentation/Viewer.html](http://cesiumjs.org/Cesium/Build/Documentation/Viewer.html))

---

<div class="post-metadata">

**Author:** ![Nakula\_Fisher](https://avatars.discourse-cdn.com/v4/letter/n/e9c0ed/32.png) [@Nakula\_Fisher](https://community.cesium.com/u/Nakula_Fisher)\
**Post date:** [April 11, 2014, 9:34pm UTC](https://community.cesium.com/t/geoserverterrainprovider-problem/1131/5 "2014-04-11T21:34:07Z")

</div>

Yeah, maybe I need to see it directly from one example of geoserver terrain provider, would make it easier for me to learn from that  
Hope someone here can show me such kind of example like that

I’ve tried the viewer but the scene mode picker still not displaying, I’ll catch it up to solve this later, after I’ve done with this terrain provider problem

---

<div class="post-metadata">

**Author:** ![abdou](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/abdou/32/2012_2.png) [@abdou](https://community.cesium.com/u/abdou)\
**Post date:** [April 14, 2014, 10:03am UTC](https://community.cesium.com/t/geoserverterrainprovider-problem/1131/6 "2014-04-14T10:03:37Z")

</div>

Ok,

it seems that your imageryprovider (`OpenStreetMapImageryProvider``, bing, webmap, google…) was not configured or cannot reach the imagery source. Maybe a CORS issue? I saw that you use firefox. Can you see in firebug windows if imagery datas can be reached?

`
