[mapserver-users] Grouping Layers

Martin Kofahl M.Kofahl at gmx.net
Fri Oct 9 06:31:38 EDT 2009


Hi Travis,
currently there's no way to hide a layer. There's a ticket on it: http://trac.osgeo.org/mapserver/ticket/1952 I'm using this solution since several months with great success. Once there was greater interest, but currently there's no activity on this topic. See http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices.

Martin

-------- Original-Nachricht --------
> Datum: Thu, 8 Oct 2009 15:55:30 -0400
> Von: Travis Kirstine <traviskirstine at gmail.com>
> An: mapserver-users at lists.osgeo.org
> Betreff: [mapserver-users] Grouping Layers

> Is there any way to "hide" layers within a group in a WMS service.
> For instance below I have 3 layers of imagery in group called
> ORTHO2002.  I would like only the group name to appear in the client
> application (QGIS, ESRI etc...) and restrict the option of expanding
> the group and showing each layer
> 
> 
>         LAYER
>                 NAME "GTA10km_2002"
>                 TILEINDEX
> "/home/share1/raster/2002_GTA_10km_tif_pil/gta_10km_tindex"
>                 MAXSCALE 18000000
>                 MINSCALE 40000
>                 METADATA
>                         "WMS_GROUP_TITLE" "ORTHO2002"
>                         "WMS_TITLE" "GTA10KM2002"
>                 END
>                 PROJECTION
>                          "init=epsg:26917"
>                 END
>                 TYPE RASTER
>                 GROUP "ORTHO2002"
>                 STATUS OFF
>                 OFFSITE 0 0 0
>                 PROCESSING "RESAMPLE=BILINEAR"
>         END
>         LAYER
>                 NAME "GTA5km_2002"
>                 TILEINDEX
> "/home/share1/raster/2002_GTA_5km_tif_pil/gta_5km_tindex"
>                 MAXSCALE 41000
>                 MINSCALE 7500
>                 METADATA
>                         "WMS_TITLE" "GTA5KM2002"
>                 END
>                 PROJECTION
>                         "init=epsg:26917"
>                 END
>                 TYPE RASTER
>                 GROUP "ORTHO2002"
>                 STATUS OFF
>                 OFFSITE 0 0 0
>                 PROCESSING "RESAMPLE=BILINEAR"
>         END
>         LAYER
>                 NAME "GTA1KM_2002"
>                 TILEINDEX
> "/home/share1/raster/2002_GTA_1km_jpg/gta_1km_tindex"
>                 MAXSCALE 7600
>                 METADATA
>                         "WMS_TITLE" "GTA1KM2002"
>                 END
>                 PROJECTION
>                         "init=epsg:26917"
>                 END
>                 TYPE RASTER
>                 GROUP "ORTHO2002"
>                 STATUS OFF
>                 OFFSITE 0 0 0
>                 PROCESSING "RESAMPLE=BILINEAR"
>         END
> 
> 
> 
> 
> 
> -- 
> Travis K.
> 
> Toronto, Canada
> ------------------------------------------------------------
> "She knows there's no success like failure
> and that failure's no success at all."
> -Bob Dylan-
> ------------------------------------------------------------
> _______________________________________________
> 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