Tag Info

New answers tagged

0

It could be a bit of a work to associate a style defined on client side with a wms layer. You can easily highlight the features returned by the filter on a vector layer with the defined style. All you have to do is add a vector layer, specify the style in it and then add the features contained in the response returned by the filter. This piece of code might ...


1

In general the approach you have outlined will only work with vector layers. WMS layers are pictures of the map sent to you by the WMS server so it is harder to change their style on the fly as you would like. You probably want to see if it is possible to make a WFS request for the highlighted polygon and overlay that over the WMS base layer. There are ways ...


1

Why do you think, you can't style a layer based on attributes? It is very much possible. There are several ways including: You can use uniqueValueRules, like shown in this sample: Unique Value Styles Example You could use Context of a style, like given in this sample: Feature Styles Example You could create a SLD and apply it to your layer, like given in ...


1

Thanks to Chris and Nyall and the work done to add data defined symbols there is now functions in QGIS to be able colour a symbol on the fly based on a column or expression. (Note: You need to be running the dev build of QGIS) You will have to break the parts into different columns, or you can do it on the fly using the string functions in the expression ...


5

The solution to create a qml file from RGB field values was presented in Python in How to use a field-to-RGB mapping for symbology in QGIS? but, as pointed out by Ryan Garnett, the problem is to convert the CMYK colour to RGB because: "it seems that there is the notion out there that conversion from CMYK to RGB is easy. Newsflash: It’s not. As every ...



Top 50 recent answers are included