1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

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
This commit is contained in:
Justin Bronn
2010-12-22 17:43:30 +00:00
parent df4cb60004
commit 5fddfda559
6 changed files with 175 additions and 24 deletions

View File

@@ -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``.