﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27964	Raise an error if a MySQL geometry with an unsupported SRID is saved to the database	Sergey Fedoseev	Sergey Fedoseev	"models.py:
{{{
class City(models.Model):
    point = models.PointField(srid=4326)
}}}

on PostGIS:
{{{
In [1]: from test_app.models import City
In [2]: from django.contrib.gis.geos import Point
In [3]: c = City.objects.create(point=Point(1, 1, srid=3857))
In [7]: c.refresh_from_db()
In [9]: print(c.point)
SRID=4326;POINT (8.983152841195214e-06 8.983152840993819e-06)
}}}

on MySQL:
{{{
In [1]: from test_app.models import City
In [2]: from django.contrib.gis.geos import Point
In [3]: c = City.objects.create(point=Point(1, 1, srid=3857))
In [4]: c.refresh_from_db()
In [5]: print(c.point)
SRID=4326;POINT (1 1)
}}}

I think that more appropriate behavior is to raise some error."	Cleanup/optimization	closed	GIS	1.8	Normal	fixed			Accepted	1	0	0	0	0	0
