summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2010-12-22 17:43:30 +0000
committerJustin Bronn <jbronn@gmail.com>2010-12-22 17:43:30 +0000
commit5fddfda5593d0f8c244f640ae63a17035ade0e3e (patch)
tree9e11eee1f3dfeed767ccc07db07c700a2d796195 /docs
parentdf4cb60004db5cbbe402233138f2f0c804a46f15 (diff)
Fixed #13788 -- `GEOSGeometry.transform` no longer silently no-ops when GDAL isn't available. Thanks, Rob Coup.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15025 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt4
-rw-r--r--docs/ref/contrib/gis/geos.txt14
-rw-r--r--docs/ref/contrib/gis/install.txt11
-rw-r--r--docs/releases/1.3.txt14
4 files changed, 34 insertions, 9 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index 54f40d027a..508e6f2a6e 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -147,6 +147,10 @@ their deprecation, as per the :ref:`Django deprecation policy
The ``supports_inactive_user`` variable is not checked any
longer and can be removed.
+ * :meth:`~django.contrib.gis.geos.GEOSGeometry.transform` will raise
+ a :class:`~django.contrib.gis.geos.GEOSException` when called
+ on a geometry with no SRID value.
+
* 2.0
* ``django.views.defaults.shortcut()``. This function has been moved
to ``django.contrib.contenttypes.views.shortcut()`` as part of the
diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt
index 088ea6cdbe..95ba7e55e3 100644
--- a/docs/ref/contrib/gis/geos.txt
+++ b/docs/ref/contrib/gis/geos.txt
@@ -523,7 +523,9 @@ corresponding to the SRID of the geometry or ``None``.
Requires GDAL.
-.. method:: transform(ct, clone=False)
+.. method:: GEOSGeometry.transform(ct, clone=False)
+
+.. versionchanged:: 1.3
Transforms the geometry according to the given coordinate transformation paramter
(``ct``), which may be an integer SRID, spatial reference WKT string,
@@ -537,6 +539,16 @@ is returned instead.
Requires GDAL.
+.. note::
+
+ Prior to 1.3, this method would silently no-op if GDAL was not available.
+ Now, a :class:`~django.contrib.gis.geos.GEOSException` is raised as
+ application code relying on this behavior is in error. In addition,
+ use of this method when the SRID is ``None`` or less than 0 now generates
+ a warning because a :class:`~django.contrib.gis.geos.GEOSException` will
+ be raised instead in version 1.5.
+
+
``Point``
---------
diff --git a/docs/ref/contrib/gis/install.txt b/docs/ref/contrib/gis/install.txt
index fa8e34c268..a1485d1b54 100644
--- a/docs/ref/contrib/gis/install.txt
+++ b/docs/ref/contrib/gis/install.txt
@@ -98,8 +98,9 @@ Program Description Required
.. admonition:: Install GDAL
While :ref:`gdalbuild` is technically not required, it is *recommended*.
- Some features of GeoDjango (including the :ref:`ref-layermapping` and the geographic
- admin) depend on its functionality.
+ Important features of GeoDjango (including the :ref:`ref-layermapping`,
+ geometry reprojection, and the geographic admin) depend on its
+ functionality.
.. note::
@@ -273,9 +274,9 @@ supports :ref:`GDAL's vector data <ref-gdal>` capabilities [#]_.
First download the latest GDAL release version and untar the archive::
- $ wget http://download.osgeo.org/gdal/gdal-1.7.2.tar.gz
- $ tar xzf gdal-1.7.2.tar.gz
- $ cd gdal-1.7.2
+ $ wget http://download.osgeo.org/gdal/gdal-1.7.3.tar.gz
+ $ tar xzf gdal-1.7.3.tar.gz
+ $ cd gdal-1.7.3
Configure, make and install::
diff --git a/docs/releases/1.3.txt b/docs/releases/1.3.txt
index 7992c95e5f..af40156410 100644
--- a/docs/releases/1.3.txt
+++ b/docs/releases/1.3.txt
@@ -528,6 +528,14 @@ statements manually.
GeoDjango
~~~~~~~~~
-The :setting:`TEST_RUNNER` previously used to execute the GeoDjango test suite,
-:func:`django.contrib.gis.tests.run_gis_tests`, is deprecated in favor of
-the :class:`django.contrib.gis.tests.GeoDjangoTestSuiteRunner` class.
+ * The function-based :setting:`TEST_RUNNER` previously used to execute
+ the GeoDjango test suite, :func:`django.contrib.gis.tests.run_gis_tests`,
+ was deprecated for the class-bassed runner,
+ :class:`django.contrib.gis.tests.GeoDjangoTestSuiteRunner`.
+
+ * Previously, calling :meth:`~django.contrib.gis.geos.GEOSGeometry.transform`
+ would silently do nothing when GDAL wasn't available. Now,
+ a :class:`~django.contrib.gis.geos.GEOSException` is properly raised
+ to indicate possible faulty application code. A warning is now raised
+ if :meth:`~django.contrib.gis.geos.GEOSGeometry.transform` is called when
+ the SRID of the geometry is less than 0 or ``None``.