Hi,

I don't think GetMetadata is specific to WMS, but is common to all the WxS 
services. 
It should have been possible to disable it using something like the following 
in METADATA, but after a quick look at the code it doesn't appear to be 
implemented:

"ows_enable_request" "* !GetMetadata"

MapServer only generates XML. If you want to use another format the following 
METADATA should work:

"ows_metadataurl_href" "http://example.com/my.json";

Maybe the following also disables it?

"ows_metadataurl_href" "" # try a blank URL?

Seth

--
web:https://geographika.net & https://mapserverstudio.net
mastodon: @geographika@mastodon.social

On Wed, May 7, 2025, at 3:21 PM, Stefan Gofferje via MapServer-users wrote:
> Hi again,
>
> so I have configured a MapServer map without any WMS configuration but 
> MapServer is still offering WMS in the reply to GetMetaData.
>
> s. 
> https://ms.saakeskus.fi/?map=wfs&request=GetMetadata&layer=fmimeasurements
>
> It also only offers GML2 and GML3 although I have configured GeoJSON via 
> an OUTPUTFORMAT block in the map file and it also works if I add 
> OUTPUTFORMAT=geojson to the URL.
>
> Any hints on what's the problem?
>
> -Stefan
>
> -- 
>   (o_   Stefan Gofferje            | SCLT, MCP, CCSA
>   //\   Reg'd Linux User #247167   | VCP #2263
>   V_/_  https://www.gofferje.net   | https://www.saakeskus.fi
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to