-
-
Notifications
You must be signed in to change notification settings - Fork 384
Inconsistent WFS Filter results between OGR vs. shapelib #4995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
patch 9f50847 fixes this issue for master post rfc91, both drivers now consistently return 5 features. We cannot call msEvalExpression from inside the OGR nextshape() function as the shapeObj has not yet been created from the OGR geometry. The proposed patch removes the call to msEvalExpression from inside the OGR driver, and lets it get handled by msLayerNextShape(). @sdlime given this fix, I imagine that the call to msEvalExpression inside msLayerNextShape is redundant for drivers that implement native filtering; for performance reasons shouldn't we try to avoid calling it in that case? |
Patch seems ok. You’re correct that avoiding calls to msEvalExpression would be good. There’s a test at the top of that function that could be moved outside I guess (type=MS_STRING, no item). From: Thomas Bonfort [mailto:notifications@github.com] patch 9f508479f50847 fixes this issue for master post rfc91, both drivers now consistently return 5 features. We cannot call msEvalExpression from inside the OGR nextshape() function as the shapeObj has not yet been created from the OGR geometry. The proposed patch removes the call to msEvalExpression from inside the OGR driver, and lets it get handled by msLayerNextShape(). @sdlimehttps://github.com/sdlime given this fix, I imagine that the call to msEvalExpression inside msLayerNextShape is redundant for drivers that implement native filtering; for performance reasons shouldn't we try to avoid calling it in that case? — |
Thanks for taking the time Even, I appreciate the help... Steve From: Even Rouault [notifications@github.com] I've merge 9f508479f50847 as well as other fixes, mainly in mapogr.cpp and in mapogcfiltercommon.c as well, that make now all WFS tests pass. See #4999#4999 — |
These changes are in master, correct? --Steve |
I think this can be safely closed now. --Steve |
with 6.4, in msautotest/wxs using
DATA roads
byCONNECTIONTYPE OGR CONNECTION "data/roads.shp"
, the query returns 5 features, which seems to be the correct result given the requested bboxwith master after RFC91 (#4974), the OGR driver returns 0 features, and the native shapefile driver returns 5 features
cc @sdlime
The text was updated successfully, but these errors were encountered: