summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2016-12-02 13:56:34 +0500
committerTim Graham <timograham@gmail.com>2016-12-08 10:24:05 -0500
commit9b79281e315268bdbba2704b253eef23b46da023 (patch)
treeb1cec48b3d506a60d450521e24e3edb75baab3c9 /tests
parenta413ef2155c4f3e5bf6954608d65a96631feb7e6 (diff)
Fixed #27472 -- Fixed GEOSGeometry('POINT EMPTY').transform crash.
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/geos_tests/test_geos.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py
index c70171e4c5..176ae3d482 100644
--- a/tests/gis_tests/geos_tests/test_geos.py
+++ b/tests/gis_tests/geos_tests/test_geos.py
@@ -1359,6 +1359,10 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
p = Point(srid=4326)
self.assertEqual(p.ogr.ewkt, p.ewkt)
+ self.assertEqual(p.transform(2774, clone=True), Point(srid=2774))
+ p.transform(2774)
+ self.assertEqual(p, Point(srid=2774))
+
@ignore_warnings(category=RemovedInDjango20Warning)
def test_deprecated_srid_getters_setters(self):
p = Point(1, 2, srid=123)