[Qgis-developer] WMS metadata() in non-English locale
Matthias Kuhn
matthias at opengis.ch
Wed Feb 1 02:01:02 PST 2017
Hi Nicolas,
On 02/01/2017 10:38 AM, Nicolas Boisteault wrote:
> Matthias, are you sure the metadata() method translates VERSION term?
https://github.com/qgis/QGIS/blob/master/src/providers/wms/qgswmsprovider.cpp#L1886
tr() means: translate.
>
> If yes, there should be a another way to get original VERSION metadata
> from GetCapabilities which is always in english.
Yes I agree.
That's the way it's done in WFS (and vector data providers) but
unfortunately not (yet) in WMS (raster based providers). The proposal in
my previous email should fix that. (`QVariantMap metadata()` etc.), it
just needs someone to take care of this.
Matthias
>
> Le 2017-02-01 10:17, Tom Chadwin a écrit :
>
>> I think that's exactly what metadata() does. Perhaps I need to issue a new
>> getCapabilities request to the server, but fake/force an English locale? I
>> don't know how..
>>
>>
>>
>> -----
>> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/WMS-metadata-in-non-English-locale-tp5305601p5305673.html
>> Sent from the QGIS - Developer mailing list archive at Nabble.com.
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org <mailto:Qgis-developer at lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
More information about the Qgis-developer
mailing list