Creating a 'brick wall' style for polygons

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
9
down vote

favorite
3












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.







share|improve this question















  • 1




    Got tantalizingly close to it. I think it's possible with two line pattern fills, each with one simple and one offset marker line (using the | symbol), and the second one offset a bit to the right and down. QGIS 3.2 keeps crashing when I try this though, you might have more luck.
    – Steven Kay
    Aug 6 at 17:13

















up vote
9
down vote

favorite
3












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.







share|improve this question















  • 1




    Got tantalizingly close to it. I think it's possible with two line pattern fills, each with one simple and one offset marker line (using the | symbol), and the second one offset a bit to the right and down. QGIS 3.2 keeps crashing when I try this though, you might have more luck.
    – Steven Kay
    Aug 6 at 17:13













up vote
9
down vote

favorite
3









up vote
9
down vote

favorite
3






3





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.







share|improve this question











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.









share|improve this question










share|improve this question




share|improve this question









asked Aug 6 at 14:35









Jakob

5,25711235




5,25711235







  • 1




    Got tantalizingly close to it. I think it's possible with two line pattern fills, each with one simple and one offset marker line (using the | symbol), and the second one offset a bit to the right and down. QGIS 3.2 keeps crashing when I try this though, you might have more luck.
    – Steven Kay
    Aug 6 at 17:13













  • 1




    Got tantalizingly close to it. I think it's possible with two line pattern fills, each with one simple and one offset marker line (using the | symbol), and the second one offset a bit to the right and down. QGIS 3.2 keeps crashing when I try this though, you might have more luck.
    – Steven Kay
    Aug 6 at 17:13








1




1




Got tantalizingly close to it. I think it's possible with two line pattern fills, each with one simple and one offset marker line (using the | symbol), and the second one offset a bit to the right and down. QGIS 3.2 keeps crashing when I try this though, you might have more luck.
– Steven Kay
Aug 6 at 17:13





Got tantalizingly close to it. I think it's possible with two line pattern fills, each with one simple and one offset marker line (using the | symbol), and the second one offset a bit to the right and down. QGIS 3.2 keeps crashing when I try this though, you might have more luck.
– Steven Kay
Aug 6 at 17:13











1 Answer
1






active

oldest

votes

















up vote
13
down vote



accepted










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






share|improve this answer























  • well done! i think it might also be possible with two thick line pattern fills using different dash patterns. this would make a nice addition to the QGIS pattern library :-)
    – Steven Kay
    Aug 6 at 17:33










  • I tried it with dash patterns, but the custom dash pattern didn't work how I expected. I expected a dash pattern '5,5' with millimeters as units would give a 5mm long dash with a 5mm space, but instead it's an invisible line. So I'm not sure if that feature is buggy, or if I just don't understand how it works.
    – csk
    Aug 6 at 18:08










  • Thanks, works very nice. The rectangle marker is called half_square in my QGIS 2.18.21 and 3.2.1. One problem though is that the style does not render in the legend in TOC - leaving a empty white box. This may be some style scaling problem rendering the legend in TOC - will report this to the qgis dev team.
    – Jakob
    Aug 7 at 11:54










  • That's just a scaling issue. The style box in the layer legend is only about 4mm wide, so when the bricks are 5x10mm the pattern doesn't fit. It displays properly when the bricks are smaller than the icon, say 2mm x 4mm. It might be a nice feature if there was an option to make the style box larger, or have large patterns shrink to fit.
    – csk
    Aug 7 at 19:42










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f291872%2fcreating-a-brick-wall-style-for-polygons%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
13
down vote



accepted










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






share|improve this answer























  • well done! i think it might also be possible with two thick line pattern fills using different dash patterns. this would make a nice addition to the QGIS pattern library :-)
    – Steven Kay
    Aug 6 at 17:33










  • I tried it with dash patterns, but the custom dash pattern didn't work how I expected. I expected a dash pattern '5,5' with millimeters as units would give a 5mm long dash with a 5mm space, but instead it's an invisible line. So I'm not sure if that feature is buggy, or if I just don't understand how it works.
    – csk
    Aug 6 at 18:08










  • Thanks, works very nice. The rectangle marker is called half_square in my QGIS 2.18.21 and 3.2.1. One problem though is that the style does not render in the legend in TOC - leaving a empty white box. This may be some style scaling problem rendering the legend in TOC - will report this to the qgis dev team.
    – Jakob
    Aug 7 at 11:54










  • That's just a scaling issue. The style box in the layer legend is only about 4mm wide, so when the bricks are 5x10mm the pattern doesn't fit. It displays properly when the bricks are smaller than the icon, say 2mm x 4mm. It might be a nice feature if there was an option to make the style box larger, or have large patterns shrink to fit.
    – csk
    Aug 7 at 19:42














up vote
13
down vote



accepted










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






share|improve this answer























  • well done! i think it might also be possible with two thick line pattern fills using different dash patterns. this would make a nice addition to the QGIS pattern library :-)
    – Steven Kay
    Aug 6 at 17:33










  • I tried it with dash patterns, but the custom dash pattern didn't work how I expected. I expected a dash pattern '5,5' with millimeters as units would give a 5mm long dash with a 5mm space, but instead it's an invisible line. So I'm not sure if that feature is buggy, or if I just don't understand how it works.
    – csk
    Aug 6 at 18:08










  • Thanks, works very nice. The rectangle marker is called half_square in my QGIS 2.18.21 and 3.2.1. One problem though is that the style does not render in the legend in TOC - leaving a empty white box. This may be some style scaling problem rendering the legend in TOC - will report this to the qgis dev team.
    – Jakob
    Aug 7 at 11:54










  • That's just a scaling issue. The style box in the layer legend is only about 4mm wide, so when the bricks are 5x10mm the pattern doesn't fit. It displays properly when the bricks are smaller than the icon, say 2mm x 4mm. It might be a nice feature if there was an option to make the style box larger, or have large patterns shrink to fit.
    – csk
    Aug 7 at 19:42












