Skip to content

fix(cql2-text): align spatial grammar with CQL2 spec#156

Open
constantinius wants to merge 1 commit into
mainfrom
cql2-spatial-compliance
Open

fix(cql2-text): align spatial grammar with CQL2 spec#156
constantinius wants to merge 1 commit into
mainfrom
cql2-spatial-compliance

Conversation

@constantinius

Copy link
Copy Markdown
Contributor

Align the CQL2 Spatial conformance class text grammar with the OGC 21-065r2 spec.

Changes

  • BBOX literal: Replace non-standard ENVELOPE(x1 x2 y1 y2) and the merged bbox rule with bbox_literal using spec-compliant BBOX(west, south, east, north) comma-separated signed numbers
  • Remove RELATE: Not in CQL2 spec (AST node preserved for FES/ECQL)
  • Remove BBOX predicate: The BBOX(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

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant