Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

PolygonPatternSymbolizer

lucadelu edited this page · 8 revisions
Clone this wiki locally

Configuration Options for PolygonPatternSymbolizer

parameter value default
file path to image file none
width px 4
height px 4
type png tiff none

Examples

BR Image(http://media.mapnik.org/images/polygon_pattern.png)

Default

FIXME: Add image

XML

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

Python

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

mapnik2:

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

C++

#!cpp
ruly_type rule;
rule.append(polygon_pattern_symbolizer("path/to/icon.png", "png", 20, 20)); // file, type, width, height
Something went wrong with that request. Please try again.