Error
Error Code:
3520
MySQL Error 3520: Non-Cartesian Spatial Data Use
Description
Error 3520 indicates that a MySQL spatial function requiring a Cartesian coordinate system received input from a non-Cartesian SRID. This typically happens when attempting to use functions designed for planar geometry with geographic data, such as latitude and longitude coordinates.
Error Message
Function %s is only defined for Cartesian spatial reference systems, but one of its arguments is in SRID %u, which is not Cartesian.
Known Causes
3 known causesMismatching Spatial Systems
You are calling a MySQL spatial function specifically designed for Cartesian (planar) coordinate systems, but providing it with geometry data defined in a geographic (spherical) SRID.
Incorrect SRID Assignment
The Spatial Reference ID (SRID) assigned to your geometry column or data incorrectly specifies a non-Cartesian system when a Cartesian system was intended or required by the function.
Untransformed Spatial Data
Spatial data sourced from a geographic system was used directly in a Cartesian-only function without first transforming it into an appropriate Cartesian SRID.
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