Make it work properly on Windows by undefining NDEBUG so that assert() is no turned into a no-op

git-svn-id: https://svn.osgeo.org/gdal/trunk@24845 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite: cache the result of FetchSRSId() in the SRS cache

git-svn-id: https://svn.osgeo.org/gdal/trunk@24846 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite dialect: better SRS handling, especially for non-EPSG SRS

git-svn-id: https://svn.osgeo.org/gdal/trunk@24847 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite dialect: fix parsing of SQL sub-selects

git-svn-id: https://svn.osgeo.org/gdal/trunk@24848 f0d54148-0727-0410-94bb-9a71ac55c965
OGRFeatureQuery: add a CanUseIndex( OGRLayer *poLayer ) method that returns TRUE if indices can be used to evaluate the attribute filter

git-svn-id: https://svn.osgeo.org/gdal/trunk@24849 f0d54148-0727-0410-94bb-9a71ac55c965
Shape: make TestCapability(OLCFastFeatureCount) return TRUE when an attribute filter is set only if CanUseIndex() returns TRUE

git-svn-id: https://svn.osgeo.org/gdal/trunk@24850 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite dialect: optimize 'SELECT COUNT(*) FROM' requests by avoiding useless call to GetNextFeature() when possible

git-svn-id: https://svn.osgeo.org/gdal/trunk@24851 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite select layer: implement GetFeatureCount()

git-svn-id: https://svn.osgeo.org/gdal/trunk@24852 f0d54148-0727-0410-94bb-9a71ac55c965
Document the VirtualOGR extension

git-svn-id: https://svn.osgeo.org/gdal/trunk@24853 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite: add missing column name quoting

git-svn-id: https://svn.osgeo.org/gdal/trunk@24854 f0d54148-0727-0410-94bb-9a71ac55c965
Fix compilation error with mingw64 gcc 4.7.0

git-svn-id: https://svn.osgeo.org/gdal/trunk@24855 f0d54148-0727-0410-94bb-9a71ac55c965
Make autodetection of _stat64 and __stat64 work better with mingw

git-svn-id: https://svn.osgeo.org/gdal/trunk@24856 f0d54148-0727-0410-94bb-9a71ac55c965
RPFTOC: relax SanityCheckOK() to avoid rejecting valid CIB datasets (#4791)

git-svn-id: https://svn.osgeo.org/gdal/trunk@24857 f0d54148-0727-0410-94bb-9a71ac55c965
Add a few sanity checks, mainly to detect problems that sometimes arise with bad configured cross-compilation.

git-svn-id: https://svn.osgeo.org/gdal/trunk@24859 f0d54148-0727-0410-94bb-9a71ac55c965
OGR VRT: add an optional 'dialect' attribute on the <SrcSQL> element

git-svn-id: https://svn.osgeo.org/gdal/trunk@24860 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite dialect: fix memory leaks in error code path, and fix analysis of literals in SQL statement

git-svn-id: https://svn.osgeo.org/gdal/trunk@24861 f0d54148-0727-0410-94bb-9a71ac55c965
Add testing for VirtualOGR as a SQLite3 extension

git-svn-id: https://svn.osgeo.org/gdal/trunk@24862 f0d54148-0727-0410-94bb-9a71ac55c965
Test detection of suspicious use of VirtualOGR

git-svn-id: https://svn.osgeo.org/gdal/trunk@24863 f0d54148-0727-0410-94bb-9a71ac55c965
SQLite dialect: add ogr_layer_Extent(), ogr_layer_SRID(), ogr_layer_GeometryType()

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

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