addition of language metadata
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Thu Nov 2 13:59:00 EST 2006
Bart,
I've implemented this on my local CVS, and will open a bug report for
the record.
..Tom
> -----Original Message-----
> From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl]
> Sent: 02 November, 2006 1:55 PM
> To: Kralidis,Tom [Burlington]
> Cc: MAPSERVER-DEV at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-DEV] addition of language metadata
>
> Hi Tom,
>
> I think this would be valuable. In The Netherlands a WMS
> profile is being developed, and one of the things is that
> GetFeatureInfo needs to be given at least in Dutch. So it
> would be good being able to specify the language explicitly.
> But I guess you're talking about exception messages only for now.
>
> Best regards,
> Bart
>
> Kralidis,Tom [Burlington] schreef:
> > Hi,
> >
> > Does anyone think that something like:
> >
> > MAP/WEB/METADATA/"ows_language"
> >
> > Would be valuable? Note that language is a part of the OGC
> OWS Common
> > 1.0.0 specification. Example:
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?> <ows:ExceptionReport
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:ows="http://www.opengis.net/ows" version="0.0.31"
> language="en-CA"
> > xsi:schemaLocation="http://www.opengis.net/ows
> > http://schemas.opengeospatial.net/ows/1.0.0/owsExceptionReport.xsd">
> > <ows:Exception exceptionCode="MissingParameterValue"
> > locator="layers"/>
> > </ows:ExceptionReport>
> >
> > Codewise, I would see something like, in mapows.c:
> >
> > const char *msOWSGetLanguage(mapObj *map) {
> > const char *language;
> >
> > language = msLookupHashTable(&(map->web.metadata),
> "ows_language");
> > if (language == NULL) {
> > language = "undefined";
> > }
> > return language;
> > }
> >
> > Benefits:
> >
> > - OWS clients will be aware of the language of the OWS XML content
> >
> > Comments?
> >
> > ..Tom
> >
> >
> >
>
>
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> bartvde at osgis.nl
> http://www.osgis.nl
>
>
More information about the mapserver-dev
mailing list