Changeset 6916
- Timestamp:
- 12/12/07 21:08:06 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis/django/contrib/gis/gdal/layer.py
r6686 r6916 4 4 # Other GDAL imports. 5 5 from django.contrib.gis.gdal.envelope import Envelope, OGREnvelope 6 from django.contrib.gis.gdal.error import OGRException, OGRIndexError 6 from django.contrib.gis.gdal.error import OGRException, OGRIndexError, SRSException 7 7 from django.contrib.gis.gdal.feature import Feature 8 8 from django.contrib.gis.gdal.geometries import OGRGeomType … … 100 100 def srs(self): 101 101 "Returns the Spatial Reference used in this Layer." 102 ptr = get_layer_srs(self._ptr)103 if ptr:102 try: 103 ptr = get_layer_srs(self._ptr) 104 104 return SpatialReference(clone_srs(ptr)) 105 e lse:105 except SRSException: 106 106 return None 107 107
