Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mapnik3
  • Project information
    • Project information
    • Activity
    • Members
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
Collapse sidebar
  • 周峰
  • mapnik3
  • Wiki
  • LinePatternSymbolizer

LinePatternSymbolizer · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Hide whitespace changes
Inline Side-by-side
LinePatternSymbolizer.md 0 → 100644
View page @ 8516de00
[[Symbolizer|SymbologySupport]] that specifies rendering of repeated png, tiff, or svg symbol to create a line. For example, a cliff edge.
Used as an alternative to a [[LineSymbolizer]].
![Showing a cliff on openstreetmap.org](http://a.tile.openstreetmap.org/18/141423/87855.png)
## Configuration Options
| *parameter* | *value* | *default* | *accepts expressions* |
|---|---|---|---|
| file | path to image file | none | mapnik >= 2.0 |
| base | base path where to search for file | none | no |
| width **(removed)**| px | 4 | |
| height **(removed)**| px | 4 | |
| type **(removed)**| png tiff | none | |
| comp-op | [[Compositing]] | none | no |
*Note* that the line direction matters!
## Examples
### Default
### XML
```xml
<LinePatternSymbolizer width="16" height="16" type="png" file="/path/to/icon.png"/>
```
#### Python
```python
l = LinePatternSymbolizer('/path/to/icon.png','png',10,10) # file, type, width, height
```
#### C++
```cpp
rule_type rule;
rule.append(line_pattern_symbolizer("/path/to/icon.png", "png", 20, 20)); // file, type, width, height
```
\ No newline at end of file
Clone repository
  • A perfect testcase
  • API changes between v2.0 and v2.1
  • API changes between v3.0 and v3.1
  • AWS Lambda
  • About Mapnik
  • AlsoFilter
  • Api changes between v2.1 and v2.2
  • Api changes between v2.2 and v2.3
  • Api changes between v2.3 and v3.0
  • ArchInstallation
  • Aspect Fix Mode
  • Benchmark Notes
  • BoundsClipping
  • BrokenExceptions
  • BuildingSymbolizer
View All Pages