andreahmed wrote > Now I get undefined function st_linefrommultipoint > > Here is my query again > > 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));";
Does this query work when you run it directly in PostGIS? If yes, try next to include it into ogrinfo query as -sql parameter. I would say that asking same questions here and in gis.stackexchange usually does not make people to serve you any faster. -Jukka Rahkonen- -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Executing-a-query-getting-null-layer-tp5313639p5313687.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev