From 1da170a203819ffda7764e53e3c268b8fc2ab452 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 18 Jul 2015 14:50:08 +0200 Subject: Fixed #25141 -- Diminished GDAL dependence during geojson serialization Only require GDAL if contained geometries need coordinate transformations. Thanks drepo for the report and Tim Graham for the review. --- docs/ref/contrib/gis/serializers.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/ref/contrib/gis/serializers.txt b/docs/ref/contrib/gis/serializers.txt index 54b6c5727c..59266940e3 100644 --- a/docs/ref/contrib/gis/serializers.txt +++ b/docs/ref/contrib/gis/serializers.txt @@ -7,9 +7,17 @@ GeoJSON Serializer .. module:: django.contrib.gis.serializers.geojson :synopsis: Serialization of GeoDjango models in the GeoJSON format. -GeoDjango provides a specific serializer for the `GeoJSON`__ format. The GDAL -library is required for this serializer. See :doc:`/topics/serialization` for -more information on serialization. +GeoDjango provides a specific serializer for the `GeoJSON`__ format. See +:doc:`/topics/serialization` for more information on serialization. + +The GDAL library is required if any of the serialized geometries need +coordinate transformations (that is if the geometry's spatial reference system +differs from the ``srid`` serializer option). + +.. versionchanged:: 1.9 + + The GeoJSON serializer no longer needs GDAL if all geometries are in the + same coordinate system as the ``srid`` serializer option. __ http://geojson.org/ -- cgit v1.3