return geo data in text always (since not all support json)

This commit is contained in:
mdipierro
2012-12-22 10:19:49 -06:00
parent ff7b78bb6a
commit 96286844fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.1-alpha.1+timestamp.2012.12.22.10.10.12
Version 2.4.1-alpha.1+timestamp.2012.12.22.10.19.08
+1 -1
View File
@@ -1477,7 +1477,7 @@ class BaseAdapter(ConnectionPool):
self._colnames = map(self.expand, fields)
def geoexpand(field):
if isinstance(field.type,str) and field.type.startswith('geometry'):
field = field.st_asgeojson()
field = field.st_astext()
return self.expand(field)
sql_f = ', '.join(map(geoexpand, fields))
if query: