return geo data in text always (since not all support json)
This commit is contained in:
1 parent
b39b6d9715
commit
6280ca5d36
2 files changed
+2
-2
No files matched your search
@@ -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