[mapserver-dev] wfs attribute queries without results

Martin Kofahl M.Kofahl at gmx.net
Tue Jul 10 01:25:53 PDT 2012


while testing the current master branch regarding OGC WFS capabilities I did notice that attribute only queries do not return a result. Sample query:

<Query typeName="ns:featuretype" srsName="urn:ogc:def:crs:EPSG::4326">

The for reasons behaviour is that

a) the queryRect is initialized with minx/y,maxx/y = -1, probably already in msLoadMap() -> initMap() -> msInitQuery()

b) the query is processed by FLTApplySimpleSQLFilter() using msQueryByRect() ... with queryRect's values set to -1.

So what's going wrong here? A quick qorkaround is to bypass the cases where queryrect is set to -1 in different functions: msPostGISBuildSQL(), msQueryByRect() and probably more. There should be a more sophisticated solution - any comments?

Kind regards,

More information about the mapserver-dev mailing list