[mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Thu Mar 12 09:29:29 PDT 2015


Hi,

With my minimal mapfile for the states.shp the behaviour seems to be as documented.  Projection given in only one place from the list is enough for making the warning to disappear. Something that you have in a different way must make the difference. Some alternatives:
- you do not use shapefiles
- you have a longer list in LAYER "OWS_SRS" "CRS:84 EPSG:27700 EPSG:3034 EPSG:4258 EPSG:4326"
- some combination of per se correct metadata but appearing in several places; such interactions are usually not tested by developers, they are not good in imaging what all we users can write to our mapfiles. 

-Jukka-

 Passmore, James H.  wrote:


> Hi Jukka,

> Thanks you are correct.

> I added "WFS_OWS" "EPSG:4326" to the LAYER > METADATA section as a quick hack after getting those errors and it was too quick a hack.

> So changing the incorrect "WFS_OWS" "EPSG:4326" to the "WFS_SRS" "EPSG:4326" in the LAYER > METADATA makes the error message go away, but not having "WFS_SRS" "EPSG:4326" set in the LAYER > METADATA, but having the MAP > PROJECTION, and LAYER > PROJECTION, and LAYER > METADATA as "OWS_SRS" "list of SRS...", set results in the warning:

<!--
WARNING: Mandatory mapfile parameter: (at least one of) MAP.PROJECTION, LAYER.PROJECTION or wfs/ows_srs metadata was missing in this context.
-->

So as I understand it this is still a bit buggy.

The message should really read:

<!--
WARNING: Mandatory mapfile parameter: wfs_srs metadata is missing in this context.
-->

thanks again

James

This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.


More information about the mapserver-users mailing list