summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/gis/geos/tests/test_geos.py2
-rw-r--r--django/contrib/gis/tests/test_spatialrefsys.py6
-rw-r--r--django/contrib/gis/utils/srs.py6
3 files changed, 6 insertions, 8 deletions
diff --git a/django/contrib/gis/geos/tests/test_geos.py b/django/contrib/gis/geos/tests/test_geos.py
index 1df512a9c0..ac2e65925c 100644
--- a/django/contrib/gis/geos/tests/test_geos.py
+++ b/django/contrib/gis/geos/tests/test_geos.py
@@ -987,7 +987,7 @@ class GEOSTest(unittest.TestCase, TestDataMixin):
tgeoms = get_geoms(self.geometries.points)
tgeoms.extend(get_geoms(self.geometries.multilinestrings, 4326))
tgeoms.extend(get_geoms(self.geometries.polygons, 3084))
- tgeoms.extend(get_geoms(self.geometries.multipolygons, 900913))
+ tgeoms.extend(get_geoms(self.geometries.multipolygons, 3857))
for geom in tgeoms:
s1, s2 = cPickle.dumps(geom), pickle.dumps(geom)
diff --git a/django/contrib/gis/tests/test_spatialrefsys.py b/django/contrib/gis/tests/test_spatialrefsys.py
index 98e9d47699..968942ec07 100644
--- a/django/contrib/gis/tests/test_spatialrefsys.py
+++ b/django/contrib/gis/tests/test_spatialrefsys.py
@@ -110,11 +110,11 @@ class SpatialRefSysTest(unittest.TestCase):
"""
from django.contrib.gis.utils import add_srs_entry
- add_srs_entry(900913)
+ add_srs_entry(3857)
self.assertTrue(
- SpatialRefSys.objects.filter(srid=900913).exists()
+ SpatialRefSys.objects.filter(srid=3857).exists()
)
- srs = SpatialRefSys.objects.get(srid=900913)
+ srs = SpatialRefSys.objects.get(srid=3857)
self.assertTrue(
SpatialRefSys.get_spheroid(srs.wkt).startswith('SPHEROID[')
)
diff --git a/django/contrib/gis/utils/srs.py b/django/contrib/gis/utils/srs.py
index 8e72466de4..bb23866010 100644
--- a/django/contrib/gis/utils/srs.py
+++ b/django/contrib/gis/utils/srs.py
@@ -9,12 +9,10 @@ def add_srs_entry(srs, auth_name='EPSG', auth_srid=None, ref_sys_name=None,
to the `spatial_ref_sys` table of the spatial backend. Doing this enables
database-level spatial transformations for the backend. Thus, this utility
is useful for adding spatial reference systems not included by default with
- the backend -- for example, the so-called "Google Maps Mercator Projection"
- is excluded in PostGIS 1.3 and below, and the following adds it to the
- `spatial_ref_sys` table:
+ the backend:
>>> from django.contrib.gis.utils import add_srs_entry
- >>> add_srs_entry(900913)
+ >>> add_srs_entry(3857)
Keyword Arguments:
auth_name: