Author: jbronn
Date: 2007-07-04 03:30:03 -0500 (Wed, 04 Jul 2007)
New Revision: 5606
Modified:
django/branches/gis/django/contrib/gis/gdal/Layer.py
Log:
gis: fixed mistake where no srs is returned at all from Layer
Modified: django/branches/gis/django/contrib/gis/gdal/Layer.py
===================================================================
--- django/branches/gis/django/contrib/gis/gdal/Layer.py 2007-07-04
06:55:32 UTC (rev 5605)
+++ django/branches/gis/django/contrib/gis/gdal/Layer.py 2007-07-04
08:30:03 UTC (rev 5606)
@@ -97,7 +97,7 @@
"Returns the Spatial Reference used in this Layer."
ptr = lgdal.OGR_L_GetSpatialRef(self._layer)
if ptr:
- srs = SpatialReference(lgdal.OSRClone(ptr), 'ogr')
+ return SpatialReference(lgdal.OSRClone(ptr), 'ogr')
else:
return None
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---