Skip to content

Commit

Permalink
Dummy geometry for scrub pattern compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sommerluk committed Oct 3, 2017
1 parent ef7d52d commit 9642b09
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 41 deletions.
2 changes: 1 addition & 1 deletion landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@
}
}
[natural = 'scrub'] {
polygon-pattern-file: url('symbols/scrub.svg');
polygon-pattern-file: url('symbols/scrub.png');
polygon-pattern-alignment: global;
}
}
Expand Down
13 changes: 4 additions & 9 deletions symbols/generating_patterns/scrub.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
The scrub pattern is generated by visiting http://www.imagico.de/map/jsdotpattern.php and using the following options:
For the pattern for scrub type visit [jsdotpattern (command sequence is recorded)](http://www.imagico.de/map/jsdotpattern.php#x,512,jdp97762;g5,45,64,64;rx,250,2,64,64;rx,250,2,64,64;rx,250,2,64,64;rd,1,0,0,scrub2,1,5,12,0,jdp3379,8ece8f,b5e3b5;)

- regular snub square ('5' button)
- distance = 45
- radius = 64
- radius y = 64
- metric = 2
- about 10-20 relax clicks
- 'scrub2' image
- use the "render (px aligned)" option
The result is this following [pattern](http://www.imagico.de/map/jsdotpattern.php#x,256,jdp34863;g5,43,64,64;rd,1,0,0,scrub2,1,0,0,0,jdp48772,8ece8f,b5e3b5;).

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.

The final file is scrub.svg

Because of a [problem in the rendering stack](https://github.com/gravitystorm/openstreetmap-carto/issues/2750) we don’t use the SVG directly, but convert it to PNG.
39 changes: 39 additions & 0 deletions symbols/generating_patterns/scrub.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added symbols/scrub.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 0 additions & 31 deletions symbols/scrub.svg

This file was deleted.

0 comments on commit 9642b09

Please sign in to comment.