Skip to content

Commit

Permalink
Merge pull request #2682 from sommerluk/vector01
Browse files Browse the repository at this point in the history
Switch forest pattern to SVG
  • Loading branch information
imagico authored Jul 10, 2017
2 parents 91fd10a + f171654 commit c9e700d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 16 deletions.
2 changes: 1 addition & 1 deletion landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@

//Also landuse = forest, converted in the SQL
[natural = 'wood'][zoom >= 13]::wood {
polygon-pattern-file: url('symbols/forest.png'); // Lch(55,30,135)
polygon-pattern-file: url('symbols/forest.svg'); // Lch(55,30,135)
polygon-pattern-alignment: global;
opacity: 0.4; // The entire layer has opacity to handle overlapping forests
}
Expand Down
Binary file removed symbols/forest.png
Binary file not shown.
31 changes: 31 additions & 0 deletions symbols/forest.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions symbols/generating_patterns/forest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ In the first step visit [jsdotpattern (command sequence is recorded)](http://www

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

Generated SVG image is present in this folder (forest.svg).
Generated SVG image is sanitized for use with Mapnik by the script svg_pattern.sh from the jsdotpattern repository at http://github.com/imagico/jsdotpattern.

Due to limitations of Mapnik it is impossible to use this svg file.

Currently used workaround is to export png file (this image is used in rendering).
The final file is forest.svg
11 changes: 0 additions & 11 deletions symbols/generating_patterns/forest.svg

This file was deleted.

0 comments on commit c9e700d

Please sign in to comment.