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
|
# If GEOM_SELECT is defined in the backend, then it will be used
|
||||||
# for the selection format of the geometry column.
|
# for the selection format of the geometry column.
|
||||||
if GEOM_SELECT:
|
if GEOM_SELECT:
|
||||||
#if oracle and hasattr(self, '_ewkt'):
|
|
||||||
# Transformed geometries in Oracle use EWKT so that the SRID
|
# Transformed geometries in Oracle use EWKT so that the SRID
|
||||||
# on the transformed lazy geometries is set correctly).
|
# 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
|
self._geo_fmt = GEOM_SELECT
|
||||||
else:
|
else:
|
||||||
self._geo_fmt = '%s'
|
self._geo_fmt = '%s'
|
||||||
|
@ -110,6 +110,9 @@ def _ogrinspect(data_source, model_name, geom_name='geom', layer_key=0, srid=Non
|
|||||||
|
|
||||||
# Setting up the SRID parameter string.
|
# Setting up the SRID parameter string.
|
||||||
if srid is None:
|
if srid is None:
|
||||||
|
if layer.srs is None:
|
||||||
|
srid_str = 'srid=-1'
|
||||||
|
else:
|
||||||
srid = layer.srs.srid
|
srid = layer.srs.srid
|
||||||
if srid is None:
|
if srid is None:
|
||||||
srid_str = 'srid=-1'
|
srid_str = 'srid=-1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user