[mapserver-users] Using a group layer as a mask layer

thomas bonfort thomas.bonfort at gmail.com
Sun Nov 3 23:53:39 PST 2013


Tom,
Mask layers can only reference layers by name, not by group. You might
want to open an issue for this so this doesn't get forgotten, and/or
contact me directly if this is a functionality you wanted to fund.

cheers,
thomas

On 1 November 2013 15:53, tellett <thomas.ellett at statkart.no> wrote:
> Hi all,
>
> I was hoping someone could give me a yes or no answer to this question:
>
> Is it possible to use a 'GROUP' or 'WMS_LAYER_GROUP' layer as a mask for
> another layer.
>
> For example
> MAP
> LAYER
> Name 'Layer1'
> ...
> GROUP 'asmask'
> END
>
> LAYER
> Name 'Layer2'
> ...
> GROUP 'asmask'
> END
>
> LAYER
> Name 'Layer3'
> ...
> MASK 'asmask'
> END
>
> END
>
> Or:
> MAP
>
> LAYER
> Name 'Layer1'
> ...
> 'WMS_LAYER_GROUP' 'Layer1'
> END
>
> LAYER
> Name 'Layer2'
> ...
> 'WMS_LAYER_GROUP' 'Layer1'
> END
>
> LAYER
> Name 'Layer3'
> ...
> MASK 'Layer1'
> END
>
> END
>
> I'm just looking for a yes or no at the moment because I've been trying both
> of these methods and neither are working but I'm also getting absolutely no
> debug info. It looks as if 'Layer3' loads (3 or 4 second load time in the
> log) but nothing is showing in the map at all. So its looks as if mapserver
> fetches Layer3 but gets no data from the GROUP layer or WMS_GROUP_LAYER (and
> no I'm not trying them at the same time :)).
>
> Any offers?
>
> Thanks
>
> Tom
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-a-group-layer-as-a-mask-layer-tp5086989.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list