Optimization of offsets for MAXAR_content_geojson string properties#1415
Open
timoore wants to merge 3 commits into
Open
Optimization of offsets for MAXAR_content_geojson string properties#1415timoore wants to merge 3 commits into
timoore wants to merge 3 commits into
Conversation
Forgot a use of uint64_t
Caught by MacOS and Emscripten builds
j9liu
reviewed
Jul 13, 2026
Contributor
There was a problem hiding this comment.
Update CHANGES.md for this with a note under "Fixes"?
Comment on lines
+137
to
+140
| // Shouldn't happen | ||
| if (parameterIt == &offsetParameters[4]) { | ||
| return offsetParameters[3].gltfConstant; | ||
| } |
Contributor
There was a problem hiding this comment.
If this shouldn't happen, perhaps indicate so with a debug / CESIUM_ASSERT statement instead?
Comment on lines
+318
to
+320
| // Offsets refer to arrays, so their maximum possible size is the platform's | ||
| // size_t. | ||
| using StringOffset = size_t; |
Contributor
There was a problem hiding this comment.
NIT: I was confused by what "refer to" meant on the first read, but maybe this would be clearer?
Suggested change
| // Offsets refer to arrays, so their maximum possible size is the platform's | |
| // size_t. | |
| using StringOffset = size_t; | |
| // Since offsets refer to the offset of array elements, their maximum | |
| // possible size is the platform's size_t. | |
| using StringOffset = size_t; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Offsets to string property values were always stored as 64 bit integers. This PR chooses the appropriate size, which can be UINT8, UINT16, UINT32, or UINT64
Issue number or link
#1414
Author checklist
CHANGES.mdwith a short summary of my change (for user-facing changes).Remaining Tasks
Testing plan
Run a client with a MAXAR_content_geojson tileset and verify that string metadata is still coherent.
Reviewer checklist
Thank you for taking the time to review this PR. By approving a PR you are taking as much responsibility for these changes as the author.
As you review, please go through the checklist below:
CHANGES.mdto make sure they accurately cover the work in this PR.