Error
Error Code:
3071
MySQL Error 3071: Invalid GeoJSON Member Type
Description
This error indicates that the GeoJSON data provided to a MySQL spatial function contains a member with an incorrect data type. It occurs when MySQL attempts to parse and validate the GeoJSON input, but finds a type mismatch according to the GeoJSON specification or the specific requirements of the function being used.
Error Message
Invalid GeoJSON data provided to function %s: Member '%s' must be of type '%s'
Known Causes
3 known causesIncorrect Member Data Type
A required GeoJSON member (e.g., 'coordinates', 'type') is provided with a data type that doesn't conform to the GeoJSON specification, such as a string instead of an array.
Malformed GeoJSON Structure
The overall GeoJSON object or its constituent geometries might be structurally incorrect or incomplete, leading MySQL to misinterpret member types during parsing.
Function Input Type Mismatch
The GeoJSON geometry type provided (e.g., Point) does not match the specific type expected by the MySQL spatial function being called (e.g., a function expecting a LineString).
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