cesium-terrain-server icon indicating copy to clipboard operation
cesium-terrain-server copied to clipboard

Cannot access Terrain Server for Cesium. Port issue?

Open jose-sanchez-morales opened this issue 5 years ago • 1 comments

I have a Node.js server running Cesium Apps in port 8080: http://localhost:8080/Apps/own_terrain.html

Path for the html file is:

C:/Users/username/Downloads/software/Cesium-1.53/Apps/own_terrain.html The terrain files have been generated by using: cesium-terrain-builder-docker

I just took as input a sample DEM in format tif (EPSG:4326) covering a small area in Europe.

Then, I want to run my terrain tiles using cesium-terrain-server in docker.

This is how I built it:

docker run -p 9000:8080 -v C:/Users/username/Downloads/software/Cesium-1.53/Apps/terrain:/data/tilesets/terrain
geodata/cesium-terrain-server So, Cesium running in 8080 and terrain server in 9000,

I also added CORS functionality to my node server at 8080, but nothing has improved.

When I try to access the terrain tiles, i.e:

http://localhost:9000/tilesets/tiles/0/0/0.terrain Nothing happens, Chrome says:

localhost didn’t send any data. ERR_EMPTY_RESPONSE And the same when integrating that into the own_terrain.html:

Cesium.js:445 GET http://localhost:9000/tilesets/tiles/layer.json net::ERR_EMPTY_RESPONSE

What am I doing wrong?

jose-sanchez-morales avatar Feb 01 '19 17:02 jose-sanchez-morales

same

hadirsa avatar Apr 11 '19 06:04 hadirsa