up vote
13
down vote



accepted







up vote
13
down vote



accepted






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






share|improve this 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







share|improve this answer















share|improve this answer



share|improve this answer








edited Aug 7 at 19:35


























answered Aug 6 at 17:27









csk

4,730229




4,730229











  • well done! i think it might also be possible with two thick line pattern fills using different dash patterns. this would make a nice addition to the QGIS pattern library :-)
    – Steven Kay
    Aug 6 at 17:33










  • I tried it with dash patterns, but the custom dash pattern didn't work how I expected. I expected a dash pattern '5,5' with millimeters as units would give a 5mm long dash with a 5mm space, but instead it's an invisible line. So I'm not sure if that feature is buggy, or if I just don't understand how it works.
    – csk
    Aug 6 at 18:08










  • Thanks, works very nice. The rectangle marker is called half_square in my QGIS 2.18.21 and 3.2.1. One problem though is that the style does not render in the legend in TOC - leaving a empty white box. This may be some style scaling problem rendering the legend in TOC - will report this to the qgis dev team.
    – Jakob
    Aug 7 at 11:54










  • That's just a scaling issue. The style box in the layer legend is only about 4mm wide, so when the bricks are 5x10mm the pattern doesn't fit. It displays properly when the bricks are smaller than the icon, say 2mm x 4mm. It might be a nice feature if there was an option to make the style box larger, or have large patterns shrink to fit.
    – csk
    Aug 7 at 19:42
















  • well done! i think it might also be possible with two thick line pattern fills using different dash patterns. this would make a nice addition to the QGIS pattern library :-)
    – Steven Kay
    Aug 6 at 17:33










  • I tried it with dash patterns, but the custom dash pattern didn't work how I expected. I expected a dash pattern '5,5' with millimeters as units would give a 5mm long dash with a 5mm space, but instead it's an invisible line. So I'm not sure if that feature is buggy, or if I just don't understand how it works.
    – csk
    Aug 6 at 18:08










  • Thanks, works very nice. The rectangle marker is called half_square in my QGIS 2.18.21 and 3.2.1. One problem though is that the style does not render in the legend in TOC - leaving a empty white box. This may be some style scaling problem rendering the legend in TOC - will report this to the qgis dev team.
    – Jakob
    Aug 7 at 11:54










  • That's just a scaling issue. The style box in the layer legend is only about 4mm wide, so when the bricks are 5x10mm the pattern doesn't fit. It displays properly when the bricks are smaller than the icon, say 2mm x 4mm. It might be a nice feature if there was an option to make the style box larger, or have large patterns shrink to fit.
    – csk
    Aug 7 at 19:42















well done! i think it might also be possible with two thick line pattern fills using different dash patterns. this would make a nice addition to the QGIS pattern library :-)
– Steven Kay
Aug 6 at 17:33




well done! i think it might also be possible with two thick line pattern fills using different dash patterns. this would make a nice addition to the QGIS pattern library :-)
– Steven Kay
Aug 6 at 17:33












I tried it with dash patterns, but the custom dash pattern didn't work how I expected. I expected a dash pattern '5,5' with millimeters as units would give a 5mm long dash with a 5mm space, but instead it's an invisible line. So I'm not sure if that feature is buggy, or if I just don't understand how it works.
– csk
Aug 6 at 18:08




I tried it with dash patterns, but the custom dash pattern didn't work how I expected. I expected a dash pattern '5,5' with millimeters as units would give a 5mm long dash with a 5mm space, but instead it's an invisible line. So I'm not sure if that feature is buggy, or if I just don't understand how it works.
– csk
Aug 6 at 18:08












Thanks, works very nice. The rectangle marker is called half_square in my QGIS 2.18.21 and 3.2.1. One problem though is that the style does not render in the legend in TOC - leaving a empty white box. This may be some style scaling problem rendering the legend in TOC - will report this to the qgis dev team.
– Jakob
Aug 7 at 11:54




Thanks, works very nice. The rectangle marker is called half_square in my QGIS 2.18.21 and 3.2.1. One problem though is that the style does not render in the legend in TOC - leaving a empty white box. This may be some style scaling problem rendering the legend in TOC - will report this to the qgis dev team.
– Jakob
Aug 7 at 11:54












That's just a scaling issue. The style box in the layer legend is only about 4mm wide, so when the bricks are 5x10mm the pattern doesn't fit. It displays properly when the bricks are smaller than the icon, say 2mm x 4mm. It might be a nice feature if there was an option to make the style box larger, or have large patterns shrink to fit.
– csk
Aug 7 at 19:42




That's just a scaling issue. The style box in the layer legend is only about 4mm wide, so when the bricks are 5x10mm the pattern doesn't fit. It displays properly when the bricks are smaller than the icon, say 2mm x 4mm. It might be a nice feature if there was an option to make the style box larger, or have large patterns shrink to fit.
– csk
Aug 7 at 19:42












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f291872%2fcreating-a-brick-wall-style-for-polygons%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?