-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Update approximateTerrainHeights.json #6557
Comments
While you're looking at this: is there an error handler that's supposed to fire if approximateTerrainHeights fails to load? I had a configuration error that was causing the request to bomb and I burned a little too much time trying to figure out why one system wouldn't show any entities when the exact same code worked on another system (spoiler: without approximate terrain heights, the entities never finish getting their primitives). It would be really nice to get at least an error on the console to the effect that this super important part of Viewer initialization did not (and will not) happen. (I can file a separate issue, if there's not already an appropriate event.) |
@thw0rted thanks for pointing that out, it doesn't look like we have an |
It was pointed out on the forum that we could significantly decrease the size of this file by rounding the numbers, which should have negligible impact because it's an approximation anyway. @tfili given the large terrain updates lately, we should probably do this soon, do you remember where the script to generate this file is? |
Related forum post https://groups.google.com/d/msg/cesium-dev/poDx_yv49cQ/tSFKjWPZBwAJ |
Optimize approximateTerrainHeights file for quicker page loads (Solves #6557)
Rounding the values was added in #7959 but we still want to regenerate the values at some point so I'm leaving this issue open |
Hi @hpinkos , it looks like the error-handling issue was never resolved. Is this still on the radar at all? Actually, I was investigating some other issues I have (for boring, personal reasons) with the viewer dynamically loading content after startup, and it occurred to me that I can't think of a circumstance where you'd use Cesium without any GroundPrimitive, which depends on |
This was actually easier than what I suggested before, because if you have a JSON file you can turn it into a valid ES6 module by just adding
|
Given we'd like to move in the direction of removing the dependency on ApproximateTerrainHeights, I'm going to close this issue. |
approximateTerrainHeights.json
was generated from the STK World Terrain as of #3903, with all of the improvements made to Cesium World Terrain, we should regenerate this file.Long term plan is still for this data to be accurately provided by each terrain provider, but
approximateTerrainHeights.json
will always be a good fallback for servers that don't have the information.The text was updated successfully, but these errors were encountered: