[gdal-dev] Executing a query getting null layer

Ahmed Tolba Ahmed.Tolba at schiebel.net
Wed Mar 22 06:12:14 PDT 2017


Hi All,
I'm trying to execute that query
string query = "SELECT *FROM areas WHERE st_contains(st_polygon(st_addpoint(st_linefrommultipoint(areas.geom),st_startpoint(st_linefrommultipoint(areas.geom)),-1),st_srid(areas.geom)),st_mpointfromtext('MULTIPOINT(16.17951 47.85549, 16.17951 47.85549, 16.17951 47.85549, 16.17951 47.85549)',4326));";

but I get a null layer,

here is how I'm executing the query:
OGRLayer * layer = m_wfs_t->ExecuteSQL(query.c_str(), NULL, "OGRSQL");


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170322/a715cc76/attachment.html>


More information about the gdal-dev mailing list