I'm running GDAL 1.11.2, released 2015/02/10.
The following displays all the attributes in my shapefile on stdout:
/opt/gdal-custom/bin/ogr2ogr -f CSV /vsistdout/ foo.shp -sql "SELECT * FROM foo "
However, if I add the WHERE clause
WHERE ST_Intersects(GEOMETRY,BuildCircleMbr(0, 0, 10000, 4326)) I get
ERROR 1: Undefined function 'ST_Intersects' used.
What am I doing wrong?