Tag Info

New answers tagged

1

It's now set via the data defined button next to the symbols angle property. Just click that button and choose your field you want to bind the rotation to.


2

In QGIS 2.10.1, the option Change angle is availabe for the Rule-based style which can be used for rotation. This can be accessed by right-clicking on an item.


14

You could use PyQGIS for that (not sure is the best solution for it, though). Select (or activate) the layer in the QGIS ToC, open the QGIS Python console, and copy this code snippet: prefix = "'" layer = iface.activeLayer() attr = layer.rendererV2().classAttribute() attrColor = 'color' # Name of the field to store colors fieldIndex = ...


1

In Layer Properties make a click on "Simple Fill" (in the left part). On the right side click the symbol for data defined color and choose Field type: string > color (field in the attribute table). It works in QGIS 2.8.2. But I'm missing the different colors for this layer "buffer" in the map legend.


2

I figured out how to do it manually. Not so ellegant, but works. In *.qml style, I can edit part with < prop k="angle" v="0"/ > and instead of it write < prop k="angle_expression" v="ROT"/ > , where ROT is my field with rotation. Edit: In version 2.10 there is a new field in rule-based renderer- "change angle".


0

If the styling of elements is thematic (and you know what columns drive the theme) you can build a QML file programmatically in PostgreSQL. For example, I have a file with ~150 styles for government zone polygons (subsets of the zones have the same style). The data was originally in MapInfo format in two TAB files - one with the zone polygons, another with ...


1

You can find the Advanced options if you click on a rule you made and select Refine current rules > Add categories to rule or Add ranges to rule > Advanced > Rotation field: Hope this helps!


4

Yes. You just have to do change the style of the polygon from "Single Symbol" to "Inverted polygons". Here you can see a polygon with a solid fill using the "single symbol" style. The top left of the style tab in the properties window for the polygon layer is where you change it to "inverted polygons". Then you can hit OK and see it in the map. It's ...


1

Have you tried using the mask plugin? Set the style to inverted polygon and set the shapeburst fill to transparent. Set the layer transparency to the desired level. Before mask: After mask:


0

I was looking for a very similar thing (but with polygons) and artwork21's answer here directed my research. You can also do the same thing using Geoserver's CSS Extension as per this alternative solution: * { stroke: #800000, #008000; stroke-geometry: [the_geom],[offset(the_geom, -0.005, 0.005)]; stroke-width: 8, 10; stroke-linejoin: round; ...



Top 50 recent answers are included