Francesco,

You could certainly merge those rules, but they appear to display the icon at a 
different size, so depending on the goal of the style perhaps you don't want to 
merge them.

Also, only rules that match at a given scale are evaluated, so if your rule 
scales are exclusive, merging them would not speed up rendering.

Dane

On May 2, 2011, at 6:43 AM, [email protected] wrote:

> Hi to all,
> i'd like to speed up my rendering tiles with mapnik and i need your help:
> I have many rule that use the same filter for a difference zoom levels like 
> this:
> 
> <Rule>
>                <Filter>[BOYSHP] = '3' and [COLOUR] = '3,4,3' </Filter>
>                &maxscale_zoom16;
>              &minscale_zoom18;
>                <PointSymbolizer allow_overlap="yes" file="&icons1;/bysp66C.
> png" type="png" width="20" height="46" />
>           </Rule>
> 
>           <Rule>
>                <Filter>[BOYSHP] = '3' and [COLOUR] = '3,4,3' </Filter>
>                &maxscale_zoom12;
>              &minscale_zoom15;
>                <PointSymbolizer allow_overlap="yes" file="&icons1;/bysp66CS.
> png" type="png" width="16" height="36" />
>           </Rule>
> 
> My question is: Can i "merge this kind of rules in one using something like:
> 
> &maxscale_zoom16;
>              &minscale_zoom18;
> OR 
> 
> &maxscale_zoom16;
>              &minscale_zoom18;
> 
> 
> Thanks
> 
> 
> Francesco
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to