[Qgis-user] PyQGIS code on raster image - What am I doing wrong?

Andrea Giudiceandrea andreaerdna at libero.it
Wed Jun 22 14:47:28 PDT 2022


*C Hamilton*adenaculture at gmail.com 
<mailto:qgis-user%40lists.osgeo.org?Subject=Re%3A%20%5BQgis-user%5D%20PyQGIS%20code%20on%20raster%20image%20-%20What%20am%20I%20doing%20wrong%3F&In-Reply-To=%3CCABPxTTq_rYo25hS2NdGZv4fzeQZQ%3DG%3D7NiJQK1cEyFAdGrSL9g%40mail.gmail.com%3E>
/Wed Jun 22 08:36:45 PDT 2022/
------------------------------------------------------------------------

color_ramp.setColorRampType(QgsColorRampShader.Interpolated)


Hi C Hamilton,
I think you are missing to classify the color ramp here:

color_ramp.classifyColorRamp()


Best regards.

Andrea Giudiceandrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220622/593a88f7/attachment.htm>


More information about the Qgis-user mailing list