Ticket #6246: ogrinspect.py.diff
File ogrinspect.py.diff, 932 bytes (added by , 17 years ago) |
---|
-
django/contrib/gis/utils/ogrinspect.py
110 110 111 111 # Setting up the SRID parameter string. 112 112 if srid is None: 113 srid = layer.srs.srid 114 if srid is None: 113 try: 114 srid = layer.srs.srid 115 except AttributeError: 115 116 srid_str = 'srid=-1' 116 elif srid == 4326:117 # WGS84 is the default.118 srid_str = ''119 117 else: 120 srid_str = 'srid=%s' % srid 118 if srid is None: 119 srid_str = 'srid=-1' 120 elif srid == 4326: 121 # WGS84 is the default. 122 srid_str = '' 123 else: 124 srid_str = 'srid=%s' % srid 121 125 else: 122 126 srid_str = 'srid=%s' % srid 123 127