3273
MySQLERRORNotableGIS / GeometryHIGH confidence

Target CRS for ST_Transform is not supported

Production Risk

Medium — coordinate transformation fails.

How to reproduce
trigger — this will error
trigger — this will error
SELECT ST_AsText(ST_Transform(ST_GeomFromText('POINT(139.7 35.7)', 4326), 0));

expected output

ERROR 3273 (HY000): The transformation target CRS is not supported.

Fix

Use a valid geographic target SRS

Use a valid geographic target SRS
SELECT ST_AsText(ST_Transform(ST_GeomFromText('POINT(139.7 35.7)', 4326), 32654));

Why this works

SRID 32654 is a projected UTM zone; use a registered geographic or projected SRS.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3273 ER_TRANSFORM_TARGET_CRS_NOT_SUPPORTED

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

← All MySQL errors