SLD, sequence of Rules
Eijnden, Bart van den (AGI)
b.vdeijnden at AGI.RWS.MINVENW.NL
Sun Sep 3 23:54:11 PDT 2006
Hi list,
when reading an SLD file Mapserver reverses the sequence of the Rules, which does not make sense to me. We have a certain sequence of Rules in our SLD files, and we want to see the same sequence in the legends for instance.
In mapogcsld.c it says:
/* -------------------------------------------------------------------- */
/* copy classes in reverse order : the Rule priority is the */
/* first rule is the most important (mapserver uses the painter */
/* model) */
/* -------------------------------------------------------------------- */
map->layers[i].type = pasLayers[j].type;
map->layers[i].numclasses = 0;
iClass = 0;
for (k=pasLayers[j].numclasses-1; k>=0; k--)
{
initClass(&map->layers[i].class[iClass]);
msCopyClass(&map->layers[i].class[iClass],
&pasLayers[j].class[k], NULL);
map->layers[i].class[iClass].layer = &map->layers[i];
map->layers[i].class[iClass].type = map->layers[i].type;
map->layers[i].numclasses++;
iClass++;
}
Any ideas why this was reversed?
Best regards,
Bart van den Eijnden
=================================
drs. A.J. van den Eijnden
adviseur
Productteam Applicaties Geo-Informatie
Rijkswaterstaat Adviesdienst Geo-informatie en ICT
Postbus 5023, 2600 GA Delft
Derde Werelddreef 1, 2622 HA Delft
Telefoon: (015) 275 75 75
E-mail b.vdeijnden at agi.rws.minvenw.nl
=================================
Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.
This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************
More information about the MapServer-users
mailing list