final class SpatialChecks
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

Checks a spatial reference system statement as the server does while it parses it.

Rule: MYSQL-SRS-CHECK-001. Mirrors the srs_attributes actions and PT_create_srs::make_cmd / PT_drop_srs::make_cmd of the server: the identifier is 1 to 2^32-1 (gis::srid_t); each attribute is written at most once; NAME and DEFINITION are mandatory; NAME and ORGANIZATION are not empty and neither start nor end with whitespace; no attribute holds a control character (0x00-0x1F, 0x7F); NAME holds at most 80 characters, DEFINITION 4096, ORGANIZATION 256 and DESCRIPTION 2048, counted as UTF-8 characters; the organization's identifier is at most 2^32-1. Each broken rule is one SpatialProblem; the server stops at the first. Terminates: one pass over the attributes. Source: https://dev.mysql.com/doc/refman/8.4/en/create-spatial-reference-system.html. Status: Implemented.

Methods§

Private surface 1§

Implementation details, listed for orientation only.

private const LIMITS = ['NAME' => 80, 'DEFINITION' => 4096, 'ORGANIZATION' => 256, 'DESCRIPTION' => 20…

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 2
Method calls 3