Fixed #25641 -- Removed section about adding Google projection to spatial_ref_sys table

This commit is contained in:
Sergey Fedoseev 2015-10-30 14:01:23 +05:00 committed by Claude Paroz
parent 8c5b8018f6
commit 9ae8da0e37
2 changed files with 1 additions and 28 deletions

View File

@ -97,31 +97,6 @@ Like other Django contrib applications, you will *only* need to add
This is the so that ``gis`` templates can be located -- if not done, then This is the so that ``gis`` templates can be located -- if not done, then
features such as the geographic admin or KML sitemaps will not function properly. features such as the geographic admin or KML sitemaps will not function properly.
.. _addgoogleprojection:
Add Google projection to ``spatial_ref_sys`` table
--------------------------------------------------
.. note::
If you're running GDAL 1.7 or above (most users), you can skip this step.
In order to conduct database transformations to the so-called "Google"
projection (a spherical mercator projection used by Google Maps),
an entry must be added to your spatial database's ``spatial_ref_sys`` table.
Invoke the Django shell from your project and execute the
``add_srs_entry`` function:
.. code-block:: pycon
$ python manage.py shell
>>> from django.contrib.gis.utils import add_srs_entry
>>> add_srs_entry(900913)
This adds an entry for the 900913 SRID to the ``spatial_ref_sys`` (or equivalent)
table, making it possible for the spatial database to transform coordinates in
this projection. You only need to execute this command *once* per spatial database.
Troubleshooting Troubleshooting
=============== ===============

View File

@ -753,9 +753,7 @@ available with the :class:`~django.contrib.gis.admin.GeoModelAdmin`
First, there are some important requirements: First, there are some important requirements:
* :class:`~django.contrib.gis.admin.OSMGeoAdmin` requires that * :class:`~django.contrib.gis.admin.OSMGeoAdmin` requires that
:doc:`GDAL <gdal>` is installed. If you are running GDAL 1.6 (uncommon) :doc:`GDAL <gdal>` is installed.
you will also need to add the :ref:`spherical mercator projection
<addgoogleprojection>` to the ``spatial_ref_sys`` table.
* The PROJ.4 datum shifting files must be installed (see the * The PROJ.4 datum shifting files must be installed (see the
:ref:`PROJ.4 installation instructions <proj4>` for more details). :ref:`PROJ.4 installation instructions <proj4>` for more details).