mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #26920 -- Made GEOSGeometry equality check consider the srid
This commit is contained in:
parent
10d49b96e6
commit
50613d957a
8 changed files with 56 additions and 15 deletions
|
@ -266,7 +266,7 @@ class GISFunctionsTests(TestCase):
|
|||
State.objects.create(name='invalid', poly=invalid_geom)
|
||||
invalid = State.objects.filter(name='invalid').annotate(repaired=functions.MakeValid('poly')).first()
|
||||
self.assertIs(invalid.repaired.valid, True)
|
||||
self.assertEqual(invalid.repaired, fromstr('POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))'))
|
||||
self.assertEqual(invalid.repaired, fromstr('POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))', srid=invalid.poly.srid))
|
||||
|
||||
@skipUnlessDBFeature("has_MemSize_function")
|
||||
def test_memsize(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue