return geo data in text always (since not all support json)
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user