cesium-terrain-builder
cesium-terrain-builder copied to clipboard
Not generated layer.json
add -l at the ctb-tile but found 'unrecognized flag -l' can somebody help me?
see this's docker,Download this image to solve your problem。 https://github.com/tum-gis/cesium-terrain-builder-docker
Why the parameter -l for ctb-tile is missing?
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.
Hi @ahuarte47, thanks for your help. I'm sorry, How can I get your PR codes?
You can clone or fork my branch: https://github.com/ahuarte47/cesium-terrain-builder/tree/master-quantized-mesh
@ahuarte47 thank you! I have succeed.
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.
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 https://github.com/geo-data/cesium-terrain-builder/issues/2#issuecomment-57081355
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!