Tag Info

New answers tagged

1

Using my base raster: base<- raster("test.tif") plot(base) I got: For your breakpoints: breakpoints<-c(0,5,10,15,20,25) plot(base, col=terrain.colors(6), breaks=breakpoints) With help(plot), raster option, you can see examples of other descriptions for this R command. Another plot option: plot(base, col=colorRampPalette(c("red", "orange", ...


1

Use a Categorized style on the layer.


0

In QGIS 2.8.1 version, Right click on the layer. Go to Layer Properties. Clcik Styles Tab. Select drop down value Categorized. Use Random colors from Color Ramp drop down list.


1

searching for a solution for colour gradient based SLD for polygons I found this: http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html - here interesting: "Interpolate" transforms a continuous-valued attribute into another continuous range of values. Geoserver provides already a solution but it is not called something with ...


0

You are almost there. You need this: cat = QgsRendererCategoryV2(1, symbol, "1") renderer.addCategory(cat) A full example renderer = QgsCategorizedSymbolRendererV2("id") active_layer.setRendererV2(renderer) symbol = QgsSymbolV2.defaultSymbol(active_layer.geometryType()) symbol.setColor(QColor(Qt.red)) cat = QgsRendererCategoryV2(1, symbol, "1") ...



Top 50 recent answers are included