Changes between Initial Version and Version 2 of Ticket #3975
- Timestamp:
- Aug 1, 2011, 6:39:14 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3975
- Property Status new → closed
- Property Resolution → invalid
-
Ticket #3975 – Description
initial v2 3 3 The data is in MS SQL 2008, in coord sys 4326. 4 4 Here is example WFS request: 5 5 6 http://www.anglingdiary.org.uk/esdmMapServer6/ms/apps/mapserv.exe?map=D:\Websites\mojoPortal_SFCC\esdmMapServer\map\SFCC.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=SFCCWatersLine&SRS=4326&BBOX=-5.2,56.3,-5.5,56.6 7 6 8 This should return a ton of features. But DEBUG output revealed this: 9 {{{ 7 10 [Sun Jul 31 11:23:42 2011].658000 msOGRFileWhichShapes: Setting spatial filter to -7.557295 49.767308 -7.557291 49.767311 8 11 [Sun Jul 31 11:23:42 2011].660000 msOGRFileNextShape: Returning MS_DONE (no more shapes) 12 }}} 9 13 So for some reason it was incorrectly transforming the BBOX. 10 14 I have found the cause (after much experimenting!). 11 15 Originally I had this WEB metadata: 16 {{{ 12 17 WEB 13 18 IMAGEPATH "D:\Websites\blah\tmp" … … 16 21 "wfs_srs" "EPSG:27700 EPSG:4326" 17 22 etc etc 23 }}} 18 24 and the WFS request returned no features. 19 25 I changed the wfs_srs to this: 26 {{{ 20 27 "wfs_srs" "EPSG:4326 EPSG:27700" 28 }}} 21 29 and it started working. 22 30 Interestingly, requests in &SRS=27700 always worked. 23 31 For info, I also have this in the MAP: 32 {{{ 24 33 PROJECTION 25 34 "init=epsg:4326" 26 35 END 36 }}} 27 37 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. 28 38 Hope this is enough information!