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

Not generated layer.json #77

Open
hemincan opened this issue Sep 26, 2018 · 9 comments
Open

Not generated layer.json #77

hemincan opened this issue Sep 26, 2018 · 9 comments

Comments

@hemincan
Copy link

add -l at the ctb-tile but found 'unrecognized flag -l'
can somebody help me?

@hemincan
Copy link
Author

see this's docker,Download this image to solve your problem。
https://github.com/tum-gis/cesium-terrain-builder-docker

@Hisos
Copy link

Hisos commented May 18, 2020

Why the parameter -l for ctb-tile is missing?

@ahuarte47
Copy link

Hi @Hisos, you have to use this PR, the master branch does not contain the QuantizedMesh or -l flag support.

Or you can use this Docker image, it already contains all of these capabilities.

@Hisos
Copy link

Hisos commented May 18, 2020

Hi @ahuarte47, thanks for your help. I'm sorry, How can I get your PR codes?

@ahuarte47
Copy link

@Hisos
Copy link

Hisos commented May 18, 2020

@ahuarte47 thank you! I have succeed.

@Hisos
Copy link

Hisos commented May 19, 2020

Hi, @ahuarte47. Do you have a small dem.tif converted successfully by your program? I have tried several dem.tifs, the conversion is ok, but the cesium failed to load the data: "An error occurred in "CesiumTerrainProvider": Failed to obtain terrain tile X: 1 Y: 0 Level: 0.". I tried another software named cesiumLab for the same dem.tif, and the .terrain is ok for cesium. I tried preprocessing the dem.tif by ArcmAap to deal the NoData=0. I tried "-f Mesh" and "-f Mesh -l" or not. All the ways is unamiable for me. What a headache, haha.

@ahuarte47
Copy link

ahuarte47 commented May 19, 2020

Do you have defined the Content-Encoding: gzip content negotiation header?

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding

This could be useful for you:
https://stackoverflow.com/questions/31164976/unable-to-serve-terrain-files-in-cesium-sandcastle
#2 (comment)

@Hisos
Copy link

Hisos commented May 19, 2020

That's GZip. CTB defaultly gzips the data, Most of the blogs don't mention us of this. So I was confused why the cesium loads terrain failly. That will be ok after the web server defines the Content-Encoding: gzip. Thanks again!

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

3 participants