[mapserver-users] Keywords from multiple vocabularies
Even Rouault
even.rouault at spatialys.com
Tue Jun 14 06:59:29 PDT 2016
Le mardi 14 juin 2016 13:44:14, Wright, Simon M. a écrit :
> Dear All
>
> I'm trying to create an INSPIRE WMS service using MapServer 7.0.1.
>
> In my MAP | WEB | METADATA section of my map file I define the following
> keyword lists:
>
> "wms_keywordlist_ISO_items" "infoMapAccessService"
> "wms_keywordlist_vocabulary" "ISO"
> "wms_keywordlist" "Land use,Land Cover Map
> 2007,Habitat,Great Britain,England,Scotland,Wales"
> "wms_keywordlist_GEMET_items" "Land cover"
> "wms_keywordlist_vocabulary" "GEMET"
>
> However, in the resultant WMS GetCapabilities document I get the following:
>
> <KeywordList>
> <Keyword>Land use</Keyword>
> <Keyword>Land Cover Map 2007</Keyword>
> <Keyword>Habitat</Keyword>
> <Keyword>Great Britain</Keyword>
> <Keyword>England</Keyword>
> <Keyword>Scotland</Keyword>
> <Keyword>Wales</Keyword>
> <Keyword vocabulary="GEMET">Land cover</Keyword>
> </KeywordList>
>
> i.e. the infoMapAccessService keyword from the ISO vocabulary isn't output
> in the GetCapabilities document.
>
> If I switch the order of the keyword list items in my map file to:
>
> "wms_keywordlist" "Land use,Land Cover Map
> 2007,Habitat,Great Britain,England,Scotland,Wales"
> "wms_keywordlist_GEMET_items" "Land cover"
> "wms_keywordlist_vocabulary" "GEMET"
> "wms_keywordlist_ISO_items" "infoMapAccessService"
> "wms_keywordlist_vocabulary" "ISO"
>
> The resultant WMS GetCapabiliites list the following keywords:
>
> <KeywordList>
> <Keyword>Land use</Keyword>
> <Keyword>Land Cover Map 2007</Keyword>
> <Keyword>Habitat</Keyword>
> <Keyword>Great Britain</Keyword>
> <Keyword>England</Keyword>
> <Keyword>Scotland</Keyword>
> <Keyword>Wales</Keyword>
> <Keyword vocabulary="ISO">infoMapAccessService</Keyword>
> </KeywordList>
>
> i.e. the Land cover keyword from the GEMET vocabulary isn't listed.
>
> So, am I not correctly specifying my keywords correctly in my map file or
> is there a bug in MapServer that prevents keywords from different/multiple
> vocabularies to be specified in the map file that isn't honoured in the
> WMS GetCapabilities document?
Simon,
From what I can see in the code, the value of keywordlist_vocabulary can be a
comma separated list, so just try :
"wms_keywordlist_vocabulary" "ISO,GEMET"
The doc at http://mapserver.org/ogc/wms_server.html could be improved
regarding that.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the MapServer-users
mailing list