[Qgis-developer] WMS layers and plugin interface

Hugentobler Marco marco.hugentobler at karto.baug.ethz.ch
Tue Jun 3 03:07:56 EDT 2008

Hi QGIS devs,

Am I right that it is not possible to add WMS layers from plugins with the current plugin interface? There seems to be only 

virtual QgsRasterLayer* addRasterLayer(QString rasterLayerPath, QString baseName = QString())=0;

for file-based raster layers. Would it be ok to add a similar function for WMS layers, e.g.

addRasterLayer(QString const & baseName,
    QString const & providerKey,
    QStringList const & layers,
    QStringList const & styles,
    QString const & format,
    QString const & crs,
    QString const & proxyHost, 
    int proxyPort, 
    QString const & proxyUser,
    QString const & proxyPassword)



More information about the Qgis-developer mailing list