mapnik/OGCServer

QGIS >= 1.5.0 shows reversed layers list

Closed this issue · 3 comments

The GetCapabilities response is interpreted bottom top instead of top bottom.

QGIS 1.4.0 works ok, 1.5.0 and 1.6.0 show reversed layer list.

We cannot filter on the user agent:
QGIS 1.4.0: HTTP_USER_AGENT: Quantum GIS - 1.4.0-Enceladus
QGIS 1.5.0: HTTP_USER_AGENT: Mozilla/5.0
QGIS 1.6.0: HTTP_USER_AGENT: Mozilla/5.0

rgrep "Mozilla/5.0" *
Binary file Quantum GIS Enceladus/bin/QtNetwork4.dll matches
Binary file Quantum GIS Tethys/bin/QtNetwork4.dll matches
Binary file Quantum GIS Tethys/bin/QtWebKit4.dll matches
Binary file Quantum GIS Copiapo/bin/QtNetwork4.dll matches
Binary file Quantum GIS Copiapo/bin/QtWebKit4.dll matches

May be something related to Qt WebKit usage. If that is the case, it can be modified (http://doc.trolltech.com/4.6/qwebpage.html#userAgentForUrl) so servers can filter QGIS requests.

In QGIS 2.0 it is easy to sort the layers by id in reverse order, or select them bottom top.