PolygonPatternSymbolizer

Stephan Bösch-Plepelits edited this page Jul 11, 2014 · 8 revisions
Clone this wiki locally

Configuration Options for PolygonPatternSymbolizer

parameter value default accepts expressions
file path to image file none mapnik >= 2.0
width (removed) px 4
height (removed) px 4
type (removed) png tiff none
comp-op Compositing none no

Examples

Default

FIXME: Add image

XML

    <PolygonPatternSymbolizer width="16" height="16" type="png" file="/path/to/icon.png"/>

Python

    p = PolygonPatternSymbolizer('/path/to/icon.png','png',10,10) # file, type, width, height

mapnik2:

    p = PolygonPatternSymbolizer(PathExpression('/path/to/icon.png'))

C++

    ruly_type rule;
    rule.append(polygon_pattern_symbolizer("path/to/icon.png", "png", 20, 20)); // file, type, width, height