[MapServer-users] Using getMetadata with xml file
Seth G
sethg at geographika.co.uk
Tue Feb 7 06:40:43 PST 2023
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
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230207/1de3be90/attachment.htm>
More information about the MapServer-users
mailing list