#3975 closed defect (invalid)
WFS GetFeature problem with order of coordinate systems in metadata
Reported by: | crispin | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | WFS Server | Version: | 6.0 |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
MS v6.01 from http://www.gisinternals.com/sdk/ My WFS GetFeature request was unexpectedly returning no features. The cause (revealed by setting DEBUG 5) was that the submitted BBOX was being changed to values that find no features. The data is in MS SQL 2008, in coord sys 4326. Here is example WFS request:
This should return a ton of features. But DEBUG output revealed this:
[Sun Jul 31 11:23:42 2011].658000 msOGRFileWhichShapes: Setting spatial filter to -7.557295 49.767308 -7.557291 49.767311 [Sun Jul 31 11:23:42 2011].660000 msOGRFileNextShape: Returning MS_DONE (no more shapes)
So for some reason it was incorrectly transforming the BBOX. I have found the cause (after much experimenting!). Originally I had this WEB metadata:
WEB IMAGEPATH "D:\Websites\blah\tmp" IMAGEURL "../tmp/" METADATA "wfs_srs" "EPSG:27700 EPSG:4326" etc etc
and the WFS request returned no features. I changed the wfs_srs to this:
"wfs_srs" "EPSG:4326 EPSG:27700"
and it started working. Interestingly, requests in &SRS=27700 always worked. For info, I also have this in the MAP:
PROJECTION "init=epsg:4326" END
and the same in each LAYER. If I took this section out of the layer, then it would also start working (without correcting the WEB metadata), but it responded with the wrong SRS in the GML. Hope this is enough information!
Change History (2)
comment:1 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Description: | modified (diff) |
---|
There is no evidence of a bug in the information provided: this looks like a mapfile configuration problem. Contrary to WMS, WFS 1.0.0 does not support a SRS request parameter, it always works with the SRS advertized for each feature type (so you should not expect SRS=EPSG:4326 or SRS=EPSG:27700 in the URL to make any difference). It is also important that you set the PROJECTION object at the map level and in each layer to the right values.
I suggest you have another read at: http://mapserver.org/ogc/wfs_server.html#rules-for-handling-srs-in-mapserver-wfs
Closing as invalid.