5

I'm making a vegetation survey map using the UK phase 1 survey colour codes. The code for marshy grassland, for example, is orange overlain with purple diagonal lines. For the moment I've created separate polygon shapefiles in QGIS for the solid orange and then drawn by hand an additional polygon over the top of it to provide the purple diagonal overlay. Is it possible to have a solid fill and diagonal lines (or other pattern) simultaneously in the same shapefile?

  • 2
    duplicating the polygon for symbology should be avoided (e.g. if someone computes the total area of grassland without knowing about your manipulation, it will be multiplied by two). Symbology can be done with a single polygon, as you can see in he answers. Also, please avoid asking two questions in one post. – radouxju Sep 17 '14 at 11:20
  • Since the format of our site requires that we keep each thread to one question, I have removed your question about copying polygons. As radouxju mentiones, it should not be used for your use case anyway. – underdark Sep 17 '14 at 17:55
7

It is possible to have a fill color and some diagonal lines at the same time in a single shapefile. You have a button to add a symbol layer in the style properties of your layer.

enter image description here

4

Building on from the answer provided by @Alkwts which shows clearly how to add styles, you can copy/paste existing polygons:

If you toggle the Toggle Editing button (icon in the left red circle), you can then select the polygon you want (icon in the right red circle). Once you selected the polygon, click on the Copy and then Paste icons (middle red circle). Your polygon is copied.

Editing

Now you want to move the copied feature, so click on the Move Feature icon, select the same polygon and drag it to your desired place.

Move feature

This next part is if you want to differentiate between polygons as this will help allow you to have different styles for different polygons. Edit the attributes of your layer (right-click the layer name and select Open Attribute Table), select Add Column and enter a name for the column and add a value/string etc to differentiate between the 2 polygons.

Add column

The Styling has already been clearly answered by @Alkwts but to give different polygons a unique style, select Rule-based, add a filter which would include the new column name and the value/string you added for the polygon. This means that all polygons with the same value you inserted as a filter will all look like that specific style.

Rule Properties

And you can create more styles for more polygons.

Different styles

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.