mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
gis: Fixed #6246 (Thanks jos3ph); removed unnecessary commented debugging code.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
34560a01da
commit
24617b1667
@ -38,15 +38,8 @@ class GeoQuerySet(QuerySet):
|
||||
# If GEOM_SELECT is defined in the backend, then it will be used
|
||||
# for the selection format of the geometry column.
|
||||
if GEOM_SELECT:
|
||||
#if oracle and hasattr(self, '_ewkt'):
|
||||
# Transformed geometries in Oracle use EWKT so that the SRID
|
||||
# on the transformed lazy geometries is set correctly).
|
||||
#print '-=' * 20
|
||||
#print self._ewkt, GEOM_SELECT
|
||||
#self._geo_fmt = "'SRID=%d;'||%s" % (self._ewkt, GEOM_SELECT)
|
||||
#self._geo_fmt = GEOM_SELECT
|
||||
#else:
|
||||
#print '-=' * 20
|
||||
self._geo_fmt = GEOM_SELECT
|
||||
else:
|
||||
self._geo_fmt = '%s'
|
||||
|
@ -110,14 +110,17 @@ def _ogrinspect(data_source, model_name, geom_name='geom', layer_key=0, srid=Non
|
||||
|
||||
# Setting up the SRID parameter string.
|
||||
if srid is None:
|
||||
srid = layer.srs.srid
|
||||
if srid is None:
|
||||
if layer.srs is None:
|
||||
srid_str = 'srid=-1'
|
||||
elif srid == 4326:
|
||||
# WGS84 is the default.
|
||||
srid_str = ''
|
||||
else:
|
||||
srid_str = 'srid=%s' % srid
|
||||
srid = layer.srs.srid
|
||||
if srid is None:
|
||||
srid_str = 'srid=-1'
|
||||
elif srid == 4326:
|
||||
# WGS84 is the default.
|
||||
srid_str = ''
|
||||
else:
|
||||
srid_str = 'srid=%s' % srid
|
||||
else:
|
||||
srid_str = 'srid=%s' % srid
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user