addition of language metadata

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Thu Nov 2 12:16:18 EST 2006


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



More information about the mapserver-dev mailing list