Hi Jeff, If you use &version=1.1.0 you'll see the warnings:
http://194.66.252.155/cgi-bin/BGS_OGE_Bedrock_and_Surface_Geology_in2/ows?service=WFS&request=GetCapabilities&VERSION=1.1.0 -Jukka- Jeff McKenna wrote: On 2015-03-12 9:12 AM, Passmore, James H. wrote: > I have a MapServer version 6.4.1 service set-up and was looking at the WFS > GetCapabilities response: > > http://194.66.252.155/cgi-bin/BGS_OGE_Bedrock_and_Surface_Geology_in2/ > ows?service=WFS&request=GetCapabilities& > > All my FeatureTypes have the following warning: > > <!-- > WARNING: Mandatory mapfile parameter: (at least one of) MAP.PROJECTION, > LAYER.PROJECTION or wfs/ows_srs metadata was missing in this context. > --> > > The WFS is working though as far as I can see, for example, I get features > when loading in QGIS. > > Is this a bug or have I got something wrong in the config? > > MAP.PROJECTION is set as: > > MAP > CONFIG "PROJ_LIB" "C:/.../gisinternals/bin/proj/SHARE" > CONFIG "MS_ERRORFILE" "C:/.../OGE2/ms_error.log" > CONFIG "PGEO_DRIVER_TEMPLATE" "DRIVER=Microsoft Access Driver (*.mdb, > *.accdb);DBQ=%s" > CONFIG "OGR_SKIP" "ODBC" > EXTENT -8.7 49.8 1.8 60.9 > PROJECTION > #Default service projection > "init=epsg:4326" > END > > LAYER.PROJECTION (for example for GE.GeologicFault.BGS.EN.1M.Surface) is set > as: > > LAYER > NAME GE.GeologicFault.BGS.EN.1M.Surface > EXTENT -8.01697 49.9678 0.715821 60.8368 > PROJECTION > "init=epsg:4326" > END > > In addition I have: > > WEB > METADATA > "OWS_SRS" "CRS:84 EPSG:27700 EPSG:3034 EPSG:4258 > EPSG:4326" > > and: > > LAYER > METADATA > "OWS_EXTENT" "-8.01697 49.9678 0.715821 60.8368" > "OWS_SRS" "CRS:84 EPSG:27700 EPSG:3034 EPSG:4258 > EPSG:4326" > "WFS_OWS" "EPSG:4326" > > Thanks > > James Passmore > GIS and WWW Specialist > ------------------------------- > British Geological Survey, > Environmental Science Centre, > KEYWORTH, > United Kingdom, > NG12 5GG > Linked Data (vCard):http://data.bgs.ac.uk/ref/BritishGeologicalSurvey > w3w:http://w3w.co/firmly.legs.craftsmen You are missing the required parameter VERSION in your request. If I add it to your request I get no warnings: http://194.66.252.155/cgi-bin/BGS_OGE_Bedrock_and_Surface_Geology_in2/ows?service=WFS&request=GetCapabilities&VERSION=1.0.0 (hello from 'across the big pond') -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
