SQLite select layer: add alternative way of finding the SRS

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@25489 f0d54148-0727-0410-94bb-9a71ac55c965
test_ogrsf: test consistency of return of a regular layer and a SQL result layer

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@25490 f0d54148-0727-0410-94bb-9a71ac55c965