Skip to content
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

WFS 2.0.0 don't filter correctly on OGR spatialite #4878

Closed
aperi2007 opened this issue Mar 4, 2014 · 4 comments
Closed

WFS 2.0.0 don't filter correctly on OGR spatialite #4878

aperi2007 opened this issue Mar 4, 2014 · 4 comments

Comments

@aperi2007
Copy link

@aperi2007 aperi2007 commented Mar 4, 2014

Hi,

Doing a wfs 2.0.0 request with a filter seem don't work correctly with the OGR connector and a spatialite DB.
I apply a filter that hould return 1 record, but instead it retrun 0 record.

Instead if I try the same request with filter on a mapfile using the same settings but with a postgis connection it work and return the right result.

The filtered request I use is like this:

http://url-to-mapserver/...?map=wmstest&service=WFS&version=2.0.0&request=GetFeature&OUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2&typenames=test1&maxFeatures=100&Filter=%3Cfes:Filter%20xmlns:wfs=%22http://www.opengis.net/wfs%22%20xmlns:fes=%22http://www.opengis.net/fes/2.0%22%3E%3Cfes:PropertyIsEqualTo%20xmlns:fes=%22http://www.opengis.net/fes/2.0%22%3E%3Cfes:ValueReference%3Efilestgi%3C/fes:ValueReference%3E%3Cfes:Literal%3Ec0001_1_164_06mag1976%3C/fes:Literal%3E%3C/fes:PropertyIsEqualTo%3E%3C/fes:Filter%3E

Andrea.

@rouault
Copy link
Contributor

@rouault rouault commented Mar 4, 2014

Could you share the mapfile and spatialite DB to reproduce the issue ?

@aperi2007
Copy link
Author

@aperi2007 aperi2007 commented Mar 4, 2014

The spatialite db is too huge and too many tables.
But I can surely prepare a small subset to reproduce the bug.

rouault added a commit that referenced this issue Mar 4, 2014
rouault added a commit that referenced this issue Mar 5, 2014
…le) to speed-up queries since OGR SQLite driver does not yet support fast attribute filter on SELECT result layers (#4878)
@rouault
Copy link
Contributor

@rouault rouault commented Mar 5, 2014

Note that there was a mix-up that caused values of fields to be displayed in other fields elements, so you may need to adjust your filter to query the right column.

@rouault rouault closed this Mar 5, 2014
@tbonfort tbonfort added this to the 7.0 Release milestone Mar 5, 2014
@aperi2007
Copy link
Author

@aperi2007 aperi2007 commented Mar 5, 2014

Thx Rouault ,

it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.