Bug #5748

QgsRasterLayer::setDrawingStyle() doesn't work

Added by Giuseppe Sucameli 12 months ago. Updated 9 months ago.

Status:New Start Date:06/05/2012
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Rasters
Target version:Version 2.0.0
Platform: Patch supplied:No
Platform version: Affected version:master
Status info: Causes crash or corruption:No
Resolution:

Description

Here's the steps to reproduce it:

1. load a single band raster layer (named rl),

2. execute the following code on the raster layer

1 rl.setDrawingStyle(2) # now it's SingleBandPseudoColor
2 rl.triggerRepaint()

the layer is not rendered at all.

If I change the drawing style from the Layer properties dialog and then if I call the snippet above again it works...

History

Updated by Paolo Cavallini 9 months ago

  • Target version set to Version 2.0.0

Also available in: Atom PDF