Saturday, 18 June 2016

qgis - Creating a 'brick wall' style for polygons


I am trying to create a brick wall style for a vector polygon in QGIS 2 and 3. I can render a svg drawing of a brick wall with SVG fill (image below). But I do not want to use SVG since the style is part of a free geological map, where the SVG file will complicate the distribution and rendering of the data for the public. Saving the SVG through a default QML forces relative paths to the SVG file in the QML file and the SVG file must be in the QGIS system SVG folder.


Anyone created a polygon vector style like:


enter image description here


That does not need a external SVG file for rendering.



Answer




Use a point pattern fill, with half_square marker and 90 degree rotation


Marker size: 10mm


enter image description here


Distance: Horizontal 10mm, Vertical 5mm


Displacement: Horizontal 5mm, Vertical 0mm


enter image description here


Result: consistent brick pattern fill regardless of polygon shape


enter image description here


For a different size of brick pattern, use these proportions, where X is the size of your point marker:




  • Marker size: 2X

  • Distance: Horizontal 2X, Vertical X

  • Displacement: Horizontal X, Vertical 0




Here's what it looks like with different point markers and all the other settings the same:


Hexagon enter image description here Cross_fill enter image description here Circle enter image description here Semi_circle enter image description here Triangle enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...