Opened 4 years ago
Last modified 4 years ago
#33120 new New feature
Add OGC-compliant models for GeoDjango running on MySQL 8.0
| Reported by: | Jeff Hitchcock | Owned by: | nobody |
|---|---|---|---|
| Component: | GIS | Version: | dev |
| Severity: | Normal | Keywords: | mysql |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
MySQL 8 introduced two new tables that allow the implementation of the SpatialRefSys and GeometryColumns models as well as related functions for adding new SRS entries to the database. Adding these two models and updating related functions to support them would be a good first step to improving GeoDjango's support for MySQL 8.
- Add
MySQLSpatialRefSysmodel connecting to theINFORMATION_SCHEMA.ST_GEOMETRY_COLUMNStable (https://dev.mysql.com/doc/refman/8.0/en/information-schema-st-geometry-columns-table.html) - Add
MySQLGeometryColumnsmodel connecting to theINFORMATION_SCHEMA.ST_GEOMETRY_COLUMNStable (https://dev.mysql.com/doc/refman/8.0/en/information-schema-st-geometry-columns-table.html) - Enable
has_spatialrefsys_tableandsupports_add_srs_entrybackend features if MySQL version is greater than 8.0
Change History (2)
follow-up: 2 comment:1 by , 4 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|---|
| Version: | 3.2 → dev |
comment:2 by , 4 years ago
Replying to Mariusz Felisiak:
#27464 is probably a partially duplicate of this ticket. What do you think?
They are definitely related, but that ticket has more to do with setting SRID on columns (aka support for ALTER TABLE _ ADD pt POINT SRID 4326) while this deals with being able to add new SRS entries into the database (MySQLSpatialRefSys and add_srs_entry) and introspection of columns that have spatial information (MySQLGeometryColumns).
Thanks for the report.
#27464 is probably a partially duplicate of this ticket. What do you think?