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:
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
Distance: Horizontal 10mm, Vertical 5mm
Displacement: Horizontal 5mm, Vertical 0mm
Result: consistent brick pattern fill regardless of polygon shape
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 Cross_fill Circle Semi_circle Triangle
No comments:
Post a Comment