Error
Error Code:
3643
MySQL Error 3643: Geometry SRID Mismatch
Description
This error occurs when you attempt to store or update spatial geometry data in a column where the Spatial Reference System Identifier (SRID) of the geometry does not match the SRID defined for that column. MySQL enforces SRID consistency to ensure data integrity for spatial operations.
Error Message
The SRID of the geometry does not match the SRID of the column '%s'. The SRID of the geometry is %lu, but the SRID of the column is %lu. Consider changing the SRID of the geometry or the SRID property of the column.
Known Causes
4 known causesMismatched Geometry SRID
An insert or update statement provides geometry data with an SRID that is different from the SRID configured for the target spatial column.
Incorrect Column SRID Definition
The spatial column was created or altered with a specific SRID property, which then conflicts with the SRID of the geometry being provided.
Geometry SRID Not Explicitly Set
Geometry data was created without an explicit SRID, leading to a default SRID (often 0) that does not match the required SRID of the target column.
External Data Inconsistency
Spatial data imported or migrated from another source has SRID values that do not align with the SRID definitions of the MySQL database columns.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service