[mapserver-users] Keywords from multiple vocabularies

Schweitzer, Peter pschweitzer at usgs.gov
Tue Jun 14 07:13:43 PDT 2016


The real need would be to specify, for each keyword, what vocabulary
it comes from.  Perhaps keywords should be specified using a URI, as
in RDF?  The next question is what system reads these keywords and
does something useful with them, and how does it expect these to be
arranged?

Peter

On Tue, Jun 14, 2016 at 9:59 AM, Even Rouault
<even.rouault at spatialys.com> wrote:
> 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
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



-- 
Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192)
(703) 648-6533  email: pschweitzer at usgs.gov
http://geology.usgs.gov/peter/


More information about the mapserver-users mailing list