<div dir="ltr">Hi<div><br></div><div>Is it possible to use custom key and value pairs in layer metadata that are accessible from metadata API ? Because whichever way I have tried, I can not seem to get it working.</div><div>Dont see anything in getcapabilites nor metadata api for the layer. I see keywords, but would like to have key and value.</div><div><br></div><div><a href="https://mapserver.org/mapfile/layer.html">https://mapserver.org/mapfile/layer.html</a><br></div><div>Here it says: <span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px">This keyword allows for arbitrary data to be stored as name value pairs.</span><span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px"> </span></div><div><span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px">But how?</span></div><div><br></div><div>Example layer:</div><div><br></div><div>LAYER<br></div><div> TEMPLATE "dummy"<br> NAME "arp"<br> GROUP lennuinfo <br> STATUS off<br> TYPE point<br> CONNECTIONTYPE POSTGIS<br> INCLUDE "/app/secrets/postgis.inc"<br> DATA "geom from lennuv2ljad using unique id using srid=3301" <br> <br> <br> PROJECTION<br> "init=epsg:3301"<br> END <br><br> METADATA<br> "wfs_srs" "EPSG:3301"<br> "gml_msGeometry_type" "point"<br> "ows_extent" "40500 5993000 1064500 7017000"<br> "ows_title" "Lennuväljad"<br> "ows_abstract" "Lennuinfo"<br> "ows_keywordlist" "Lennuinfo"<br> "ows_include_items" "all"<br> "gml_include_items" "all"<br> "ows_featureid" "gid"</div><div><b><font size="4">"custom_key" "custom_value"</font></b></div><div><br> END<br> <br> CLASS<br> METADATA<br>
<b><font size="4">"custom_key" "custom_value"</font></b><br> END <br> NAME "lennuväli"<br> STYLE<br> SYMBOL 'arp'<br> END <br> END<br>END <br></div></div>