Changeset 6966
- Timestamp:
- 12/21/07 15:36:54 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis/django/contrib/gis/db/models/query.py
r6919 r6966 39 39 # for the selection format of the geometry column. 40 40 if GEOM_SELECT: 41 #if oracle and hasattr(self, '_ewkt'):42 41 # Transformed geometries in Oracle use EWKT so that the SRID 43 42 # on the transformed lazy geometries is set correctly). 44 #print '-=' * 2045 #print self._ewkt, GEOM_SELECT46 #self._geo_fmt = "'SRID=%d;'||%s" % (self._ewkt, GEOM_SELECT)47 #self._geo_fmt = GEOM_SELECT48 #else:49 #print '-=' * 2050 43 self._geo_fmt = GEOM_SELECT 51 44 else: django/branches/gis/django/contrib/gis/utils/ogrinspect.py
r6688 r6966 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 if layer.srs is None: 115 114 srid_str = 'srid=-1' 116 elif srid == 4326:117 # WGS84 is the default.118 srid_str = ''119 115 else: 120 srid_str = 'srid=%s' % srid 116 srid = layer.srs.srid 117 if srid is None: 118 srid_str = 'srid=-1' 119 elif srid == 4326: 120 # WGS84 is the default. 121 srid_str = '' 122 else: 123 srid_str = 'srid=%s' % srid 121 124 else: 122 125 srid_str = 'srid=%s' % srid
