Python 2.7 如何从geoalchemy2查询结果中检索数据?
代码片段Python 2.7 如何从geoalchemy2查询结果中检索数据?,python-2.7,sqlalchemy,gis,geoalchemy2,Python 2.7,Sqlalchemy,Gis,Geoalchemy2,代码片段 from dbinit import session from geoalchemy2 import Geometry, func result = session.query(func.ST_AsText('POINT(100 100)')) 如何从这个结果对象中检索数据?我已经找到了解决方案 re=result.all()
from dbinit import session
from geoalchemy2 import Geometry, func
result = session.query(func.ST_AsText('POINT(100 100)'))
如何从这个
结果
对象中检索数据?我已经找到了解决方案
re=result.all()