Opened 17 years ago
Closed 16 years ago
#1955 closed defect (fixed)
[OWS-Common] add ows_language metadata
Reported by: | tomkralidis | Owned by: | jmckenna |
---|---|---|---|
Priority: | high | Milestone: | 5.2 release |
Component: | MapServer CGI | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | |
Cc: | jmckenna@…, bartvde@… |
Description
For the record: 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@osgis.nl] > Sent: 02 November, 2006 1:55 PM > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-DEV@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 > > > > > > >
Change History (7)
comment:2 by , 17 years ago
Cc: | added |
---|
I've committed this in CVS HEAD under mapows.c (msOWSGetLanguage). Jeff (added to cc): for documentation. For now, under the OGC:SOS documentation (Web Object Metadata): ows_language * Description: (Optional) Descriptive narrative for more information about the server. Identifier of the language used by all included exception text values. These language identifiers shall be as specified in IETF RFC 1766. When this attribute is omitted, the language used is not identified. Examples: "en-CA", "fr-CA", "en-US".
comment:4 by , 17 years ago
Update: msOWSLanguage, if called in the context of an exception, will always return en-US. Else, it will fetch MAP/WEB/METADATA/ows_language
comment:5 by , 17 years ago
FYI maperror.h now has a #define called MS_ERROR_LANGUAGE "en-US" for use by error handlers.
comment:6 by , 17 years ago
Milestone: | → 5.0 release |
---|---|
Owner: | changed from | to
comment:7 by , 16 years ago
Milestone: | 5.0 release → 5.2 release |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Version: | unspecified → svn-trunk (development) |
Updated SOS Server howto. Closing
Note:
See TracTickets
for help on using tickets.