Creating a 'brick wall' style for polygons
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
9
down vote
favorite
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.
qgis style qml
add a comment |Â
up vote
9
down vote
favorite
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.
qgis style qml
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
add a comment |Â
up vote
9
down vote
favorite
up vote
9
down vote
favorite
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.
qgis style qml
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.
qgis style qml
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
add a comment |Â
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
add a comment |Â
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
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
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
add a comment |Â
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
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
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
add a comment |Â
up vote
13
down vote
accepted
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
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
add a comment |Â
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
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
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
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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