3316
MariaDBWARNINGCriticalSpatial / GISHIGH confidence

Spatial Reference System not found; axis order may be incorrect

Production Risk

Low — data may be misinterpreted if axis order is wrong.

How to reproduce
trigger — this will error
trigger — this will error
SELECT ST_AsText(ST_GeomFromText('POINT(1 2)', 99998));

expected output

Warning 3316: No SRS found for SRID 99998; axis order assumed (X, Y).

Fix

Register the SRS first

Register the SRS first
CREATE SPATIAL REFERENCE SYSTEM 99998 NAME 'custom' DEFINITION '...';

Why this works

Once registered, the axis order is read from the SRS definition.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3316 ER_WARN_SRS_NOT_FOUND_AXIS_ORDER

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MariaDB errors