Fixed #25585 -- Allowed setting OGRGeometry srid/srs attributes to None.

This commit is contained in:
Sergey Fedoseev 2015-10-21 18:14:12 +05:00 committed by Tim Graham
parent 80855a4b37
commit 0dbe897ab5
2 changed files with 8 additions and 1 deletions

View file

@ -320,6 +320,11 @@ class OGRGeomTest(unittest.TestCase, TestDataMixin):
self.assertEqual('WGS 72', ring.srs.name)
self.assertEqual(4322, ring.srid)
# srs/srid may be assigned their own values, even when srs is None.
mpoly = OGRGeometry(mp.wkt, srs=None)
mpoly.srs = mpoly.srs
mpoly.srid = mpoly.srid
def test_srs_transform(self):
"Testing transform()."
orig = OGRGeometry('POINT (-104.609 38.255)', 4326)