{"action":"created","issue":{"url":"https://api.github.com/repos/mapserver/mapserver/issues/4166","labels_url":"https://api.github.com/repos/mapserver/mapserver/issues/4166/labels{/name}","comments_url":"https://api.github.com/repos/mapserver/mapserver/issues/4166/comments","events_url":"https://api.github.com/repos/mapserver/mapserver/issues/4166/events","html_url":"https://github.com/mapserver/mapserver/issues/4166","id":3963271,"number":4166,"title":"WFS BBOX filter (POST) fails with native shapefile access","user":{"login":"mapserver-bot","id":1608057,"avatar_url":"https://avatars.githubusercontent.com/u/1608057?v=3","gravatar_id":"","url":"https://api.github.com/users/mapserver-bot","html_url":"https://github.com/mapserver-bot","followers_url":"https://api.github.com/users/mapserver-bot/followers","following_url":"https://api.github.com/users/mapserver-bot/following{/other_user}","gists_url":"https://api.github.com/users/mapserver-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/mapserver-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapserver-bot/subscriptions","organizations_url":"https://api.github.com/users/mapserver-bot/orgs","repos_url":"https://api.github.com/users/mapserver-bot/repos","events_url":"https://api.github.com/users/mapserver-bot/events{/privacy}","received_events_url":"https://api.github.com/users/mapserver-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapserver/mapserver/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/mapserver/mapserver/labels/WFS%20Server","name":"WFS Server","color":"d7e102"}],"state":"closed","locked":false,"assignee":{"login":"sdlime","id":1599227,"avatar_url":"https://avatars.githubusercontent.com/u/1599227?v=3","gravatar_id":"","url":"https://api.github.com/users/sdlime","html_url":"https://github.com/sdlime","followers_url":"https://api.github.com/users/sdlime/followers","following_url":"https://api.github.com/users/sdlime/following{/other_user}","gists_url":"https://api.github.com/users/sdlime/gists{/gist_id}","starred_url":"https://api.github.com/users/sdlime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdlime/subscriptions","organizations_url":"https://api.github.com/users/sdlime/orgs","repos_url":"https://api.github.com/users/sdlime/repos","events_url":"https://api.github.com/users/sdlime/events{/privacy}","received_events_url":"https://api.github.com/users/sdlime/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2012-04-04T00:29:58Z","updated_at":"2015-11-08T17:27:53Z","closed_at":"2015-11-08T17:27:53Z","body":"**Reporter: jratike80**\n**Date: 2012/01/25 - 09:55**\n**Trac URL:** http://trac.osgeo.org/mapserver/ticket/4166\nWFS GetFeature request with OGC BBOX filter fails if shapefile is accessed through the native Mapserver native method. With OGR access the recuest is successful.\r\n\r\nThis can be tested with the attached shapefile and mapfile by toggling the access type by commenting/uncommenting the following lines.\r\n\r\n\n```\r\n #CONNECTIONTYPE OGR\r\n #CONNECTION \"d:\\ms4w\\data\\bbox_test.shp\"\r\n DATA \"d:\\ms4w\\data\\bbox_test.shp\"\r\n\r\n```\n\r\n\r\nThe POST request that shows the difference for me is this\r\n\r\n\r\n\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<wfs:GetFeature handle=\"GeoTools 2.7-RC2 WFS DataStore\" maxFeatures=\"100\"\r\noutputFormat=\"text/xml; subtype=gml/3.1.1\" resultType=\"results\" service=\"WFS\"\r\nversion=\"1.1.0\" xmlns:ogc=\"http://www.opengis.net/ogc\" xmlns:gml=\"http://www.\r\nopengis.net/gml\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\nxmlns:ows=\"http://www.opengis.net/ows\" xmlns:wfs=\"http://www.opengis.\r\nnet/wfs\"><wfs:Query srsName=\"EPSG:3067\"\r\ntypeName=\"bbox_test\"><ogc:Filter><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Envelope><gml:lowerCorner>280009.0 6696093.0\r\n</gml:lowerCorner><gml:upperCorner>282161.0 6698297.\r\n0</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>\r\n\r\n```\n\r\n\r\nThe practical consequence is that Geoserver cannot cascade this WFS layer if it is configured to use the native shapefile access."},"comment":{"url":"https://api.github.com/repos/mapserver/mapserver/issues/comments/154844822","html_url":"https://github.com/mapserver/mapserver/issues/4166#issuecomment-154844822","issue_url":"https://api.github.com/repos/mapserver/mapserver/issues/4166","id":154844822,"user":{"login":"jratike80","id":1751612,"avatar_url":"https://avatars.githubusercontent.com/u/1751612?v=3","gravatar_id":"","url":"https://api.github.com/users/jratike80","html_url":"https://github.com/jratike80","followers_url":"https://api.github.com/users/jratike80/followers","following_url":"https://api.github.com/users/jratike80/following{/other_user}","gists_url":"https://api.github.com/users/jratike80/gists{/gist_id}","starred_url":"https://api.github.com/users/jratike80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jratike80/subscriptions","organizations_url":"https://api.github.com/users/jratike80/orgs","repos_url":"https://api.github.com/users/jratike80/repos","events_url":"https://api.github.com/users/jratike80/events{/privacy}","received_events_url":"https://api.github.com/users/jratike80/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T17:27:53Z","updated_at":"2015-11-08T17:27:53Z","body":"BBOX and POST does work with Mapserver 7.0 with both native shp connection and with OGR shapefile driver. The mapfile that is included in the bbox_test.zip needs some editing for making it to work with MS 7.0, for example the EXTENT must now cover the data. When I wrote the ticket for MS 5.x or 6.x wrong extent had no effect. This extent is good: \r\nEXTENT 279470.988034 6695663.439659 280666.936409 6696825.670338\r\n\r\n"}}