Skip to content

Story - Reject SRIDs in the WKT Strategy #29

Closed

Description

@Alexandre-T

Reject SRIDs in the WKT Strategy

As a developer using the WKT Strategy,
I want it to reject input containing an SRID detected by the Lexer,
so that I receive a clear error instead of an incorrect or incomplete decode.

Context

The Lexer can detect an SRID in WKT input. The WKT Strategy does not support SRIDs, so it must report this limitation explicitly.

Acceptance Criteria

  • When the Lexer detects an SRID, the WKT Strategy throws an InvalidArgumentException.
  • The exception message contains exactly: WKT Strategy does not support SRID. Please use the Extended WKT Strategy.
  • Input containing an SRID is not decoded as though it did not contain one.

Definition of Done

The project's common Definition of Done applies.

  • composer test-local exits without error.
  • composer quality exits without error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions