final class SpatialProblem
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A spatial reference system statement that breaks a rule the server checks while it parses it.

The server rejects the statement with the error of the rule. Source: https://dev.mysql.com/doc/refman/8.4/en/create-spatial-reference-system.html.

Describing a missing attributedoctest
(new \SqlSemantics\Platform\MySql\Statement\Server\Problem\SpatialProblem(\SqlSemantics\Platform\MySql\Statement\Server\Problem\SpatialRule::MissingAttribute, \SqlSemantics\Platform\MySql\Statement\Server\Spatial\SpatialAttributeKind::Definition))->message() // => 'Missing mandatory attribute DEFINITION (ER_SRS_MISSING_MANDATORY_ATTRIBUTE).'

Properties§

public SpatialRule $rule
public SpatialAttributeKind|null $attribute = null

Methods§

public function __construct(
    public SpatialRule $rule,
    public SpatialAttributeKind|null $attribute = null,
)

Parameters

$ruleSpatialRuleThe broken rule
$attributeSpatialAttributeKind|nullThe attribute the rule concerns; null for the identifier of the system

Test cases 6§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 5

Relations§

Instantiated in 9