fix(cql2-text): align spatial grammar with CQL2 spec#156
Open
constantinius wants to merge 1 commit into
Open
Conversation
Replace non-standard ENVELOPE geometry literal with spec-compliant BBOX(west, south, east, north) using comma-separated signed numbers. Remove non-spec RELATE and BBOX predicate rules from the CQL2 text grammar. The AST nodes (ast.Relate, ast.BBox) are preserved for use by other parsers (FES, ECQL).
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.
Align the CQL2 Spatial conformance class text grammar with the OGC 21-065r2 spec.
Changes
ENVELOPE(x1 x2 y1 y2)and the mergedbboxrule withbbox_literalusing spec-compliantBBOX(west, south, east, north)comma-separated signed numbersBBOX(prop, x1, y1, x2, y2)predicate syntax is legacy OGC Filter, not CQL2 (AST node preserved for FES/ECQL)Spec reference
OGC 21-065r2 §6.8
BNF:
bboxTaggedText = "BBOX" bboxText