[fusion-users] More than two hierarchy levels in the legend (with
MapServer)
Paul Spencer
pspencer at dmsolutions.ca
Tue Jun 10 10:36:29 EDT 2008
Bernhard,
This restriction comes from the fact that MapServer itself only
supports one level of grouping via the GROUP keyword in a LAYER
object. The map rendering does not specifically use groups, it uses
the layers themselves in the order they are present in the map file
(layer at the top is drawn first, subsequent layers are drawn over it
- painters algorithm). Groups are only for organising layers in the
legend.
Cheers
Paul
On 10-Jun-08, at 8:54 AM, Bernhard Schneider wrote:
> Hello everyone,
>
> Digging a bit further, I realised that the code in LoadMap.php
> (fusion/MapServer/php/) is responsible for restricting the nesting
> depth to 2. It retrieves the information from MapScript which itself
> read it from the map file. There is the comment "parent is always
> not set for mapserver since we can't have nested groups" in the code.
>
> Is it the MapServer (MapScript) that imposes the limitation? I
> wonder whether it isn't just a matter of interpreting the map file
> from a "client side". The map rendering engine should not worry
> about nesting levels, it only needs to know which layers are visible
> and in which order they should be drawn. Aren't the groups mainly
> (only) there for organising the layers in the legend?
>
> Just wondering.
> Bernhard
>
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
__________________________________________
Paul Spencer
Chief Technology Officer
DM Solutions Group Inc
http://www.dmsolutions.ca/
More information about the fusion-users
mailing list