1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

gis: fixed mistake where no srs is returned at all from Layer

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2007-07-04 08:30:03 +00:00
parent a925a3afe2
commit f34300e57a

View File

@ -97,7 +97,7 @@ class Layer(object):
"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