I'm using PostGIS extension to manage geospatial data and encounted problem calling PostGIS functions:
string sql = "SELECT ST_AsGeoJson(geom) FROM objects";
Poco::Data::RecordSet rs(*(_pSession), sql);
Throws exception "Data type not supported."
geom field is of text type so do ST_AsGeoJson returns. any help?