<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hello,<div><br></div><div>I tested this example and it works.</div><div><br></div><div>Thanks.</div><div><br></div><div>Best Regards Gerhard<br><br><div dir="ltr">Von meinem iPad gesendet</div><div dir="ltr"><br><blockquote type="cite">Am 07.02.2023 um 15:41 schrieb Seth G <sethg@geographika.co.uk>:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><title></title><div>Hi,<br></div><div><br></div><div>Did you set the metadata at the LAYER level?<br></div><div><br></div><div>LAYER<br></div><div> NAME "testlayer"<br></div><div> METADATA<br></div><div> 'ows_metadataurl_href' "<a href="https://mapservice.test.org/data/Test.XML">https://mapservice.test.org/data/Test.XML</a>"<br></div><div> END<br></div><div>END<br></div><div><br></div><div>Then a request to <a href="https://mapservice.test.org/cgi-bin/mapserv?map=/data/ows/maps/metatest.map&request=GetMetadata&layer=testlayer">https://mapservice.test.org/cgi-bin/mapserv?map=/data/ows/maps/metatest.map&request=GetMetadata&layer=testlayer</a> should return the following HTTP response:<br></div><div><br></div><div>Status: 301 Moved Permanently<br></div><div>Location: D:\TFS\PublicLighting\Main\Python\plpy\mapfiles\generated\test.xml<br></div><div><br></div><div><br></div><div>Seth<br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div>On Tue, Feb 7, 2023, at 3:08 PM, Gerhard Völkl wrote:<br></div><blockquote type="cite" id="qt" style=""><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr">Hello,</span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u></u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u>I am looking for an getMetadata example</u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u></u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u>I want to call mapserver to get metadata xml file</u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u></u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u>Example:</u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u></u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u>https://mapservice.test.org/cgi-bin/mapserv?map=/data/ows/maps/metatest.map&request=GetMetadata&layer=testlayer</u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u></u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span dir="ltr" style="color:purple;"><u>In the map file I used this</u></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"> <br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"> <span class="font" style="font-family:Consolas;"><span class="size" style="font-size:11pt;">'ows_metadataurl_href' "</span></span><span dir="ltr" style="color:purple;"><span class="font" style="font-family:Consolas;"><span class="size" style="font-size:11pt;"><u>https://mapservice.test.org/data/Test.XML</u></span></span></span><span class="font" style="font-family:Consolas;"><span class="size" style="font-size:11pt;">"</span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span class="size" style="font-size:11pt;"></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span class="size" style="font-size:11pt;">But it does not work.</span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span class="size" style="font-size:11pt;"></span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"><span class="size" style="font-size:11pt;">Any examples. Perhaps with example xml file</span></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"><span class="font" style="font-family:Consolas;"></span><br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"> <br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;font-size:11pt;font-family:Arial, sans-serif;"> <br></p><p class="qt-MsoNormal" style="-moz-text-size-adjust:auto;margin-top:0cm;margin-right:0cm;margin-bottom:0.0001pt;margin-left:0cm;"><span class="font" style="font-family:Calibri Light, sans-serif;"><span class="size" style="font-size:13px;"><span class="color" style="color:rgb(31, 73, 125);"><span style="">Best Regards Gerhard</span></span></span></span><br></p><div><br></div><div dir="ltr">Von meinem iPad gesendet<br></div><div>_______________________________________________<br></div><div>MapServer-users mailing list<br></div><div><a href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div><div><br></div></blockquote><div><br></div></div></blockquote></div></body></html>