3280
MariaDBERRORCriticalGIS / GeometryHIGH confidence

SRS definition has an invalid longitude of origin

Production Risk

Low — affects custom SRS definitions only.

How to reproduce
trigger — this will error
trigger — this will error
CREATE SPATIAL REFERENCE SYSTEM 100002 NAME 'Bad SRS2' DEFINITION 'PROJCS[...,PARAMETER["central_meridian",200],...]';

expected output

ERROR 3280 (HY000): Invalid longitude of origin in spatial reference system definition.

Fix

Use valid longitude

Use valid longitude
-- Set central_meridian/longitude_of_origin to a value between -180 and 180.

Why this works

Valid longitude values are constrained to the full meridian range.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3280 ER_SRS_INVALID_LONGITUDE_OF_ORIGIN

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

← All MariaDB errors