GROUP parameter in a mapfile

Jacolin Yves yjacolin at FREE.FR
Fri Oct 5 00:38:42 PDT 2007


Hi Steve,

I can explain my own purpose. I am using OpenLayer, tilecache and Mapserver in 
my web application process. Tilecache can create group of layers. It was 
great, until I tried to export my picture map. In order to do so, I am using 
a WMS request to get the same map display by OpenLayers. Or I can't use 
Tilecache groups. So I changed my process and all group are now in the 
mapfile, something like this:

LAYER
  NAME geosignal
  GROUP geosignal
  TYPE RASTER
    TRANSPARENCY 100
  METADATA
    "wms_title" "geosignal"
  END
END

And all the layers inside this group got the GROUP parameter.

But some group contains the same layers. Because some of our data is not 
complete as we got no information in some location, I used one layer where 
the extent data is complete, this is the geosignal layer, hence I have to 
repeat this layer in two others groups (orthophoto for instance which the 
extent is about 1/3 of geosignal).

I hope I am clear, english is not my native langage :(

Y.
Le Friday 05 October 2007 05:59:30 Steve Lime, vous avez écrit :
> I'd like to learn more about a use case that would demonstrate the need.
> I think
> in particular it could complicate the already nasty task of building
> tree'd legends
> from mapfiles. One idea might be to treat the group property as a regex
> instead
> of straight text. So you'd do:
>
>   GROUP 'somegroup1|somegroup2' or
>   GROUP /somegroup1|somegroup2/
>
> or something like that. That could cause some funky problems in cases
> where
> folks had group names that were substrings of one another.
>
> Steve
>
> >>> Jacolin Yves <yjacolin at FREE.FR> 10/04/07 3:06 AM >>>
>
> Hi Steve,
>
> Thanks. Is it possible to add this as a new feature? Do you think it
> could be
> interesting for everyone?
>
> Regards,
>
> Y.
>
> Le Wednesday 03 October 2007 21:35:46 Steve Lime, vous avez écrit :
> > It is not possible for a layer to be in more than one group. You could
> > duplicate the layer and assign each copy to a group. If the groups are
> > otherwise mutually exclusive then you wouldn't have the duplicate
>
> layers
>
> > being drawn twice.
> >
> > Steve
> >
> > >>> On 10/3/2007 at 9:54 AM, in message
> > >>> <200710031654.04092.yjacolin at free.fr>,
> >
> > Jacolin Yves <yjacolin at FREE.FR> wrote:
> > > Hi,
> > >
> > > Is it possible to define two group in the GROUP parameter something
>
> like
>
> > > this:
> > >
> > > LAYER
> > >   ...
> > >   GROUP group1,group2
> > >   ...
> > > END
> > >
> > > Thanks,
> > >
> > > In case I can not use more than one group, do you know a workaround
>
> to do
>
> > > it?
> > >
> > > Best regards,
> > >
> > > Y.
> > > --
> > > Yves Jacolin
> > > ---
> > > http://softlibre.gloobe.org



-- 
Yves Jacolin
---
http://softlibre.gloobe.org



More information about the MapServer-users mailing list