PyQGIS cookbook docu on website mismatch api #17683
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Documentation
Changes to Documentation, README, INSTALL, etc
Author Name: Luigi Pirelli (@luipir)
Original Redmine Issue: 9028
Affected QGIS version: 2.0.1
Redmine category:documentation_and_help
here:
http://www.qgis.org/en/docs/pyqgis_developer_cookbook/loadlayer.html#raster-layers
the code:
rlayer = QgsRasterLayer(uri, 'my_wcs_layer', 'wcs')
doesn't work due to mismatch with api that accept uri QString as stated in api signature:
QgsRasterLayer( const QString & uri,
const QString & baseName,
const QString & providerKey,
bool loadDefaultStyleFlag = true );
The text was updated successfully, but these errors were encountered: