Merged
Conversation
…es.py to test custom validation. Validate using simplified axes
…ape`, `shape` and `tileShape`. tileSet: Validate only tiled variables appear in the urlTemplate parameterGroup: Add validation, in covcollection and coverage, fix cases where ValueError is raised due to incorrect check, catEncoding was inproperly validated Run validator inside runtime_validator instead of main
jonblower
approved these changes
Mar 12, 2026
Member
jonblower
left a comment
There was a problem hiding this comment.
Must admit that I haven't reviewed the code in detail but it looks reasonable and the tests behave as expected. Many thanks for this important contribution!
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.
source=urlflag. Remember to use absolute URLs with schemeNdArray:axisNames,shape,tileShapecontains valid lengths and arrangement. Does not check for edge tiles though. Ranges also reference existing parametersdataTypeandaxisNamesfrom a loaded TileSet are the same as those of parent TiledNdArraycategoryEncoding: If specified, then the membercategoriesis expected in theobservedPropertyTiledNdArray: Validate thaturlTemplateis valid (variables are of tiled axisNames).media type: If an URL is passed, then expect the response to have the correct content-type header. If it isapplication/prs.coverage+json, warn of the deprecation, else warn of the incorrect header valuecategoryEncoding: If specified, values of categories are unique. Because of the approach, expect that values of ranges are integerscategoryEncoding: If specified, then the values of the NdArray's should only include those in categoryEncodingParameterGroup: elements ofmembersreference existing parametersThis MR partially addresses #opengeospatial/CoverageJSON#179
This validation approach fetches all variations of a TiledNdArray and recursively tests resulting ranges thus increasing validation time