[Qgis-developer] Minor Python API inconsistency?

Tom Chadwin tom.chadwin at nnpa.org.uk
Thu May 4 02:22:43 PDT 2017

Hello all

Apologies if this has already been addressed in master - I don't know the
codebase well enough to investigate.

While expanding my plugin's test suite, I got tripped up by this. The
following works in 2.18.7:

QgsVectorLayer(url, name, 'WFS') # uppercase "WFS"

However, the following does not:

QgsRasterLayer(url, name, 'WMS') # to work, "wms" must be lower case



Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
View this message in context: http://osgeo-org.1560.x6.nabble.com/Minor-Python-API-inconsistency-tp5319359.html
Sent from the QGIS - Developer mailing list archive at Nabble.com.

More information about the QGIS-Developer mailing list