don't evaluate filter expression before geometry has been setup (#4974,#4995)
msPostGISLayerTranslateFilter: fix memory leak
FLTGetSpatialComparisonCommonExpression(): use polygon instead of rectangle (#4974)

* Reprojection of BBOX to layer SRS should be done as a rectangle to avoid capturing
too many features. Improves wfsogr10_twolayer.xml
* Also add a hack from -180,-90,180,90 BBOX when reprojecting to a projected SRS.
msOGRFileWhichShapes(): fix taking into account of filters (#4974)

Should fix wfsogr10_twolayer.xml
Fix regression of previous commit in ogr_multi_defer.png and ogr_attrfilter.png (#4974, #4999)
msContourLayerGenerateContour(): fix crash with GDAL trunk
Merge branch 'fix_rfc91_ogr'