Opened 3 years ago
Last modified 3 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 |
Pull Requests: | How to create a pull request | ||
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
MySQLSpatialRefSys
model connecting to theINFORMATION_SCHEMA.ST_GEOMETRY_COLUMNS
table (https://dev.mysql.com/doc/refman/8.0/en/information-schema-st-geometry-columns-table.html) - Add
MySQLGeometryColumns
model connecting to theINFORMATION_SCHEMA.ST_GEOMETRY_COLUMNS
table (https://dev.mysql.com/doc/refman/8.0/en/information-schema-st-geometry-columns-table.html) - Enable
has_spatialrefsys_table
andsupports_add_srs_entry
backend features if MySQL version is greater than 8.0
According to the ticket's flags, the next step(s) to move this issue forward are:
- To provide a patch by sending a pull request. Claim the ticket when you start working so that someone else doesn't duplicate effort. Before sending a pull request, review your work against the patch review checklist. Check the "Has patch" flag on the ticket after sending a pull request and include a link to the pull request in the ticket comment when making that update. The usual format is:
[https://github.com/django/django/pull/#### PR]
.
Change History (2)
follow-up: 2 comment:1 by , 3 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Version: | 3.2 → dev |
comment:2 by , 3 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?