[Mapserver-inspire] MapServer 6.2.0-beta1 release: bug or config error with INSPIRE response

Passmore, James H. jpass at bgs.ac.uk
Wed Jul 11 07:11:27 PDT 2012


I'm reposting the following on this list, as I've had no responses on the 'mapserver-users at lists.osgeo.org' list, apologies for cross posting.

-----Original Message-----
From: Passmore, James H. 
Sent: Tuesday, July 10, 2012 3:17 PM
To: 'mapserver-users at lists.osgeo.org'
Subject: MapServer 6.2.0-beta1 release: bug or config error with INSPIRE response 

I'm trying to add INSPIRE extended capabilities (scenario 1) into a test service using the MapServer 6.2.0-beta1 release.

I'm trying to follow the http://mapserver.org/trunk/ogc/inspire.html documentation

I want an English only response hopefully like:

<inspire_vs:ExtendedCapabilities>
    <inspire_common:MetadataUrl xsi:type="inspire_common:resourceLocatorType">
        <inspire_common:URL>http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&</inspire_common:URL>
        <inspire_common:MediaType>application/xml</inspire_common:MediaType>
    </inspire_common:MetadataUrl>
    <inspire_common:SupportedLanguages>
        <inspire_common:DefaultLanguage>
            <inspire_common:Language>eng</inspire_common:Language>
        </inspire_common:DefaultLanguage>
    </inspire_common:SupportedLanguages>
    <inspire_common:ResponseLanguage>
        <inspire_common:Language>eng</inspire_common:Language>
    </inspire_common:ResponseLanguage>
</inspire_vs:ExtendedCapabilities>

I seem to have a problem with the 'WMS_LANGUAGES' metadata

If I comment out the 'WMS_LANGUAGES' metadata like:

        WMS_INSPIRE_CAPABILITIES "URL"
        #WMS_LANGUAGES "eng"
        WMS_INSPIRE_METADATAURL_HREF "http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&"
        WMS_INSPIRE_METADATAURL_FORMAT "application/xml"

My response is:

<inspire_vs:ExtendedCapabilities>
    <inspire_common:MetadataUrl xsi:type="inspire_common:resourceLocatorType">
        <inspire_common:URL>http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&</inspire_common:URL>
        <inspire_common:MediaType>application/xml</inspire_common:MediaType>
    </inspire_common:MetadataUrl>
<!-- WARNING: Mandatory metadata '..._languages' was missing in this context. --> </inspire_vs:ExtendedCapabilities>

So I assume the other metadata is correct.

If I add any content to the 'WMS_LANGUAGES' metadata like:

        WMS_INSPIRE_CAPABILITIES "URL"
        WMS_LANGUAGES "eng"
        WMS_INSPIRE_METADATAURL_HREF "http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&"
        WMS_INSPIRE_METADATAURL_FORMAT "application/xml"

Or

        WMS_INSPIRE_CAPABILITIES "URL"
        WMS_LANGUAGES "eng,eng"
        WMS_INSPIRE_METADATAURL_HREF "http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&"
        WMS_INSPIRE_METADATAURL_FORMAT "application/xml"

Or 

        WMS_INSPIRE_CAPABILITIES "URL"
        WMS_LANGUAGES "eng,ger"
        WMS_INSPIRE_METADATAURL_HREF "http://metadata.bgs.ac.uk/geonetwork/srv/en/csw?SERVICE=CSW&REQUEST=GetRecordById&ID=7822e848-822d-45a5-8584-56d352fd2170&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&"
        WMS_INSPIRE_METADATAURL_FORMAT "application/xml"

My GetCapabilities response is malformed (I get error):

XML parsing failed

Error: unexpected end-of-file
Specification: http://www.w3.org/TR/REC-xml/ 
184:     </Style>
185:     <Layer queryable="1" opaque="0" cascaded="0">
186:         <Name>GBR_BGS_625k_BLT</Name>
187:         <Title>GBR BGS 1:625k Bedrock Lithology</Tit


Where GBR_BGS_625k_BLT is the name of the first layer in my map file with metadata:

    METADATA
      OWS_TITLE "GBR BGS 1:625k Bedrock Lithology"
      OWS_ABSTRACT "GBR BGS 1:625k scale Bedrock Lithology"
      WMS_SRS "EPSG:4326 EPSG:27700 EPSG:4258 EPSG:3857"
      GML_INCLUDE_ITEMS "RCS_D"
      GML_FEATUREID "ID"
      WMS_INCLUDE_ITEMS "RCS_D"
      OWS_METADATAURL_HREF "http://www.bgs.ac.uk/discoverymetadata/13480426.html"
      OWS_METADATAURL_FORMAT "text/html"
      OWS_METADATAURL_TYPE "TC211"
      OWS_DATAURL_HREF "http://www.bgs.ac.uk/products/digitalmaps/digmapgb_625.html"
      OWS_DATAURL_FORMAT "text/html"
      OWS_KEYWORDLIST "OneGeology,geology,bedrock,lithology,continent at Europe,subcontinent at Northern Europe,geographicarea at United Kingdom,dataprovider at British Geological Survey,serviceprovider at British Geological Survey,DS_TOPIC at geoscientificinformation,DS_DATE at 2008-04-10"
    END


Am I missing some language specific metadata in my map file or is this some error with MapServer

Thanks

James

James Passmore
GIS and WWW Specialist
Information Systems and Infrastructure,
British Geological Survey,
http://www.bgs.ac.uk/

+44 (0)115 936 3125



-- 
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.


More information about the Mapserver-inspire mailing list