From a8614fb438432551e52a818b5f76f48d4ac5b499 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Tue, 8 Dec 2015 10:05:38 +0500 Subject: [PATCH] Fixed #25876 -- Removed OGRGeometry.transform_to() backwards-compatibility method. --- django/contrib/gis/gdal/geometries.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/django/contrib/gis/gdal/geometries.py b/django/contrib/gis/gdal/geometries.py index 98a7ee44f1..ac176670e9 100644 --- a/django/contrib/gis/gdal/geometries.py +++ b/django/contrib/gis/gdal/geometries.py @@ -24,7 +24,7 @@ WGS 84 >>> print(mpnt.srs.proj) +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs - >>> mpnt.transform_to(SpatialReference('NAD27')) + >>> mpnt.transform(SpatialReference('NAD27')) >>> print(mpnt.proj) +proj=longlat +ellps=clrk66 +datum=NAD27 +no_defs >>> print(mpnt) @@ -397,10 +397,6 @@ class OGRGeometry(GDALBase): raise TypeError('Transform only accepts CoordTransform, ' 'SpatialReference, string, and integer objects.') - def transform_to(self, srs): - "For backwards-compatibility." - self.transform(srs) - # #### Topology Methods #### def _topology(self, func, other): """A generalized function for topology operations, takes a GDAL function and