How to convert SDO_GEOMTRY in GeoJSON
问题 I work with sqlalchemy and geoalchemy and will convert my results in geojson. With the normal way like this : print json.dumps([dict(r) for r in connection.execute(query)]) it is not possible because cx_Oracle.Objets not serializable! I can have access through the separate attributes like this one: result = connection.execute(query) result2 = result.fetchone()[0] print result2.SDO_ORDINATES Here is my Programm: #!/usr/bin/env python # coding: utf8 #from __future__ import absolute_import,