Hi Dane, xcacou (who posted the original ticket about this) helped me to understand. He also suggested to have a order styles with something similar to self.ordered_layers = []. I didn't had time to check that so far but I hope I will be able to file a ticket with a patch by this evening. I'll keep you informed.
Best regards, Gilles Dane Springmeyer wrote: > Gilles, > >> I recall that r938 and r939 addressed this issue. >> > > Ah, but only for layers I now remember. So, a ticket would be great - > we should be able to maintain the style ordering. > > Dane > > > >> If you are running code with these fixes, please post a ticket and >> I'll take a closer look. >> >> Thanks, >> >> Dane >> >> >> On Mar 25, 2009, at 1:06 PM, Gilles Bassière wrote: >> >>> Hi List, >>> >>> I have an XML file with a "road" layer. This layer references many >>> styles for casing and filling and labelling of different road types. >>> >>> The styles are ordered so that the deepest style appear first : >>> >>> <Layer name="roads" srs="+init=epsg:27572" status="on"> >>> <StyleName>road_casing6</StyleName> >>> <StyleName>road_casing5</StyleName> >>> <StyleName>road_casing4</StyleName> >>> <StyleName>road_casing3</StyleName> >>> <StyleName>road_casing2</StyleName> >>> <StyleName>road_casing1</StyleName> >>> <StyleName>road_casing0</StyleName> >>> <StyleName>road_filling6</StyleName> >>> <StyleName>road_filling5</StyleName> >>> <StyleName>road_filling4</StyleName> >>> <StyleName>road_filling3</StyleName> >>> <StyleName>road_filling2</StyleName> >>> <StyleName>road_filling1</StyleName> >>> <StyleName>road_filling0</StyleName> >>> <StyleName>road_labels</StyleName> >>> <Datasource> >>> <Parameter name="type">postgis</Parameter> >>> ... >>> </Datasource> >>> </Layer> >>> >>> When I render this map with the load_map function, it's fine. >>> Unfortunately, the order is different when I use the load_map method >>> of >>> the WMSFactory (OGCserver). >>> >>> I read the ticket http://trac.mapnik.org/ticket/129 and I understand >>> that aggregate styles are not easy to manage in XML. >>> >>> Is there any work around this? >>> >>> Regars >>> Gilles >>> _______________________________________________ >>> 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 > _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

