[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 14:05:23 PDT 2012


Hi Martin,

I'll add a copy of the map file tomorrow and make some test data available.

I saw from the documentation about adding .eng to the end of certain  metadata in the map file, but I thought that this was only required when the content was not the default language.  I'll have a go with this approach too to see if it fixes things for me.

thanks for investigating

James




________________________________________
From: Martin Kofahl [M.Kofahl at gmx.net]
Sent: 11 July 2012 20:34
To: Passmore, James H.
Cc: Mapserver-inspire at lists.osgeo.org
Subject: Re: [Mapserver-inspire] MapServer 6.2.0-beta1 release: bug or config error with INSPIRE response

Hi James,

although I can currently not reproduce this case, you may try to add a ".eng" to wms_title, wms_abstract, wms_rootlayer_title, wms_rootlayer_abstract reading wms_title.eng etc.

A more detailed mapfile would be helpful.

Kind regards,
Martin


-------- Original-Nachricht --------
> Datum: Wed, 11 Jul 2012 16:22:30 +0200
> Von: thomas bonfort <thomas.bonfort at gmail.com>
> An: "Passmore, James H." <jpass at bgs.ac.uk>
> CC: "Mapserver-inspire at lists.osgeo.org" <Mapserver-inspire at lists.osgeo.org>
> Betreff: Re: [Mapserver-inspire] MapServer 6.2.0-beta1 release: bug or config error with INSPIRE response

> James,
> A truncated output is certainly a bug that we can look into if you can
> provide us with a testcase that reproduces it. Can you open a ticket
> for this and include a minimal mapfile that a dev can run locally in a
> debugger?
>
> cheers,
> thomas
>
> On Wed, Jul 11, 2012 at 4:11 PM, Passmore, James H. <jpass at bgs.ac.uk>
> wrote:
> > 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.
> > _______________________________________________
> > Mapserver-inspire mailing list
> > Mapserver-inspire at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-inspire
> _______________________________________________
> Mapserver-inspire mailing list
> Mapserver-inspire at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-inspire


More information about the Mapserver-inspire mailing list