addition of language metadata

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Thu Nov 2 13:55:29 EST 2006


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