Am 30.08.2011 12:04, schrieb Martin Koppenhoefer:
Hi
I intended the symbolizer attributes, i.e. that you compose the final
result for one symbolizer from different rules like in the example.
<Style name="amenity">
<Rule>
<Filter>[amenity] = 'restaurant'</Filter>
<TextSymbolizer name="[name]" fill="red"/>
</Rule>
<Rule>
<Filter>[amenity] = 'pub'</Filter>
<TextSymbolizer name="[name]" fill="black" />
</Rule>
<Rule>
<AlsoFilter />
<TextSymbolizer name="[name]" fontset-name="book-fonts" size="9"
dy="9" halo-radius="1" wrap-width="0" />
</Rule>
</Style>
The above example is valid.
but will it draw 1 symbolizer with the combined attributes, or will it
first draw a red text with default attributes (1st rule) and then a
second text with the given attributes and default colour (also-rule)?
It will act as if the last rule had be written like this:
<Rule>
<Filter>[amenity] = 'restaurant' or [amenity] = 'pub'</Filter>
<TextSymbolizer name="[name]" fontset-name="book-fonts" size="9"
dy="9" halo-radius="1" wrap-width="0" />
</Rule>
So in the example above it would, following the Filter-Rules, try to
render two TextSymbolizers.
Peter
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users