Hi,
Did you set the metadata at the LAYER level?
LAYER
NAME "testlayer"
METADATA
'ows_metadataurl_href' "https://mapservice.test.org/data/Test.XML"
END
END
Then a request to
https://mapservice.test.org/cgi-bin/mapserv?map=/data/ows/maps/metatest.map&request=GetMetadata&layer=testlayer
should return the following HTTP response:
Status: 301 Moved Permanently
Location: D:\TFS\PublicLighting\Main\Python\plpy\mapfiles\generated\test.xml
Seth
--
web:https://geographika.net
twitter: @geographika
On Tue, Feb 7, 2023, at 3:08 PM, Gerhard Völkl wrote:
>
> Hello,
> __
> _I am looking for an getMetadata example_
> __
> _I want to call mapserver to get metadata xml file_
> __
> _Example:_
> __
> _https://mapservice.test.org/cgi-bin/mapserv?map=/data/ows/maps/metatest.map&request=GetMetadata&layer=testlayer_
> __
> _In the map file I used this_
>
> 'ows_metadataurl_href' "_https://mapservice.test.org/data/Test.XML_"
>
> But it does not work.
>
> Any examples. Perhaps with example xml file
>
>
>
> Best Regards Gerhard
>
> Von meinem iPad gesendet
> _______________________________________________
> MapServer-users mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users