Guest User

Untitled

a guest
Jun 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. >>> fcn = QgsColorRampShader()
  2. >>> fcn.setColorRampType(QgsColorRampShader.INTERPOLATED)
  3. >>> lst = [ QgsColorRampShader.ColorRampItem(0, QColor(0,255,0)),
  4. QgsColorRampShader.ColorRampItem(255, QColor(255,255,0)) ]
  5. >>> fcn.setColorRampItemList(lst)
  6. >>> shader = QgsRasterShader()
  7. >>> shader.setRasterShaderFunction(fcn)
Add Comment
Please, Sign In to add comment