mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #25580 -- Allowed None
to be set as SRID value.
This commit is contained in:
parent
48888a1a67
commit
a272db7008
2 changed files with 5 additions and 1 deletions
|
@ -650,6 +650,10 @@ class GEOSTest(unittest.TestCase, TestDataMixin):
|
|||
p3 = fromstr(p1.hex, srid=-1) # -1 is intended.
|
||||
self.assertEqual(-1, p3.srid)
|
||||
|
||||
# Testing that geometry SRID could be set to its own value
|
||||
pnt_wo_srid = Point(1, 1)
|
||||
pnt_wo_srid.srid = pnt_wo_srid.srid
|
||||
|
||||
@skipUnless(HAS_GDAL, "GDAL is required.")
|
||||
def test_custom_srid(self):
|
||||
""" Test with a srid unknown from GDAL """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue