Skip to content

Commit

Permalink
Test bare_rock1 pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisenbe committed Aug 29, 2019
1 parent c2ff337 commit f05a1d2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@
}

[natural = 'bare_rock'][zoom >= 5] {
polygon-pattern-file: url('symbols/rock_overlay.png');
polygon-pattern-file: url('symbols/bare_rock1.png');
[way_pixels >= 4] {
polygon-pattern-gamma: 0.75;
}
Expand Down
Binary file added symbols/bare_rock1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions symbols/generating_patterns/bare_rock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Pattern file for bare_rock is generated in 2 steps.

For the pattern visit [jsdotpattern (command sequence is recorded)](http://www.imagico.de/map/jsdotpattern.php#x,256,jdp81007;g,5,32,32;rx,25,2,32,32;rx,25,2,32,32;rx,25,2,32,32;rx,25,2,32,32;rx,25,2,32,32;rd,0,0,1,rock,0.125,24,24,0,jdp45208,8a99a5,eee5dc;)

Generate file - use "render" followed by using "get pattern SVG data" (it is expected that background will be transparent, background colour in jsdotpattern is only for display).

However, since SVG patterns is not properly handled by Mapnik at this time, the SVG file was converted to a PNG file with alpha channel, allotments.png
9 changes: 9 additions & 0 deletions symbols/generating_patterns/bare_rock1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f05a1d2

Please sign in to comment.