-
Notifications
You must be signed in to change notification settings - Fork 157
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
Validator - validateB3dm header #9
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@JudyWeng
Write a lib file called
validateB3dm
that takes a Buffer containing the contents of a b3dm (like as returned byreadTile
) and checks that it is valid according the the b3dm spec. For now just check that:magic is "b3dm"
version is 1
byteLength is equal to the Buffer's length
batchTableJSONByteLength - skip for now, will require more validation later
batchTableBinaryByteLength - skip for now, will require more validation later
batchLength - skip for now, this is dependent on the glTF within the b3dm
This issue will get more involved and will eventually extend to the other tile formats.
The text was updated successfully, but these errors were encountered: