Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help me to use cesium terrain server #33

Open
dizzyto opened this issue Nov 27, 2024 · 1 comment
Open

help me to use cesium terrain server #33

dizzyto opened this issue Nov 27, 2024 · 1 comment

Comments

@dizzyto
Copy link

dizzyto commented Nov 27, 2024

Hello.

I’m using Cesium js. and i’m planning to use cesium-terrain-server.
Because I have fine DEM of South Korea.

so I installed Go language, and pull git in my server.
I can reach this data in website.
Here is Log

질문 1

and website capture.

질문 2

Terrain data was made by ctb-tiles(Cesium Terrain Builder).
But in Cesiumjs, i failed to load data.

var terrainProvider = new Cesium.CesiumTerrainProvider({
url: 'http://URL:PORT/customTileset/',
});

viewer.scene.terrainProvider = terrainProvider;
It doesn’t even import the layer.json file.
I checked Chrome dev mode in network tab.

I can reach with browser. it means server and ports are fine.
I can even check the file with the browser.

질문 3

But i failed to get data in cesium js.
How can i fix it?

Please help.

Regards.

@KomilovQobiljon
Copy link

Hey there!
const viewer = new Viewer('cesiumContainer', {
terrainProvider: await CesiumTerrainProvider.fromUrl(
'http://localhost:8003/terrain',
),
});
I have built tiles using Cesium Tile Builder and using them on CesiumJS like this. I can get the tileset but this is the error I get:
"An error occurred in "CesiumTerrainProvider": Failed to obtain terrain tile X: 0 Y: 0 Level: 0. Error message: "RangeError: Invalid typed array length: 8894653434""
Because of that I was trying to use Cesium Tile Server but Docker container for that has some issues. :(
Would be happy if you write a response here in case you find a solution.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants